Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][l10n_it_fatturapa_out] Define value of FatturaPA XML 2.4.2.3 field #3892

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

mmaridev
Copy link

See issue #2774

@francesco-ooops
Copy link
Contributor

@mmaridev questa risolve #2774 o solo parzialmente?

@mmaridev
Copy link
Author

@francesco-ooops risolve la issue, a quanto ho testato.
cc @SirAionTech

@francesco-ooops
Copy link
Contributor

@mmaridev riesci a verificare i test?

@mmaridev
Copy link
Author

@francesco-ooops aggiornate le reference, test passati

@francesco-ooops
Copy link
Contributor

@mmaridev se fixi il precommit ci siamo :)

@mmaridev
Copy link
Author

@francesco-ooops done

@francesco-ooops
Copy link
Contributor

@mmaridev inoltre squasha i commit insieme e assegnagli un messaggio in linea con https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#L1114

@mmaridev
Copy link
Author

@francesco-ooops done

@mmaridev
Copy link
Author

mmaridev commented Feb 9, 2024

Merge & backport?

@francesco-ooops
Copy link
Contributor

@mmaridev se vuoi già aprire una PR per il backport è molto gradito :)

@mmaridev
Copy link
Author

mmaridev commented Feb 9, 2024

@francesco-ooops Speravo gestisse in automatico @OCA-git-bot :-/

@francesco-ooops
Copy link
Contributor

magari 😀

dai un'occhiata a https://github.com/OCA/oca-port

Copy link
Contributor

@SirAionTech SirAionTech left a comment

Choose a reason for hiding this comment

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

Grazie della PR!
Ho fatto solo revisione del codice.

Per il messaggio del commit, puoi seguire https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#L1114?
In particolare

please check if the commit message is cut with ellipsis

Ci sarebbe anche

Avoid commits which simultaneously impact lots of modules.

ma in questo caso non vedo come si possano separare le modifiche senza lasciare qualche commit con i test rotti.

@@ -637,7 +637,9 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati)
<ModalitaPagamento
t-out="record.invoice_payment_term_id.fatturapa_pm_id.code"
/>
<!-- <DataRiferimentoTerminiPagamento t-out=""/>-->
<DataRiferimentoTerminiPagamento
t-out="format_date(record.invoice_date)"
Copy link
Contributor

Choose a reason for hiding this comment

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

A livello funzionale (non il mio campo) sono sempre un po' confuso dalle date nelle fatture, in questo caso perché non record.date?

Copy link
Author

Choose a reason for hiding this comment

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

Semplicemente perché è quello utilizzato per popolare DatiGeneraliDocumento.Data

<Data t-out="format_date(record.invoice_date)" />

Copy link
Contributor

Choose a reason for hiding this comment

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

invoice_date è la data del documento
date è la data di registrazione contabile

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 16, 2024
@mmaridev
Copy link
Author

@SirAionTech riusciamo a sbloccare questa PR? È aperta da gennaio...

@francesco-ooops
Copy link
Contributor

image

@mmaridev cerca di formattare il nome commit / commit message come indicato qui: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst?plain=1#L1287

@SirAionTech
Copy link
Contributor

@SirAionTech riusciamo a sbloccare questa PR? È aperta da gennaio...

Sì certo: quando hai risposto alla revisione #3892 (review) chiedi di aggiornarla
image
(vedi https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review)
così so che ci devo guardare

@TheMule71
Copy link
Contributor

Sembra che la preferenza sia di usare DataScadenzaPagamento invece di DataRiferimentoTerminiPagamento e GiorniTerminiPagamento.

Anche Odoo standard si adegua:
https://github.com/odoo/odoo/blob/6a497a26a3b1d00a08cb30e164a7d7e8499d6d61/addons/l10n_it_edi/data/invoice_it_template.xml#L198-L206

@mmaridev
Copy link
Author

@mmaridev cerca di formattare il nome commit / commit message come indicato qui: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst?plain=1#L1287

ho riletto brevemente le guidelines e mi sembra in linea; dimmi semplicemente come lo vuoi modificato che lo faccio

@francesco-ooops
Copy link
Contributor

@mmaridev cerca di formattare il nome commit / commit message come indicato qui: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst?plain=1#L1287

ho riletto brevemente le guidelines e mi sembra in linea; dimmi semplicemente come lo vuoi modificato che lo faccio

Il link mi sembra chiaro:

When you open a PR, please check if the commit message is cut with ellipsis. For example:

.. code-block::

[FIX] module_foo: and this is my very long m[...]

When this happens, it means your message is too long. You should shorten it.
Start by rephrasing and keeping the summary very synthetic.
The explanation or motivation should be kept in the description of the commit.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 18, 2024
@SirAionTech SirAionTech added the needs fixing Has conflicts or is failing mandatory CI checks label Aug 21, 2024
@francesco-ooops
Copy link
Contributor

/ocabot rebase

@OCA-git-bot
Copy link
Contributor

@francesco-ooops The rebase process failed, because command git rebase origin/16.0 failed with output:

Rebasing (1/1)
Auto-merging .pre-commit-config.yaml
Auto-merging l10n_it_fatturapa_out/data/invoice_it_template.xml
CONFLICT (content): Merge conflict in l10n_it_fatturapa_out/data/invoice_it_template.xml
Auto-merging l10n_it_fatturapa_out_di/tests/data/IT06363391001_00001.xml
Auto-merging l10n_it_fatturapa_out_di/tests/data/IT06363391001_00002.xml
Auto-merging l10n_it_fatturapa_out_di/tests/data/IT06363391001_00003.xml
error: could not apply c3781d3b4... [FIX][l10n_it_fatturapa_out] Define 2.4.2.3 field
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply c3781d3b4... [FIX][l10n_it_fatturapa_out] Define 2.4.2.3 field

@mmaridev
Copy link
Author

/ocabot rebase

@OCA-git-bot
Copy link
Contributor

Sorry @mmaridev you are not allowed to rebase.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@mmaridev
Copy link
Author

Immagino i tests siano stati aggiornati da altra PR e per questo falliscano

Copy link
Contributor

@SirAionTech SirAionTech left a comment

Choose a reason for hiding this comment

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

Immagino i tests siano stati aggiornati da altra PR e per questo falliscano

Al momento in questa PR falliscono sia pre-commit che i test:
image

L'ultima esecuziona della CI su 16.0 non ha trovato problemi:
image
(da https://github.com/OCA/l10n-italy/actions/runs/11437860369)

Quindi questa PR è da modificare per far passare almeno pre-commit e i test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs fixing Has conflicts or is failing mandatory CI checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fatturapa] Field "Data riferimento termini di pagamento" not present in XML
5 participants