Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6070 Представления

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. 

Аватар
Отменить

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

Лучший ответ

Inherit the view and use xpath with attributes tag

Eg:

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

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

</xpath>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
февр. 25
3058
1
нояб. 24
2865
1
дек. 23
2708
1
апр. 21
7838
6
янв. 24
15591