Cannot navigate objects in domain definition
Suppose I have the following definition
class partner(osv.osv):
_name="partner"
partner()
class address(osv.osv):
_name="address"
_columns = {
}
address()
class carrier(osv.osv):
_name="carrier"
_columns = {
}
carrier()
class picking(osv.osv):
_name="picking"
_columns = {
}
picking()
So the idea is that a picking, that has a reference to carrier, can contain an address but only of this carrier. When trying to pick carrier_address_id I receive the following error:
AttributeError: 'int' object has no attribute 'partner_id'
It seems that when defining domains, the objects are not navegable, so in the domain definition, carrier_id is not an object carrier but an integer. Is there any way of solving this?
Damián
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- OpenERP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Damián Soriano for more information if necessary.