diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst new file mode 100644 index 000000000..aba90434f --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/README.rst @@ -0,0 +1,104 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +======================================== +Romania - Stock Picking Comment Template +======================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:edd7d090dffe623db7870c2e1bd6830ef5984f0e114415b405813de4526f827f + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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--romania-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_stock_picking_comment_template + :alt: OCA/l10n-romania +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_stock_picking_comment_template + :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-romania&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds templates for stock picking report according to +Romanian Legislation. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1. Go to Inventory -> Configuration -> Stock Picking Comment +2. Open the template that you want to modify +3. Change the Comment field with the text that you want to be printed in + the Stock Picking Report + +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 +======= + +Authors +------- + +* NextERP Romania + +Contributors +------------ + +- `NextERP Romania `__: + + - Fekete Mihai + +Do not contact contributors directly about support or help with +technical issues. + +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-feketemihai| image:: https://github.com/feketemihai.png?size=40px + :target: https://github.com/feketemihai + :alt: feketemihai + +Current `maintainer `__: + +|maintainer-feketemihai| + +This module is part of the `OCA/l10n-romania `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_ro_stock_picking_comment_template/__init__.py b/l10n_ro_stock_picking_comment_template/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py new file mode 100644 index 000000000..17f3e419f --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/__manifest__.py @@ -0,0 +1,29 @@ +# Copyright (C) 2025 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Romania - Stock Picking Comment Template", + "category": "Localization", + "summary": """ + This model is going to add a a header and a footer at picking report + depeding on the operation type. + """, + "depends": [ + "l10n_ro_stock_account", + "base_comment_template", + ], + "data": [ + "data/l10n_ro_stock_picking_comment_template.xml", + "views/stock_picking_view.xml", + "views/base_comment_template_view.xml", + "views/report_delivery_document.xml", + "views/report_picking.xml", + "security/ir.model.access.csv", + ], + "license": "AGPL-3", + "version": "19.0.1.0.0", + "author": "NextERP Romania,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-romania", + "installable": True, + "development_status": "Beta", + "maintainers": ["feketemihai"], +} diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml new file mode 100644 index 000000000..4b67f5d02 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml @@ -0,0 +1,283 @@ + + + + + + + Romania - Comment for Delivery + Internal Transfer Before Lines + + before_lines + stock.picking + + + [['location_dest_id.usage','not in',['usage_giving','consume','production']], + ['is_l10n_ro_record', '=', True], + '|',['picking_type_code', '=', 'outgoing'],['picking_type_code', '=', 'internal']] + + + Delivery Order + + + + + + + + + + + + + + + + +
+ Source Location + + Destination Location +
+ + + +
+
+ ]]> +
+
+ + + + Romania - Comment for Delivery After Lines + after_lines + stock.picking + + [['location_dest_id.usage','not in',['usage_giving','consume','production','internal']], + ['is_l10n_ro_record', '=', True], + '|',['picking_type_code', '=','outgoing'],['picking_type_code', '=', 'internal']] + + +
+

+ + + + + + + + + + + + + + +
ElaborateInformation for deliverySignature reception
+ Name: + +
Delegate:
+
B.I./C.I.:
+
Mean Transport:
+
Date: Hour:
+
]]> +
+
+ + + + Romania - Comment for Reception Before Lines + before_lines + stock.picking + + + [['picking_type_code', '=', 'incoming'], ['is_l10n_ro_record', '=', True]] + + Reception Note and Differences + The undersigned, members of the reception commission, I received the material values provided by: + , + delegate: , + car no.: , + based on the accompanying documents: + + , noting: + ]]> + + + + Romania - Comment for Reception After Lines + after_lines + stock.picking + + [['picking_type_code', '=', 'incoming'], ['is_l10n_ro_record', '=', True]] + +
+

+ + + + + + + + + + + + + + + + + +
Members of the reception commissionSignatureStock responsibleSignature
+

+


+

+
+

+


+

+
+ + +

+


+

+
]]> +
+
+ + + + Romania - Comment for Consume Voucher Before Lines + before_lines + stock.picking + + + [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']], + ['is_l10n_ro_record', '=', True]] + + + Consume Voucher + + ]]> + + + + + + Romania - Comment for Usage Giving Before Lines + before_lines + stock.picking + + + [['location_id.usage','=','internal'],['location_dest_id.usage','=','usage_giving'], ['is_l10n_ro_record', + '=', True]] + + + Usage Giving Report + + ]]> + + + + Romania - Comment for Consume Voucher After Lines + after_lines + stock.picking + + + [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']], + ['is_l10n_ro_record', '=', True]] + + +
+

+ + + + + + + + + + + + + + +
ElaborateGiver signatureDate
+ Name: + +
]]> +
+
+ + + Romania - Comment for Internal Transfer Voucher After Lines + + after_lines + stock.picking + + [['location_id.usage','=','internal'],['location_dest_id.usage','in',['usage_giving','internal']], + ['is_l10n_ro_record', '=', True]] + + +
+

+ + + + + + + + + + + + + + +
ElaborateGiver signatureReceiver signature
+ Name: + +
]]> +
+
+
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot new file mode 100644 index 000000000..ef5eb4c58 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot @@ -0,0 +1,312 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ro_stock_picking_comment_template +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up +msgid "" +"\n" +"

\n" +" Consume Voucher\n" +"

\n" +" \n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer +msgid "" +"\n" +"

\n" +" Delivery Order\n" +"

\n" +"\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
\n" +" Source Location\n" +" \n" +" Destination Location\n" +"
\n" +" \n" +" \n" +" \n" +"
\n" +"
\n" +" \n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up +msgid "" +"\n" +"

\n" +" Usage Giving Report\n" +"

\n" +" \n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up +msgid "" +"\n" +"

Reception Note and Differences

\n" +" The undersigned, members of the reception commission, I received the material values provided by:\n" +" ,\n" +" delegate: ,\n" +" car no.: ,\n" +" based on the accompanying documents: \n" +" \n" +" , noting:\n" +" \n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateGiver signatureDate
\n" +" Name: \n" +" \n" +"
\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateGiver signatureReceiver signature
\n" +" Name: \n" +" \n" +"
\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateInformation for deliverySignature reception
\n" +" Name: \n" +" \n" +"
Delegate:
\n" +"
B.I./C.I.:
\n" +"
Mean Transport:
\n" +"
Date: Hour:
\n" +"
\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Members of the reception commissionSignatureStock responsibleSignature
\n" +"

\n" +"


\n" +"

\n" +"
\n" +"

\n" +"


\n" +"

\n" +"
\n" +" \n" +" \n" +"

\n" +"


\n" +"

\n" +"
\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer +msgid "" +"\n" +" Romania - Comment for Delivery + Internal Transfer Before Lines\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids +msgid "Comment Template" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model_terms:ir.ui.view,arch_db:l10n_ro_stock_picking_comment_template.stock_picking_form_add_comment +msgid "Comments" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id +msgid "Delegate" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_mean_transp +msgid "Mean transport" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down +msgid "Romania - Comment for Consume Voucher After Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up +msgid "Romania - Comment for Consume Voucher Before Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down +msgid "Romania - Comment for Delivery After Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down +msgid "" +"Romania - Comment for Internal Transfer Voucher After Lines\n" +" " +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down +msgid "Romania - Comment for Reception After Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up +msgid "Romania - Comment for Reception Before Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up +msgid "Romania - Comment for Usage Giving Before Lines" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template +#: model:ir.ui.menu,name:l10n_ro_stock_picking_comment_template.menu_base_comment_template_picking +msgid "Romanian Stock Picking Comments" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking +msgid "Transfer" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp +#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp +msgid "" +"Visible only in pickings, and can be modify only from there;is keeping all " +"the time the last not null value" +msgstr "" diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po new file mode 100644 index 000000000..773bf9b97 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po @@ -0,0 +1,490 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ro_stock_picking_comment_template +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-04-04 11:43+0000\n" +"PO-Revision-Date: 2024-05-22 19:15+0300\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.0.1\n" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up +msgid "" +"\n" +"

\n" +" Consume Voucher\n" +"

\n" +" \n" +" " +msgstr "" +"\n" +"

\n" +" Bon de Consum\n" +"

\n" +" \n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer +msgid "" +"\n" +"

\n" +" Delivery Order\n" +"

\n" +"\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
\n" +" Source Location\n" +" \n" +" Destination Location\n" +"
\n" +" \n" +" \n" +" \n" +"
\n" +"
\n" +" \n" +" " +msgstr "" +"\n" +"

\n" +" Aviz de Însoțire a Mărfii\n" +"

\n" +"\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
\n" +" Locație Sursă\n" +" \n" +" Locație Destinație\n" +"
\n" +" \n" +" \n" +" \n" +"
\n" +"
\n" +" \n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up +msgid "" +"\n" +"

\n" +" Usage Giving Report\n" +"

\n" +" \n" +" " +msgstr "" +"\n" +"

\n" +" Proces Verbal - Dare in Folosinta\n" +"

\n" +" \n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up +msgid "" +"\n" +"

Reception Note and Differences

\n" +" The undersigned, members of the reception commission, I received the material values provided by:\n" +" ,\n" +" delegate: ,\n" +" car no.: ,\n" +" based on the accompanying documents: \n" +" \n" +" , noting:\n" +" \n" +" " +msgstr "" +"\n" +"

Notă de Intrare si Recepție

\n" +" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n" +" ,\n" +" delegat: ,\n" +" auto nr.: ,\n" +" pe baza documentelor insoțitoare: \n" +" \n" +" , constatand:\n" +" \n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateGiver signatureDate
\n" +" Name: \n" +" \n" +"
\n" +" " +msgstr "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Intocmit deSemnatura predareData
\n" +" Name: \n" +" \n" +"
\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateGiver signatureReceiver signature
\n" +" Name: \n" +" \n" +"
\n" +" " +msgstr "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Intocmit deSemnatura predareSemnatura primire
\n" +" Name: \n" +" \n" +"
\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
ElaborateInformation for deliverySignature reception
\n" +" Name: \n" +" \n" +"
Delegate:
\n" +"
B.I./C.I.:
\n" +"
Mean Transport:
\n" +"
Date: Hour:
\n" +"
\n" +" " +msgstr "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Intocmit deInformatii LivrareSemnatura primire
\n" +" Nume: \n" +" \n" +"
Delegat:
\n" +"
B.I./C.I.:
\n" +"
Mijloc Transport:
\n" +"
Data: Ora:
\n" +"
\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down +msgid "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Members of the reception commissionSignatureStock responsibleSignature
\n" +"

\n" +"


\n" +"

\n" +"
\n" +"

\n" +"


\n" +"

\n" +"
\n" +" \n" +" \n" +"

\n" +"


\n" +"

\n" +"
\n" +" " +msgstr "" +"\n" +"

\n" +"
\n" +"

\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +"
Membrii ai comisiei de receptieSemnaturaGestionarSemnatura
\n" +"

\n" +"


\n" +"

\n" +"
\n" +"

\n" +"


\n" +"

\n" +"
\n" +" \n" +" \n" +"

\n" +"


\n" +"

\n" +"
\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer +msgid "" +"\n" +" Romania - Comment for Delivery + Internal Transfer Before Lines\n" +" " +msgstr "" +"\n" +" Comentariu pentru livrare + transfer intern înainte de linii\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids +msgid "Comment Template" +msgstr "Șablon comentariu" + +#. module: l10n_ro_stock_picking_comment_template +#: model_terms:ir.ui.view,arch_db:l10n_ro_stock_picking_comment_template.stock_picking_form_add_comment +msgid "Comments" +msgstr "Comentarii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id +msgid "Delegate" +msgstr "Delegat" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp +#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_mean_transp +msgid "Mean transport" +msgstr "Mijloc de Transport" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down +msgid "Romania - Comment for Consume Voucher After Lines" +msgstr "Comentariu pentru bonuri de consum dupa linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up +msgid "Romania - Comment for Consume Voucher Before Lines" +msgstr "Comentariu pentru bonuri de consum inainte de linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down +msgid "Romania - Comment for Delivery After Lines" +msgstr "Comentariu pentru avize de livrare dupa linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down +msgid "" +"Romania - Comment for Internal Transfer Voucher After Lines\n" +" " +msgstr "" +"Comentariu pentru transferuri interne dupa linii\n" +" " + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down +msgid "Romania - Comment for Reception After Lines" +msgstr "Comentariu pentru receptii dupa linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up +msgid "Romania - Comment for Reception Before Lines" +msgstr "Comentariu pentru receptii inainte de linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up +msgid "Romania - Comment for Usage Giving Before Lines" +msgstr "Comentariu pentru proces dare in folosinta inainte de linii" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template +#: model:ir.ui.menu,name:l10n_ro_stock_picking_comment_template.menu_base_comment_template_picking +msgid "Romanian Stock Picking Comments" +msgstr "Comentarii Transferuri Stoc" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking +msgid "Transfer" +msgstr "" + +#. module: l10n_ro_stock_picking_comment_template +#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp +#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp +msgid "" +"Visible only in pickings, and can be modify only from there;is keeping all " +"the time the last not null value" +msgstr "" +"Vizibil doar în transferuri stoc, și poate fi modificat doar de acolo; isi " +"păstreaza ultima valoare nenulă" diff --git a/l10n_ro_stock_picking_comment_template/models/__init__.py b/l10n_ro_stock_picking_comment_template/models/__init__.py new file mode 100644 index 000000000..548fc596a --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_partner +from . import stock_picking diff --git a/l10n_ro_stock_picking_comment_template/models/res_partner.py b/l10n_ro_stock_picking_comment_template/models/res_partner.py new file mode 100644 index 000000000..15ef351d1 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/models/res_partner.py @@ -0,0 +1,13 @@ +# Copyright (C) 2021 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + l10n_ro_mean_transp = fields.Char( + string="Mean transport", + help="Visible only in pickings, and can be modify only from there;" + "is keeping all the time the last not null value", + ) diff --git a/l10n_ro_stock_picking_comment_template/models/stock_picking.py b/l10n_ro_stock_picking_comment_template/models/stock_picking.py new file mode 100644 index 000000000..9f4c9d83d --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/models/stock_picking.py @@ -0,0 +1,54 @@ +# Copyright (C) 2021 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +import logging + +from odoo import api, fields, models +from odoo.tools.safe_eval import safe_eval + +_logger = logging.getLogger(__name__) + + +class StockPicking(models.Model): + _inherit = ["stock.picking", "comment.template"] + _name = "stock.picking" + + l10n_ro_delegate_id = fields.Many2one("res.partner", string="Delegate") + l10n_ro_mean_transp = fields.Char(string="Mean transport") + + @api.onchange("l10n_ro_delegate_id") + def on_change_delegate_id(self): + if self.l10n_ro_delegate_id: + self.l10n_ro_mean_transp = self.l10n_ro_delegate_id.l10n_ro_mean_transp + + def write(self, vals): + "if modified the l10n_ro_mean_transp will write into delegate" + l10n_ro_mean_transp = vals.get("l10n_ro_mean_transp", False) + l10n_ro_delegate_id = vals.get("l10n_ro_delegate_id", False) + if l10n_ro_mean_transp and l10n_ro_delegate_id: + if ( + l10n_ro_mean_transp + != self.env["res.partner"] + .sudo() + .browse(l10n_ro_delegate_id) + .l10n_ro_mean_transp + ): + self.env["res.partner"].sudo().browse(l10n_ro_delegate_id).write( + {"l10n_ro_mean_transp": l10n_ro_mean_transp} + ) + return super().write(vals) + + @api.depends("picking_type_id") + def _compute_comment_template_ids(self): + res = super()._compute_comment_template_ids() + for record in self.filtered(lambda r: not r.comment_template_ids): + templates = self.env["base.comment.template"].search( + [ + ("partner_ids", "=", False), + ("models", "=", self._name), + ] + ) + for template in templates: + domain = safe_eval(template.domain) + if not domain or record.filtered_domain(domain): + record.comment_template_ids = [(4, template.id)] + return res diff --git a/l10n_ro_stock_picking_comment_template/pyproject.toml b/l10n_ro_stock_picking_comment_template/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..5dbaf6732 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- [NextERP Romania](https://www.nexterp.ro): + - Fekete Mihai \<\> + +Do not contact contributors directly about support or help with +technical issues. diff --git a/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md new file mode 100644 index 000000000..db3208557 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds templates for stock picking report according to +Romanian Legislation. diff --git a/l10n_ro_stock_picking_comment_template/readme/USAGE.md b/l10n_ro_stock_picking_comment_template/readme/USAGE.md new file mode 100644 index 000000000..dd0a880f3 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/readme/USAGE.md @@ -0,0 +1,6 @@ +To use this module, you need to: + +1. Go to Inventory -\> Configuration -\> Stock Picking Comment +2. Open the template that you want to modify +3. Change the Comment field with the text that you want to be printed + in the Stock Picking Report diff --git a/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv b/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv new file mode 100644 index 000000000..ba945d53d --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_base_comment_template_stock_user,access_base_comment_template stock_user,base_comment_template.model_base_comment_template,stock.group_stock_user,1,0,0,0 +access_base_comment_template_stock_manager,access_base_comment_template stock_manager,base_comment_template.model_base_comment_template,stock.group_stock_manager,1,1,1,1 diff --git a/l10n_ro_stock_picking_comment_template/static/description/icon.png b/l10n_ro_stock_picking_comment_template/static/description/icon.png new file mode 100644 index 000000000..7ba9c1019 Binary files /dev/null and b/l10n_ro_stock_picking_comment_template/static/description/icon.png differ diff --git a/l10n_ro_stock_picking_comment_template/static/description/icon.svg b/l10n_ro_stock_picking_comment_template/static/description/icon.svg new file mode 100644 index 000000000..a7a26d093 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/static/description/icon.svg @@ -0,0 +1,79 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/l10n_ro_stock_picking_comment_template/static/description/index.html b/l10n_ro_stock_picking_comment_template/static/description/index.html new file mode 100644 index 000000000..b6bc8835b --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/static/description/index.html @@ -0,0 +1,127 @@ +
+
+
+

Module name

+

This module was written to extend the functionality of ... to support ... and allow you to ...

+
+
+
+ +
+
+
+

Installation

+
+
+

To install this module, you need to: +

    +
  • ...
  • +
+

+
+
+
+ + + +
+
+
+
+ +
+
+
+

Configuration

+
+
+

To configure this module, you need to: +

    +
  • ...
  • +
+

+
+
+
+ + + +
+
+
+
+ +
+
+
+

Usage

+
+
+

To use this module, you need to: +

    +
  • ...
  • +
+

+

For further information, please visit: +

+

+
+
+
+ + + +
+
+
+
+ +
+
+
+

Known issues / Roadmap

+
+
+

+

    +
  • if the model stock_picking_repot_valued is is installed after this module will not work as intended +
  • in this module we overwrite the field valued = fields.Boolean(related="partner_id.valued_picking", readonly=True) not to be partner related +
  • we didn't put dependency on this module because that module is dependent on stock_account that is maybe not used +
  • +
+

+
+
+
+ + + +
+
+
+
+ +
+
+
+

Credits

+
+
+

Contributors

+ +
+
+

Maintainer

+

+ This module is maintained by the OCA.
+ 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.
+ To contribute to this module, please visit http://odoo-community.org.
+ +

+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml new file mode 100644 index 000000000..e8264921e --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml @@ -0,0 +1,20 @@ + + + + Romanian Stock Picking Comments + ir.actions.act_window + base.comment.template + list,form + + + + + + Romanian Stock Picking Comments + + + + diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml new file mode 100644 index 000000000..d8c084f4f --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml @@ -0,0 +1,32 @@ + + + + diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml new file mode 100644 index 000000000..3019a5e83 --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml @@ -0,0 +1,29 @@ + + + + diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml new file mode 100644 index 000000000..04c21a4de --- /dev/null +++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml @@ -0,0 +1,31 @@ + + + + view_picking_add_delegate_form + stock.picking + + + + + + + + + + + comment_template.stock.picking.form + stock.picking + + + + + + + + + +