Switzerland mailing list archives
switzerland@odoo-community.org
Browse archives
Re: [v12] Reference type on vendor bills (l10n_ch_base_bank)
by
Camptocamp SA, Yannick Payot
Hello Virginie,
For reference_type, the change follows the change on Odoo core that dropped that field. https://github.com/odoo/odoo/commit/b5bb5bd421ad5c643f72602f6a0f97a4a0eb8711
In your case you want to rely on a similar mechanism as that detect the type of reference in v13.0 it's in the core https://github.com/odoo/odoo/blob/13.0/addons/l10n_ch/models/account_invoice.py#L255
For v12.0 it is available here: https://github.com/OCA/l10n-switzerland/blob/12.0/l10n_ch_base_bank/models/invoice.py#L81
For the XML view the commit says it was a duplicate field on the form view.
For what it implies to put it back is that nothing relies on the reference_type anymore. IMO an approach to detect the type of reference is better in terms of UX.
I would strongly recommend going with Odoo 13.0 instead of 12.0. Some fixes have not been backported and Odoo 12.0 localisation is a bit in a clumsy state.
Cheers,
Yannick Vaucher
Business Solutions Architect
Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10
On Tue, 20 Oct 2020 at 15:32, Virginie Dewulf <virginie@coopiteasy.be> wrote:
Hello community,I have a customer in Geneva who uses l10n_ch_base_bank in v9.We are going to v12 and we notice that the field "Reference type" is not there anymore.We notice in the history of the module this (https://github.com/OCA/l10n-switzerland/commits/12.0/l10n_ch_base_bank/views)- `reference_type` was removed from XML view : https://github.com/OCA/l10n-switzerland/commit/c031625df6f890d628664eb552001afd5c6c6f81#diff-c0e7d075f1da723cc1d08eab191a97f91cf674343c742d180d1e24deb6586f92 (voir fichier l10n_ch_base_bank/views/invoice.xml)
- XML view was then removed : https://github.com/OCA/l10n-switzerland/commit/14e4dfa93920f8b5a624a1cc1a0b447642fdee69#diff-c0e7d075f1da723cc1d08eab191a97f91cf674343c742d180d1e24deb6586f92Do you know why this choice was made?Do you see a risk if we put back this view?Thanks a lot!--Virginie0477/64.17.20--Si vous avez un contrat de support, posez-nous vos question à l'adresse "support@coopiteasy.be"--Lors de l'envoi d'un mail, renseignez le nom de la structure pour laquelle vous travaillez. Merci._______________________________________________
Mailing-List: https://odoo-community.org/groups/switzerland-29
Post to: mailto:switzerland@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
[v12] Reference type on vendor bills (l10n_ch_base_bank)
byCoop IT Easy SC agréée, Virginie Dewulf.-
Re: [v12] Reference type on vendor bills (l10n_ch_base_bank)
byCamptocamp SA, Yannick Payot
-