-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_it_account_stamp_sale: Migration to 14.0
- Loading branch information
Showing
5 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
# Copyright 2019 Alex Comba - Agile Business Group | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import api, models | ||
from odoo import models | ||
|
||
|
||
class AccountInvoice(models.Model): | ||
class SaleOrder(models.Model): | ||
|
||
_inherit = "sale.order" | ||
|
||
@api.multi | ||
def action_invoice_create(self, grouped=False, final=False): | ||
invoice_ids = super(AccountInvoice, self).action_invoice_create( | ||
invoice_ids = super(SaleOrder, self).action_invoice_create( | ||
grouped=grouped, final=final | ||
) | ||
invoice_model = self.env["account.invoice"] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* Alex Comba <alex.comba@agilebg.com.org> | ||
* Sergio Corato <https://github.com/sergiocorato> | ||
* Marco Colombo <https://github.com/TheMule71> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters