mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[FIX] the button 'Print Delivery Order' print the webkit report instead of the RML one
This commit is contained in:
@@ -35,7 +35,9 @@ Three reports are provided:
|
||||
'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,
|
||||
}
|
||||
|
||||
15
stock_picking_webkit/stock_view.xml
Normal file
15
stock_picking_webkit/stock_view.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user