diff --git a/l10n_it_delivery_note_base/README.rst b/l10n_it_delivery_note_base/README.rst new file mode 100644 index 000000000000..c7c345094969 --- /dev/null +++ b/l10n_it_delivery_note_base/README.rst @@ -0,0 +1,107 @@ +=================================== +ITA - Documento di trasporto - Base +=================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_delivery_note_base + :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_delivery_note_base + :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| + +**English** + +This module is base layer. + +Within there are principal tables, +so anybody can use it with another modules. + + +**Italiano** + +Questo modulo è un livello base. + +All'interno ci sono le tabelle principali, +in modo che chiunque possa usarlo con altri +moduli. + +**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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Marco Calcagni +* Gianmarco Conte +* Link IT Europe Srl + +Contributors +~~~~~~~~~~~~ + +* Riccardo Bellanova +* Matteo Bilotta +* Giuseppe Borruso +* Marco Calcagni +* Marco Colombo +* Gianmarco Conte +* Letizia Freda +* Andrea Piovesana + +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-As400it| image:: https://github.com/As400it.png?size=40px + :target: https://github.com/As400it + :alt: As400it +.. |maintainer-Byloth| image:: https://github.com/Byloth.png?size=40px + :target: https://github.com/Byloth + :alt: Byloth + +Current `maintainers `__: + +|maintainer-As400it| |maintainer-Byloth| + +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_delivery_note_base/__init__.py b/l10n_it_delivery_note_base/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/l10n_it_delivery_note_base/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_it_delivery_note_base/__manifest__.py b/l10n_it_delivery_note_base/__manifest__.py new file mode 100644 index 000000000000..27c7fcc9cbab --- /dev/null +++ b/l10n_it_delivery_note_base/__manifest__.py @@ -0,0 +1,34 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# Copyright (c) 2019, Link IT Europe Srl +# @author: Matteo Bilotta +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2015 Associazione Odoo Italia () +# noinspection PyStatementEffect +{ + "name": "ITA - Documento di trasporto - Base", + "summary": "Crea e gestisce tabelle principali per gestire i DDT", + "author": "Marco Calcagni, Gianmarco Conte, Link IT Europe Srl, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-italy", + "version": "14.0.1.0.0", + "category": "Localization/Italy", + "license": "AGPL-3", + "maintainers": ["As400it", "Byloth"], + "depends": ["base"], + "data": [ + "security/ir.model.access.csv", + "data/delivery_note_data.xml", + "security/ir_module_category.xml", + "security/ir_rule.xml", + "security/res_groups.xml", + "security/res_users.xml", + "views/stock_delivery_note_type.xml", + "views/stock_picking_goods_appearance.xml", + "views/stock_picking_transport_condition.xml", + "views/stock_picking_transport_method.xml", + "views/stock_picking_transport_reason.xml", + ], +} diff --git a/l10n_it_delivery_note_base/data/delivery_note_data.xml b/l10n_it_delivery_note_base/data/delivery_note_data.xml new file mode 100644 index 000000000000..f8eddca83e5e --- /dev/null +++ b/l10n_it_delivery_note_base/data/delivery_note_data.xml @@ -0,0 +1,104 @@ + + + + + + + Incoming DdT sequence + stock.delivery.note.din + DIN/ + no_gap + + + + Outgoing DdT sequence + stock.delivery.note.ddt + DDT/ + no_gap + + + + Internal DdT sequence + stock.delivery.note.int + INT/ + no_gap + + + + + + Incoming + + + incoming + + + Outgoing + + + outgoing + + + Outgoing (with prices) + + + outgoing + + + Internal transfer + + + internal + + + + + Carriage paid + + + Carriage forward + + + Charged in invoice + + + + + Box + + + Pallet + + + Bulk + + + Box / Pallet + + + + + Sale + + + Goods on approval + + + Returned + + + + + Sender + + + Recipient + + + Carrier + + + diff --git a/l10n_it_delivery_note_base/i18n/it.po b/l10n_it_delivery_note_base/i18n/it.po new file mode 100644 index 000000000000..af17e7cf14f0 --- /dev/null +++ b/l10n_it_delivery_note_base/i18n/it.po @@ -0,0 +1,340 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_delivery_note_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-01-08 13:58+0000\n" +"PO-Revision-Date: 2021-01-08 13:58+0000\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_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__active +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__active +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__active +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__active +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__active +msgid "Active" +msgstr "Attivo" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__next_sequence_number +msgid "Actual Next Number" +msgstr "Prossimo numero attuale" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__name +msgid "Appearance name" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model,name:l10n_it_delivery_note_base.model_stock_picking_goods_appearance +msgid "Appearance of Goods" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__default_goods_appearance_id +msgid "Appearance of goods" +msgstr "Aspetto dei beni" + +#. module: l10n_it_delivery_note_base +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_delivery_note_type_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_goods_appearance_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_condition_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_method_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_reason_form_view +msgid "Archived" +msgstr "In archivio" + +#. module: l10n_it_delivery_note_base +#: model:stock.picking.goods.appearance,name:l10n_it_delivery_note_base.goods_appearance_CAR +msgid "Box" +msgstr "Cartone" + +#. module: l10n_it_delivery_note_base +#: model:stock.picking.goods.appearance,name:l10n_it_delivery_note_base.goods_appearance_CBA +msgid "Box / Pallet" +msgstr "Cartone / Bancale" + +#. module: l10n_it_delivery_note_base +#: model:stock.picking.goods.appearance,name:l10n_it_delivery_note_base.goods_appearance_SFU +msgid "Bulk" +msgstr "Sfusi" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__company_id +msgid "Company" +msgstr "Azienda" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__name +msgid "Condition name" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model,name:l10n_it_delivery_note_base.model_stock_picking_transport_condition +msgid "Condition of Transport" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__default_transport_condition_id +msgid "Condition of transport" +msgstr "Condizione di trasporto" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__create_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__create_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__create_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__create_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__create_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__create_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__create_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__create_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: l10n_it_delivery_note_base +#: model:ir.module.category,description:l10n_it_delivery_note_base.module_category_inventory_checkboxes +msgid "Define some other extra rights on inventory management." +msgstr "Definisce alcuni permessi extra sulla gestione dei contatti." + +#. module: l10n_it_delivery_note_base +#: model:ir.model,name:l10n_it_delivery_note_base.model_stock_delivery_note_type +msgid "Delivery Note Type" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__display_name +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__display_name +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__display_name +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__display_name +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: l10n_it_delivery_note_base +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_delivery_note_type_tree_view +msgid "Go to sequence" +msgstr "Vai alla sequenza" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__id +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__id +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__id +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__id +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__id +msgid "ID" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_delivery_note_type__code__incoming +#: model:stock.delivery.note.type,name:l10n_it_delivery_note_base.delivery_note_type_incoming_ddt +msgid "Incoming" +msgstr "In arrivo" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_delivery_note_type__code__internal +msgid "Internal" +msgstr "Interno" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__note +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__note +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__note +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__note +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__note +msgid "Internal note" +msgstr "Nota interna" + +#. module: l10n_it_delivery_note_base +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_delivery_note_type_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_goods_appearance_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_condition_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_method_form_view +#: model_terms:ir.ui.view,arch_db:l10n_it_delivery_note_base.stock_picking_transport_reason_form_view +msgid "Internal notes" +msgstr "Note interne" + +#. module: l10n_it_delivery_note_base +#: model:stock.delivery.note.type,name:l10n_it_delivery_note_base.delivery_note_type_internal_ddt +msgid "Internal transfer" +msgstr "Trasferimento interno" + +#. module: l10n_it_delivery_note_base +#: model:ir.module.category,name:l10n_it_delivery_note_base.module_category_inventory_checkboxes +msgid "Inventory settings" +msgstr "Impostazioni del magazzino" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type____last_update +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance____last_update +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition____last_update +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method____last_update +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__write_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__write_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__write_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__write_uid +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__write_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__write_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__write_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__write_date +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__name +msgid "Method name" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model,name:l10n_it_delivery_note_base.model_stock_picking_transport_method +msgid "Method of Transport" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__default_transport_method_id +msgid "Method of transport" +msgstr "Metodo di trasporto" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__name +msgid "Name" +msgstr "Nome" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,help:l10n_it_delivery_note_base.field_stock_delivery_note_type__next_sequence_number +msgid "" +"Next number that will be used. This number can be incremented frequently so " +"the displayed value might already be obsolete" +msgstr "" +"Il numero che verrà usato come successivo. Il valore visualizzato potrebbe " +"essere già obsoleto dato che può essere incrementato in modo frequente" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_picking_transport_condition__price_to_show__none +msgid "None" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__sequence_id +msgid "Numeration" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_delivery_note_type__code__outgoing +#: model:stock.delivery.note.type,name:l10n_it_delivery_note_base.delivery_note_type_ddt +msgid "Outgoing" +msgstr "In uscita" + +#. module: l10n_it_delivery_note_base +#: model:stock.delivery.note.type,name:l10n_it_delivery_note_base.delivery_note_type_priced_ddt +msgid "Outgoing (with prices)" +msgstr "In uscita (con prezzi)" + +#. module: l10n_it_delivery_note_base +#: model:stock.picking.goods.appearance,name:l10n_it_delivery_note_base.goods_appearance_BAN +msgid "Pallet" +msgstr "Bancale" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__price_to_show +msgid "Price to show" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__name +msgid "Reason name" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model,name:l10n_it_delivery_note_base.model_stock_picking_transport_reason +msgid "Reason of Transport" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__default_transport_reason_id +msgid "Reason of transport" +msgstr "Causale di trasporto" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__sequence +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_goods_appearance__sequence +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_condition__sequence +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_method__sequence +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_picking_transport_reason__sequence +msgid "Sequence" +msgstr "Sequenza" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__print_prices +msgid "Show prices on printed DN" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:res.groups,name:l10n_it_delivery_note_base.show_product_related_fields +msgid "Show product information in delivery note lines" +msgstr "" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.constraint,message:l10n_it_delivery_note_base.constraint_stock_picking_goods_appearance_name_uniq +msgid "This appearance of goods already exists!" +msgstr "Questo aspetto dei beni esiste già!" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.constraint,message:l10n_it_delivery_note_base.constraint_stock_picking_transport_condition_name_uniq +msgid "This condition of transport already exists!" +msgstr "Questa condizione di trasporto esiste già!" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.constraint,message:l10n_it_delivery_note_base.constraint_stock_delivery_note_type_name_uniq +msgid "This delivery note type already exists!" +msgstr "Questo tipo di DdT esiste già!" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.constraint,message:l10n_it_delivery_note_base.constraint_stock_picking_transport_method_name_uniq +msgid "This method of transport already exists!" +msgstr "Questo metodo di trasporto esiste già!" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.constraint,message:l10n_it_delivery_note_base.constraint_stock_picking_transport_reason_name_uniq +msgid "This reason of transport already exists!" +msgstr "Questa causale di trasporto esiste già!" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_picking_transport_condition__price_to_show__total +msgid "Total price" +msgstr "Prezzo totale" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields,field_description:l10n_it_delivery_note_base.field_stock_delivery_note_type__code +msgid "Type of Operation" +msgstr "Tipo di operazione" + +#. module: l10n_it_delivery_note_base +#: model:ir.model.fields.selection,name:l10n_it_delivery_note_base.selection__stock_picking_transport_condition__price_to_show__unit +msgid "Unit price" +msgstr "Prezzo unitario" diff --git a/l10n_it_delivery_note_base/migrations/13.0.1.0.0/noupdate_changes.xml b/l10n_it_delivery_note_base/migrations/13.0.1.0.0/noupdate_changes.xml new file mode 100644 index 000000000000..211c43cd9812 --- /dev/null +++ b/l10n_it_delivery_note_base/migrations/13.0.1.0.0/noupdate_changes.xml @@ -0,0 +1,10 @@ + + + + + + ['|',('company_id','=',False),('company_id','in',company_ids)] + + + + diff --git a/l10n_it_delivery_note_base/migrations/13.0.1.0.0/post-migration.py b/l10n_it_delivery_note_base/migrations/13.0.1.0.0/post-migration.py new file mode 100644 index 000000000000..29bba790d364 --- /dev/null +++ b/l10n_it_delivery_note_base/migrations/13.0.1.0.0/post-migration.py @@ -0,0 +1,10 @@ +from openupgradelib import openupgrade # pylint: disable=W7936 + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, + "l10n_it_delivery_note_base", + "migrations/13.0.1.0.0/noupdate_changes.xml", + ) diff --git a/l10n_it_delivery_note_base/models/__init__.py b/l10n_it_delivery_note_base/models/__init__.py new file mode 100644 index 000000000000..dba0227a8c30 --- /dev/null +++ b/l10n_it_delivery_note_base/models/__init__.py @@ -0,0 +1,5 @@ +from . import stock_delivery_note_type +from . import stock_picking_goods_appearance +from . import stock_picking_transport_condition +from . import stock_picking_transport_method +from . import stock_picking_transport_reason diff --git a/l10n_it_delivery_note_base/models/stock_delivery_note_type.py b/l10n_it_delivery_note_base/models/stock_delivery_note_type.py new file mode 100644 index 000000000000..e6c8d1b9316d --- /dev/null +++ b/l10n_it_delivery_note_base/models/stock_delivery_note_type.py @@ -0,0 +1,75 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# @author: Giuseppe Borruso +# Copyright (c) 2020, Link IT Europe Srl +# @author: Matteo Bilotta +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + +DELIVERY_NOTE_TYPE_CODES = [ + ("incoming", "Incoming"), + ("outgoing", "Outgoing"), + ("internal", "Internal"), +] +DOMAIN_DELIVERY_NOTE_TYPE_CODES = [s[0] for s in DELIVERY_NOTE_TYPE_CODES] + + +class StockDeliveryNoteType(models.Model): + _name = "stock.delivery.note.type" + _description = "Delivery Note Type" + _order = "sequence, name, id" + + active = fields.Boolean(default=True) + sequence = fields.Integer(string="Sequence", index=True, default=10) + name = fields.Char(string="Name", index=True, required=True, translate=True) + print_prices = fields.Boolean(string="Show prices on printed DN", default=False) + code = fields.Selection( + DELIVERY_NOTE_TYPE_CODES, + string="Type of Operation", + required=True, + default=DOMAIN_DELIVERY_NOTE_TYPE_CODES[1], + ) + + default_transport_condition_id = fields.Many2one( + "stock.picking.transport.condition", string="Condition of transport" + ) + default_goods_appearance_id = fields.Many2one( + "stock.picking.goods.appearance", string="Appearance of goods" + ) + default_transport_reason_id = fields.Many2one( + "stock.picking.transport.reason", string="Reason of transport" + ) + default_transport_method_id = fields.Many2one( + "stock.picking.transport.method", string="Method of transport" + ) + + sequence_id = fields.Many2one("ir.sequence", string="Numeration", required=True) + next_sequence_number = fields.Integer(related="sequence_id.number_next_actual") + company_id = fields.Many2one( + "res.company", string="Company", default=lambda self: self.env.company + ) + note = fields.Html(string="Internal note") + + _sql_constraints = [ + ( + "name_uniq", + "unique(name, company_id)", + "This delivery note type already exists!", + ) + ] + + def goto_sequence(self, **kwargs): + self.ensure_one() + + return { + "type": "ir.actions.act_window", + "res_model": "ir.sequence", + "res_id": self.sequence_id.id, + "views": [(False, "form")], + "view_mode": "form", + "target": "current", + **kwargs, + } diff --git a/l10n_it_delivery_note_base/models/stock_picking_goods_appearance.py b/l10n_it_delivery_note_base/models/stock_picking_goods_appearance.py new file mode 100644 index 000000000000..0f565d69df39 --- /dev/null +++ b/l10n_it_delivery_note_base/models/stock_picking_goods_appearance.py @@ -0,0 +1,28 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# @author: Giuseppe Borruso +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class StockPickingGoodsAppearance(models.Model): + _name = "stock.picking.goods.appearance" + _description = "Appearance of Goods" + _order = "sequence, name, id" + + active = fields.Boolean(default=True) + sequence = fields.Integer(string="Sequence", index=True, default=10) + name = fields.Char( + string="Appearance name", + index=True, + required=True, + translate=True, + ) + note = fields.Html(string="Internal note") + + _sql_constraints = [ + ("name_uniq", "unique(name)", "This appearance of goods already exists!") + ] diff --git a/l10n_it_delivery_note_base/models/stock_picking_transport_condition.py b/l10n_it_delivery_note_base/models/stock_picking_transport_condition.py new file mode 100644 index 000000000000..662461b08eba --- /dev/null +++ b/l10n_it_delivery_note_base/models/stock_picking_transport_condition.py @@ -0,0 +1,44 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# @author: Giuseppe Borruso +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + +PRICES_TO_SHOW = [("unit", "Unit price"), ("total", "Total price"), ("none", "None")] +DOMAIN_PRICES_TO_SHOW = [p[0] for p in PRICES_TO_SHOW] + + +class StockPickingTransportCondition(models.Model): + _name = "stock.picking.transport.condition" + _description = "Condition of Transport" + _order = "sequence, name, id" + + active = fields.Boolean(default=True) + sequence = fields.Integer(string="Sequence", index=True, default=10) + name = fields.Char( + string="Condition name", + index=True, + required=True, + translate=True, + ) + price_to_show = fields.Selection( + PRICES_TO_SHOW, + string="Price to show", + required=True, + default=DOMAIN_PRICES_TO_SHOW[0], + ) + + # + # TODO: Capire come dev'essere utilizzato questo campo. + # Deve influenzare il comportamento del campo "prezzo" + # solo ed esclusivamente nelle stampe del DdT? + # + + note = fields.Html(string="Internal note") + + _sql_constraints = [ + ("name_uniq", "unique(name)", "This condition of transport already exists!") + ] diff --git a/l10n_it_delivery_note_base/models/stock_picking_transport_method.py b/l10n_it_delivery_note_base/models/stock_picking_transport_method.py new file mode 100644 index 000000000000..6e46ea43405f --- /dev/null +++ b/l10n_it_delivery_note_base/models/stock_picking_transport_method.py @@ -0,0 +1,28 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# @author: Giuseppe Borruso +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class StockPickingTransportMethod(models.Model): + _name = "stock.picking.transport.method" + _description = "Method of Transport" + _order = "sequence, name, id" + + active = fields.Boolean(default=True) + sequence = fields.Integer(string="Sequence", index=True, default=10) + name = fields.Char( + string="Method name", + index=True, + required=True, + translate=True, + ) + note = fields.Html(string="Internal note") + + _sql_constraints = [ + ("name_uniq", "unique(name)", "This method of transport already exists!") + ] diff --git a/l10n_it_delivery_note_base/models/stock_picking_transport_reason.py b/l10n_it_delivery_note_base/models/stock_picking_transport_reason.py new file mode 100644 index 000000000000..b7b36618b55e --- /dev/null +++ b/l10n_it_delivery_note_base/models/stock_picking_transport_reason.py @@ -0,0 +1,28 @@ +# Copyright 2014-2019 Dinamiche Aziendali srl +# (http://www.dinamicheaziendali.it/) +# @author: Marco Calcagni +# @author: Gianmarco Conte +# @author: Giuseppe Borruso +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class StockPickingTransportReason(models.Model): + _name = "stock.picking.transport.reason" + _description = "Reason of Transport" + _order = "sequence, name, id" + + active = fields.Boolean(default=True) + sequence = fields.Integer(string="Sequence", index=True, default=10) + name = fields.Char( + string="Reason name", + index=True, + required=True, + translate=True, + ) + note = fields.Html(string="Internal note") + + _sql_constraints = [ + ("name_uniq", "unique(name)", "This reason of transport already exists!") + ] diff --git a/l10n_it_delivery_note_base/readme/CONTRIBUTORS.rst b/l10n_it_delivery_note_base/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..c29befc2a353 --- /dev/null +++ b/l10n_it_delivery_note_base/readme/CONTRIBUTORS.rst @@ -0,0 +1,8 @@ +* Riccardo Bellanova +* Matteo Bilotta +* Giuseppe Borruso +* Marco Calcagni +* Marco Colombo +* Gianmarco Conte +* Letizia Freda +* Andrea Piovesana diff --git a/l10n_it_delivery_note_base/readme/DESCRIPTION.rst b/l10n_it_delivery_note_base/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..d7e3f0b67277 --- /dev/null +++ b/l10n_it_delivery_note_base/readme/DESCRIPTION.rst @@ -0,0 +1,15 @@ +**English** + +This module is base layer. + +Within there are principal tables, +so anybody can use it with another modules. + + +**Italiano** + +Questo modulo è un livello base. + +All'interno ci sono le tabelle principali, +in modo che chiunque possa usarlo con altri +moduli. diff --git a/l10n_it_delivery_note_base/security/ir.model.access.csv b/l10n_it_delivery_note_base/security/ir.model.access.csv new file mode 100644 index 000000000000..55508a83afb4 --- /dev/null +++ b/l10n_it_delivery_note_base/security/ir.model.access.csv @@ -0,0 +1,6 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_stock_delivery_note_type,access_stock_delivery_note_type,model_stock_delivery_note_type,base.group_user,1,0,0,0 +access_stock_picking_goods_appearance,access_stock_picking_goods_appearance,model_stock_picking_goods_appearance,base.group_user,1,0,0,0 +access_stock_picking_transport_condition,access_stock_picking_transport_condition,model_stock_picking_transport_condition,base.group_user,1,0,0,0 +access_stock_picking_transport_method,access_stock_picking_transport_method,model_stock_picking_transport_method,base.group_user,1,0,0,0 +access_stock_picking_transport_reason,access_stock_picking_transport_reason,model_stock_picking_transport_reason,base.group_user,1,0,0,0 diff --git a/l10n_it_delivery_note_base/security/ir_module_category.xml b/l10n_it_delivery_note_base/security/ir_module_category.xml new file mode 100644 index 000000000000..3b7925c17443 --- /dev/null +++ b/l10n_it_delivery_note_base/security/ir_module_category.xml @@ -0,0 +1,18 @@ + + + + + + + Inventory settings + Define some other extra rights on inventory management. + 10 + + + + diff --git a/l10n_it_delivery_note_base/security/ir_rule.xml b/l10n_it_delivery_note_base/security/ir_rule.xml new file mode 100644 index 000000000000..8e654c0f720a --- /dev/null +++ b/l10n_it_delivery_note_base/security/ir_rule.xml @@ -0,0 +1,16 @@ + + + + + + Delivery note type multi-company + + + ['|',('company_id','=',False),('company_id','in',company_ids)] + + + + diff --git a/l10n_it_delivery_note_base/security/res_groups.xml b/l10n_it_delivery_note_base/security/res_groups.xml new file mode 100644 index 000000000000..2d8e828a1c16 --- /dev/null +++ b/l10n_it_delivery_note_base/security/res_groups.xml @@ -0,0 +1,13 @@ + + + + + + Show product information in delivery note lines + + + + diff --git a/l10n_it_delivery_note_base/security/res_users.xml b/l10n_it_delivery_note_base/security/res_users.xml new file mode 100644 index 000000000000..f6c6bff1bee2 --- /dev/null +++ b/l10n_it_delivery_note_base/security/res_users.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/l10n_it_delivery_note_base/static/description/icon.png b/l10n_it_delivery_note_base/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_delivery_note_base/static/description/icon.png differ diff --git a/l10n_it_delivery_note_base/static/description/index.html b/l10n_it_delivery_note_base/static/description/index.html new file mode 100644 index 000000000000..20ffe9145355 --- /dev/null +++ b/l10n_it_delivery_note_base/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +ITA - Documento di trasporto - Base + + + +
+

ITA - Documento di trasporto - Base

+ + +

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

+

English

+

This module is base layer.

+

Within there are principal tables, +so anybody can use it with another modules.

+

Italiano

+

Questo modulo è un livello base.

+

All’interno ci sono le tabelle principali, +in modo che chiunque possa usarlo con altri +moduli.

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Marco Calcagni
  • +
  • Gianmarco Conte
  • +
  • Link IT Europe Srl
  • +
+
+
+

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 maintainers:

+

As400it Byloth

+

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_delivery_note_base/views/stock_delivery_note_type.xml b/l10n_it_delivery_note_base/views/stock_delivery_note_type.xml new file mode 100644 index 000000000000..cbb86d654a39 --- /dev/null +++ b/l10n_it_delivery_note_base/views/stock_delivery_note_type.xml @@ -0,0 +1,79 @@ + + + + + stock.delivery.note.type.form + stock.delivery.note.type + form + +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + stock.delivery.note.type.tree + stock.delivery.note.type + + + + +