diff --git a/sf_demand_plan/__manifest__.py b/sf_demand_plan/__manifest__.py index 3b20be8f..08c981cb 100644 --- a/sf_demand_plan/__manifest__.py +++ b/sf_demand_plan/__manifest__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -# jikimo_printing { 'name': '机企猫智能工厂 需求计划', 'version': '1.1', @@ -11,7 +10,7 @@ """, 'category': 'sf', 'website': 'https://www.sf.jikimo.com', - 'depends': ['sf_plan' ], + 'depends': ['sf_plan','jikimo_printing'], 'data': [ 'security/ir.model.access.csv', 'data/stock_route_group.xml', diff --git a/sf_demand_plan/models/sf_production_demand_plan.py b/sf_demand_plan/models/sf_production_demand_plan.py index 27de5b16..234546b0 100644 --- a/sf_demand_plan/models/sf_production_demand_plan.py +++ b/sf_demand_plan/models/sf_production_demand_plan.py @@ -901,3 +901,6 @@ class SfProductionDemandPlan(models.Model): 'demand_plan_line_id': self.id } return values + + def button_plan_detail(self): + pass diff --git a/sf_demand_plan/views/demand_plan_info.xml b/sf_demand_plan/views/demand_plan_info.xml index 26d674f3..6c760f14 100644 --- a/sf_demand_plan/views/demand_plan_info.xml +++ b/sf_demand_plan/views/demand_plan_info.xml @@ -108,6 +108,9 @@ class="btn-primary" attrs="{'invisible': [('hide_release_production_order', '=', False)]}" /> +