Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3890 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

You need to customization code

Method name is

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
квіт. 22
2488
delivery packages Вирішено
2
груд. 21
2796
2
трав. 20
3962
3
трав. 17
2944
2
трав. 25
832