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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
2730
Vues
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, ...)
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
avr. 17
|
5087 | ||
|
3
mai 16
|
7821 | ||
Why XML in odoo ?
Résolu
|
|
3
mars 25
|
1043 | |
Odoo action error
Résolu
|
|
1
oct. 24
|
5489 | |
|
0
déc. 22
|
1922 |