[6.1] account_bank - post_write method not single id safe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
Hello,
While using some ooor script, I figured out that the method write crash if you try to use a single id instead of a list of ids.
Traceback (most recent call last):
File "/home/
result = openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
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/
return result
File "/home/
if bank.company_id and not bank.journal_id:
File "/home/
raise NotImplementedE
NotImplementedE
This issue come from method post_write that is expecting a list of ids.
A patch is attached.
Regards,
Yannick
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 14 lines (+4/-0)1 file modifiedaccount/account_bank.py (+4/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello Yannick Vaucher,
Thanks for reporting and for your contribution, the solution of this bug is proposed in branch
lp:~openerp-dev/openobject-addons/trunk-bug-888135-bde with following Revision ID and Number :
Revision ID : <email address hidden>
Revision Number : 5686
The solution will be merged with main addons soon.
Thanks & Regards,
Devnani Bharat R.