Merge lp:~openerp-dev/openobject-addons/7.0-opw-606955-dhr into lp:openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-606955-dhr |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
27 lines (+5/-4) 1 file modified
audittrail/audittrail.py (+5/-4) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-606955-dhr |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vinay Rana (OpenERP) | Pending | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+216853@code.launchpad.net |
Description of the change
Hello Sir,
I have fixed the traceback when creating invoice from the form view, if its audittrail rule is present.
Steps to reproduce:
-Create an audittrail rule for account.invoice with all the log actions as true.
-Open any account invoice form and from there create a new record from the button "Create"
-It results in traceback
Traceback (most recent call last):
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/opt/openerp/
old_values = self.get_data(cr, uid_orig, pool, res_ids, model, method)
File "/opt/openerp/
for resource in resource_
File "/opt/openerp/
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/
res2 = self._columns[
File "/opt/openerp/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/opt/openerp/
(user_pid, self._name, tuple(ids),))
File "/opt/openerp/
return f(self, *args, **kwargs)
File "/opt/openerp/
res = self._obj.
ProgrammingError: syntax error at or near ")"
LINE 4: ... WHERE m.model = 'account.invoice' AND m.res_id in ()
Checked with :
Addons : revision 9874
Server : revision 5255
Web : revision 4153
Thanks
Unmerged revisions
- 10006. By Dharti Ratani(OpenERP)
-
[FIX]Fixed the traceback while creating account invoice from button Create in form view when its audittrail rule is present