Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4 Respostas
8122 Visualizações

 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
Cancelar
Melhor resposta

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
Cancelar
Autor

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

Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 25
835
2
dez. 22
5582
1
mar. 15
4657
1
mar. 15
6337
1
abr. 25
2117