|
@@ -0,0 +1,104 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<openerp>
|
|
|
|
+ <data>
|
|
|
|
+ <record id="sale_interest_percentage_search_form_view" model="ir.ui.view">
|
|
|
|
+ <field name="name">sale.interest.percentage.search.form</field>
|
|
|
|
+ <field name="model">sale.interest.percentage</field>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <search string="Sale Interest percentage">
|
|
|
|
+ <field name="name"/>
|
|
|
|
+ </search>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <record id="sale_interest_percentage_form_view" model="ir.ui.view">
|
|
|
|
+ <field name="name">sale.interest.percentage.form</field>
|
|
|
|
+ <field name="model">sale.interest.percentage</field>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <form string="Sale Interest Percentage" version="7.0">
|
|
|
|
+ <sheet>
|
|
|
|
+ <div class="oe_title">
|
|
|
|
+ <div class="oe_edit_only">
|
|
|
|
+ <label for="name" string="Nombre del Interes"/>
|
|
|
|
+ </div>
|
|
|
|
+ <h1>
|
|
|
|
+ <field name="name"/>
|
|
|
|
+ </h1>
|
|
|
|
+ </div>
|
|
|
|
+ <group>
|
|
|
|
+ <field name="value"/>
|
|
|
|
+ </group>
|
|
|
|
+ </sheet>
|
|
|
|
+ </form>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <record id="sale_interest_percentage_tree_view" model="ir.ui.view">
|
|
|
|
+ <field name="name">sale.interest.percentage.tree</field>
|
|
|
|
+ <field name="model">sale.interest.percentage</field>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <tree string="Sale Interest Percentage">
|
|
|
|
+ <field name="name"/>
|
|
|
|
+ <field name="value"/>
|
|
|
|
+ </tree>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <record id="discount_sale_view_form" model="ir.ui.view">
|
|
|
|
+ <field name="name">discount.sale.order.form</field>
|
|
|
|
+ <field name="model">sale.order</field>
|
|
|
|
+ <field name="inherit_id" ref="sale.view_order_form"/>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <!-- <xpath expr="//tree/field[@name='discount']" position="attributes">
|
|
|
|
+ <attribute name="digits">(16, 2)</attribute>
|
|
|
|
+ </xpath> -->
|
|
|
|
+
|
|
|
|
+ <!-- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='product_uom']" position="after">
|
|
|
|
+ <attribute name="invisible">1</attribute>
|
|
|
|
+ </xpath> -->
|
|
|
|
+
|
|
|
|
+ <xpath expr="//group[@name='sale_total']" position="replace">
|
|
|
|
+ <group col="4">
|
|
|
|
+ <group name="discount" colspan="2">
|
|
|
|
+ <field name="interest_id"/>
|
|
|
|
+ </group>
|
|
|
|
+ <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
|
|
|
|
+ <field name="amount_untaxed" widget='monetary' options="{'currency_field': 'currency_id'}"/>
|
|
|
|
+ <!-- <field name="amount_discount" widget='monetary' options="{'currency_field': 'currency_id'}"/> -->
|
|
|
|
+ <field name="amount_tax" widget='monetary' options="{'currency_field': 'currency_id'}"/>
|
|
|
|
+ <div class="oe_subtotal_footer_separator oe_inline">
|
|
|
|
+ <label for="amount_total" />
|
|
|
|
+ <button name="button_dummy"
|
|
|
|
+ states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/>
|
|
|
|
+ </div>
|
|
|
|
+ <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
|
|
|
|
+ </group>
|
|
|
|
+ </group>
|
|
|
|
+ </xpath>
|
|
|
|
+
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <record model="ir.actions.act_window" id="action_sale_interest_percentage">
|
|
|
|
+ <field name="name">Configurar Interes de Ventas</field>
|
|
|
|
+ <field name="res_model">sale.interest.percentage</field>
|
|
|
|
+ <field name="view_type">form</field>
|
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <menuitem
|
|
|
|
+ name="Configurar Interes de Venta"
|
|
|
|
+ id="menu_sale_interest_percentage_parent"
|
|
|
|
+ parent="base.menu_base_config"/>
|
|
|
|
+
|
|
|
|
+ <menuitem
|
|
|
|
+ name="Porcentajes de interes en ventas"
|
|
|
|
+ id="menu_sale_interest_percentage"
|
|
|
|
+ action="action_sale_interest_percentage"
|
|
|
|
+ parent="menu_sale_interest_percentage_parent"/>
|
|
|
|
+
|
|
|
|
+ </data>
|
|
|
|
+</openerp>
|