需求位置修改

This commit is contained in:
guanhuan
2025-07-15 10:34:28 +08:00
parent ff7cd9c927
commit bfc071debd

View File

@@ -14,8 +14,8 @@ class SfProductionDemandPlan(models.Model):
_description = 'sf_production_demand_plan'
def get_location_id(self):
stock_location = self.env['stock.location'].sudo().search([('name', '=', '客户')], limit=1)
return stock_location.id
customer_location_id = self.env['ir.model.data']._xmlid_to_res_id('stock.stock_location_customers')
return customer_location_id
priority = fields.Selection(related='demand_plan_id.priority', string='优先级')
status = fields.Selection([