Comment 6 for bug 813238

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Kevin,

I think my explanation was not good enough ! Well I will give another explanation which hopefully should help you out to figure out how the property fields are dealt in OpenERP.

Here customer and the fields (payment term, delivery method are property fields) both depends on the company_id of the user(his main company to which he belongs) that is logged in and there value will be returned based on the the rule defined on these object. By default the rule on ir.property object is ['|',('company_id','=',user.company_id.id),('company_id','=',False)] which means only return those properties if the company_id of the property is users.comany_id or the company_id of the property is False. In short the per-company filtering is in fact implemented by the ir.rule records that are applied on the ir.property object. So as per your example the company to which Auckland belongs does not have any property associated and hence you are not able to view them. You need to create property for those companies too.

I hope this could help you out !

Correct me if I am missing something !

Thanks,