感恩digitalsatori大不吝指點 謝謝[quote author=digitalsatori link=topic=2940.msg9936#msg9936 date=1337663863]两个方法:1. 再建一个fields.related字段,比如:fields.related('product_id', 'name_template', type='char', string='Name')2. 覆写product.product的name_get方法,并在view中指定context,比如在view中设置context={'name_template':1}def name_get(self, cr, uid, ids, context=None): if context.get('name_template'): XXXX #取需要的值,并返回 else: return super(....).name_get(....)[/quote]