Skip to content

Commit

Permalink
[16.0][ADD] stock_picking_report_remaining_quantities: In out stock p…
Browse files Browse the repository at this point in the history
…icking report print or not ""Remaining Quantities" information.
alfredoavanzosc authored and anajuaristi committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 454d6c7 commit 6f126d7
Showing 14 changed files with 256 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_report_remaining_quantities/setup.py
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,
)
30 changes: 30 additions & 0 deletions stock_picking_report_remaining_quantities/README.rst
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]>
1 change: 1 addition & 0 deletions stock_picking_report_remaining_quantities/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions stock_picking_report_remaining_quantities/__manifest__.py
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,
}
31 changes: 31 additions & 0 deletions stock_picking_report_remaining_quantities/i18n/ca_ES.po
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 ""
31 changes: 31 additions & 0 deletions stock_picking_report_remaining_quantities/i18n/en_US.po
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 ""
31 changes: 31 additions & 0 deletions stock_picking_report_remaining_quantities/i18n/es.po
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"
31 changes: 31 additions & 0 deletions stock_picking_report_remaining_quantities/i18n/fr.po
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 ""
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 ""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_company
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)
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>
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>

0 comments on commit 6f126d7

Please sign in to comment.