跳至内容
菜单
此问题已终结
1 回复
3841 查看

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):

形象
丢弃
相关帖文 回复 查看 活动
3
4月 22
2450
2
12月 21
2761
2
5月 20
3916
3
5月 17
2897
2
5月 25
756