Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0] error at refund creation #15

Closed
rdeheele opened this issue Jan 9, 2015 · 1 comment
Closed

[7.0] error at refund creation #15

rdeheele opened this issue Jan 9, 2015 · 1 comment
Labels
7.0 bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Milestone

Comments

@rdeheele
Copy link

rdeheele commented Jan 9, 2015

Current behavior:
Create an invoice with a partner A and one invoice line with a product X.
Create a rma claim, select the partner A, select the invoice in "product return" tab.
It autofills a line below.
Edit the rma, add a line that is not present in the invoice.
Pass the rma in "in progress" state.
Click on the "New Refund" button.
A pop-up appears, click on "Create Refund" red button.
A traceback occurs:

  File "/home/rdeheele/machines/openerp_dev/parts/server/addons/account/wizard/account_invoice_refund.py", line 232, in invoice_refund
    return self.compute_refund(cr, uid, ids, data_refund, context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/rma/crm_claim_rma/wizard/account_invoice_refund.py", line 36, in compute_refund
    cr, uid, ids, mode=mode, context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/server/addons/account/wizard/account_invoice_refund.py", line 158, in compute_refund
    refund_id = inv_obj.refund(cr, uid, [inv.id], date, period, description, journal_id, context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/server/addons/account/account_invoice.py", line 1296, in refund
    context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/rma/crm_claim_rma/account_invoice.py", line 89, in _prepare_refund
    journal_id=journal_id, context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/server/addons/account/account_invoice.py", line 1260, in _prepare_refund
    invoice_lines = self._refund_cleanup_lines(cr, uid, invoice.invoice_line, context=context)
  File "/home/rdeheele/machines/openerp_dev/parts/rma/crm_claim_rma/account_invoice.py", line 64, in _refund_cleanup_lines
    print 'invline field_name ', inv_line[field_name]
  File "/home/rdeheele/machines/openerp_dev/parts/server/openerp/osv/orm.py", line 406, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/home/rdeheele/machines/openerp_dev/parts/server/openerp/osv/orm.py", line 3720, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/rdeheele/machines/openerp_dev/parts/server/openerp/osv/orm.py", line 3774, in _read_flat
    cr.execute(query, [tuple(sub_ids)] + rule_params)
  File "/home/rdeheele/machines/openerp_dev/parts/server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/home/rdeheele/machines/openerp_dev/parts/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...count_invoice_line" WHERE account_invoice_line.id IN (false)...

Problem
The added line is not linked with an existing invoice line, it seems a problem for refund creation.

Expected Behavior
Create a refund with the two lines.
OR
Show a message error explaining the problem.

@max3903 max3903 added this to the 7.0 milestone Sep 11, 2017
@github-actions
Copy link

github-actions bot commented Feb 6, 2022

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.0 bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

3 participants