Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4065 Näkymät

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

Avatar
Hylkää
Paras vastaus

You need to customization code

Method name is

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
huhtik. 22
2585
2
jouluk. 21
2989
2
toukok. 20
4058
3
toukok. 17
3023
4
elok. 25
1563