mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
Merge remote-tracking branch 'origin/16.0' into 16.0
This commit is contained in:
@@ -283,20 +283,8 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
|
|
||||||
def remove_account_chart(self):
|
def remove_account_chart(self):
|
||||||
company_id = self.env.company.id
|
company_id = self.env.company.id
|
||||||
self = self.with_context(force_company=company_id, company_id=company_id)
|
self = self.with_company(self.env.company)
|
||||||
to_removes = [
|
to_removes = [
|
||||||
# 清除财务科目,用于重设
|
|
||||||
'res.partner.bank',
|
|
||||||
'account.move.line',
|
|
||||||
# 'account.invoice',
|
|
||||||
'account.payment',
|
|
||||||
'account.bank.statement',
|
|
||||||
# 'account.tax.account.tag',
|
|
||||||
'account.tax',
|
|
||||||
'account.account.tag',
|
|
||||||
# 'wizard_multi_charts_accounts',
|
|
||||||
'account.journal',
|
|
||||||
'account.account',
|
|
||||||
]
|
]
|
||||||
# todo: 要做 remove_hr,因为工资表会用到 account
|
# todo: 要做 remove_hr,因为工资表会用到 account
|
||||||
# 更新account关联,很多是多公司字段,故只存在 ir_property,故在原模型,只能用update
|
# 更新account关联,很多是多公司字段,故只存在 ir_property,故在原模型,只能用update
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
color: var(--homeMenu-bg-color, #00463e);
|
color: var(--homeMenu-bg-color, #00463e);
|
||||||
image: var(--homeMenu-bg-image,
|
image: var(--homeMenu-bg-image,
|
||||||
linear-gradient(to right bottom, #00796B, #00463e),
|
linear-gradient(to right bottom, #00796B, #00463e),
|
||||||
url("/app_web_enterprise/static/img/home-menu-bg-overlay.svg")
|
url("/app_web_enterprise/static/src/img/home-menu-bg-overlay.svg")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user