invoice on delivery including service + taxes crashes: "ProgrammingError: can't adapt"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
Note: patch attached
take a fresh install on trunk with manufacturing profile and invoice on deliveries by default.
Create a new sale order with 2 order lines:
1) on the first order line: add a physical product like a PC1
2) on the second line, add a service like 'onsite intervention'
For that second line, ALSO ADD A TAX, like 19.6 (any tax)
Now validate the sale order
go in the stock > outgoing product: make the picking and create and invoice using the wizard button in the picking form view (choose sale journal for instance).
It will probably crash with the following message:
Traceback (most recent call last):
File "/home/
result_
File "/home/
return self._execute(db, uid, wiz_id, datas, action, context)
File "/home/
return wiz.execute(db, uid, self.wiz_
File "/home/
res = self.execute_cr(cr, uid, data, state, context)
File "/home/
res['action'] = result_
File "/home/
type=type, context= context)
File "/home/
context=
File "/home/
}, context=context)
File "/home/
self.
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: can't adapt
By observing how the tax is mapped in the other action_
Hope this helps and thanks to Alexis Deméaulte from Anevia for the report + patch.
Raphaël Valyi
Related branches
Changed in openobject-addons: | |
milestone: | none → 5.0 |
status: | New → Fix Released |
I already had this kind of bug only with debian etch, due the version of python's psycopg librairy
Ubuntu doesn't have this issue.
Is it the same for you ?