diff --git a/l10n_it_pos_fiscalcode/README.rst b/l10n_it_pos_fiscalcode/README.rst new file mode 100644 index 000000000000..3974c6d7e27e --- /dev/null +++ b/l10n_it_pos_fiscalcode/README.rst @@ -0,0 +1,88 @@ +========================== +ITA - POS - Codice fiscale +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:973fd17a70e0726fc9c4bc7168d59f1553a9b06da22ad14fb29ff45e134e54f2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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/18.0/l10n_it_pos_fiscalcode + :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-18-0/l10n-italy-18-0-l10n_it_pos_fiscalcode + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +**Italiano** + +Il modulo aggiunge il campo codice fiscale nella schermata del cliente +nell'interfaccia del punto vendita, permettendo di visualizzarlo e +modificarlo. + +**English** + +The module adds fiscal code field to partner form within point of sale +interface, allowing to view and edit it. + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Contributors +------------ + +- Lorenzo Battistini + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px + :target: https://github.com/eLBati + :alt: eLBati + +Current `maintainer `__: + +|maintainer-eLBati| + +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_pos_fiscalcode/__init__.py b/l10n_it_pos_fiscalcode/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/l10n_it_pos_fiscalcode/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_it_pos_fiscalcode/__manifest__.py b/l10n_it_pos_fiscalcode/__manifest__.py new file mode 100644 index 000000000000..369f3d864eb7 --- /dev/null +++ b/l10n_it_pos_fiscalcode/__manifest__.py @@ -0,0 +1,26 @@ +# Copyright 2019 Lorenzo Battistini +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "ITA - POS - Codice fiscale", + "summary": "Gestione codice fiscale del cliente all'interno " + "dell'interfaccia del POS", + "version": "18.0.1.0.0", + "development_status": "Beta", + "category": "Point Of Sale", + "website": "https://github.com/OCA/l10n-italy", + "author": "Odoo Community Association (OCA)", + "maintainers": ["eLBati"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "point_of_sale", + "l10n_it_edi_extension", + ], + "assets": { + "point_of_sale.assets": [ + "l10n_it_pos_fiscalcode/static/src/xml/pos.xml", + ], + }, +} diff --git a/l10n_it_pos_fiscalcode/i18n/it.po b/l10n_it_pos_fiscalcode/i18n/it.po new file mode 100644 index 000000000000..42a0de4b6d2a --- /dev/null +++ b/l10n_it_pos_fiscalcode/i18n/it.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_pos_fiscalcode +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-10-13 10:39+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: l10n_it_pos_fiscalcode +#. odoo-javascript +#: code:addons/l10n_it_pos_fiscalcode/static/src/xml/pos.xml:0 +#, python-format +msgid "F.C." +msgstr "C.F." + +#. module: l10n_it_pos_fiscalcode +#: model:ir.model,name:l10n_it_pos_fiscalcode.model_pos_session +msgid "Point of Sale Session" +msgstr "Sessione punto vendita" + +#, python-format +#~ msgid "N/A" +#~ msgstr "N/D" diff --git a/l10n_it_pos_fiscalcode/i18n/l10n_it_pos_fiscalcode.pot b/l10n_it_pos_fiscalcode/i18n/l10n_it_pos_fiscalcode.pot new file mode 100644 index 000000000000..4df78069e84a --- /dev/null +++ b/l10n_it_pos_fiscalcode/i18n/l10n_it_pos_fiscalcode.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_pos_fiscalcode +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_it_pos_fiscalcode +#. odoo-javascript +#: code:addons/l10n_it_pos_fiscalcode/static/src/xml/pos.xml:0 +#, python-format +msgid "F.C." +msgstr "" + +#. module: l10n_it_pos_fiscalcode +#: model:ir.model,name:l10n_it_pos_fiscalcode.model_pos_session +msgid "Point of Sale Session" +msgstr "" diff --git a/l10n_it_pos_fiscalcode/models/__init__.py b/l10n_it_pos_fiscalcode/models/__init__.py new file mode 100644 index 000000000000..f7116e3d456b --- /dev/null +++ b/l10n_it_pos_fiscalcode/models/__init__.py @@ -0,0 +1 @@ +from . import pos_session diff --git a/l10n_it_pos_fiscalcode/models/pos_session.py b/l10n_it_pos_fiscalcode/models/pos_session.py new file mode 100644 index 000000000000..fe9d4d3eafd3 --- /dev/null +++ b/l10n_it_pos_fiscalcode/models/pos_session.py @@ -0,0 +1,14 @@ +# Copyright 2022 Dinamiche Aziendali srl +# @author: Giuseppe Borruso +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models + + +class PosSession(models.Model): + _inherit = "pos.session" + + def _loader_params_res_partner(self): + result = super()._loader_params_res_partner() + result["search_params"]["fields"].append("l10n_it_codice_fiscale") + return result diff --git a/l10n_it_pos_fiscalcode/pyproject.toml b/l10n_it_pos_fiscalcode/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/l10n_it_pos_fiscalcode/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_it_pos_fiscalcode/readme/CONTRIBUTORS.md b/l10n_it_pos_fiscalcode/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..21dc898b86c4 --- /dev/null +++ b/l10n_it_pos_fiscalcode/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Lorenzo Battistini \<\> diff --git a/l10n_it_pos_fiscalcode/readme/DESCRIPTION.md b/l10n_it_pos_fiscalcode/readme/DESCRIPTION.md new file mode 100644 index 000000000000..d202cf883e90 --- /dev/null +++ b/l10n_it_pos_fiscalcode/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +**Italiano** + +Il modulo aggiunge il campo codice fiscale nella schermata del cliente +nell'interfaccia del punto vendita, permettendo di visualizzarlo e +modificarlo. + +**English** + +The module adds fiscal code field to partner form within point of sale +interface, allowing to view and edit it. diff --git a/l10n_it_pos_fiscalcode/static/description/icon.png b/l10n_it_pos_fiscalcode/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_pos_fiscalcode/static/description/icon.png differ diff --git a/l10n_it_pos_fiscalcode/static/description/index.html b/l10n_it_pos_fiscalcode/static/description/index.html new file mode 100644 index 000000000000..83651cdefb86 --- /dev/null +++ b/l10n_it_pos_fiscalcode/static/description/index.html @@ -0,0 +1,424 @@ + + + + + +ITA - POS - Codice fiscale + + + +
+

ITA - POS - Codice fiscale

+ + +

Beta License: AGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runboat

+

Italiano

+

Il modulo aggiunge il campo codice fiscale nella schermata del cliente +nell’interfaccia del punto vendita, permettendo di visualizzarlo e +modificarlo.

+

English

+

The module adds fiscal code field to partner form within point of sale +interface, allowing to view and edit it.

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

eLBati

+

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_pos_fiscalcode/static/src/xml/pos.xml b/l10n_it_pos_fiscalcode/static/src/xml/pos.xml new file mode 100644 index 000000000000..1095a7ae2564 --- /dev/null +++ b/l10n_it_pos_fiscalcode/static/src/xml/pos.xml @@ -0,0 +1,23 @@ + + + + + +
+ F.C. + +
+
+
+ +