跳至內容
選單
此問題已被標幟
1 回覆
2751 瀏覽次數

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
5113
3
5月 16
7879
3
3月 25
1069
1
10月 24
5552
0
12月 22
1949