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

[14.0][MIG] l10n_it_account_stamp_sale: Migration to 14.0 #2151

Closed

Conversation

TheMule71
Copy link
Contributor

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

TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Mar 5, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Apr 15, 2021
@TheMule71 TheMule71 force-pushed the 14.0-mig-l10n_it_account_stamp_sale branch from 8f84749 to 32ba16e Compare May 28, 2021 17:15
Copy link
Contributor

@andreampiovesana andreampiovesana left a comment

Choose a reason for hiding this comment

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

go

TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 6, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 6, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 2, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 8, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 8, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
@TheMule71
Copy link
Contributor Author

Mi sono fermato con questo modulo perché mi chiedo se sulla 14 serva. Abbiamo:

def _compute_tax_stamp(self):
for invoice in self:
invoice.tax_stamp = False
if invoice.auto_compute_stamp:
invoice.tax_stamp = invoice.is_tax_stamp_applicable()
else:
if invoice.manually_apply_tax_stamp:
invoice.tax_stamp = True

direttamente nel modulo l10n_it_account_stamp.

In questo modulo facciamo:

    def action_invoice_create(self, grouped=False, final=False):
        invoice_ids = super(SaleOrder, self).action_invoice_create(
            grouped=grouped, final=final
        )
        invoice_model = self.env["account.move"]
        for invoice in invoice_model.browse(invoice_ids):
            invoice.tax_stamp = invoice.is_tax_stamp_applicable()
        return invoice_ids

Ma la _compute che viene invocata in fase di creazione delle fatture dovrebbe avere già settato invoice.tax_stamp

@TheMule71 TheMule71 marked this pull request as draft January 14, 2022 14:51
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
@primes2h
Copy link
Contributor

Metto questa PR come promemoria #3105.

@primes2h
Copy link
Contributor

Mi sono fermato con questo modulo perché mi chiedo se sulla 14 serva. Abbiamo:

def _compute_tax_stamp(self):
for invoice in self:
invoice.tax_stamp = False
if invoice.auto_compute_stamp:
invoice.tax_stamp = invoice.is_tax_stamp_applicable()
else:
if invoice.manually_apply_tax_stamp:
invoice.tax_stamp = True

direttamente nel modulo l10n_it_account_stamp.

In questo modulo facciamo:

    def action_invoice_create(self, grouped=False, final=False):
        invoice_ids = super(SaleOrder, self).action_invoice_create(
            grouped=grouped, final=final
        )
        invoice_model = self.env["account.move"]
        for invoice in invoice_model.browse(invoice_ids):
            invoice.tax_stamp = invoice.is_tax_stamp_applicable()
        return invoice_ids

Ma la _compute che viene invocata in fase di creazione delle fatture dovrebbe avere già settato invoice.tax_stamp

In effetti è proprio così.
L'ho anche testato su runboat, alle fatture create da ordini di vendita viene applicata la marca da bollo.

@primes2h
Copy link
Contributor

Mi sono fermato con questo modulo perché mi chiedo se sulla 14 serva. Abbiamo:

def _compute_tax_stamp(self):
for invoice in self:
invoice.tax_stamp = False
if invoice.auto_compute_stamp:
invoice.tax_stamp = invoice.is_tax_stamp_applicable()
else:
if invoice.manually_apply_tax_stamp:
invoice.tax_stamp = True

direttamente nel modulo l10n_it_account_stamp.
In questo modulo facciamo:

    def action_invoice_create(self, grouped=False, final=False):
        invoice_ids = super(SaleOrder, self).action_invoice_create(
            grouped=grouped, final=final
        )
        invoice_model = self.env["account.move"]
        for invoice in invoice_model.browse(invoice_ids):
            invoice.tax_stamp = invoice.is_tax_stamp_applicable()
        return invoice_ids

Ma la _compute che viene invocata in fase di creazione delle fatture dovrebbe avere già settato invoice.tax_stamp

In effetti è proprio così. L'ho anche testato su runboat, alle fatture create da ordini di vendita viene applicata la marca da bollo.

Mi spiego meglio, il test l'ho fatto senza questo modulo installato.

@tafaRU
Copy link
Member

tafaRU commented Dec 30, 2022

Ok grazie @primes2h, pertanto si può chiudere la PR?

@primes2h
Copy link
Contributor

primes2h commented Dec 30, 2022

Ok grazie @primes2h, pertanto si può chiudere la PR?

Beh, a questo punto direi di si.
Che ne pensi @TheMule71 ?

P.S.: ho dato un'occhiata e ho provato anche la 12.0, disinstallando il modulo.
Stessa cosa, il modulo in pratica non serve.

@TheMule71 TheMule71 closed this Dec 30, 2022
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.

7 participants