コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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?

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 24
1853
1
2月 23
2147
1
12月 22
11769
1
4月 20
3201
6
6月 15
8018