mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[IMP] stock_picking_report_valued: black, isort, prettier
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../../../../stock_picking_report_valued
|
||||
6
setup/stock_picking_report_valued/setup.py
Normal file
6
setup/stock_picking_report_valued/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -2,8 +2,10 @@
|
||||
<odoo>
|
||||
|
||||
<template id="valued_report_picking" inherit_id="stock.report_delivery_document">
|
||||
<xpath expr="//table[@t-if="o.move_line_ids and o.state=='done'"]/thead/tr"
|
||||
position="inside">
|
||||
<xpath
|
||||
expr="//table[@t-if="o.move_line_ids and o.state=='done'"]/thead/tr"
|
||||
position="inside"
|
||||
>
|
||||
<t t-if="o.valued and o.sale_id and o.move_line_ids">
|
||||
<t t-if="o.state != 'done'">
|
||||
<th class="text-right"><strong>Qty Reserved</strong></th>
|
||||
@@ -23,18 +25,22 @@
|
||||
<span t-field="move_line.product_uom_qty" />
|
||||
<span t-field="move_line.product_uom_id" /></td>
|
||||
</t>
|
||||
<td class="text-right"><span
|
||||
t-field="move_line.sale_price_unit" /></td>
|
||||
<td class="text-right"><span t-field="move_line.sale_price_unit" /></td>
|
||||
<td class="text-right" groups="product.group_discount_per_so_line">
|
||||
<span t-field="move_line.sale_discount" />
|
||||
</td>
|
||||
<td class="text-right"><span
|
||||
t-field="move_line.sale_price_subtotal" /></td>
|
||||
t-field="move_line.sale_price_subtotal"
|
||||
/></td>
|
||||
<td class="text-right"><span
|
||||
t-field="move_line.sale_tax_description"/></td>
|
||||
t-field="move_line.sale_tax_description"
|
||||
/></td>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//table[@t-if="o.move_line_ids and o.state=='done'"]" position="after">
|
||||
<xpath
|
||||
expr="//table[@t-if="o.move_line_ids and o.state=='done'"]"
|
||||
position="after"
|
||||
>
|
||||
<t t-if="o.valued and o.sale_id and o.move_line_ids">
|
||||
<table class="table table-sm mt32">
|
||||
<thead>
|
||||
|
||||
@@ -6,7 +6,10 @@
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='sales_purchases']//field[@name='user_id']" position="after">
|
||||
<xpath
|
||||
expr="//page[@name='sales_purchases']//field[@name='user_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="valued_picking" />
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user