Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1809 Visualizzazioni

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?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 24
1751
1
feb 23
2015
1
dic 22
11599
1
apr 20
3067
6
giu 15
7881