mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[IMP] stock_picking_report_custom_description: black, isort, prettier
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
../../../../stock_picking_report_custom_description
|
||||||
6
setup/stock_picking_report_custom_description/setup.py
Normal file
6
setup/stock_picking_report_custom_description/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
@@ -9,8 +9,7 @@
|
|||||||
"version": "12.0.1.0.0",
|
"version": "12.0.1.0.0",
|
||||||
"category": "Warehouse",
|
"category": "Warehouse",
|
||||||
"website": "https://github.com/OCA/stock-logistics-reporting",
|
"website": "https://github.com/OCA/stock-logistics-reporting",
|
||||||
"author": "Tecnativa, "
|
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
||||||
"Odoo Community Association (OCA)",
|
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"maintainers": ["carlosdauden"],
|
"maintainers": ["carlosdauden"],
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
|
|||||||
@@ -1,19 +1,29 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="report_delivery_document_description" inherit_id="stock.report_delivery_document" priority="99" primary="True">
|
<template
|
||||||
|
id="report_delivery_document_description"
|
||||||
|
inherit_id="stock.report_delivery_document"
|
||||||
|
priority="99"
|
||||||
|
primary="True"
|
||||||
|
>
|
||||||
<xpath expr="//tr/td/span[@t-field='move.product_id']" position="attributes">
|
<xpath expr="//tr/td/span[@t-field='move.product_id']" position="attributes">
|
||||||
<attribute name="t-field">move.name</attribute>
|
<attribute name="t-field">move.name</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//tr/td/span[@t-field='move_line.product_id']" position="attributes">
|
<xpath
|
||||||
|
expr="//tr/td/span[@t-field='move_line.product_id']"
|
||||||
|
position="attributes"
|
||||||
|
>
|
||||||
<attribute name="t-field">move_line.move_id.name</attribute>
|
<attribute name="t-field">move_line.move_id.name</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="report_deliveryslip_description">
|
<template id="report_deliveryslip_description">
|
||||||
<t t-foreach="docs" t-as="o">
|
<t t-foreach="docs" t-as="o">
|
||||||
<t t-call="stock_picking_report_custom_description.report_delivery_document_description"
|
<t
|
||||||
t-lang="o.partner_id.lang"/>
|
t-call="stock_picking_report_custom_description.report_delivery_document_description"
|
||||||
|
t-lang="o.partner_id.lang"
|
||||||
|
/>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="report_picking_description" inherit_id="stock.report_picking" priority="99" primary="True">
|
<template
|
||||||
<xpath expr="//tr/td/span[@t-field='ml.product_id.display_name']" position="attributes">
|
id="report_picking_description"
|
||||||
|
inherit_id="stock.report_picking"
|
||||||
|
priority="99"
|
||||||
|
primary="True"
|
||||||
|
>
|
||||||
|
<xpath
|
||||||
|
expr="//tr/td/span[@t-field='ml.product_id.display_name']"
|
||||||
|
position="attributes"
|
||||||
|
>
|
||||||
<attribute name="t-field">ml.move_id.name</attribute>
|
<attribute name="t-field">ml.move_id.name</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<report
|
<report
|
||||||
string="Picking Operations (Description)"
|
string="Picking Operations (Description)"
|
||||||
|
|||||||
Reference in New Issue
Block a user