-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
[16.0][ADD] stock_picking_report_remaining_quantities: In out stock p…
…icking report print or not ""Remaining Quantities" information.
1 parent
454d6c7
commit 6f126d7
Showing
14 changed files
with
256 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...picking_report_remaining_quantities/odoo/addons/stock_picking_report_remaining_quantities
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 @@ | ||
../../../../stock_picking_report_remaining_quantities |
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=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,30 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========================================= | ||
Stock Picking Report Remaining Quantities | ||
========================================= | ||
|
||
* In Company form view new field "Print Remaining Quantities". | ||
* Printing "Out Pickings", the value of this field will be taken into account | ||
for printing "Remaining Quantities" information. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/avanzosc/odoo-addons/issues>`_. In case of trouble, | ||
please check there if your issue has already been reported. If you spotted | ||
it first, help us smash it by providing detailed and welcomed feedback. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Ana Juaristi <[email protected]> | ||
* Alfredo de la Fuente <[email protected]> |
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,18 @@ | ||
# Copyright 2025 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Stock Picking Report Remaining Quantities", | ||
"version": "16.0.1.0.0", | ||
"author": "AvanzOSC", | ||
"category": "Inventory/Inventory", | ||
"website": "https://github.com/avanzosc/odoo-addons", | ||
"depends": [ | ||
"stock", | ||
], | ||
"data": [ | ||
"views/res_company_view.xml", | ||
"report/stock_picking_report.xml", | ||
], | ||
"license": "AGPL-3", | ||
"installable": 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,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_picking_report_remaining_quantities | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-27 11:26+0000\n" | ||
"PO-Revision-Date: 2025-01-27 11:26+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: stock_picking_report_remaining_quantities | ||
#: model:ir.model,name:stock_picking_report_remaining_quantities.model_res_company | ||
msgid "Companies" | ||
msgstr "Empreses" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model:ir.model.fields,field_description:stock_picking_report_remaining_quantities.field_res_company__print_remaining_quantities | ||
msgid "Print Remaining Quantities" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_remaining_quantities.view_company_form | ||
msgid "printing Outgoing Picking" | ||
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,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_picking_report_remaining_quantities | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-27 11:26+0000\n" | ||
"PO-Revision-Date: 2025-01-27 11:26+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: stock_picking_report_remaining_quantities | ||
#: model:ir.model,name:stock_picking_report_remaining_quantities.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model:ir.model.fields,field_description:stock_picking_report_remaining_quantities.field_res_company__print_remaining_quantities | ||
msgid "Print Remaining Quantities" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_remaining_quantities.view_company_form | ||
msgid "printing Outgoing Picking" | ||
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,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_picking_report_remaining_quantities | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-27 11:27+0000\n" | ||
"PO-Revision-Date: 2025-01-27 11:27+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: stock_picking_report_remaining_quantities | ||
#: model:ir.model,name:stock_picking_report_remaining_quantities.model_res_company | ||
msgid "Companies" | ||
msgstr "Compañías" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model:ir.model.fields,field_description:stock_picking_report_remaining_quantities.field_res_company__print_remaining_quantities | ||
msgid "Print Remaining Quantities" | ||
msgstr "Imprimir cantidades faltantes" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_remaining_quantities.view_company_form | ||
msgid "printing Outgoing Picking" | ||
msgstr "Impresión albaranes salida" |
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 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_picking_report_remaining_quantities | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-27 11:26+0000\n" | ||
"PO-Revision-Date: 2025-01-27 11:26+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: stock_picking_report_remaining_quantities | ||
#: model:ir.model,name:stock_picking_report_remaining_quantities.model_res_company | ||
msgid "Companies" | ||
msgstr "Sociétés" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model:ir.model.fields,field_description:stock_picking_report_remaining_quantities.field_res_company__print_remaining_quantities | ||
msgid "Print Remaining Quantities" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_remaining_quantities.view_company_form | ||
msgid "printing Outgoing Picking" | ||
msgstr "" |
31 changes: 31 additions & 0 deletions
31
stock_picking_report_remaining_quantities/i18n/stock_picking_report_remaining_quantities.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,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_picking_report_remaining_quantities | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-27 11:25+0000\n" | ||
"PO-Revision-Date: 2025-01-27 11:25+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: stock_picking_report_remaining_quantities | ||
#: model:ir.model,name:stock_picking_report_remaining_quantities.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model:ir.model.fields,field_description:stock_picking_report_remaining_quantities.field_res_company__print_remaining_quantities | ||
msgid "Print Remaining Quantities" | ||
msgstr "" | ||
|
||
#. module: stock_picking_report_remaining_quantities | ||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_remaining_quantities.view_company_form | ||
msgid "printing Outgoing Picking" | ||
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 res_company |
9 changes: 9 additions & 0 deletions
9
stock_picking_report_remaining_quantities/models/res_company.py
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,9 @@ | ||
# Copyright 2025 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
from odoo import fields, models | ||
|
||
|
||
class ResCompany(models.Model): | ||
_inherit = "res.company" | ||
|
||
print_remaining_quantities = fields.Boolean(default=True) |
16 changes: 16 additions & 0 deletions
16
stock_picking_report_remaining_quantities/report/stock_picking_report.xml
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,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template id="report_delivery_document" inherit_id="stock.report_delivery_document"> | ||
<t t-set="backorders" position="after"> | ||
<t | ||
t-set="print_remaining_quantities" | ||
t-value="(o.picking_type_code == 'outgoing' and o.company_id.print_remaining_quantities) or False" | ||
/> | ||
</t> | ||
<t t-if="o.backorder_ids and backorders" position="attributes"> | ||
<attribute | ||
name="t-if" | ||
>o.backorder_ids and backorders and print_remaining_quantities</attribute> | ||
</t> | ||
</template> | ||
</odoo> |
19 changes: 19 additions & 0 deletions
19
stock_picking_report_remaining_quantities/views/res_company_view.xml
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,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="view_company_form" model="ir.ui.view"> | ||
<field name="model">res.company</field> | ||
<field name="inherit_id" ref="base.view_company_form" /> | ||
<field name="arch" type="xml"> | ||
<notebook position="inside"> | ||
<page name="print-out-picking" string="printing Outgoing Picking"> | ||
<group> | ||
<group> | ||
<field name="print_remaining_quantities" /> | ||
</group> | ||
<group /> | ||
</group> | ||
</page> | ||
</notebook> | ||
</field> | ||
</record> | ||
</odoo> |