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",
|
||||
"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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
<?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>
|
||||
|
||||
Reference in New Issue
Block a user