diff options
| author | Yannick Vaucher <yannick.vaucher@camptocamp.com> | 2020-05-20 20:09:51 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2020-06-23 10:17:26 +0000 |
| commit | 2e9aac765536f30748d69cdd06eee2164983f853 (patch) | |
| tree | 5a78af2b8e1fc3f7f17ddb60a265b19d854f2c4a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 8a1e1c0c4cac3034bf6caada0004680942b04703 (diff) | |
[FIX] l10n_ch - print ISR tests
resolves the following error:
E psycopg2.IntegrityError: null value in column "partner_id" violates not-null constraint
E DETAIL: Failing row contains (193, 010391391, null, null, null, null, 10, null, 1, 1, 2020-05-20 20:05:28.431208, 1, 2020-05-20 20:05:28.431208, null, null, null, null).
To generate an ISR payment slip you need:
* a type == out_invoice
* a partner bank account with a ISR issuer number (field l10n_ch_isr_subscription_[chf|eur])
* a currency either in EUR or CHF
Remarks:
* l10n_ch_postal is not necessary and must be used for Vendors only.
* human readable subscription number is xx-yyyyyy-c
validation of such format is done with the following PR: https://github.com/odoo/odoo/pull/51544/files
It does:
- Removes unexisting field from tests
- Adds required field on partner_id
- Fix test with an actual case that case generate ISR payment slips
closes odoo/odoo#53498
X-original-commit: 776fd59909d12c981585fac82cfa9f3603d96ccf
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
