can't set default value for many2many fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
openobject-
openobject-
postgresql 9.1
Steps:
- Install account_accountant
- Go to settings, technical, actions, user-defined defaults. Open 'taxes_id'
- Change value from [1L] (e.g.) to [2L]
- Go to products and click on 'create'
Get
2013-03-11 14:59:24,299 18180 ERROR test_70 openerp.sql_db: bad query: SELECT "account_tax".id FROM "account_tax" WHERE (("account_
Traceback (most recent call last):
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "["
LINE 1: ..._tax"."active" = 'True') AND "account_tax".id = '[') ORDER...
2013-03-11 14:59:24,299 18180 ERROR test_70 openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
field_
File "/home/
return super(account_tax, self).search(cr, uid, args, offset, limit, order, context, count)
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "["
LINE 1: ..._tax"."active" = 'True') AND "account_tax".id = '[') ORDER...
2013-03-11 14:59:24,300 18180 ERROR test_70 openerp.netsvc: invalid input syntax for integer: "["
LINE 1: ..._tax"."active" = 'True') AND "account_tax".id = '[') ORDER...
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
field_
File "/home/
return super(account_tax, self).search(cr, uid, args, offset, limit, order, context, count)
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "["
LINE 1: ..._tax"."active" = 'True') AND "account_tax".id = '[') ORDER...
Related branches
- Martin Trigaux (OpenERP) (community): Approve
-
Diff: 23 lines (+5/-1)1 file modifiedopenerp/addons/base/ir/ir_values.py (+5/-1)
summary: |
- [7.0] can't set default value for many2many fields + can't set default value for many2many fields |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-server: | |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Hello,
We have merged a fix for this bug in 7.0
revno: 5295 [merge]
revision-id: <email address hidden>
Thanks for the report