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][FIX] Fixed invoice ref number for passive invoices in vat registries #4206

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

LorenzoC0
Copy link
Contributor

@OCA-git-bot
Copy link
Contributor

Hi @eLBati,
some modules you are maintaining are being modified, check this out!

Copy link

@MaurizioPellegrinet MaurizioPellegrinet left a comment

Choose a reason for hiding this comment

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

Functional test: OK

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!
Potresti modificare il messaggio del commit per seguire https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message?
In particolare:

please check if the commit message is cut with ellipsis

Potresti separare i due commit in modo che ogni commit modifichi un solo modulo? Anche questo fa parte delle linee guida linkate sopra:

Try to split into different commits where impacted modules are different

@@ -26,14 +36,13 @@
<t t-set="original_supplier" t-value="original_invoice.partner_id" />
<t
t-set="reference"
t-value="original_invoice.ref or original_invoice.name or ''"
t-value="(original_invoice.ref or original_invoice.name or '') + ' - ' + (move.rc_purchase_invoice_id.ref or move.rc_purchase_invoice_id.name or '')"
Copy link
Contributor

Choose a reason for hiding this comment

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

Se non ci sono né .ref.name, viene aggiunto solo " - ": è possibile non aggiungere nulla in questo caso?

Copy link
Member

Choose a reason for hiding this comment

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

Non mi risultano casi dove name di account.move possa essere vuoto, quindi potremmo non preoccuparcene

Copy link
Contributor

@SirAionTech SirAionTech Jul 15, 2024

Choose a reason for hiding this comment

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

Non mi risultano casi dove name di account.move possa essere vuoto, quindi potremmo non preoccuparcene

Il campo account.move.name non è required:

    name = fields.Char(
        string='Number',
        compute='_compute_name', inverse='_inverse_name', readonly=False, store=True,
        copy=False,
        tracking=True,
        index='trigram',
    )

(da https://github.com/odoo/odoo/blob/5d4a24afa983a82357d76b5d6a09750b26ce3de7/addons/account/models/account_move.py#L86-L92)

quindi può essere vuoto.
Può succedere ad esempio quando l'utente svuota il campo manualmente, come viene suggerito da Odoo nei casi in cui la sequenza non è valida:

"You will need to clear the %(model)s's %(sequence_field)s to proceed.\n"

(da https://github.com/odoo/odoo/blob/5d4a24afa983a82357d76b5d6a09750b26ce3de7/addons/account/models/sequence_mixin.py#L110)

Copy link
Member

Choose a reason for hiding this comment

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

Intendo che in questo caso sto stampando un'autofattura e recuperando i dati della fattura originale. Se esiste l'autofattura vuol dire che la fattura originale è validata e una fattura validata non mi risulta possa non avere un numero

@eLBati
Copy link
Member

eLBati commented Oct 25, 2024

/ocabot rebase

…number of passive self invoice in description of self invoice
@OCA-git-bot
Copy link
Contributor

Congratulations, PR rebased to 16.0.

@OCA-git-bot OCA-git-bot force-pushed the 16.0-imp-l10n_it_vat_registries branch from e8d0cec to 0179d60 Compare October 25, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] Aggiunto numero documento di autofatture in Registri IVA
5 participants