Commit c033816b by liuyongcheng

fix 委外收料修改添加编号

parent 9ddc293f
......@@ -21,7 +21,7 @@ class InheritEntrustOrderMain(Main):
def _prepare_entrust_info_data(self, entrust_orders):
info = []
for i in entrust_orders:
for i in entrust_orders.filtered(lambda l: l.plan_qty > (l.finish_qty + l.unqualified_qty)):
user_tz = pytz.timezone(http.request.env.context.get('tz', "Asia/Shanghai"))
date_dt = pytz.utc.localize(i.plan_date).astimezone(user_tz)
plan_date = date_dt.strftime("%Y-%m-%d %H:%M:%S")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment