diff --git a/sf_demand_plan/models/sf_production_demand_plan.py b/sf_demand_plan/models/sf_production_demand_plan.py index b1cbf13d..6dcf1e8b 100644 --- a/sf_demand_plan/models/sf_production_demand_plan.py +++ b/sf_demand_plan/models/sf_production_demand_plan.py @@ -311,7 +311,7 @@ class SfProductionDemandPlan(models.Model): [('name', '=', '1#CNC自动生产线')], limit=1) if sf_production_line: now = datetime.now() - time_part = (now + timedelta(minutes=3)).time() + time_part = (now + timedelta(hours=2)).time() date_part = fields.Date.from_string(self.planned_start_date) date_planned_start = datetime.combine(date_part, time_part) pro_plan_list.production_line_id = sf_production_line.id @@ -326,7 +326,6 @@ class SfProductionDemandPlan(models.Model): 'name': _("打印"), 'domain': [('demand_plan_id', 'in', self.ids)], 'views': [[self.env.ref('sf_demand_plan.action_plan_print_tree').id, 'list']], - 'search_view_id': self.env.ref('sf_demand_plan.action_plan_print_search').id, 'target': 'new', } diff --git a/sf_demand_plan/wizard/sf_demand_plan_print_wizard_view.xml b/sf_demand_plan/wizard/sf_demand_plan_print_wizard_view.xml index 6927c283..2308538f 100644 --- a/sf_demand_plan/wizard/sf_demand_plan_print_wizard_view.xml +++ b/sf_demand_plan/wizard/sf_demand_plan_print_wizard_view.xml @@ -14,21 +14,4 @@ - - - sf.demand.plan.print.wizard.search - sf.demand.plan.print.wizard - - - - - - - - - - - - - \ No newline at end of file