[FIX] orm: custom m2m with different label
authorMartin Trigaux <mat@openerp.com>
Fri, 11 Jul 2014 09:39:32 +0000 (11:39 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 11 Jul 2014 09:39:32 +0000 (11:39 +0200)
commit437116f3c43d4d97b2c2bd6d3f7a39ffd6c7d844
tree389f26de6bce22ec3d715844443194763db60618
parent67f1fd8a536bbe3b23b6d1f38bbae57685521e1a
[FIX] orm: custom m2m with different label

At rev 84e9a67cdf78db94cb7a09543c1b7ac4ad19d8b4 a check to avoid the creation of ir.model.relation for custom modules was added. The condition is not correct as based on the string instead of the field name. We do not have access to column name at this level but the the m2m relation table do start with x_ for custom fields (see __init__ method).
openerp/osv/orm.py