def onchange_picking_type_id(self, cr, uid,ids, picking_type_id, context=None): if picking_type_id in (12,13,18,17): domain={} domain['product_id']=[('product_id','in',[])] sql="select t0.id from product_product t0 LEFT JOIN product_template t1 on t0…
Odoo 仓库调拨过程中,有时候会碰见一下错误内容: The roundings of your Unit of Measures on the move vs. on the product don't allow to do these operations or you are not transferring the picking at once. 这个错误的提示莫名其妙,看起来好像是因为某个产品的单位设置的不对造成的,然而经过一番分析,才发现里面别有洞天.(在这里我忍不住还是要吐槽…