chinese opt

This commit is contained in:
ivan deng
2019-03-04 23:03:36 +08:00
parent 8fccac0219
commit ba19facc8b
11 changed files with 85 additions and 27 deletions

View File

@@ -3,12 +3,12 @@
{ {
'name': 'Weight in Sales Order', 'name': 'Weight in Sales Order',
'version': '11.19.01.29', 'version': '11.19.03.04',
'summary': 'Add Product sku weight in Sale Order, product weight, sale weight, sale order weight, total weight, kg kg(s) lb lb(s) support', '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, 'sequence': 10,
'license': 'LGPL-3', 'license': 'LGPL-3',
'description': """ 'description': """
All in one Weight solution for sale, purchase, purchase agreement, stock. Please check follow <strong>Pay</strong> app. All in one Weight solution for sale, purchase, purchase agreement, mrp, stock.
Add product sku weight in Sale Order. Unit of measure auto weight, kg kg(s) lb lb(s) support. weight sale order. Add product sku weight in Sale Order. Unit of measure auto weight, kg kg(s) lb lb(s) support. weight sale order.
Calculates total weight of a sale order, which is the sum of individual weights of each unit of the products in the order。 Calculates total weight of a sale order, which is the sum of individual weights of each unit of the products in the order。
Support kg(s) or lb(s) Support kg(s) or lb(s)
@@ -18,10 +18,11 @@
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',
'images': ['static/description/banner.png'], 'images': ['static/description/banner.png'],
'currency': 'EUR', 'currency': 'EUR',
'price': 38, 'price': 68,
'depends': ['sale_management'], 'depends': ['sale_management'],
'data': [ 'data': [
'views/sale_order_views.xml', 'views/sale_order_views.xml',
'report/report_sale_order_views.xml',
], ],
'demo': [ 'demo': [
], ],

View File

@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<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 特殊处理因为加载另的插件会影响顺序要精确定位可用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>
<th class="text-right app_sunpop"><strong>Weight Subtotal</strong></th>
</xpath>
<xpath expr="//div[@class='page']/table[1]/tbody/t/tr[1]/t/td[@class='text-right'][1]" position="after">
<td class="text-right app_sunpop"><span t-field="line.weight_unit"/></td>
<td class="text-right app_sunpop"><span t-field="line.weight"/></td>
</xpath>
<xpath expr="//div[@class='page']//p[@t-field='doc.note']" position="before">
<p>
<Strong>Total Weight: </Strong>
<span t-field="doc.weight"/> <span t-field="doc.weight_uom_name"/>
</p>
</xpath>
</template>
</data>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View File

@@ -1,8 +1,8 @@
<section class="oe_container oe_dark"> <section class="oe_container oe_dark">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<div class="oe_span12"> <div class="oe_span12">
<h2 class="oe_slogan">Sales Order Weight</h2> <h2 class="oe_slogan">Weight in Stock Inventory Operation Picking and Move</h2>
<img class="oe_screenshot oe_picture" src="demo_all.png"> <img class="oe_screenshot oe_picture" src="banner_all.png">
</div> </div>
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;"> <div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
@@ -10,62 +10,72 @@
<ul class="list-unstyled"> <ul class="list-unstyled">
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
All in one Weight solution for sale, purchase, purchase agreement, stock. Please check follow <strong>Pay</strong> app. All in one Weight solution for sale, purchase, purchase agreement, mrp, stock. Please check follow <strong>Pay</strong> app.
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Product auto weight is ready. Product auto weight is ready.
<a href="http://www.odoo.com/apps/modules/12.0/app_product_weight_auto/" target="_blank"> <a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_auto/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download. <i class="fa fa-download text-warning"></i>Click to download.
</a> </a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Sale order Product weight is ready. Sale order Product weight is ready.
<a href="http://www.odoo.com/apps/modules/12.0/app_product_weight_sale/" target="_blank"> <a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_sale/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download. <i class="fa fa-download text-warning"></i>Click to download.
</a> </a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Purchase order Product weight is ready. Purchase order Product weight is ready.
<a href="http://www.odoo.com/apps/modules/12.0/app_product_weight_purchase/" target="_blank"> <a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_purchase/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download. <i class="fa fa-download text-warning"></i>Click to download.
</a> </a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Purchase agreement Product weight is ready. Purchase agreement Product weight is ready.
<a href="http://www.odoo.com/apps/modules/12.0/app_product_weight_purchase_requisition/" target="_blank"> <a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_purchase_requisition/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download. <i class="fa fa-download text-warning"></i>Click to download.
</a> </a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Stock picking operation Product weight is ready. MRP Product weight is ready.
<a href="http://www.odoo.com/apps/modules/12.0/app_product_weight_stock/" target="_blank"> <a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_mrp/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download. <i class="fa fa-download text-warning"></i>Click to download.
</a> </a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Add product sku weight in Sale Order line. Stock inventory picking operation Product weight is ready.
<a href="http://www.odoo.com/apps/modules/11.0/app_product_weight_stock/" target="_blank">
<i class="fa fa-download text-warning"></i>Click to download.
</a>
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Calculates total weight of a sale order, which is the sum of individual weights of each unit of the products in the order. Add product sku weight in Stock Inventory.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Add product sku weight in Stock picking Operation and stock move.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Calculates total weight of a Stock picking.
</li> </li>
<li> <li>
<i class="fa fa-check-square-o text-primary"></i> <i class="fa fa-check-square-o text-primary"></i>
Support kg(s) or lb(s) Support kg(s) or lb(s)
</li> </li>
</ul> </ul>
<div class="oe_span12">
<h2 class="oe_slogan">Multi Language Support</h2>
<img class="oe_screenshot oe_picture" src="banner_cn.png">
</div> </div>
<div class="oe_demo oe_screenshot">
<img class="oe_screenshot" src="demo.jpg">
</div> </div>
<p class='oe_mt32'>
</p>
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<h3 class='oe_mt32'> <h3 class='oe_mt32'>
Setup product weight. Setup product weight.
@@ -77,23 +87,25 @@
<h3 class='oe_mt32'> <h3 class='oe_mt32'>
Show product total weight in list view. Show product total weight in list view.
</h3> </h3>
<img class="oe_screenshot" src="demo2.jpg"> <img class="oe_screenshot" src="demo1.jpg">
</div> </div>
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<h3 class='oe_mt32'> <h3 class='oe_mt32'>
Get product weight and total weight in order. Get product weight and total weight in stock picking.
</h3> </h3>
<img class="oe_screenshot" src="demo1.jpg"> <img class="oe_screenshot" src="demo.jpg">
</div> </div>
<p class='oe_span12 oe_mt32'> <p class='oe_span12 oe_mt32'>
The calculation uses the following formula: The calculation uses the following formula:
</p> </p>
<p class='oe_mt32'> <p class='oe_mt32'>
order_line_net_weight = (line_product_weight / line_product_uom_factor) order_line_net_weight = (line_product_weight / line_product_uom_factor)
<br/> <br/>
weight_total = sum(order_line_net_weight) weight_total = sum(order_line_net_weight)
</p> </p>
</div> </div>
</section> </section>
@@ -113,6 +125,10 @@
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<img src="demo_sale.jpg"> <img src="demo_sale.jpg">
</div> </div>
<p>Weight in sale report</p>
<div class="oe_demo oe_screenshot">
<img src="demo_sale2.jpg">
</div>
</div> </div>
</section> </section>
@@ -122,6 +138,10 @@
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<img src="demo_purchase.jpg"> <img src="demo_purchase.jpg">
</div> </div>
<p>Weight in purchase report</p>
<div class="oe_demo oe_screenshot">
<img src="demo_purchase2.jpg">
</div>
</div> </div>
</section> </section>
@@ -133,6 +153,16 @@
</div> </div>
</div> </div>
</section> </section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in MRP Manufacturing</h4>
<div class="oe_demo oe_screenshot">
<img src="demo_mrp.jpg">
</div>
</div>
</section>
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in Stock Picking </h4> <h4 class="oe_slogan">Use in Stock Picking </h4>