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

I have encountered some problems when I set up product packages such that I could sell "Product A" in both units and boxes. However, when I selected the packages to box it only show me warning that the quantities must be set to x quantities, but did not change the quantities in the quotation window. Is there a method to automate this, I know it could be achieved manually by just overriding the quantities field, but I would appreciate if it could be set automatically. (Even there are enough stock quantities)


Thanks in advance

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

You need to customization code

Method name is

@api.onchange('product_packaging_id')
def _onchange_product_packaging_id(self):

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 22
2525
delivery packages Đã xử lý
2
thg 12 21
2851
2
thg 5 20
3996
3
thg 5 17
2971
2
thg 5 25
912