添加功能

This commit is contained in:
zhou
2025-06-01 16:44:31 +08:00
parent 0dcfb6038a
commit cb766361e3
@@ -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})