fix sale report

This commit is contained in:
ivan deng
2019-04-16 05:11:27 +08:00
parent fd4d3cfd59
commit 31e451563f
2 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
{
'name': 'Weight in Sales Order',
'version': '12.19.03.04',
'version': '12.19.04.16',
'summary': 'Add Product sku weight in Sale Order, product weight, sale weight, sale order weight, total weight, kg kg(s) lb lb(s) support',
'sequence': 10,
'license': 'LGPL-3',

View File

@@ -2,9 +2,10 @@
<odoo>
<data>
<template id="app_report_saleorder_document" inherit_id="sale.report_saleorder_document">
<xpath expr="//table[hasclass('table', 'table-sm')]/thead/tr/th[1]" position="before">
<t t-set="colspan" t-value="colspan+2"/>
</xpath>
<!-- <xpath expr="//table[hasclass('o_main_table')]/thead/tr/th[1]" position="before">-->
<!--注意odoo12 的 deb 发行版没有了colspan只有源码 master版中有-->
<!-- <t t-set="colspan" t-value="colspan+2"/>-->
<!-- </xpath>-->
<!--xpath 特殊处理因为加载另的插件会影响顺序要精确定位可用th[contains(text(), 'Quantity')]-->
<xpath expr="//div[@class='page']/table[1]/thead/tr/th[@class='text-right'][1]" position="after">
<th class="text-right app_sunpop"><strong>Weight Unit</strong></th>