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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
2755
Lượt xem
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, ...)
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 4 17
|
5141 | ||
|
3
thg 5 16
|
7897 | ||
Why XML in odoo ?
Đã xử lý
|
|
3
thg 3 25
|
1085 | |
Odoo action error
Đã xử lý
|
|
1
thg 10 24
|
5576 | |
|
0
thg 12 22
|
1955 |