+ Create a new quotation, the first step of a new sale! +
+ Once the quotation is confirmed by the customer, it becomes a sales order.
You will be able to create an invoice and collect the payment.
+
Create a new quality alert
diff --git a/sf_base/models/base.py b/sf_base/models/base.py
index 2c4bf22a..15d4f9cc 100644
--- a/sf_base/models/base.py
+++ b/sf_base/models/base.py
@@ -410,3 +410,14 @@ class ReSaleOrder(models.Model):
person_of_delivery = fields.Char('收货人')
telephone_of_delivery = fields.Char('电话号码')
address_of_delivery = fields.Char('联系地址')
+
+
+class EmbryoRedundancy(models.Model):
+ _name = "sf.embryo.redundancy"
+
+ name = fields.Char('名称', required=True)
+ long = fields.Float('长度(mm)', required=True)
+ width = fields.Float('宽度(mm)', required=True)
+ height = fields.Float('高度(mm)', required=True)
+ code = fields.Char('编码', required=True)
+ active = fields.Boolean('有效', default=True)
diff --git a/sf_base/models/common.py b/sf_base/models/common.py
index 95572631..4152c119 100644
--- a/sf_base/models/common.py
+++ b/sf_base/models/common.py
@@ -56,7 +56,7 @@ class MrsMaterialModel(models.Model):
finish_machining = fields.Float("精加工Vc(m/min)")
remark = fields.Text("备注")
gain_way = fields.Selection(
- [("自加工", "自加工"), ("外协", "外协"), ("采购", "采购")],
+ [("自加工", "自加工"), ("外协", "委外加工"), ("采购", "采购")],
default="", string="获取方式")
supplier_ids = fields.One2many('sf.supplier.sort', 'materials_model_id', string='供应商')
active = fields.Boolean('有效', default=True)
@@ -100,6 +100,7 @@ class MrsProductionProcess(models.Model):
travel_day = fields.Float('路途天数/d')
sequence = fields.Integer('排序')
+
# class MrsProcessingTechnology(models.Model):
# _name = 'sf.processing.technology'
# _description = '加工工艺'
@@ -157,7 +158,9 @@ class MrsProductionProcessParameter(models.Model):
for parameter in self:
if parameter.process_id:
name = parameter.process_id.name + '-' + parameter.name
- result.append((parameter.id, name))
+ else:
+ name = parameter.name
+ result.append((parameter.id, name))
return result
# 获取表面工艺的获取方式
diff --git a/sf_base/security/ir.model.access.csv b/sf_base/security/ir.model.access.csv
index 34605cca..8dd4a023 100644
--- a/sf_base/security/ir.model.access.csv
+++ b/sf_base/security/ir.model.access.csv
@@ -251,3 +251,6 @@ access_sf_cutting_tool_type_group_plan_dispatch,sf_cutting_tool_type_group_plan_
access_sf_machining_accuracy,sf_machining_accuracy,model_sf_machining_accuracy,base.group_user,1,0,0,0
access_sf_machining_accuracy_admin,sf_machining_accuracy_admin,model_sf_machining_accuracy,base.group_system,1,0,0,0
+
+access_sf_embryo_redundancy,sf_embryo_redundancy,model_sf_embryo_redundancy,base.group_user,1,0,0,0
+access_sf_embryo_redundancy_admin,sf_embryo_redundancy_admin,model_sf_embryo_redundancy,base.group_system,1,0,0,0
diff --git a/sf_base/static/src/scss/format_img.scss b/sf_base/static/src/scss/format_img.scss
index 982d3c50..fc6f02dc 100644
--- a/sf_base/static/src/scss/format_img.scss
+++ b/sf_base/static/src/scss/format_img.scss
@@ -14,6 +14,7 @@
.img-fluid {
max-width: unset !important;
+ width: 40px;
}
.o_inner_group .img-fluid {
diff --git a/sf_base/views/base_view.xml b/sf_base/views/base_view.xml
index eb2c1571..bd6f103b 100644
--- a/sf_base/views/base_view.xml
+++ b/sf_base/views/base_view.xml
@@ -633,4 +633,26 @@
Create a new quality alert @@ -34,6 +34,13 @@