diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-04-13 16:18:09 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-04-13 16:18:09 +0200 |
| commit | 31dc6b888eeb2d787f567562fb447e8131c877e3 (patch) | |
| tree | f1acc3febbb3d5de781d69468ca9e48929abc525 /odoo/cli/shell.py | |
| parent | 671bd703bf7a6c76d4ab01bc2a5771f401f37a09 (diff) | |
[FIX] payment, website_sale: SIPS adaptation
SIPS payment has two limitations:
- A payment reference can only be used once, even if the payment was not
proceeded
- A payment reference can only contain alphanumerical characters
These limitations do not fit the payment process which:
- Reuses existing transactions
- Introduces a `-` character when creating a new transaction for the
same order.
First issue is solved by an ugly hack since there is no link module
between `website_sale` and `payment_sips` in order to override the
behavior of `sale_get_transaction`.
Second issue is solved by modifying the character to `x`. In this case,
we could consider overriding the method `get_next_reference` in
`payment_sips`. However, this method is called before the creation of
the transaction, and we should do a crappy workaround using the context
to get the `acquier_id`.
opw-728209
Diffstat (limited to 'odoo/cli/shell.py')
0 files changed, 0 insertions, 0 deletions
