[16.0] [MIG] l10n_it_website_portal_fatturapa#3406
Conversation
|
/ocabot migration l10n_it_website_portal_fatturapa |
165f95a to
a09db94
Compare
SirAionTech
left a comment
There was a problem hiding this comment.
Grazie della PR!
Puoi schiacciare i commit come descritto in https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate?
| "author": "Odoo Community Association (OCA)", | ||
| "category": "Localization/Italy", | ||
| "website": "https://github.com/OCA/l10n-italy" | ||
| "/tree/12.0/l10n_it_website_portal_fatturapa", |
There was a problem hiding this comment.
| "/tree/12.0/l10n_it_website_portal_fatturapa", | |
| "/tree/16.0/l10n_it_website_portal_fatturapa", |
There was a problem hiding this comment.
La modifica andrebbe nel commit di migrazione
d0bfc79 to
8bbad01
Compare
| country_italy = request.env.ref("base.it", raise_if_not_found=False) | ||
| country_id = data.get("country_id", False) | ||
| if country_id and country_italy and int(country_id) != country_italy.id: | ||
| data["codice_destinatario"] = "XXXXXXX" | ||
| elif data.get("codice_destinatario") == "XXXXXXX": | ||
| data["codice_destinatario"] = "0000000" |
There was a problem hiding this comment.
Queste modifiche sono necessarie per la migrazione alla 16.0?
Se non è così, sarebbero da spostare in un commit a parte, o anche in una PR a parte, e ci sarebbe da aprire la issue di tracciamento come descritto in https://github.com/OCA/l10n-italy/wiki/Team-di-sviluppo#apertura-issue
Giusto per completezza, vengono da #2520 (comment)
| "author": "Odoo Community Association (OCA)", | ||
| "category": "Localization/Italy", | ||
| "website": "https://github.com/OCA/l10n-italy" | ||
| "/tree/12.0/l10n_it_website_portal_fatturapa", |
There was a problem hiding this comment.
La modifica andrebbe nel commit di migrazione
| if (!$is_pa[0].checked) { | ||
| $codice_destinatario_div.show(); | ||
| $pec_destinatario_div.show(); | ||
| } else { | ||
| $codice_destinatario_div.hide(); | ||
| $pec_destinatario_div.hide(); | ||
| var compute_destinatario_fields_visibility = function () { | ||
| if ($is_pa[0].checked) { | ||
| $codice_destinatario_div.hide(); | ||
| $pec_destinatario_div.hide(); | ||
| } else { | ||
| $codice_destinatario_div.show(); | ||
| $pec_destinatario_div.show(); |
There was a problem hiding this comment.
Questa è l'unica modifica necessaria per far contento pre-commit, che altrimenti dice:
l10n_it_website_portal_fatturapa/static/src/js/l10n_it_website_portal_fatturapa.js
40:13 warning Unexpected negated condition no-negated-condition
per il resto del file puoi ripristinare il codice che c'era prima?
There was a problem hiding this comment.
fatto ma questa riga ho dovuto eliminarla perché in ogni pagnia del sitoweb esce questo errore DOM doesn't contain o_portal_details
925c37e to
3d3d997
Compare
andreampiovesana
left a comment
There was a problem hiding this comment.
LGTM - functional review ocaboat
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
@OpenCode your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-3406-by-OpenCode-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
FIX l10n_it_website_portal_fatturapa: Cannot read property 'checked' of undefined when not in /my/home page
Otherwise, when installed directly:
File "odoo/addons/base/models/ir_model.py", line 1380, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
odoo.tools.convert.ParseError: "External ID not found in the system: website.assets_frontend" while parsing None:8, near
<data inherit_id="website.assets_frontend" name="Website Portal Electronic Invoice">
<xpath expr="." position="inside">
<script type="text/javascript" src="/l10n_it_website_portal_fatturapa/static/src/js/l10n_it_website_portal_fatturapa.js"/>
</xpath>
</data>
Currently translated at 100.0% (7 of 7 strings) Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_website_portal_fatturapa Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_website_portal_fatturapa/it/
…jected they are also obliged
3d3d997 to
23584ff
Compare
@OpenCode puoi riprovare ora che la dipendenza è mergiata? |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 7a84e65. Thanks a lot for contributing to OCA. ❤️ |
Migration l10n_it_website_portal_fatturapa 12.0 to 16.0
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing