Accept Merge Request #1612: (feature/制造、销售、采购优化 -> develop)
Merge Request: 1、去除工单页面的时效状态自动筛选项;2、坯料制造订单添加批量确认加工工艺功能;3、处理返工新生成的工单工序错误问题;4、采购、销售页面优化 Created By: @禹翔辉 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @禹翔辉 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1612
This commit is contained in:
@@ -104,8 +104,7 @@
|
|||||||
<!-- <field name="target">fullscreen</field>-->
|
<!-- <field name="target">fullscreen</field>-->
|
||||||
<field name="target">current</field>
|
<field name="target">current</field>
|
||||||
<field name="domain">[('state', '!=', 'cancel'),('schedule_state', '=', '已排')]</field>
|
<field name="domain">[('state', '!=', 'cancel'),('schedule_state', '=', '已排')]</field>
|
||||||
<field name="context">{'search_default_product': 1, 'search_default_workcenter_id':
|
<field name="context">{'search_default_product': 1, 'search_default_workcenter_id': active_id}
|
||||||
active_id,'search_default_filter_order_warning':1,'search_default_filter_order_overdue':1,'search_default_filter_order_normal':1}
|
|
||||||
</field>
|
</field>
|
||||||
<field name="help" type="html">
|
<field name="help" type="html">
|
||||||
<p class="o_view_nocontent_workorder">
|
<p class="o_view_nocontent_workorder">
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class ProductionTechnologyWizard(models.TransientModel):
|
|||||||
is_technology_confirm = fields.Boolean(default=False)
|
is_technology_confirm = fields.Boolean(default=False)
|
||||||
|
|
||||||
def confirm(self):
|
def confirm(self):
|
||||||
if self.is_technology_confirm is True and self.production_id.product_id.categ_id.type == '成品':
|
if self.is_technology_confirm is True and self.production_id.product_id.categ_id.type in ['成品', '坯料']:
|
||||||
domain = [('origin', '=', self.origin), ('state', '=', 'technology_to_confirmed'),
|
domain = [('origin', '=', self.origin), ('state', '=', 'technology_to_confirmed'),
|
||||||
('product_id', '=', self.production_id.product_id.id)]
|
('product_id', '=', self.production_id.product_id.id)]
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ class ReworkWizard(models.TransientModel):
|
|||||||
and item.panel == work.processing_panel))
|
and item.panel == work.processing_panel))
|
||||||
if route:
|
if route:
|
||||||
work_list = self.env['mrp.workorder'].json_workorder_str(self.production_id, route[0])
|
work_list = self.env['mrp.workorder'].json_workorder_str(self.production_id, route[0])
|
||||||
work_list[2].update({'tag_type': '重新加工'})
|
work_list[2].update({'tag_type': '重新加工', 'sequence': 0})
|
||||||
workorders_values.append(work_list)
|
workorders_values.append(work_list)
|
||||||
# 创建新工单,并进行返工配置的相关操作
|
# 创建新工单,并进行返工配置的相关操作
|
||||||
if workorders_values:
|
if workorders_values:
|
||||||
|
|||||||
@@ -169,6 +169,9 @@
|
|||||||
<field name="manual_quotation" />
|
<field name="manual_quotation" />
|
||||||
<field name="is_incoming_material"/>
|
<field name="is_incoming_material"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='date_order']" position="attributes">
|
||||||
|
<attribute name="string">下单时间</attribute>
|
||||||
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -215,8 +218,14 @@
|
|||||||
<attribute name="string">订单号</attribute>
|
<attribute name="string">订单号</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="create_date" position="attributes">
|
<field name="create_date" position="attributes">
|
||||||
<attribute name="string">下单时间</attribute>
|
<attribute name="string">下单日期</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<xpath expr="//field[@name='activity_ids']" position="attributes">
|
||||||
|
<attribute name="optional">hide</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='create_date']" position="after">
|
||||||
|
<field name="deadline_of_delivery"/>
|
||||||
|
</xpath>
|
||||||
<!-- <field name="state" position="after">
|
<!-- <field name="state" position="after">
|
||||||
<field name="check_status" widget="badge"
|
<field name="check_status" widget="badge"
|
||||||
decoration-success="check_status == 'approved'"
|
decoration-success="check_status == 'approved'"
|
||||||
@@ -258,6 +267,15 @@
|
|||||||
<field name="amount_total" position="after">
|
<field name="amount_total" position="after">
|
||||||
<field name="delivery_warning" invisible="1"/>
|
<field name="delivery_warning" invisible="1"/>
|
||||||
</field>
|
</field>
|
||||||
|
<xpath expr="//field[@name='date_order']" position="after">
|
||||||
|
<field name="deadline_of_delivery"/>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='activity_ids']" position="attributes">
|
||||||
|
<attribute name="optional">hide</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='invoice_status']" position="after">
|
||||||
|
<field name="state"/>
|
||||||
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -293,7 +311,7 @@
|
|||||||
|
|
||||||
<record id="sale.action_orders" model="ir.actions.act_window">
|
<record id="sale.action_orders" model="ir.actions.act_window">
|
||||||
<field name="search_view_id" ref="sale_order_view_search_inherit_sale_message"/>
|
<field name="search_view_id" ref="sale_order_view_search_inherit_sale_message"/>
|
||||||
<field name="context">{ 'search_default_filter_order_warning':1,'search_default_filter_order_overdue':1}
|
<field name="context">{}
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
Reference in New Issue
Block a user