[add] first steps for packing list
This commit is contained in:
parent
f0a976ff8e
commit
5455d7501e
6 changed files with 57 additions and 15 deletions
|
|
@ -34,7 +34,9 @@ Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|
||||||
:1.0.0: Initial module.
|
:1.0.0 Initial module.
|
||||||
|
:1.0.1 Add EKG Delivery Sip
|
||||||
|
:1.0.0 Add Packing List
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,14 @@
|
||||||
"author": "BAKEUP",
|
"author": "BAKEUP",
|
||||||
"website": "https://www.bakeup.org",
|
"website": "https://www.bakeup.org",
|
||||||
"category": "Stock",
|
"category": "Stock",
|
||||||
"version": "16.0.1.0.1",
|
"version": "16.0.1.0.2",
|
||||||
"depends": ["stock"],
|
"depends": ["stock"],
|
||||||
"data": ["views/report_deliveryslip.xml", "views/report_deliveryslip_compact.xml", "report/stock_report_views.xml"],
|
"data": [
|
||||||
|
"views/report_deliveryslip.xml",
|
||||||
|
"views/report_deliveryslip_compact.xml",
|
||||||
|
"views/report_packing_list.xml",
|
||||||
|
"report/stock_report_views.xml",
|
||||||
|
],
|
||||||
"assets": {"web.report_assets_common": ["nfu_ekg_stock/static/src/scss/report_stock_rule.scss"]},
|
"assets": {"web.report_assets_common": ["nfu_ekg_stock/static/src/scss/report_stock_rule.scss"]},
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"application": True,
|
"application": True,
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,4 @@
|
||||||
|
|
||||||
:1.0.0: Initial module.
|
:1.0.0 Initial module.
|
||||||
|
:1.0.1 Add EKG Delivery Sip
|
||||||
|
:1.0.0 Add Packing List
|
||||||
|
|
@ -1,11 +1,24 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
<record id="action_report_ekg_packing_list" model="ir.actions.report">
|
||||||
|
<field name="name">EKG Packing List</field>
|
||||||
|
<field name="model">stock.picking</field>
|
||||||
|
<field name="report_type">qweb-html</field>
|
||||||
|
<field name="report_name">nfu_ekg_stock.report_ekg_packing_list</field>
|
||||||
|
<field name="report_file">nfu_ekg_stock.report_packing_list</field>
|
||||||
|
<field
|
||||||
|
name="print_report_name"
|
||||||
|
>'EKG Packing List - %s - %s' % (object.partner_id.name or '', object.name)</field>
|
||||||
|
<field name="binding_model_id" ref="stock.model_stock_picking"/>
|
||||||
|
<field name="binding_type">report</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="action_report_ekg_delivery" model="ir.actions.report">
|
<record id="action_report_ekg_delivery" model="ir.actions.report">
|
||||||
<field name="name">EKG Delivery Slip</field>
|
<field name="name">EKG Delivery Slip</field>
|
||||||
<field name="model">stock.picking</field>
|
<field name="model">stock.picking</field>
|
||||||
<field name="report_type">qweb-pdf</field>
|
<field name="report_type">qweb-pdf</field>
|
||||||
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field>
|
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field>
|
||||||
<field name="report_file">nfu_ekg_stock.report_ekg_deliveryslip</field>
|
<field name="report_file">nfu_ekg_stock.report_deliveryslip</field>
|
||||||
<field
|
<field
|
||||||
name="print_report_name"
|
name="print_report_name"
|
||||||
>'EKG Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)</field>
|
>'EKG Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)</field>
|
||||||
|
|
@ -18,12 +31,12 @@
|
||||||
<field name="model">stock.picking</field>
|
<field name="model">stock.picking</field>
|
||||||
<field name="report_type">qweb-pdf</field>
|
<field name="report_type">qweb-pdf</field>
|
||||||
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip_compact</field>
|
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip_compact</field>
|
||||||
<field name="report_file">nfu_ekg_stock.report_ekg_deliveryslip_compact</field>
|
<field name="report_file">nfu_ekg_stock.report_deliveryslip_compact</field>
|
||||||
<field
|
<field
|
||||||
name="print_report_name"
|
name="print_report_name"
|
||||||
>'EKG Delivery Slip Compact - %s - %s' % (object.partner_id.name or '', object.name)</field>
|
>'EKG Delivery Slip Compact - %s - %s' % (object.partner_id.name or '', object.name)</field>
|
||||||
<field name="binding_model_id" ref="stock.model_stock_picking"/>
|
<field name="binding_model_id" ref="stock.model_stock_picking"/>
|
||||||
<field name="binding_type">report</field>
|
<field name="binding_type">report</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
|
||||||
|
|
@ -386,14 +386,9 @@ ul.auto-toc {
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="changelog">
|
<div class="section" id="changelog">
|
||||||
<h1><a class="toc-backref" href="#toc-entry-1">Changelog</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-1">Changelog</a></h1>
|
||||||
<table class="docutils field-list" frame="void" rules="none">
|
<p>:1.0.0 Initial module.
|
||||||
<col class="field-name" />
|
:1.0.1 Add EKG Delivery Sip
|
||||||
<col class="field-body" />
|
:1.0.0 Add Packing List</p>
|
||||||
<tbody valign="top">
|
|
||||||
<tr class="field"><th class="field-name">1.0.0:</th><td class="field-body">Initial module.</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="bug-tracker">
|
<div class="section" id="bug-tracker">
|
||||||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
||||||
|
|
|
||||||
25
nfu_ekg_stock/views/report_packing_list.xml
Normal file
25
nfu_ekg_stock/views/report_packing_list.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<odoo>
|
||||||
|
<template id="report_ekg_packing_list">
|
||||||
|
<t t-call="web.html_container">
|
||||||
|
<t t-call="web.basic_layout">
|
||||||
|
<t t-set="partners" t-value="docs.mapped('partner_id')"/>
|
||||||
|
<table class="table table-sm" name="stock_move_table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><strong>Product</strong></th>
|
||||||
|
<t t-foreach="partners" t-as="partner">
|
||||||
|
<th><strong t-esc="partner.name"/></th>
|
||||||
|
</t>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tr>
|
||||||
|
<!-- <t t-foreach="docs" t-as="o">
|
||||||
|
<t t-call="nfu_ekg_stock.report_ekg_delivery_document" t-lang="o._get_report_lang()"/>
|
||||||
|
</t> -->
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
|
</odoo>
|
||||||
Loading…
Reference in a new issue