Now there should be only one button box per page, and the name should be "button_box". Conflicts: addons/crm/crm_tip_data.xml addons/event/event_tip_data.xml addons/fleet/fleet_view.xml addons/hr/hr_view.xml addons/hr_recruitment/hr_recruitment_view.xml addons/project/project_tip_data.xml addons/purchase/purchase_tip_data.xml addons/sale_crm/sale_crm_view.xml addons/website_quote/views/website_quotation_backend.xml openerp/addons/base/res/res_partner_view.xml Conflicts: addons/account_reports/views/partner_view.xml Conflicts: addons/claim_from_delivery/claim_delivery_view.xml addons/stock/stock_view.xml
25 lines
1.1 KiB
XML
25 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!-- inherit get state button on project -->
|
|
<record id="project_issue_view_rating" model="ir.ui.view">
|
|
<field name="name">project.issue.view.rating</field>
|
|
<field name="model">project.project</field>
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
<field name="priority" eval="20"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button name="action_view_issue_rating"
|
|
attrs="{'invisible': ['|', '|', ('use_issues','=', False), ('is_visible_happy_customer','=', False), ('percentage_satisfaction_issue', '=', -1)]}"
|
|
class="oe_stat_button oe_percent"
|
|
type="object"
|
|
icon="fa-smile-o">
|
|
<field string="On issues" name="percentage_satisfaction_issue" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|