Add the trays in printing.report.xml.action view

So they can be configured per user and per report
This commit is contained in:
Guewen Baconnier
2015-01-20 09:34:09 +01:00
committed by Graeme Gellatly
parent 053e8ed0a0
commit e13513e667
2 changed files with 26 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
'users_view.xml',
'ir_report_view.xml',
'printer_view.xml',
'report_xml_action_view.xml',
'security/ir.model.access.csv',
],
'test': [],

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="view_printing_report_xml_action_form" model="ir.ui.view">
<field name="name">printing.report.xml.action.form</field>
<field name="model">printing.report.xml.action</field>
<field name="inherit_id" ref="base_report_to_printer.printing_report_xml_action_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='printer_id']" position="after">
<field name="printer_tray_id"/>
</xpath>
</field>
</record>
<record id="view_printing_report_xml_action_tree" model="ir.ui.view">
<field name="name">printing.report.xml.action.form</field>
<field name="model">printing.report.xml.action</field>
<field name="inherit_id" ref="base_report_to_printer.printing_report_xml_action_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='printer_id']" position="after">
<field name="printer_tray_id"/>
</xpath>
</field>
</record>
</data>
</openerp>