1、处理工单返工时就解除rfid绑定问题;2、同步bfm的订单状态到销售订单
This commit is contained in:
@@ -151,6 +151,12 @@ class JdEclp(models.Model):
|
||||
_logger.info('准备调接口1')
|
||||
url1 = config['bfm_url_new'] + '/api/create/jd/order'
|
||||
requests.post(url1, json=json1, data=None)
|
||||
# ===============修改销售订单状态为【物流中】===================
|
||||
item = self.env['sale.order'].sudo().search([('name', '=', self.origin)])
|
||||
if not item:
|
||||
raise ValidationError('没有查询到订单号为【%s】的销售订单!' % self.origin)
|
||||
else:
|
||||
item.write({'state': 'physical_distribution'})
|
||||
_logger.info('调用成功1')
|
||||
_logger.info('准备调接口2')
|
||||
json2 = {
|
||||
|
||||
Reference in New Issue
Block a user