Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4 Besvarelser
8373 Visninger

 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
Kassér
Bedste svar

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
Kassér
Forfatter

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

Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 25
950
2
dec. 22
5651
1
mar. 15
4752
1
mar. 15
6492
1
apr. 25
3045