Hello, I need to convert the fields of the partner accounting entries so that I can select multiple options and create a tree view with the saved values. The fields are property_account_payable_id and property_account_receivable_id both fields are many2one, I think I should convert them to one2many field but I'm not sure. This filds are not in the res.parter table in the database so I dont completely understand how it works, I know this fields are in other table called ir_property but I dont get it.
I appreciate any help
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
1
Odpowiedz
2789
Widoki
You can't convert many2one fields to one2many. But you can hide many2one field and create a new one2many field and replace that field in view.
property_account_payable_ids = fields.One2many(comodel_name="res.parter", inverse_name='id', string="Property Account Payable")
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ść | |
---|---|---|---|---|
|
0
wrz 24
|
1148 | ||
|
0
sie 22
|
1970 | ||
|
2
cze 21
|
4466 | ||
|
3
lis 19
|
5194 | ||
|
0
wrz 24
|
1380 |