You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

63 lines
2.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view of sales.incentive -->
<record id="sales_incentive_view_form" model="ir.ui.view">
<field name="name">sales.incentive.view.form</field>
<field name="model">sales.incentive</field>
<field name="arch" type="xml">
<form string="Incentive Settings">
<sheet>
<div align="right">
<button name="action_incentive_compute" type="object"
string="Compute incentive"
invisible="not active_calculation"/>
</div>
<group>
<group>
<field name="name"/>
<field name="active_calculation"/>
<field name="calculation_method" widget="radio"
colspan="1"/>
</group>
</group>
<notebook>
<page string="Incentive settings">
<field name="select_incentive_ids">
<tree editable="bottom">
<field name="upto_percent"/>
<field name="reward"/>
<field name="incentive_type"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Tree view of sales.incentive -->
<record id="sales_incentive_view_tree" model="ir.ui.view">
<field name="name">sales.incentive.view.tree</field>
<field name="model">sales.incentive</field>
<field name="arch" type="xml">
<tree string="Sales">
<field name="name"/>
<field name="calculation_method"/>
<field name="active_calculation"/>
</tree>
</field>
</record>
<!-- Action for sales.incentive-->
<record id="sales_incentive_action" model="ir.actions.act_window">
<field name="name">Incentive</field>
<field name="res_model">sales.incentive</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new incentive Scheme.
</p>
</field>
</record>
</odoo>