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

[10.0] account_payment_sale: Error when partner doesn't have a valid mandate #459

Closed
Bilbonet opened this issue Mar 23, 2018 · 3 comments
Closed

Comments

@Bilbonet
Copy link

Creating a sale order and select a Payment Mode who needs mandate. If the partner doesn't have a valid mandate the serve shows a python error.

@pedrobaeza
Copy link
Member

Traceback log?

@Bilbonet
Copy link
Author

Yes, sorry.

Traceback (most recent call last):
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 333, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/bilbonet/odoo-estable/server/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 326, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/home/bilbonet/odoo-estable/server/odoo/http.py", line 506, in response_wrap
    response = f(*args, **kw)
  File "/home/bilbonet/odoo-estable/server/addons/web/controllers/main.py", line 890, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/bilbonet/odoo-estable/server/addons/web/controllers/main.py", line 882, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/bilbonet/odoo-estable/server/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/home/bilbonet/odoo-estable/server/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/bilbonet/odoo-estable/server/odoo/models.py", line 5510, in onchange
    record._onchange_eval(name, field_onchange[name], result)
  File "/home/bilbonet/odoo-estable/server/odoo/models.py", line 5408, in _onchange_eval
    method_res = method(self)
  File "/home/bilbonet/odoo-estable/server/3addons/account_banking_mandate_sale/models/sale_order.py", line 38, in payment_mode_change
    self.mandate_id = mandates[0]
  File "/home/bilbonet/odoo-estable/server/odoo/models.py", line 5228, in __getitem__
    return self._browse((self._ids[key],), self.env)
IndexError: tuple index out of range

pedrobaeza added a commit that referenced this issue Mar 24, 2018
@pedrobaeza
Copy link
Member

Fixed directly in 4405e43

ThomasBinsfeld pushed a commit to acsone/bank-payment that referenced this issue Dec 21, 2018
ThomasBinsfeld pushed a commit to acsone/bank-payment that referenced this issue Dec 21, 2018
ThomasBinsfeld pushed a commit to acsone/bank-payment that referenced this issue Feb 20, 2019
OCA-git-bot pushed a commit that referenced this issue Jul 5, 2019
OCA-git-bot pushed a commit that referenced this issue Aug 21, 2019
alexis-via pushed a commit to akretion/banking that referenced this issue Dec 24, 2020
alexis-via pushed a commit to akretion/banking that referenced this issue Apr 21, 2021
chouab pushed a commit to chouab/bank-payment that referenced this issue Jun 16, 2021
alexis-via pushed a commit to akretion/banking that referenced this issue Sep 23, 2021
alexis-via pushed a commit to akretion/banking that referenced this issue Nov 3, 2021
alexis-via pushed a commit to akretion/banking that referenced this issue Jan 4, 2022
alexis-via pushed a commit to akretion/banking that referenced this issue Aug 10, 2022
ferran-S73 pushed a commit to Studio73/bank-payment that referenced this issue Dec 29, 2022
ferran-S73 pushed a commit to Studio73/bank-payment that referenced this issue Jun 1, 2023
ferran-S73 pushed a commit to Studio73/bank-payment that referenced this issue Jun 8, 2023
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