Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2755 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
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