添加功能
This commit is contained in:
@@ -9,4 +9,4 @@ class ProductTemplate(models.Model):
|
||||
template_ids = self.env["product.template"].browse(self._context.get('active_ids', self._context.get('active_id')))
|
||||
company_id = self.env['res.company'].search([('name', '=', '集团本部')])
|
||||
for template in template_ids:
|
||||
template.company_id = company_id.id
|
||||
template.write({'company_id': company_id.id})
|
||||
Reference in New Issue
Block a user