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

 I Have a two custom module one of them inherit field in res.partner module I want to show that field value to my other custom module For example name field value want to show in my other custom module. 

Avatar
Abbandona
Risposta migliore

Hi, 

In your new model you can add a many2one field to the res.partner model and achieve it. 

partner_id = fields.Many2one('res.partner', string="Customer")

Thanks

Avatar
Abbandona
Autore

class ResPartner(models.Model):

_name = "res.partner"

partner_id = fields.Many2one('res.partner', string="Customer")

Like that and .xml file code:

<field name="partner_id" /> is that correct.?

_name = "res.partner" , specify your model name here, instead of res.partner

Risposta migliore

What should i do if i want to add the name and address field only?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 25
836
2
dic 22
5584
1
mar 15
4659
1
mar 15
6342
1
apr 25
2127