diff --git a/sf_dlm/data/product_data.xml b/sf_dlm/data/product_data.xml index f5d1904e..3cc92912 100644 --- a/sf_dlm/data/product_data.xml +++ b/sf_dlm/data/product_data.xml @@ -63,7 +63,7 @@ true serial - false + true 坯料自加工模板 @@ -79,7 +79,7 @@ true serial - false + true @@ -95,7 +95,7 @@ serial - false + true 坯料采购模板 @@ -110,7 +110,7 @@ serial - false + true \ No newline at end of file diff --git a/sf_dlm/models/product_supplierinfo.py b/sf_dlm/models/product_supplierinfo.py index a5ef52ae..f8055e1a 100644 --- a/sf_dlm/models/product_supplierinfo.py +++ b/sf_dlm/models/product_supplierinfo.py @@ -21,7 +21,7 @@ class ResProductProduct(models.Model): class ResProducTemplate(models.Model): _inherit = 'product.template' - single_manufacturing = fields.Binary('模型文件') + single_manufacturing = fields.Boolean(string="单个制造") class ResMrpBomMo(models.Model): diff --git a/sf_dlm_management/views/product_template_management_view.xml b/sf_dlm_management/views/product_template_management_view.xml index f2bfb732..692756da 100644 --- a/sf_dlm_management/views/product_template_management_view.xml +++ b/sf_dlm_management/views/product_template_management_view.xml @@ -8,10 +8,11 @@ + + attrs="{'invisible': ['|', '|',('categ_type', '!=', '成品'),('categ_type', '=', False),('is_bfm','=', True)]}"/>