Filtering one2many field by a many2many field
Hello.
I want to filter a one2many field by a domain that is a list of ids, resulting of a many2many field.
But it doesn't work.
My english is not very good, better an example:
class test_01(osv.osv):
_name = 'test_01'
_description = 'Test 01'
_columns = {
'name': fields.char('Name', size=64, required=True, select=True),
}
test_01()
And this in the xml view file the domain:
<field name="product_id" domain=
This code fails:
[2010-01-08 20:42:40,046] DEBUG_RPC:
[2010-01-08 20:42:40,047] DEBUG_RPC:
[2010-01-08 20:42:40,050] DEBUG_RPC:
[2010-01-08 20:42:40,050] DEBUG_RPC:
[2010-01-08 20:42:40,051] DEBUG_RPC:
[2010-01-08 20:42:40,051] DEBUG_RPC:
[2010-01-08 20:42:40,052] DEBUG_RPC:
[2010-01-08 20:42:40,052] DEBUG_RPC:
[2010-01-08 20:42:40,053] DEBUG_RPC:
[2010-01-08 20:42:40,053] DEBUG_RPC:
[2010-01-08 20:42:40,053] DEBUG_RPC:
[2010-01-08 20:42:40,054] DEBUG_RPC:
[2010-01-08 20:42:40,054] DEBUG_RPC:
[2010-01-08 20:42:40,055] DEBUG_RPC:
[2010-01-08 20:42:40,055] DEBUG_RPC:
[2010-01-08 20:42:40,059] DEBUG:sql:bad query: None
[2010-01-08 20:42:40,060] DEBUG:sql:not all arguments converted during string formatting
It fails because the value of product_
Any solution to this problem?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vinay Rana (OpenERP)
- Solved:
- Last query:
- Last reply: