Problem closing POS session when exists a refund
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hello all,
this bug is related to OpenERP v7
When you try to close a session that includes a refund, the system reports the following message error:
##################
Constraint Error
Wrong credit or debit value in accounting entry !
##################
and the session can't be closed. The log shows the following:
2013-03-01 22:24:18,996 21492 ERROR None openerp.sql_db: bad query: insert into "account_move_line" (id,"account_
Traceback (most recent call last):
File "/usr/lib/
res = self._obj.
IntegrityError: el nuevo registro para la relación «account_move_line» viola la restricción check «account_
2013-03-01 22:24:18,996 21492 ERROR None openerp.
Traceback (most recent call last):
File "/usr/lib/
return eval(test_
File "", line 1, in <module>
File "/usr/lib/
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
account_
File "/usr/share/
result = super(account_
File "/usr/lib/
cr.
File "/usr/lib/
return f(self, *args, **kwargs)
File "/usr/lib/
res = self._obj.
IntegrityError: el nuevo registro para la relación «account_move_line» viola la restricción check «account_
2013-03-01 22:24:18,996 21492 ERROR None openerp.netsvc: Constraint Error
Wrong credit or debit value in accounting entry !
Traceback (most recent call last):
File "/usr/lib/
result = ExportService.
File "/usr/lib/
res = fn(db, uid, *params)
File "/usr/lib/
tr(
File "/usr/lib/
raise openerp.
except_osv: ('Constraint Error', 'Wrong credit or debit value in accounting entry !')
If you deletes in pos_order the refund line, the session closes successfully.
Regards
Fran
Hello Francisco Martinez,
I have checked your issue with latest trunk as well as with 7.0, But I am not able to reproduce this issue. So, Would you please check it again with latest code and also provide me more information with video or image.
I hope you understand.
Thanks & Waiting for your Answer.. :)