Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6057 มุมมอง

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
3055
invoice number prefix แก้ไขแล้ว
1
พ.ย. 24
2862
1
ธ.ค. 23
2706
1
เม.ย. 21
7838
6
ม.ค. 24
15589