mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update misc
This commit is contained in:
@@ -5,6 +5,13 @@ from odoo.exceptions import UserError, ValidationError
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_name = 'res.partner'
|
||||
|
||||
_inherit = 'res.partner'
|
||||
|
||||
_inherit = ['res.partner', 'mixin.name.en']
|
||||
# todo: name 不能做多语种处理,使用高频,会太耗费性能
|
||||
# 注意 res.partner 是很特殊的,继承太多,故不能用 translate=True
|
||||
# name = fields.Char(translate=True)
|
||||
|
||||
name_en_US = fields.Char('English Name')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user