diff --git a/app_base_chinese/models/__init__.py b/app_base_chinese/models/__init__.py index 5a895e85..423324f5 100644 --- a/app_base_chinese/models/__init__.py +++ b/app_base_chinese/models/__init__.py @@ -4,6 +4,7 @@ from . import res_partner from . import res_currency from . import product_category from . import stock_location +from . import account_tax_group diff --git a/app_base_chinese/models/account_tax_group.py b/app_base_chinese/models/account_tax_group.py new file mode 100644 index 00000000..d1413359 --- /dev/null +++ b/app_base_chinese/models/account_tax_group.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- + +from odoo import api, fields, models, _, tools + +class AccountTaxGroup(models.Model): + _inherit = 'account.tax.group' + + active = fields.Boolean(default=True, help="Set active to false to hide the tax without removing it.") + diff --git a/app_base_chinese/models/res_partner.py b/app_base_chinese/models/res_partner.py index 3287a213..e932ab3f 100644 --- a/app_base_chinese/models/res_partner.py +++ b/app_base_chinese/models/res_partner.py @@ -9,6 +9,7 @@ class ResPartner(models.Model): name = fields.Char(index=True, translate=True) short_name = fields.Char('Short Name') # 简称 + fax = fields.Char('Fax') # 简称 # 增加地址显示中的手机号与电话号码 # 选项 show_address 开启则增加显示手机与电话号