コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2788 ビュー

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.

アバター
破棄
最善の回答

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


アバター
破棄
関連投稿 返信 ビュー 活動
0
4月 17
5241
3
5月 16
7956
3
3月 25
1167
1
10月 24
5701
0
12月 22
2035