mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
@@ -0,0 +1 @@
|
||||
../../../../stock_picking_report_summary
|
||||
6
setup/stock_picking_report_summary/setup.py
Normal file
6
setup/stock_picking_report_summary/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
113
stock_picking_report_summary/README.rst
Normal file
113
stock_picking_report_summary/README.rst
Normal file
@@ -0,0 +1,113 @@
|
||||
============================
|
||||
Stock Picking Report Summary
|
||||
============================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:55007a3115945f634dc0c35e3cc2e359b6ecb6f2ad8145726e87a3411af3c028
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |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%2Fstock--logistics--reporting-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_picking_report_summary
|
||||
:alt: OCA/stock-logistics-reporting
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_summary
|
||||
: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/stock-logistics-reporting&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
Select several Pickings to print a PDF summary with two sheets :
|
||||
|
||||
* Products Summary (where the total sum is calculated for each product)
|
||||
|
||||
* Detail Part (each delivery is detailed product by product, with lines at 0 printed in grey)
|
||||
|
||||
You can choose to print standard prices or not (can be useful to check some
|
||||
values when you prepare your pickings).
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to
|
||||
|
||||
* Go to Inventory
|
||||
|
||||
* Choose a Operation
|
||||
|
||||
* Select any pickings and click on 'Action' / 'Picking Summary'
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/new_print_action.png
|
||||
|
||||
* Choose your options
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/wizard.png
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/pdf_report.png
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/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 <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_summary%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* Grap
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Quentin DUPONT (quentin.dupont@grap.coop)
|
||||
|
||||
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-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px
|
||||
:target: https://github.com/quentinDupont
|
||||
:alt: quentinDupont
|
||||
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
|
||||
:target: https://github.com/legalsylvain
|
||||
:alt: legalsylvain
|
||||
|
||||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-quentinDupont| |maintainer-legalsylvain|
|
||||
|
||||
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_picking_report_summary>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
1
stock_picking_report_summary/__init__.py
Normal file
1
stock_picking_report_summary/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import wizards
|
||||
24
stock_picking_report_summary/__manifest__.py
Normal file
24
stock_picking_report_summary/__manifest__.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Quentin DUPONT (quentin.dupont@grap.coop)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Stock Picking Report Summary",
|
||||
"summary": "Stock Picking Report Summary",
|
||||
"version": "16.0.1.0.0",
|
||||
"author": "Grap, " "Odoo Community Association (OCA)",
|
||||
"maintainers": ["quentinDupont", "legalsylvain"],
|
||||
"website": "https://github.com/OCA/stock-logistics-reporting",
|
||||
"category": "Warehouse Management",
|
||||
"license": "AGPL-3",
|
||||
"depends": [
|
||||
"stock",
|
||||
],
|
||||
"data": [
|
||||
"security/ir.model.access.csv",
|
||||
"reports/report_print_picking_summary.xml",
|
||||
"reports/report_print_picking_summary_template.xml",
|
||||
"wizards/view_picking_summary_wizard.xml",
|
||||
],
|
||||
"installable": True,
|
||||
}
|
||||
226
stock_picking_report_summary/i18n/fr.po
Normal file
226
stock_picking_report_summary/i18n/fr.po
Normal file
@@ -0,0 +1,226 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * stock_picking_report_summary
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-03-15 14:52+0000\n"
|
||||
"PO-Revision-Date: 2024-03-15 14:52+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_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.view_picking_summary_wizard_form
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Category"
|
||||
msgstr "Catégorie"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__standard_price
|
||||
msgid "Cost"
|
||||
msgstr "Coût"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__create_uid
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__create_uid
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Créé par"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__create_date
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__create_date
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Créé le"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__display_name
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__display_name
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom affiché"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.view_picking_summary_wizard_form
|
||||
msgid "For Pickings details"
|
||||
msgstr "Pour les détails des livraisons"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.view_picking_summary_wizard_form
|
||||
msgid "For Summary"
|
||||
msgstr "Pour le résumé"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.view_picking_summary_wizard_form
|
||||
msgid "General informations"
|
||||
msgstr "Informations générales"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__id
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__id
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,help:stock_picking_report_summary.field_picking_summary_wizard_product__standard_price
|
||||
msgid ""
|
||||
"In Standard Price & AVCO: value of the product (automatically computed in AVCO).\n"
|
||||
" In FIFO: value of the next unit that will leave the stock (automatically computed).\n"
|
||||
" Used to value the product when the purchase cost is not known (e.g. inventory adjustment).\n"
|
||||
" Used to compute margins on sale orders."
|
||||
msgstr ""
|
||||
"Également utilisé comme prix de base pour les listes. Exprimé dans l'unité "
|
||||
"de mesure par défaut du produit."
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard____last_update
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking____last_update
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification le"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__write_uid
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__write_uid
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Dernière mise à jour par"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__write_date
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__write_date
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Dernière mise à jour le"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__picking_line_qty
|
||||
msgid "Number of Selected Picking"
|
||||
msgstr "Quantité sélectionnée"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__picking_id
|
||||
msgid "Picking"
|
||||
msgstr "Livraison"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__picking_line_ids
|
||||
msgid "Picking Line"
|
||||
msgstr "Ligne de bon de livraison"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.actions.act_window,name:stock_picking_report_summary.action_picking_summary
|
||||
#: model:ir.actions.report,name:stock_picking_report_summary.report_picking_summary
|
||||
msgid "Picking Summary"
|
||||
msgstr "Résumé des livraisons"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model,name:stock_picking_report_summary.model_picking_summary_wizard
|
||||
msgid "Picking Summary Wizard"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model,name:stock_picking_report_summary.model_picking_summary_wizard_picking
|
||||
msgid "Picking Summary Wizard Picking"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model,name:stock_picking_report_summary.model_picking_summary_wizard_product
|
||||
msgid "Picking Summary Wizard Product"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Pickings Details"
|
||||
msgstr "Détails des livraisons"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.view_picking_summary_wizard_form
|
||||
msgid "Print PDF"
|
||||
msgstr "Imprimer le PDF"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__print_details
|
||||
msgid "Print Picking Details"
|
||||
msgstr "Imprimer le détail des livraisons"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__print_prices
|
||||
msgid "Print Standard Prices"
|
||||
msgstr "Imprimer les prix de revient"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__print_summary
|
||||
msgid "Print Summary"
|
||||
msgstr "Imprimer le résumé"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__print_unit_in_list
|
||||
msgid "Print Units"
|
||||
msgstr "Imprimer les unités de mesure"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__product_id
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Product"
|
||||
msgstr "Article"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__product_line_ids
|
||||
msgid "Product Line"
|
||||
msgstr "Ligne de produit"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Products Summary"
|
||||
msgstr "Résumé des bons de livraison"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Quantity"
|
||||
msgstr "Quantité"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__quantity_total
|
||||
msgid "Quantity Total"
|
||||
msgstr "Quantité totale"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard__standard_price_total
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__standard_price_total
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Standard Price Total"
|
||||
msgstr "Total prix de vente"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Standard Unit Price"
|
||||
msgstr "Coût unitaire"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Total price"
|
||||
msgstr "Prix total"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model_terms:ir.ui.view,arch_db:stock_picking_report_summary.picking_summary
|
||||
msgid "Unit"
|
||||
msgstr "Unité"
|
||||
|
||||
#. module: stock_picking_report_summary
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_picking__wizard_id
|
||||
#: model:ir.model.fields,field_description:stock_picking_report_summary.field_picking_summary_wizard_product__wizard_id
|
||||
msgid "Wizard"
|
||||
msgstr "Assistant"
|
||||
1
stock_picking_report_summary/readme/CONTRIBUTORS.rst
Normal file
1
stock_picking_report_summary/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1 @@
|
||||
* Quentin DUPONT (quentin.dupont@grap.coop)
|
||||
8
stock_picking_report_summary/readme/DESCRIPTION.rst
Normal file
8
stock_picking_report_summary/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
Select several Pickings to print a PDF summary with two sheets :
|
||||
|
||||
* Products Summary (where the total sum is calculated for each product)
|
||||
|
||||
* Detail Part (each delivery is detailed product by product, with lines at 0 printed in grey)
|
||||
|
||||
You can choose to print standard prices or not (can be useful to check some
|
||||
values when you prepare your pickings).
|
||||
15
stock_picking_report_summary/readme/USAGE.rst
Normal file
15
stock_picking_report_summary/readme/USAGE.rst
Normal file
@@ -0,0 +1,15 @@
|
||||
To use this module, you need to
|
||||
|
||||
* Go to Inventory
|
||||
|
||||
* Choose a Operation
|
||||
|
||||
* Select any pickings and click on 'Action' / 'Picking Summary'
|
||||
|
||||
.. figure:: ../static/description/new_print_action.png
|
||||
|
||||
* Choose your options
|
||||
|
||||
.. figure:: ../static/description/wizard.png
|
||||
|
||||
.. figure:: ../static/description/pdf_report.png
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="report_picking_summary" model="ir.actions.report">
|
||||
<field name="name">Picking Summary</field>
|
||||
<field name="model">picking.summary.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">stock_picking_report_summary.picking_summary</field>
|
||||
<field name="report_file">stock_picking_report_summary.picking_summary</field>
|
||||
<field
|
||||
name="binding_model_id"
|
||||
ref="stock_picking_report_summary.model_picking_summary_wizard"
|
||||
/>
|
||||
<field name="paperformat_id" ref="product.paperformat_label_sheet" />
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="picking_summary">
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-foreach="docs" t-as="picking">
|
||||
<!-- Summary Part -->
|
||||
<t t-if="picking.print_summary">
|
||||
<div class="container mx-auto w-80 mt-5">
|
||||
<div class="w-100 text-center">
|
||||
<h1 class="display-1">Products Summary</h1>
|
||||
</div>
|
||||
<table class="table table-responsive table-bordered py-3">
|
||||
<thead>
|
||||
<tr class="table-info">
|
||||
<th>Product</th>
|
||||
<th>Category</th>
|
||||
<th class="text-center">Quantity</th>
|
||||
<th class="text-center">Unit</th>
|
||||
<th
|
||||
t-if="picking.print_prices"
|
||||
class="text-center"
|
||||
>Standard Unit Price</th>
|
||||
<th
|
||||
t-if="picking.print_prices"
|
||||
class="text-center"
|
||||
>Total price</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="picking.product_line_ids" t-as="product_line">
|
||||
<tr>
|
||||
<td><span
|
||||
t-field="product_line.product_id.name"
|
||||
/></td>
|
||||
<td><span
|
||||
t-out="product_line.product_id.categ_id.name.capitalize()"
|
||||
/></td>
|
||||
<td class="text-center">
|
||||
<span t-field="product_line.quantity_total" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span
|
||||
t-field="product_line.product_id.uom_id.name"
|
||||
/>
|
||||
</td>
|
||||
<td t-if="picking.print_prices" class="text-center">
|
||||
<span
|
||||
t-out="product_line.product_id.standard_price"
|
||||
/>
|
||||
</td>
|
||||
<td t-if="picking.print_prices" class="text-center">
|
||||
<span
|
||||
t-out="product_line.standard_price_total"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</tbody>
|
||||
<tfoot t-if="picking.print_prices">
|
||||
<tr>
|
||||
<th colspan="5">Standard Price Total</th>
|
||||
<td class="text-center table-dark">
|
||||
<span
|
||||
t-out="round(picking.standard_price_total,2)"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<!-- Detail Part -->
|
||||
<t t-if="picking.print_details">
|
||||
<div class="container mx-auto w-80 mt-5">
|
||||
<div class="w-100 my-3 text-center">
|
||||
<h1 class="display-1">Pickings Details</h1>
|
||||
</div>
|
||||
<table class="table table-responsive table-bordered my-2">
|
||||
<thead>
|
||||
<tr class="table-info">
|
||||
<th>Product</th>
|
||||
<th class="text-center">Quantity</th>
|
||||
<th
|
||||
t-if="picking.print_unit_in_list"
|
||||
class="text-center"
|
||||
>Unit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="picking.picking_line_ids" t-as="picking_line">
|
||||
<tr class="line table-active mt-2">
|
||||
<th colspan="3"><span
|
||||
t-field="picking_line.picking_id.partner_id.name"
|
||||
/> - <span
|
||||
t-field="picking_line.picking_id.name"
|
||||
/></th>
|
||||
</tr>
|
||||
<t
|
||||
t-foreach="picking_line.picking_id.move_ids"
|
||||
t-as="move"
|
||||
>
|
||||
|
||||
<t
|
||||
t-set="td_move_style"
|
||||
t-value="move.product_qty == 0 and 'color:gray;' or 'color:black;'"
|
||||
/>
|
||||
<tr t-att-style="td_move_style">
|
||||
<td>
|
||||
<span t-field="move.product_id.name" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span t-field="move.product_qty" />
|
||||
</td>
|
||||
<td
|
||||
t-if="picking.print_unit_in_list"
|
||||
class="text-center"
|
||||
>
|
||||
<span
|
||||
t-field="move.product_id.uom_id.name"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
<t t-if="picking_line.picking_id.note">
|
||||
<tr class="line">
|
||||
<td colspan="100%">
|
||||
<span
|
||||
t-field="picking_line.picking_id.note"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,4 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
picking_summary_wizard,picking_summary_wizard,stock_picking_report_summary.model_picking_summary_wizard,stock.group_stock_user,1,1,1,0
|
||||
picking_summary_wizard_product,picking_summary_wizard_product,stock_picking_report_summary.model_picking_summary_wizard_product,stock.group_stock_user,1,1,1,0
|
||||
picking_summary_wizard_picking,picking_summary_wizard_picking,stock_picking_report_summary.model_picking_summary_wizard_picking,stock.group_stock_user,1,1,1,0
|
||||
|
BIN
stock_picking_report_summary/static/description/icon.png
Normal file
BIN
stock_picking_report_summary/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
451
stock_picking_report_summary/static/description/index.html
Normal file
451
stock_picking_report_summary/static/description/index.html
Normal file
@@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||
<title>Stock Picking Report Summary</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="stock-picking-report-summary">
|
||||
<h1 class="title">Stock Picking Report Summary</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:55007a3115945f634dc0c35e3cc2e359b6ecb6f2ad8145726e87a3411af3c028
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_picking_report_summary"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_picking_report_summary"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>Select several Pickings to print a PDF summary with two sheets :</p>
|
||||
<ul class="simple">
|
||||
<li>Products Summary (where the total sum is calculated for each product)</li>
|
||||
<li>Detail Part (each delivery is detailed product by product, with lines at 0 printed in grey)</li>
|
||||
</ul>
|
||||
<p>You can choose to print standard prices or not (can be useful to check some
|
||||
values when you prepare your pickings).</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<p>To use this module, you need to</p>
|
||||
<ul class="simple">
|
||||
<li>Go to Inventory</li>
|
||||
<li>Choose a Operation</li>
|
||||
<li>Select any pickings and click on ‘Action’ / ‘Picking Summary’</li>
|
||||
</ul>
|
||||
<div class="figure">
|
||||
<img alt="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/new_print_action.png" src="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/new_print_action.png" />
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li>Choose your options</li>
|
||||
</ul>
|
||||
<div class="figure">
|
||||
<img alt="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/wizard.png" src="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/wizard.png" />
|
||||
</div>
|
||||
<div class="figure">
|
||||
<img alt="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/pdf_report.png" src="https://raw.githubusercontent.com/OCA/stock-logistics-reporting/16.0/stock_picking_report_summary/static/description/pdf_report.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_summary%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Grap</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Quentin DUPONT (<a class="reference external" href="mailto:quentin.dupont@grap.coop">quentin.dupont@grap.coop</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>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.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/quentinDupont"><img alt="quentinDupont" src="https://github.com/quentinDupont.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_picking_report_summary">OCA/stock-logistics-reporting</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
BIN
stock_picking_report_summary/static/description/pdf_report.png
Normal file
BIN
stock_picking_report_summary/static/description/pdf_report.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
BIN
stock_picking_report_summary/static/description/wizard.png
Normal file
BIN
stock_picking_report_summary/static/description/wizard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 105 KiB |
1
stock_picking_report_summary/tests/__init__.py
Normal file
1
stock_picking_report_summary/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import test_module
|
||||
40
stock_picking_report_summary/tests/test_module.py
Normal file
40
stock_picking_report_summary/tests/test_module.py
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestModule(TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.PickingReportWizard = self.env["picking.summary.wizard"]
|
||||
self.StockPicking = self.env["stock.picking"]
|
||||
self.outPickingType = self.env.ref("stock.picking_type_out")
|
||||
self.ir_actions_report = self.env["ir.actions.report"]
|
||||
self.report_name = "stock_picking_report_summary.report_picking_summary"
|
||||
|
||||
def test_01_wizard(self):
|
||||
pickings = self.StockPicking.search(
|
||||
[
|
||||
("picking_type_id", "=", self.outPickingType.id),
|
||||
]
|
||||
)
|
||||
|
||||
wizard = self.PickingReportWizard.with_context(
|
||||
active_model="stock.picking",
|
||||
active_ids=pickings.ids,
|
||||
).create({})
|
||||
|
||||
# Test fields Compute
|
||||
sum_th = sum(wizard.mapped("product_line_ids.standard_price_total"))
|
||||
wizard._compute_standard_price_total()
|
||||
self.assertEqual(sum_th, wizard.standard_price_total)
|
||||
|
||||
# Test PDF render
|
||||
custom_note = "La Rabia Del Pueblo - Keny Arkana"
|
||||
pickings[0].note = custom_note
|
||||
res = str(
|
||||
self.ir_actions_report._render_qweb_html(self.report_name, wizard.ids)[0]
|
||||
)
|
||||
self.assertIn(custom_note, res)
|
||||
3
stock_picking_report_summary/wizards/__init__.py
Normal file
3
stock_picking_report_summary/wizards/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import picking_summary_wizard
|
||||
from . import picking_summary_wizard_picking
|
||||
from . import picking_summary_wizard_product
|
||||
107
stock_picking_report_summary/wizards/picking_summary_wizard.py
Normal file
107
stock_picking_report_summary/wizards/picking_summary_wizard.py
Normal file
@@ -0,0 +1,107 @@
|
||||
# Copyright (C) 2015 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class PickingSummaryWizard(models.TransientModel):
|
||||
_name = "picking.summary.wizard"
|
||||
_description = "Picking Summary Wizard"
|
||||
|
||||
# Columns Section
|
||||
print_summary = fields.Boolean(default=True)
|
||||
|
||||
print_details = fields.Boolean(string="Print Picking Details", default=True)
|
||||
|
||||
print_unit_in_list = fields.Boolean(string="Print Units", default=True)
|
||||
|
||||
print_prices = fields.Boolean(string="Print Standard Prices", default=False)
|
||||
|
||||
product_line_ids = fields.One2many(
|
||||
comodel_name="picking.summary.wizard.product",
|
||||
inverse_name="wizard_id",
|
||||
default=lambda self: self._default_product_line_ids(),
|
||||
)
|
||||
|
||||
standard_price_total = fields.Float(
|
||||
compute="_compute_standard_price_total",
|
||||
digits="Product Price",
|
||||
)
|
||||
|
||||
picking_line_ids = fields.One2many(
|
||||
comodel_name="picking.summary.wizard.picking",
|
||||
inverse_name="wizard_id",
|
||||
default=lambda self: self._default_picking_line_ids(),
|
||||
)
|
||||
|
||||
picking_line_qty = fields.Integer(
|
||||
string="Number of Selected Picking",
|
||||
readonly=True,
|
||||
default=lambda self: self._default_picking_line_qty(),
|
||||
)
|
||||
|
||||
# Default Section
|
||||
def _default_picking_line_qty(self):
|
||||
return len(self._context.get("active_ids", []))
|
||||
|
||||
def _default_picking_line_ids(self):
|
||||
picking_obj = self.env["stock.picking"]
|
||||
res = []
|
||||
picking_ids = self._context.get("active_ids", [])
|
||||
for picking in picking_obj.browse(picking_ids):
|
||||
res.append(
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
"picking_id": picking.id,
|
||||
},
|
||||
)
|
||||
)
|
||||
return res
|
||||
|
||||
def _default_product_line_ids(self):
|
||||
picking_obj = self.env["stock.picking"]
|
||||
res = []
|
||||
product_lines = {}
|
||||
picking_ids = self.env.context.get("active_ids", [])
|
||||
# move.product_qty is real quantity with referent uom
|
||||
for picking in picking_obj.browse(picking_ids):
|
||||
for move in picking.move_ids:
|
||||
if move.product_id.id not in product_lines.keys():
|
||||
product_lines[move.product_id.id] = {
|
||||
"name": move.product_id.name,
|
||||
"categ": move.product_id.categ_id.name.capitalize(),
|
||||
"qty": move.product_qty,
|
||||
}
|
||||
else:
|
||||
old_qty = product_lines[move.product_id.id]["qty"]
|
||||
product_lines[move.product_id.id] = {
|
||||
"name": move.product_id.name,
|
||||
"categ": move.product_id.categ_id.name.capitalize(),
|
||||
"qty": old_qty + move.product_qty,
|
||||
}
|
||||
# Arranged in alphabetical order for category then product name
|
||||
product_lines_sorted = sorted(
|
||||
product_lines.items(), key=lambda x: (x[1]["categ"], x[1]["name"])
|
||||
)
|
||||
for product_id, name_qty in product_lines_sorted:
|
||||
res.append(
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
"product_id": product_id,
|
||||
"quantity_total": name_qty["qty"],
|
||||
},
|
||||
)
|
||||
)
|
||||
return res
|
||||
|
||||
# Compute Section
|
||||
def _compute_standard_price_total(self):
|
||||
self.ensure_one()
|
||||
self.standard_price_total = sum(
|
||||
self.mapped("product_line_ids.standard_price_total")
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright (C) 2015 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class PickingSummaryWizardPicking(models.TransientModel):
|
||||
_name = "picking.summary.wizard.picking"
|
||||
_description = "Picking Summary Wizard Picking"
|
||||
|
||||
wizard_id = fields.Many2one(comodel_name="picking.summary.wizard")
|
||||
|
||||
picking_id = fields.Many2one(comodel_name="stock.picking")
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright (C) 2015 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class PickingSummaryWizardProduct(models.TransientModel):
|
||||
_name = "picking.summary.wizard.product"
|
||||
_description = "Picking Summary Wizard Product"
|
||||
|
||||
wizard_id = fields.Many2one(comodel_name="picking.summary.wizard")
|
||||
|
||||
product_id = fields.Many2one(comodel_name="product.product")
|
||||
|
||||
quantity_total = fields.Float()
|
||||
|
||||
standard_price = fields.Float(
|
||||
related="product_id.standard_price", digits="Product Price"
|
||||
)
|
||||
|
||||
standard_price_total = fields.Float(
|
||||
compute="_compute_standard_price_total",
|
||||
digits="Product Price",
|
||||
)
|
||||
|
||||
def _compute_standard_price_total(self):
|
||||
for line in self:
|
||||
line.standard_price_total = (
|
||||
line.product_id.standard_price * line.quantity_total
|
||||
)
|
||||
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright (C) 2014 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
@author: Quentin DUPONT (quentin.dupont@grap.coop)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<record id="view_picking_summary_wizard_form" model="ir.ui.view">
|
||||
<field name="model">picking.summary.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group colspan="4">
|
||||
<group string="General informations">
|
||||
<field name="picking_line_qty" />
|
||||
</group>
|
||||
<group string="For Summary" colspan="4">
|
||||
<field name="print_summary" />
|
||||
<field
|
||||
name="print_prices"
|
||||
attrs="{'invisible': [('print_summary', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
<group string="For Pickings details" colspan="4">
|
||||
<field name="print_details" />
|
||||
<field
|
||||
name="print_unit_in_list"
|
||||
attrs="{'invisible': [('print_details', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<footer>
|
||||
<button
|
||||
name="%(report_picking_summary)d"
|
||||
string="Print PDF"
|
||||
type="action"
|
||||
icon="fa-print"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
<button icon="fa-ban" special="cancel" string="Cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_picking_summary" model="ir.actions.act_window">
|
||||
<field name="name">Picking Summary</field>
|
||||
<field name="res_model">picking.summary.wizard</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="stock.model_stock_picking" />
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user