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

I have added two fields to res.partner called firma1 and firma2 and I use them on my address layout.

The problem is that I have to reenter firma1 and firma2 for every individual that belongs to the company, instead, it should just take the firma1 and firma2 field from the parent_id it belongs to.


I have thought about adding related fields to solve this problem, however, then they have different names?


Is there a way to overwrite the method every time someone accesses a field? Then I could check in that method if the partner is an individual and if so take the field from the parent?

What is the correct way to solve this?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 24
1763
How can I recover ownership? แก้ไขแล้ว
1
ก.พ. 23
2039
Odoo database failed แก้ไขแล้ว
1
ธ.ค. 22
11633
1
เม.ย. 20
3104
Edit Company data Powered by Odoo แก้ไขแล้ว
6
มิ.ย. 15
7904