摘要: 使用route_sequence, sequence进行排序,并取第一个值 源代码如下: def _search_rule(self, route_ids, product_id, warehouse_id, domain): """ First find a rule among the ones 阅读全文
posted @ 2021-10-27 16:43 那时一个人 阅读(151) 评论(0) 推荐(0)
摘要: 最近有需求需要调用库存补货规则,流程稍微有点复杂,在这里简单整理下 # 1. 订单确认调用 @api.multi def _action_confirm(self): for order in self: order.order_line._action_launch_stock_rule() # 阅读全文
posted @ 2021-10-27 11:23 那时一个人 阅读(450) 评论(0) 推荐(0)