String value passed into context instead of int when having a self
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Invalid
|
Medium
|
OpenERP R&D Web Team |
Bug Description
String value passed into context instead of int when having a self.
Steps
- 7.0 runbot, with at least CRM installed
- Go into Leads
- Filter by searching a section / salesteam (ex: Sales Department) (which gives a 'Sales Team Sales Department' filter in the search bar)
- Click on create
- Get a traceback
[...]
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "Sales Department"
LINE 1: ... "crm_case_section" WHERE crm_case_section.id IN ('Sales Dep...
Related view (crm/crm_
<field name="section_id" context=
Issue seems to be due to self.
affects: | openobject-addons → openerp-web |
Changed in openerp-web: | |
milestone: | 7.0 → none |
milestone: | none → 7.0 |
summary: |
- String value passed into context instead of int + String value passed into context instead of int when having a self |
description: | updated |
m2o fields are souped up text fields