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
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
2736
Visualizações
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, ...)
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
abr. 17
|
5091 | ||
|
3
mai. 16
|
7825 | ||
Why XML in odoo ?
Resolvido
|
|
3
mar. 25
|
1046 | |
Odoo action error
Resolvido
|
|
1
out. 24
|
5508 | |
|
0
dez. 22
|
1928 |