I want to hide the Home button from the navigation bar of Odoo12 website.
Not sure how to do that with code, can anyone help me out in this?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Try this in your XML file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="my_header" inherit_id="website.layout" name="my_header">
<xpath expr="//header" position="replace">
<header>
add your specific menu here
</header>
</xpath>
</template>
</odoo>
Hello
you can do with add 'active' field into the object 'website.menu'
or using the 'is_visible' field available into the website.menu object.
class website_menu(models.Model):
_inherit = 'website.menu'
active = fields.Boolean(string="Active", default=True) # if this field is mark as checked then it will visible into the menu
# inherit the xml view and add the field into the xml view also. so into the form view you can see the field and then try.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
sty 20
|
2604 | ||
Odoo Selection field issue
Rozwiązane
|
|
3
mar 24
|
6692 | |
Get selected value of selected field?
Rozwiązane
|
|
1
maj 22
|
2800 | |
|
0
gru 19
|
2493 | ||
|
1
paź 19
|
5566 |
Hi Mitul Shingala,
I am new to this so please can you help me out by the code.
I am updating my answer. please add the below code into your code. using that field you can achieve your goal.
Hi Bouabaker Abdallah,
Its not working!
https://youtu.be/zHPtb1SR8Sk