Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions l10n_it_pos_fiscalcode/README.rst
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/OCA/l10n-italy/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 <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_pos_fiscalcode%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Contributors
------------

- Lorenzo Battistini <https://github.com/eLBati>

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 <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-eLBati|

This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_pos_fiscalcode>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_it_pos_fiscalcode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions l10n_it_pos_fiscalcode/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"l10n_it_edi_extension",
"l10n_it_edi",

Il campo del codice fiscale è definito da l10n_it_edi (https://github.com/odoo/odoo/blob/0b54f8463200a840a8fde17ceed2c928a3249b68/addons/l10n_it_edi/models/res_partner.py#L15) quindi potremmo dipendere direttamente da quel modulo se non ci serve l10n_it_edi_extension, cosa ne pensi?

],
"assets": {
"point_of_sale.assets": [
"l10n_it_pos_fiscalcode/static/src/xml/pos.xml",
],
},
}
33 changes: 33 additions & 0 deletions l10n_it_pos_fiscalcode/i18n/it.po
Original file line number Diff line number Diff line change
@@ -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 <stefano.consolaro@mymage.it>\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"
26 changes: 26 additions & 0 deletions l10n_it_pos_fiscalcode/i18n/l10n_it_pos_fiscalcode.pot
Original file line number Diff line number Diff line change
@@ -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 ""
1 change: 1 addition & 0 deletions l10n_it_pos_fiscalcode/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pos_session
14 changes: 14 additions & 0 deletions l10n_it_pos_fiscalcode/models/pos_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 Dinamiche Aziendali srl
# @author: Giuseppe Borruso <gborruso@dinamicheaziendali.it>
# 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()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Questo metodo non mi pare esista in super, puoi verificare?

Ho fatto una piccola ricerca e temo che se vogliamo poter cercare per codice fiscale dovremo in qualche modo inserirci lato JS in https://github.com/odoo/odoo/blob/0b54f8463200a840a8fde17ceed2c928a3249b68/addons/point_of_sale/static/src/app/screens/partner_list/partner_list.js#L148.

result["search_params"]["fields"].append("l10n_it_codice_fiscale")
return result
3 changes: 3 additions & 0 deletions l10n_it_pos_fiscalcode/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions l10n_it_pos_fiscalcode/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Lorenzo Battistini \<<https://github.com/eLBati>\>
10 changes: 10 additions & 0 deletions l10n_it_pos_fiscalcode/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading