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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
2718
Visualizzazioni
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, ...)
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
0
apr 17
|
5081 | ||
|
3
mag 16
|
7814 | ||
Why XML in odoo ?
Risolto
|
|
3
mar 25
|
1036 | |
Odoo action error
Risolto
|
|
1
ott 24
|
5473 | |
|
0
dic 22
|
1917 |