diff --git a/l10n_it_account_tax_kind/README.rst b/l10n_it_account_tax_kind/README.rst index 2af61420a2f8..aa3aac71badb 100644 --- a/l10n_it_account_tax_kind/README.rst +++ b/l10n_it_account_tax_kind/README.rst @@ -14,13 +14,13 @@ ITA - Natura delle aliquote IVA :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/14.0/l10n_it_account_tax_kind + :target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_account_tax_kind :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-14-0/l10n-italy-14-0-l10n_it_account_tax_kind + :target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_account_tax_kind :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/14.0 + :target: https://runbot.odoo-community.org/runbot/122/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -82,7 +82,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. @@ -101,6 +101,7 @@ Contributors * Lorenzo Battistini * Alex Comba * Gianmarco Conte +* Marco Colombo Maintainers ~~~~~~~~~~~ @@ -115,6 +116,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_account_tax_kind/__manifest__.py b/l10n_it_account_tax_kind/__manifest__.py index 7246e2a95c2c..eab06aa9e572 100644 --- a/l10n_it_account_tax_kind/__manifest__.py +++ b/l10n_it_account_tax_kind/__manifest__.py @@ -3,11 +3,12 @@ # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2018 Lorenzo Battistini # Copyright 2021 Gianmarco Conte +# Copyright 2022 Marco Colombo # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "ITA - Natura delle aliquote IVA", - "version": "14.0.1.1.0", + "version": "16.0.1.0.0", "development_status": "Production/Stable", "category": "Localization/Italy", "summary": "Gestione natura delle aliquote IVA", diff --git a/l10n_it_account_tax_kind/model/account_tax_kind.py b/l10n_it_account_tax_kind/model/account_tax_kind.py index 2e42a78c9462..690f74eaf105 100644 --- a/l10n_it_account_tax_kind/model/account_tax_kind.py +++ b/l10n_it_account_tax_kind/model/account_tax_kind.py @@ -1,28 +1,16 @@ -from odoo import api, fields, models +from odoo import fields, models class AccountTaxKind(models.Model): _name = "account.tax.kind" _description = "Tax exemption kind" + _rec_names_search = ["code", "name"] - code = fields.Char(string="Code", size=4, required=True) - name = fields.Char(string="Name", required=True) + code = fields.Char(size=4, required=True) + name = fields.Char(required=True) def name_get(self): res = [] for tax_kind in self: res.append((tax_kind.id, "[{}] {}".format(tax_kind.code, tax_kind.name))) return res - - @api.model - def name_search(self, name="", args=None, operator="ilike", limit=100): - if not args: - args = [] - if name: - records = self.search( - ["|", ("name", operator, name), ("code", operator, name)] + args, - limit=limit, - ) - else: - records = self.search(args, limit=limit) - return records.name_get() diff --git a/l10n_it_account_tax_kind/readme/CONTRIBUTORS.rst b/l10n_it_account_tax_kind/readme/CONTRIBUTORS.rst index fd73d5923939..7a6874114872 100644 --- a/l10n_it_account_tax_kind/readme/CONTRIBUTORS.rst +++ b/l10n_it_account_tax_kind/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Lorenzo Battistini * Alex Comba * Gianmarco Conte +* Marco Colombo diff --git a/l10n_it_account_tax_kind/static/description/index.html b/l10n_it_account_tax_kind/static/description/index.html index 5bc7fb40f4c3..c8365ebd0fcc 100644 --- a/l10n_it_account_tax_kind/static/description/index.html +++ b/l10n_it_account_tax_kind/static/description/index.html @@ -3,7 +3,7 @@ - + ITA - Natura delle aliquote IVA