This commit is contained in:
Ivan x390
2020-03-22 14:39:40 +08:00
4 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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.")

View File

@@ -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 开启则增加显示手机与电话号

View File

@@ -7,6 +7,7 @@
<field name="arch" type="xml">
<tree string="Variant Values" editable="bottom">
<field name="sequence" widget="handle"/>
<field name="id" groups="base.group_no_one"/>
<field name="attribute_id"/>
<field name="name"/>
<field name="display_name" readonly="1"/>