fix #I67W2P app_odoo_customize,清空业务数据可用

This commit is contained in:
Chill
2022-12-29 18:16:32 +08:00
parent d5924eda7f
commit d567751160
2 changed files with 18 additions and 19 deletions

View File

@@ -23,7 +23,7 @@
{ {
'name': 'odoo 16 Customize OEM(Boost, Data reset)', 'name': 'odoo 16 Customize OEM(Boost, Data reset)',
'version': '16.22.10.21', 'version': '16.22.12.29',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Productivity', 'category': 'Productivity',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -160,9 +160,9 @@ class ResConfigSettings(models.TransientModel):
# 销售提成,自用 # 销售提成,自用
# 'sale.commission.line', # 'sale.commission.line',
# 不能删除报价单模板 # 不能删除报价单模板
# 'sale.order.template.option', 'sale.order.template.option',
# 'sale.order.template.line', 'sale.order.template.line',
# 'sale.order.template', 'sale.order.template',
] ]
seqs = [ seqs = [
'sale', 'sale',
@@ -243,14 +243,14 @@ class ResConfigSettings(models.TransientModel):
# 清除生产单据 # 清除生产单据
'mrp.workcenter.productivity', 'mrp.workcenter.productivity',
'mrp.workorder', 'mrp.workorder',
'mrp.production.workcenter.line', # 'mrp.production.workcenter.line',
'change.production.qty', 'change.production.qty',
'mrp.production', 'mrp.production',
'mrp.production.product.line', # 'mrp.production.product.line',
'mrp.unbuild', 'mrp.unbuild',
'change.production.qty', 'change.production.qty',
'sale.forecast.indirect', # 'sale.forecast.indirect',
'sale.forecast', # 'sale.forecast',
] ]
seqs = [ seqs = [
'mrp.', 'mrp.',
@@ -279,10 +279,9 @@ class ResConfigSettings(models.TransientModel):
'stock.picking', 'stock.picking',
'stock.scrap', 'stock.scrap',
'stock.picking.batch', 'stock.picking.batch',
'stock.inventory.line', 'stock.inventory.adjustment.name',
'stock.inventory',
'stock.valuation.layer', 'stock.valuation.layer',
'stock.production.lot', 'stock.lot',
# 'stock.fixed.putaway.strat', # 'stock.fixed.putaway.strat',
'procurement.group', 'procurement.group',
] ]
@@ -344,13 +343,13 @@ class ResConfigSettings(models.TransientModel):
# 清除财务科目,用于重设 # 清除财务科目,用于重设
'res.partner.bank', 'res.partner.bank',
'account.move.line', 'account.move.line',
'account.invoice', # 'account.invoice',
'account.payment', 'account.payment',
'account.bank.statement', 'account.bank.statement',
'account.tax.account.tag', # 'account.tax.account.tag',
'account.tax', 'account.tax',
'account.account.account.tag', 'account.account.tag',
'wizard_multi_charts_accounts', # 'wizard_multi_charts_accounts',
'account.journal', 'account.journal',
'account.account', 'account.account',
] ]
@@ -431,7 +430,7 @@ class ResConfigSettings(models.TransientModel):
# 清除项目 # 清除项目
'account.analytic.line', 'account.analytic.line',
'project.task', 'project.task',
'project.forecast', # 'project.forecast',
'project.project', 'project.project',
] ]
seqs = [] seqs = []
@@ -480,7 +479,7 @@ class ResConfigSettings(models.TransientModel):
'website.published.mixin', 'website.published.mixin',
'website.multi.mixin', 'website.multi.mixin',
'website.visitor', 'website.visitor',
'website.redirect', 'website.rewrite',
'website.seo.metadata', 'website.seo.metadata',
# 'website.page', # 'website.page',
# 'website.menu', # 'website.menu',
@@ -502,8 +501,8 @@ class ResConfigSettings(models.TransientModel):
def remove_workflow(self): def remove_workflow(self):
to_removes = [ to_removes = [
# 清除工作流 # 清除工作流
'wkf.workitem', # 'wkf.workitem',
'wkf.instance', # 'wkf.instance',
] ]
seqs = [] seqs = []
return self.remove_app_data(to_removes, seqs) return self.remove_app_data(to_removes, seqs)