Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3924 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

You need to customization code

Method name is

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
kwi 22
2509
2
gru 21
2818
2
maj 20
3983
3
maj 17
2965
2
maj 25
879