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

sale_automatic_workflow should not try to reconcile entries that can't be #11

Closed
guewen opened this issue Aug 29, 2014 · 0 comments
Closed

Comments

@guewen
Copy link
Member

guewen commented Aug 29, 2014

sale_automatic_workflow tries to reconcile entries that have not the same accounts or partners, resulting in errors. It must skip them.
The errors appear in the logs until the lines are reconciled manually.

From the logs:

2014-08-29 13:30:00,973 18012 ERROR openerp_trunk_qoqa openerp.addons.sale_automatic_workflow.automatic_workflow_job: Error during an automatic workflow action.
Traceback (most recent call last):
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/automatic_workflow_job.py", line 65, in commit
    yield
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/automatic_workflow_job.py", line 103, in _reconcile_invoices
    context=context)
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/invoice.py", line 153, in reconcile_invoice
    self._reconcile_invoice(cr, uid, invoice, context=context)
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/invoice.py", line 135, in _reconcile_invoice
    move_line_obj.reconcile(cr, uid, line_ids, context=context)
  File "/home/gbaconnier/dev/parts/addons/account/account_move_line.py", line 938, in reconcile
    'line_partial_ids': map(lambda x: (3, x, False), ids)
  File "/home/gbaconnier/dev/parts/connector/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/home/gbaconnier/dev/parts/server/openerp/osv/orm.py", line 4543, in create
    self._validate(cr, user, [id_new], context)
  File "/home/gbaconnier/dev/parts/server/openerp/osv/orm.py", line 1557, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Une erreur est apparue lors de la validation du/des champ(s) line_id: You can only reconcile journal items with the same partner.')
2014-08-29 13:30:04,675 18012 ERROR openerp_trunk_qoqa openerp.addons.sale_automatic_workflow.automatic_workflow_job: Error during an automatic workflow action.
Traceback (most recent call last):
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/automatic_workflow_job.py", line 65, in commit
    yield
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/automatic_workflow_job.py", line 103, in _reconcile_invoices
    context=context)
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/invoice.py", line 153, in reconcile_invoice
    self._reconcile_invoice(cr, uid, invoice, context=context)
  File "/home/gbaconnier/dev/parts/e-commerce/sale_automatic_workflow/invoice.py", line 135, in _reconcile_invoice
    move_line_obj.reconcile(cr, uid, line_ids, context=context)
  File "/home/gbaconnier/dev/parts/addons/account/account_move_line.py", line 857, in reconcile
    raise osv.except_osv(_('Error'), _('Entries are not of the same account or already reconciled ! '))
guewen added a commit to guewen/e-commerce that referenced this issue Sep 15, 2014
Prevents a lot of errors in the logs with reconciles that cannot be
done.

Fixes OCA#11
sebalix pushed a commit to camptocamp/e-commerce that referenced this issue Jul 8, 2019
Prevents a lot of errors in the logs with reconciles that cannot be
done.

Fixes OCA#11
sebalix pushed a commit to camptocamp/e-commerce that referenced this issue Jul 8, 2019
Prevents a lot of errors in the logs with reconciles that cannot be
done.

Fixes OCA#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants