Skip to Content
Menú
This question has been flagged
1 Respondre
2819 Vistes

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.

Avatar
Descartar
Best Answer

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, ...)


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’abr. 17
5258
3
de maig 16
7978
3
de març 25
1203
1
d’oct. 24
5804
0
de des. 22
2045