Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1903 Переглядів

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
1843
1
лют. 23
2137
Odoo database failed Вирішено
1
груд. 22
11753
1
квіт. 20
3184
6
черв. 15
8005