Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
8126 Vues

 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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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

Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mars 25
836
2
déc. 22
5583
1
mars 15
4657
1
mars 15
6341
1
avr. 25
2124