update common from yan

This commit is contained in:
ivan deng
2020-07-25 20:08:54 +08:00
parent 0702ccf172
commit ec062d74dc
7 changed files with 20 additions and 176 deletions

View File

@@ -7,7 +7,7 @@ from odoo.exceptions import UserError, ValidationError
class ResCompany(models.Model):
_inherit = 'res.company'
short_name = fields.Char('Short Name', related='partner_id.short_name', readonly=False, store=True)
short_name = fields.Char('Short Name', related='partner_id.short_name', readonly=False)
# 当传参 show_short_name 时,只显示简称
def name_get(self):