Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6066 Zobrazení

I have a custom module that adds features to the invoices, but I want to take an account models field and remove its invisible attribute. I know how to do this from developer mode, but I would like to enforce it with my invoicing module. 

Avatar
Zrušit

Look how inheritance work in odoo: https://goo.gl/4Zyc9d

Nejlepší odpověď

Inherit the view and use xpath with attributes tag

Eg:

<xpath expr="//field[@name='account_id']" position="attributes">

     <attribute name="invisible">False</attribute>

</xpath>

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
úno 25
3057
1
lis 24
2862
1
pro 23
2708
1
dub 21
7838
6
led 24
15590