I want to set the default tax in action record, I can set other values through context field, but I have no idea what to fill for the taxes_id since it is a many2many field. I want to set the default value to 0 or empty the tax field. My module is inherited from product base 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
1
Odpowiedz
2699
Widoki
Dear Fransisco Wijaya,
You can over-ride the customer tax field and set default value on the inherited module
my_taxes = fields.Many2many(default=get_taxes, ...)
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
kwi 17
|
5055 | ||
|
3
maj 16
|
7760 | ||
Why XML in odoo ?
Rozwiązane
|
|
3
mar 25
|
1002 | |
Odoo action error
Rozwiązane
|
|
1
paź 24
|
5349 | |
|
0
gru 22
|
1893 |