diff --git a/l10n_it_fatturapa_sale/README.rst b/l10n_it_fatturapa_sale/README.rst index 1c27580499e5..d39be330f975 100644 --- a/l10n_it_fatturapa_sale/README.rst +++ b/l10n_it_fatturapa_sale/README.rst @@ -14,13 +14,13 @@ ITA - Fattura elettronica - Integrazione vendite :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_fatturapa_sale + :target: https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_fatturapa_sale :alt: OCA/l10n-italy .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_fatturapa_sale + :target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_fatturapa_sale :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/122/12.0 + :target: https://runbot.odoo-community.org/runbot/122/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -69,6 +69,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/l10n-italy `_ project on GitHub. +This module is part of the `OCA/l10n-italy `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_fatturapa_sale/__manifest__.py b/l10n_it_fatturapa_sale/__manifest__.py index e12738bc24bd..0508666d8c99 100644 --- a/l10n_it_fatturapa_sale/__manifest__.py +++ b/l10n_it_fatturapa_sale/__manifest__.py @@ -4,8 +4,8 @@ "name": "ITA - Fattura elettronica - Integrazione vendite", "summary": "Aggiunge alcuni dati per la " "fatturazione elettronica nell'ordine di vendita", - "version": "12.0.1.1.1", - "website": "https://github.com/OCA/l10n-italy" "12.0/l10n_it_fatturapa_sale", + "version": "14.0.1.0.0", + "website": "https://github.com/OCA/l10n-italy" "14.0/l10n_it_fatturapa_sale", "author": "Agile Business Group, " "Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Hidden", diff --git a/l10n_it_fatturapa_sale/models/account_invoice.py b/l10n_it_fatturapa_sale/models/account_move.py similarity index 73% rename from l10n_it_fatturapa_sale/models/account_invoice.py rename to l10n_it_fatturapa_sale/models/account_move.py index f2e9a804bcf0..20a64042e1e5 100644 --- a/l10n_it_fatturapa_sale/models/account_invoice.py +++ b/l10n_it_fatturapa_sale/models/account_move.py @@ -1,13 +1,12 @@ # Copyright 2020 Simone Rubino - Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, models +from odoo import models -class AccountInvoice(models.Model): - _inherit = "account.invoice" +class AccountMove(models.Model): + _inherit = "account.move" - @api.multi def unlink(self): related_documents = self.mapped("related_documents") res = super().unlink() diff --git a/l10n_it_fatturapa_sale/models/account_invoice_line.py b/l10n_it_fatturapa_sale/models/account_move_line.py similarity index 71% rename from l10n_it_fatturapa_sale/models/account_invoice_line.py rename to l10n_it_fatturapa_sale/models/account_move_line.py index b4ef050d0b67..fe2806d8c09f 100644 --- a/l10n_it_fatturapa_sale/models/account_invoice_line.py +++ b/l10n_it_fatturapa_sale/models/account_move_line.py @@ -1,13 +1,12 @@ # Copyright 2020 Simone Rubino - Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, models +from odoo import models -class AccountInvoiceLine(models.Model): - _inherit = "account.invoice.line" +class AccountMoveLine(models.Model): + _inherit = "account.move.line" - @api.multi def unlink(self): related_documents = self.mapped("related_documents") res = super().unlink() diff --git a/l10n_it_fatturapa_sale/models/related_document.py b/l10n_it_fatturapa_sale/models/related_document.py index 5a3c1cddc6e8..412786d85a4c 100644 --- a/l10n_it_fatturapa_sale/models/related_document.py +++ b/l10n_it_fatturapa_sale/models/related_document.py @@ -1,7 +1,7 @@ # Copyright 2020 Simone Rubino - Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import fields, models class FatturapaRelatedDocumentType(models.Model): @@ -26,7 +26,6 @@ class FatturapaRelatedDocumentType(models.Model): readonly=True, ) - @api.multi def check_unlink(self): """ Related documents only make sense if they are related (linked) diff --git a/l10n_it_fatturapa_sale/models/sale_order.py b/l10n_it_fatturapa_sale/models/sale_order.py index 9533ff33be59..15b424e90cff 100644 --- a/l10n_it_fatturapa_sale/models/sale_order.py +++ b/l10n_it_fatturapa_sale/models/sale_order.py @@ -1,7 +1,7 @@ # Copyright 2020 Simone Rubino - Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import fields, models class SaleOrder(models.Model): @@ -15,7 +15,6 @@ class SaleOrder(models.Model): groups="account.group_account_user", ) - @api.multi def _finalize_invoices(self, invoices, references): res = super()._finalize_invoices(invoices, references) # To each invoice, link the documents of the related order @@ -33,7 +32,6 @@ def _finalize_invoices(self, invoices, references): ) return res - @api.multi def unlink(self): related_documents = self.mapped("related_documents") res = super().unlink() diff --git a/l10n_it_fatturapa_sale/models/sale_order_line.py b/l10n_it_fatturapa_sale/models/sale_order_line.py index 7f1c9b909fe3..569400a8d417 100644 --- a/l10n_it_fatturapa_sale/models/sale_order_line.py +++ b/l10n_it_fatturapa_sale/models/sale_order_line.py @@ -1,7 +1,7 @@ # Copyright 2020 Simone Rubino - Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import fields, models class SaleOrderLine(models.Model): @@ -16,12 +16,10 @@ class SaleOrderLine(models.Model): ) admin_ref = fields.Char( string="Admin. ref.", - size=20, copy=False, groups="account.group_account_user", ) - @api.multi def _prepare_invoice_line(self, qty): self.ensure_one() invoice_line_vals = super()._prepare_invoice_line(qty) @@ -56,7 +54,6 @@ def _prepare_invoice_line(self, qty): ) return invoice_line_vals - @api.multi def unlink(self): related_documents = self.mapped("related_documents") res = super().unlink() diff --git a/l10n_it_fatturapa_sale/static/description/index.html b/l10n_it_fatturapa_sale/static/description/index.html index 8744fcc62991..9e894a8de0cb 100644 --- a/l10n_it_fatturapa_sale/static/description/index.html +++ b/l10n_it_fatturapa_sale/static/description/index.html @@ -3,7 +3,7 @@ - + ITA - Fattura elettronica - Integrazione vendite