From d5677511604101c193779781e8fa08db2e0482d6 Mon Sep 17 00:00:00 2001 From: Chill Date: Thu, 29 Dec 2022 18:16:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I67W2P=20app=5Fodoo=5Fcustomize,?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E4=B8=9A=E5=8A=A1=E6=95=B0=E6=8D=AE=E5=8F=AF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_odoo_customize/__manifest__.py | 2 +- .../models/res_config_settings.py | 35 +++++++++---------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 2aade3dd..dd1df7a6 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'odoo 16 Customize OEM(Boost, Data reset)', - 'version': '16.22.10.21', + 'version': '16.22.12.29', 'author': 'Sunpop.cn', 'category': 'Productivity', 'website': 'https://www.sunpop.cn', diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index 98176652..450e511b 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -160,9 +160,9 @@ class ResConfigSettings(models.TransientModel): # 销售提成,自用 # 'sale.commission.line', # 不能删除报价单模板 - # 'sale.order.template.option', - # 'sale.order.template.line', - # 'sale.order.template', + 'sale.order.template.option', + 'sale.order.template.line', + 'sale.order.template', ] seqs = [ 'sale', @@ -243,14 +243,14 @@ class ResConfigSettings(models.TransientModel): # 清除生产单据 'mrp.workcenter.productivity', 'mrp.workorder', - 'mrp.production.workcenter.line', + # 'mrp.production.workcenter.line', 'change.production.qty', 'mrp.production', - 'mrp.production.product.line', + # 'mrp.production.product.line', 'mrp.unbuild', 'change.production.qty', - 'sale.forecast.indirect', - 'sale.forecast', + # 'sale.forecast.indirect', + # 'sale.forecast', ] seqs = [ 'mrp.', @@ -279,10 +279,9 @@ class ResConfigSettings(models.TransientModel): 'stock.picking', 'stock.scrap', 'stock.picking.batch', - 'stock.inventory.line', - 'stock.inventory', + 'stock.inventory.adjustment.name', 'stock.valuation.layer', - 'stock.production.lot', + 'stock.lot', # 'stock.fixed.putaway.strat', 'procurement.group', ] @@ -344,13 +343,13 @@ class ResConfigSettings(models.TransientModel): # 清除财务科目,用于重设 'res.partner.bank', 'account.move.line', - 'account.invoice', + # 'account.invoice', 'account.payment', 'account.bank.statement', - 'account.tax.account.tag', + # 'account.tax.account.tag', 'account.tax', - 'account.account.account.tag', - 'wizard_multi_charts_accounts', + 'account.account.tag', + # 'wizard_multi_charts_accounts', 'account.journal', 'account.account', ] @@ -431,7 +430,7 @@ class ResConfigSettings(models.TransientModel): # 清除项目 'account.analytic.line', 'project.task', - 'project.forecast', + # 'project.forecast', 'project.project', ] seqs = [] @@ -480,7 +479,7 @@ class ResConfigSettings(models.TransientModel): 'website.published.mixin', 'website.multi.mixin', 'website.visitor', - 'website.redirect', + 'website.rewrite', 'website.seo.metadata', # 'website.page', # 'website.menu', @@ -502,8 +501,8 @@ class ResConfigSettings(models.TransientModel): def remove_workflow(self): to_removes = [ # 清除工作流 - 'wkf.workitem', - 'wkf.instance', + # 'wkf.workitem', + # 'wkf.instance', ] seqs = [] return self.remove_app_data(to_removes, seqs)