Skip to content

[16.0] [MIG] l10n_it_website_portal_fatturapa#3406

Merged
OCA-git-bot merged 13 commits into
OCA:16.0from
Borruso:16.0-mig-l10n_it_website_portal_fatturapa
Oct 6, 2023
Merged

[16.0] [MIG] l10n_it_website_portal_fatturapa#3406
OCA-git-bot merged 13 commits into
OCA:16.0from
Borruso:16.0-mig-l10n_it_website_portal_fatturapa

Conversation

@Borruso

@Borruso Borruso commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

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

@tafaRU

tafaRU commented Jun 26, 2023

Copy link
Copy Markdown
Member

/ocabot migration l10n_it_website_portal_fatturapa

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 26, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jun 26, 2023
81 tasks
@Borruso Borruso force-pushed the 16.0-mig-l10n_it_website_portal_fatturapa branch 2 times, most recently from 165f95a to a09db94 Compare October 5, 2023 09:16

@SirAionTech SirAionTech left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"author": "Odoo Community Association (OCA)",
"category": "Localization/Italy",
"website": "https://github.com/OCA/l10n-italy"
"/tree/12.0/l10n_it_website_portal_fatturapa",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"/tree/12.0/l10n_it_website_portal_fatturapa",
"/tree/16.0/l10n_it_website_portal_fatturapa",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fatto

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La modifica andrebbe nel commit di migrazione

@Borruso Borruso force-pushed the 16.0-mig-l10n_it_website_portal_fatturapa branch from d0bfc79 to 8bbad01 Compare October 5, 2023 14:10
@Borruso Borruso requested a review from SirAionTech October 5, 2023 14:10
Comment on lines +41 to +46
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"

@SirAionTech SirAionTech Oct 5, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fatta issue #3644

"author": "Odoo Community Association (OCA)",
"category": "Localization/Italy",
"website": "https://github.com/OCA/l10n-italy"
"/tree/12.0/l10n_it_website_portal_fatturapa",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La modifica andrebbe nel commit di migrazione

Comment on lines +40 to +41
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();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@Borruso Borruso Oct 5, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fatto ma questa riga ho dovuto eliminarla perché in ogni pagnia del sitoweb esce questo errore DOM doesn't contain o_portal_details

@Borruso Borruso force-pushed the 16.0-mig-l10n_it_website_portal_fatturapa branch 2 times, most recently from 925c37e to 3d3d997 Compare October 5, 2023 16:06

@andreampiovesana andreampiovesana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - functional review ocaboat

@Borruso Borruso requested a review from SirAionTech October 5, 2023 16:26

@MaurizioPellegrinet MaurizioPellegrinet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

andreampiovesana

This comment was marked as duplicate.

@OpenCode

OpenCode commented Oct 6, 2023

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-3406-by-OpenCode-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 6, 2023
Signed-off-by OpenCode
@OCA-git-bot

Copy link
Copy Markdown
Contributor

@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.

monen17 and others added 5 commits October 6, 2023 14:35
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>
@Borruso Borruso force-pushed the 16.0-mig-l10n_it_website_portal_fatturapa branch from 3d3d997 to 23584ff Compare October 6, 2023 12:35
@SirAionTech

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OpenCode puoi riprovare ora che la dipendenza è mergiata?

@OpenCode

OpenCode commented Oct 6, 2023

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-3406-by-OpenCode-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b5db082 into OCA:16.0 Oct 6, 2023
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 7a84e65. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

l10n_it_website_portal_fatturapa: implementazione gestione utente dal portale