-
-
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.
Signed-off-by tafaRU
- Loading branch information
Showing
16 changed files
with
889 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
================================================= | ||
ITA - Fattura elettronica - Integrazione acquisti | ||
================================================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/14.0/l10n_it_fatturapa_in_purchase | ||
: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_fatturapa_in_purchase | ||
: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 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
**Italiano** | ||
|
||
Integra gli ordini di acquisto con le fatture elettroniche fornitore. | ||
|
||
Con questo modulo è possibile collegare una fattura elettronica fornitore a un ordine di acquisto esistente. | ||
|
||
In questo modo si tiene traccia della fatturazione o meno dell'ordine. | ||
|
||
**English** | ||
|
||
Integrate purchase orders with supplier electronic bills. | ||
|
||
With this module you can link a supplier electronic bill to an existing purchase order. | ||
|
||
In this way, you track whether the order is invoiced or not. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
**Italiano** | ||
|
||
Nelle fatture elettroniche fornitore in bozza, aprire la riga da collegare a una riga dell'ordine di acquisto e compilare il campo "Riga ordine di acquisto". | ||
|
||
**English** | ||
|
||
In draft supplier electronic bills, open the line to be linked to a purchase order line and fill in the 'Purchase order line' field. | ||
|
||
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 smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_fatturapa_in_purchase%0Aversion:%2014.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 | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Agile Business Group | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Lorenzo Battistini | ||
* Sergio Zanchetta <https://github.com/primes2h> | ||
|
||
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. | ||
|
||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_fatturapa_in_purchase>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2018 Lorenzo Battistini | ||
# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo) | ||
# Copyright 2019 Simone Rubino - Agile Business Group | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
|
||
{ | ||
"name": "ITA - Fattura elettronica - Integrazione acquisti", | ||
"summary": "Modulo ponte tra ricezione fatture elettroniche e acquisti", | ||
"version": "14.0.1.0.0", | ||
"category": "Hidden", | ||
"author": "Agile Business Group, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/l10n-italy", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"l10n_it_fatturapa_in", | ||
"purchase", | ||
], | ||
"data": [ | ||
"views/invoice_view.xml", | ||
], | ||
"installable": True, | ||
"auto_install": True, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_fatturapa_in_purchase | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-09-27 08:55+0000\n" | ||
"PO-Revision-Date: 2020-01-08 12:13+0000\n" | ||
"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n" | ||
"Language-Team: \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 3.10\n" | ||
|
||
#. module: l10n_it_fatturapa_in_purchase | ||
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_in_purchase.invoice_supplier_form_po_line | ||
msgid "PO line" | ||
msgstr "Riga OA" | ||
|
||
#. module: l10n_it_fatturapa_in_purchase | ||
#: model:ir.model,name:l10n_it_fatturapa_in_purchase.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "Riga ordine di acquisto" | ||
|
||
#. module: l10n_it_fatturapa_in_purchase | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_in_purchase.field_purchase_order_line__to_invoice | ||
msgid "To Invoice" | ||
msgstr "Da fatturare" | ||
|
||
#~ msgid "E-Invoice Import File" | ||
#~ msgstr "File importazione fattura elettronica" | ||
|
||
#~ msgid "Invoice Line" | ||
#~ msgstr "Riga Fattura" |
30 changes: 30 additions & 0 deletions
30
l10n_it_fatturapa_in_purchase/i18n/l10n_it_fatturapa_in_purchase.pot
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_fatturapa_in_purchase | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.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_fatturapa_in_purchase | ||
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_in_purchase.invoice_supplier_form_po_line | ||
msgid "PO line" | ||
msgstr "" | ||
|
||
#. module: l10n_it_fatturapa_in_purchase | ||
#: model:ir.model,name:l10n_it_fatturapa_in_purchase.model_purchase_order_line | ||
msgid "Purchase Order Line" | ||
msgstr "" | ||
|
||
#. module: l10n_it_fatturapa_in_purchase | ||
#: model:ir.model.fields,field_description:l10n_it_fatturapa_in_purchase.field_purchase_order_line__to_invoice | ||
msgid "To Invoice" | ||
msgstr "" | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import purchase_order |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2018 Lorenzo Battistini | ||
# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo) | ||
# Copyright 2019 Simone Rubino - Agile Business Group | ||
|
||
from odoo import fields, models | ||
from odoo.tools import float_compare | ||
|
||
|
||
class POLine(models.Model): | ||
_inherit = "purchase.order.line" | ||
to_invoice = fields.Boolean( | ||
"To Invoice", compute="_compute_qty_invoiced", store=True | ||
) | ||
|
||
def _compute_qty_invoiced(self): | ||
super()._compute_qty_invoiced() | ||
precision = self.env["decimal.precision"].precision_get( | ||
"Product Unit of Measure" | ||
) | ||
for line in self: | ||
if float_compare(line.qty_to_invoice, 0.0, precision_digits=precision) == 1: | ||
line.to_invoice = True | ||
else: | ||
line.to_invoice = False | ||
|
||
def name_get(self): | ||
res = [] | ||
for line in self: | ||
name = "{}: {}".format(line.order_id.name, line.name) | ||
res.append((line.id, name)) | ||
return res |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* Lorenzo Battistini | ||
* Sergio Zanchetta <https://github.com/primes2h> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
**Italiano** | ||
|
||
Integra gli ordini di acquisto con le fatture elettroniche fornitore. | ||
|
||
Con questo modulo è possibile collegare una fattura elettronica fornitore a un ordine di acquisto esistente. | ||
|
||
In questo modo si tiene traccia della fatturazione o meno dell'ordine. | ||
|
||
**English** | ||
|
||
Integrate purchase orders with supplier electronic bills. | ||
|
||
With this module you can link a supplier electronic bill to an existing purchase order. | ||
|
||
In this way, you track whether the order is invoiced or not. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**Italiano** | ||
|
||
Nelle fatture elettroniche fornitore in bozza, aprire la riga da collegare a una riga dell'ordine di acquisto e compilare il campo "Riga ordine di acquisto". | ||
|
||
**English** | ||
|
||
In draft supplier electronic bills, open the line to be linked to a purchase order line and fill in the 'Purchase order line' field. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.