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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
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
What should i do if i want to add the name and address field only?
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
mar 25
|
811 | ||
|
2
gru 22
|
5556 | ||
|
1
mar 15
|
4623 | ||
|
1
mar 15
|
6312 | ||
|
1
kwi 25
|
2002 |