Switzerland mailing list archives

switzerland@odoo-community.org

Avatar

Odoo 13 - Switzerland localization - odoo core changes, ISR, QR-invoice, usability and roadmap

by
Camptocamp SA, Yannick Payot
- 27/08/2019 11:53:30
Dear Swiss OCA members,

This mailing list has been silent for a while, here are some news on the Helvetic localization.

Last week Frédéric Clementi and I had the pleasure to have a meeting with Jos Colpaert to tackle some issues on the official Switzerland localization of Odoo in master for the future Odoo 13. Following it, Camptocamp made some PR on Odoo master.


Please find the following PRs, feel free to review and test them.


[MERGED]
https://github.com/odoo/odoo/pull/35873 @yvaucher l10n_ch ISR subscription under res.partner.bank

This should replace the module `l10n_ch_base_bank` main features. Like the possibility to have a postal account number.

The field `isr_adherent_num` will be replaced by `l10n_ch_isr_subscription_number_chf` and `l10n_ch_isr_subscription_number_eur`. This field handle the ISR Subscription number which is equal to "No d'adhérent BVR" in french or "ESR-Teilnehmernummer" in german.

The field `ccp` will be replaced by `l10n_ch_postal`. There is no constraint of unicity on that field, the aim (still to be done) is to use this field in SEPA payment files when you only have a postal account available from your supplier.



[OPEN]
https://github.com/odoo/odoo/pull/34476 @hpr-odo l10n_ch ISR as a structured ref
Odoo should treat the ISR structured ref as other structured ref in other countries (i.e. Belgium).

https://github.com/odoo/odoo/pull/36035 @yvaucher account - Fix reconcile with structured ref from invoice_payment_ref
Currenctly, I think this is a bug, the structured refs are saved on a new field name `invoice_payment_ref` which is fine, but this field is not used for reconciliation with the bank statement.

https://github.com/odoo/odoo/pull/35979 @yvaucher l10n_ch fix acc_number onchange and l10n_ch ISR unit tests
This fix a couple of bugs when we try to fill the postal account number from IBAN (only possible with a Postfinance IBAN) or with an postal account number set wrongly in "acc_number".


https://github.com/odoo/odoo/pull/35931 @yvaucher l10n_ch QR invoice
Few fixes to make the future QR invoice usable.
It now uses the ISR reference as Reference instead of the subscription number.
Plus introduction of QR-IBAN.

For now only QR-IBAN and QRR are supported.

Reminder: QR Invoice will be introduced the 30th of June 2020



Roadmap for oca/l10n-switzerland

Those changes should lighten a bit the localization in the OCA but will mean some adaptations.
  • Adapt l10n_ch_base_bank to be based on new fields.
    • To keep features like auto completion of bank based on IBAN
    • This module should become optional
  • Port l10n_ch_payment_slip for performances reasons. You probably don't need it if you don't have a large volume. (reportlab is faster than Qweb)
    • Drop dependency on account_payment_order
    • Drop dependency on base_transaction_id (the field invoice_payment_ref should replace transaction_ref)
    • Drop dependency on l10n_ch_base_bank
    • Use the field l10n_ch_isr_number and drop the multi ISR model as barely used.
  • Drop modules based on `base_transaction_id`
  • Drop l10n_ch_isr_import_v11 - replaced by iso20022 camt imports
  • Drop l10n_ch_dta - replaced by iso20022 pain generation
  • New module or implement in Odoo core: Set the bill info on QR-Invoice
  • New module: Implement the Swico bill info support on QR-Invoice
    • To specificy
    • This would allow to scan a QR code and create an invoice in Odoo based on the structured bill info data.


Regards,

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10