优化代码结构

This commit is contained in:
mgw
2023-11-20 13:23:37 +08:00
parent 5bdd3982ae
commit 718b1f9edf
11 changed files with 63 additions and 76 deletions

View File

@@ -7,9 +7,8 @@ class SfQualityPoint(models.Model):
product_ids = fields.Many2many(
'product.product', string='适用产品',
domain="[('type', 'in', ('product', 'consu')), '|', ('company_id', '=', False), ('company_id', '=', company_id)]",
help="Quality Point will apply to every selected Products.")
domain="[('type', 'in', "
"('product', 'consu')), '|', ('company_id', '=', False), ('company_id', '=', company_id)]", help=
"Quality Point will apply to every selected Products.")
# picking_type_ids = fields.Many2many(
# 'stock.picking.type', string='执行节点', required=True, check_company=True)