From 0c3407572f134d0dbfaa856d6f3da138c355cf7a Mon Sep 17 00:00:00 2001 From: guanhuan Date: Tue, 15 Jul 2025 11:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=AE=A1=E5=88=92=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_demand_plan/__manifest__.py | 3 +-- sf_demand_plan/models/sf_production_demand_plan.py | 3 +++ sf_demand_plan/views/demand_plan_info.xml | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) 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)]}" /> +