修改获取库区接口

This commit is contained in:
qihao.gong@jikimo.com
2024-02-23 16:29:23 +08:00
parent 397cae4f87
commit 8b8c8ebd26

View File

@@ -383,11 +383,15 @@ class ShelfLocation(models.Model):
if record.product_sn_id:
record.sudo().product_id = record.product_sn_id.product_id
record.sudo().location_status = '占用'
else:
record.product_id = False
record.location_status = '空闲'
#调取获取货位信息接口
else:
if record.production_id:
record.location_status = '占用'
else:
record.product_id = False
record.location_status = '空闲'
# 调取获取货位信息接口
def get_sf_shelf_location_info(self):
# sf_sync_config = self.env['res.config.settings'].get_values()
# token = sf_sync_config['token']