Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into develop
This commit is contained in:
@@ -141,8 +141,8 @@ class ResMrpWorkOrder(models.Model):
|
||||
|
||||
# 是否绑定托盘
|
||||
is_trayed = fields.Boolean(string='是否绑定托盘', default=False)
|
||||
tag_type = fields.Selection([("重新加工", "重新加工")], string="标签", tracking=True)
|
||||
|
||||
tag_type = fields.Selection([("重新加工", "重新加工")], string="标签", tracking=True)
|
||||
technology_design_id = fields.Many2one('sf.technology.design')
|
||||
|
||||
def _compute_default_construction_period_status(self):
|
||||
@@ -305,6 +305,7 @@ class ResMrpWorkOrder(models.Model):
|
||||
domain = [('origin', '=', self.production_id.origin)]
|
||||
production_programming = self.env['mrp.production'].search(domain, order='name asc')
|
||||
production_list = [production.name for production in production_programming]
|
||||
production_no_remanufacture = production_programming.filtered(lambda a: a.is_remanufacture is False)
|
||||
# technology_design = self.env['sf.technology.design'].search(
|
||||
# [('process_parameters_id', '=', self.surface_technics_parameters_id.id),
|
||||
# ('production_id', '=', self.production_id.id)])
|
||||
@@ -318,7 +319,6 @@ class ResMrpWorkOrder(models.Model):
|
||||
if line.product_id.server_product_process_parameters_id == self.surface_technics_parameters_id:
|
||||
if line.product_qty == len(production_no_remanufacture):
|
||||
purchase_orders_id = line.order_id.id
|
||||
order.surface_technics_purchase_count = purchase_num
|
||||
result = {
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "purchase.order",
|
||||
|
||||
@@ -47,7 +47,7 @@ class ProductionTechnologyWizard(models.TransientModel):
|
||||
domain += [('process_parameters_id', '=', ro.process_parameters_id.id)]
|
||||
elif ro.route_id.routing_tag == 'special' and ro.is_auto is False:
|
||||
# display_name = ro.route_id.display_name
|
||||
domain += [('id', '=', ro.route_id.id)]
|
||||
domain += [('id', '=', ro.id)]
|
||||
elif ro.panel is not False:
|
||||
domain += [('panel', '=', ro.panel)]
|
||||
td_upd = self.env['sf.technology.design'].sudo().search(domain)
|
||||
|
||||
@@ -15,8 +15,7 @@ class ReworkWizard(models.TransientModel):
|
||||
production_id = fields.Many2one('mrp.production', string='制造订单号')
|
||||
workorder_ids = fields.Many2many('mrp.workorder', 'rework_wizard_to_work_order', string='所有工单',
|
||||
domain="[('production_id', '=', production_id),('state','=','done')]")
|
||||
hidden_workorder_ids = fields.Many2many('mrp.workorder', 'rework_wizard_to_work_order_hidden',
|
||||
string='所有工单(hidden)')
|
||||
hidden_workorder_ids = fields.Char('')
|
||||
rework_reason = fields.Selection(
|
||||
[("programming", "编程"), ("cutter", "刀具"), ("clamping", "装夹"),
|
||||
("operate computer", "操机"),
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<field name="tool_state" invisible="True"/>
|
||||
<field name="routing_type" invisible="True"/>
|
||||
<field name="processing_panel_id" invisible="1"/>
|
||||
<field name="hidden_workorder_ids" invisible="1"/>
|
||||
<field name="hidden_workorder_ids" class="css_not_available_msg"/>
|
||||
<group>
|
||||
<field name="workorder_ids" string="工序" attrs='{"invisible": [("routing_type","=","装夹预调")]}'>
|
||||
<field readonly="1" name="workorder_ids" widget="jikimo_subtree_selector_field" jikimo_selector="True" replace_context="hidden_workorder_ids" string="工序" attrs='{"invisible": [("routing_type","=","装夹预调")]}'>
|
||||
<tree create="0" editable='bottom' delete="0">
|
||||
<field name="processing_panel" readonly="1"/>
|
||||
<field name="name" readonly="1"/>
|
||||
|
||||
Reference in New Issue
Block a user