diff options
| author | Richard Mathot <rim@odoo.com> | 2016-07-29 11:47:55 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2016-07-29 14:59:30 +0200 |
| commit | 4b3ce99b260f4d741a5dfa7c44b241080a0ca4bc (patch) | |
| tree | 99834ec657176841f67c91cab7ccd55d96841c89 | |
| parent | b15f001dfbc28946f2cef8fa4e773a5051128d2c (diff) | |
[IMP] base,report,report_webkit: clean config view for Reports
| -rw-r--r-- | addons/report/views/ir_actions_report_views.xml | 12 | ||||
| -rw-r--r-- | addons/report_webkit/ir_report_view.xml | 4 | ||||
| -rw-r--r-- | openerp/addons/base/ir/ir_actions.xml | 81 |
3 files changed, 50 insertions, 47 deletions
diff --git a/addons/report/views/ir_actions_report_views.xml b/addons/report/views/ir_actions_report_views.xml index c5d483d92fd..d0202203b76 100644 --- a/addons/report/views/ir_actions_report_views.xml +++ b/addons/report/views/ir_actions_report_views.xml @@ -21,15 +21,11 @@ <field name="model">ir.actions.report.xml</field> <field name="arch" type="xml"> <data> - <xpath expr="//field[@name='attachment']" position="after"> + <xpath expr="//field[@name='report_type']" position="after"> <field name="paperformat_id" attrs="{'invisible':[('report_type','not in',['qweb-pdf'])]}"/> - <button - type="object" - class="oe_link" - string="Search associated QWeb views" - name="associated_view" - attrs="{'invisible':[('report_type', 'not in', ['qweb-pdf', 'qweb-html'])]}" - /> + </xpath> + <xpath expr="//div[@class='oe_button_box']" position="inside"> + <button type="object" class="oe_stat_button" string="QWeb views" name="associated_view" attrs="{'invisible':[('report_type', 'not in', ['qweb-pdf', 'qweb-html'])]}" icon='fa-code' /> </xpath> </data> </field> diff --git a/addons/report_webkit/ir_report_view.xml b/addons/report_webkit/ir_report_view.xml index b8efd3d9b8a..406367afc7e 100644 --- a/addons/report_webkit/ir_report_view.xml +++ b/addons/report_webkit/ir_report_view.xml @@ -5,8 +5,8 @@ <field name="model">ir.actions.report.xml</field> <field name="inherit_id" ref="base.act_report_xml_view"/> <field name="arch" type="xml"> - <xpath expr="//page[@name='security']" position="before" > - <page string="Webkit" attrs="{'invisible':[('report_type','!=','webkit')]}"> + <xpath expr="//page[@name='security']" position="after" > + <page string="Webkit" name='webkit' attrs="{'invisible':[('report_type','!=','webkit')]}"> <group> <field name="webkit_header"/> <field name="webkit_debug"/> diff --git a/openerp/addons/base/ir/ir_actions.xml b/openerp/addons/base/ir/ir_actions.xml index fcdb91bff5f..2fcfde5ec2d 100644 --- a/openerp/addons/base/ir/ir_actions.xml +++ b/openerp/addons/base/ir/ir_actions.xml @@ -54,47 +54,54 @@ <field name="arch" type="xml"> <form string="Report"> <field name="ir_values_id" invisible="1"/> - <button name="create_action" string="Add in the 'Print' menu" type="object" - attrs="{'invisible':[('ir_values_id','!=',False)]}" - help="Display an option on related documents to print this report"/> - <button name="unlink_action" string="Remove from the 'Print' menu" type="object" - attrs="{'invisible':[('ir_values_id','=',False)]}" - help="Remove the contextual action related this report"/> - - <group> - <group> - <field name="name"/> - <field name="model"/> - <field name="report_type"/> - <field name="report_name" attrs="{'invisible':[('report_type','=', 'controller')]}"/> - <field name="report_rml" attrs="{'invisible':[('report_type','!=', 'controller')]}"/> - </group> + <sheet> + <div class="oe_button_box" name="button_box"> + <button name="create_action" string="Add in the 'Print' menu" type="object" + attrs="{'invisible':[('ir_values_id','!=',False)]}" icon="fa-plus-square" + help="Display an option on related documents to print this report" class="oe_stat_button"/> + <button name="unlink_action" string="Remove from the 'Print' menu" type="object" + attrs="{'invisible':[('ir_values_id','=',False)]}" icon="fa-minus-square" + help="Remove the contextual action related this report" class="oe_stat_button"/> + </div> <group> - <field name="multi"/> - <field name="attachment_use" attrs="{'invisible':[('report_type','=', 'controller')]}"/> - <field name="attachment" attrs="{'invisible':[('report_type','=', 'controller')]}"/> - </group> - </group> - <notebook> - <page name="security" string="Security"> - <field name="groups_id"/> - </page> - <page string="RML Configuration" attrs="{'invisible':[('report_type','not in',['pdf','sxw'])]}"> <group> - <group string="RML Report"> - <field name="header"/> - <field name="report_file"/> - <field name="auto"/> - <field name="parser"/> - <field name="usage"/> + <field name="name"/> + <field name="report_type"/> + </group> + <group> + <field name="model"/> + <field name="report_name" attrs="{'invisible':[('report_type','=', 'controller')]}"/> + <field name="report_rml" attrs="{'invisible':[('report_type','!=', 'controller')]}"/> + </group> + </group> + <notebook> + <page name="security" string="Security"> + <field name="groups_id"/> + </page> + <page name='rml' string="RML Configuration" attrs="{'invisible':[('report_type','not in',['pdf','sxw'])]}"> + <group> + <group string="RML Report"> + <field name="header"/> + <field name="report_file"/> + <field name="auto"/> + <field name="parser"/> + <field name="usage"/> + </group> + <group string="XML Report"> + <field name="report_xsl"/> + <field name="report_xml"/> + </group> </group> - <group string="XML Report"> - <field name="report_xsl"/> - <field name="report_xml"/> + </page> + <page name='advanced' string="Advanced Properties"> + <group> + <field name="multi"/> + <field name="attachment_use" attrs="{'invisible':[('report_type','=', 'controller')]}"/> + <field name="attachment" attrs="{'invisible':[('report_type','=', 'controller')]}"/> </group> - </group> - </page> - </notebook> + </page> + </notebook> + </sheet> </form> </field> </record> |
