[IMP] stock_picking_report_custom_description: black, isort, prettier

This commit is contained in:
Ernesto Tejeda
2022-08-05 06:59:14 -04:00
parent 3c7b875725
commit 0626f84c91
6 changed files with 34 additions and 10 deletions

View File

@@ -0,0 +1 @@
../../../../stock_picking_report_custom_description

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -9,8 +9,7 @@
"version": "12.0.1.0.0",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-reporting",
"author": "Tecnativa, "
"Odoo Community Association (OCA)",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"development_status": "Production/Stable",
"maintainers": ["carlosdauden"],
"license": "AGPL-3",

View File

@@ -1,19 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<attribute name="t-field">move.name</attribute>
</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>
</xpath>
</template>
<template id="report_deliveryslip_description">
<t t-foreach="docs" t-as="o">
<t t-call="stock_picking_report_custom_description.report_delivery_document_description"
t-lang="o.partner_id.lang"/>
<t
t-call="stock_picking_report_custom_description.report_delivery_document_description"
t-lang="o.partner_id.lang"
/>
</t>
</template>

View File

@@ -1,8 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template 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">
<template
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>
</xpath>
</template>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<report
string="Picking Operations (Description)"