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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
2706
查看
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
|
5060 | ||
|
3
5月 16
|
7771 | ||
|
3
3月 25
|
1008 | ||
|
1
10月 24
|
5358 | ||
|
0
12月 22
|
1897 |