openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02454
lp:~camptocamp/stock-logistic-report/7.0-button-print-delivery-order into lp:stock-logistic-report
Guewen Baconnier @ Camptocamp has proposed merging lp:~camptocamp/stock-logistic-report/7.0-button-print-delivery-order into lp:stock-logistic-report.
Requested reviews:
Stock and Logistic Core Editors (stock-logistic-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp/stock-logistic-report/7.0-button-print-delivery-order/+merge/199952
The stock_picking_webkit aims to replace the RML report, but the button to print the delivery orders still print the RML report.
Change the action of the button to print the new one.
--
https://code.launchpad.net/~camptocamp/stock-logistic-report/7.0-button-print-delivery-order/+merge/199952
Your team Stock and Logistic Core Editors is requested to review the proposed merge of lp:~camptocamp/stock-logistic-report/7.0-button-print-delivery-order into lp:stock-logistic-report.
=== modified file 'stock_picking_webkit/__openerp__.py'
--- stock_picking_webkit/__openerp__.py 2013-12-13 04:40:56 +0000
+++ stock_picking_webkit/__openerp__.py 2013-12-23 14:07:03 +0000
@@ -35,7 +35,9 @@
'author': 'Camptocamp',
'website': 'http://www.openerp.com',
'depends': ['base', 'report_webkit', 'base_headers_webkit', 'stock', 'delivery'],
- 'data': ['report.xml'],
+ 'data': ['report.xml',
+ 'stock_view.xml',
+ ],
'installable': True,
'auto_install': False,
}
=== added file 'stock_picking_webkit/stock_view.xml'
--- stock_picking_webkit/stock_view.xml 1970-01-01 00:00:00 +0000
+++ stock_picking_webkit/stock_view.xml 2013-12-23 14:07:03 +0000
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data noupdate="0">
+ <record id="view_picking_out_form" model="ir.ui.view">
+ <field name="name">stock.picking.out.form</field>
+ <field name="model">stock.picking.out</field>
+ <field name="inherit_id" ref="delivery.view_delivery_order_inherit_stock"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/header//button[@string='Print Delivery Order']" position="attributes">
+ <attribute name="name">%(stock.report_picking_list_out)d</attribute>
+ </xpath>
+ </field>
+ </record>
+ </data>
+</openerp>
Follow ups