Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2718 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
apr 17
5081
3
mag 16
7814
3
mar 25
1036
1
ott 24
5473
0
dic 22
1917