123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="view_order_confirm_form" model="ir.ui.view">
- <field name="name">sale.order.form - Confirm</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_form"/>
- <field name="arch" type="xml">
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='name']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath>
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='discount']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath>
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='price_unit']" position="before">
- <field name="standard_price" readonly="1"/>
- </xpath>
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='price_unit']" position="before">
- <field name="discount_id" domain="[('type','=','purchase')]"/>
- </xpath>
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='price_unit']" position="before">
- <field name="sale_percentage_id" domain="[('type','=','sale')]"/>
- </xpath>
- <xpath expr="//tree[@string='Sales Order Lines']//field[@name='price_subtotal']" position="after">
- <field name="amount_total" readonly="1"/>
- </xpath>
- <field name="pricelist_id" position="after">
- <field name="contado"/>
- <field name="credito"/>
- <field name="invoice_number"/>
- </field>
- <!--
- BUTTONS
- -->
- <button name="action_button_confirm" states="sent" position="after">
- <button name="order_process_now" string="Procesar Venta" type="object" states="draft,sent" groups="base.group_user"/>
- </button>
- <button name="action_quotation_send" position="replace">
- <button name="action_quotation_send" string="Send by Email" type="object" states="draft" class="oe_highlight" groups="base.group_user" invisible="1"/>
- </button>
- <button name="action_quotation_send" states="sent,progress,manual" position="replace">
- <button name="action_quotation_send" string="Send by Email" type="object" groups="base.group_user" invisible="1"/>
- </button>
- <button name="print_quotation" states="draft" position="replace">
- <button name="print_quotation" string="Print" type="object" states="draft" class="oe_highlight" groups="base.group_user" invisible="1"/>
- </button>
- <button name="print_quotation" states="sent,progress,manual" position="replace">
- <button name="print_quotation" string="Print" type="object" states="sent,progress,manual" groups="base.group_user" invisible="1"/>
- </button>
- <button name="action_button_confirm" position="replace">
- <button name="action_button_confirm" states="draft" string="Confirm Sale" type="object" groups="base.group_user" invisible="1"/>
- </button>
- <button name="action_button_confirm" position="replace">
- <button name="action_button_confirm" states="sent" string="Confirm Sale" class="oe_highlight" type="object" groups="base.group_user" invisible="1"/>
- </button>
- <button name="invoice_cancel" position="replace">
- <button name="invoice_cancel" states="invoice_except" string="Cancel Order" groups="base.group_user" invisible="1"/>
- </button>
- <button name="cancel" position="replace">
- <button name="cancel" states="draft,sent" string="Cancel Quotation" groups="base.group_user" invisible="1"/>
- </button>
- <button name="action_cancel" position="replace">
- <button name="action_cancel" states="manual,progress" string="Cancel Order" type="object" groups="base.group_user" invisible="1"/>
- </button>
- </field>
- </record>
- <record id="account_invoice_cred_cont" model="ir.ui.view">
- <field name="name">account.invoice.cred.cont</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.invoice_form" />
- <field name="arch" type="xml">
- <field name="fiscal_position" position="after">
- <field name="contado"/>
- <field name="credito"/>
- </field>
- </field>
- </record>
- <record id="order_process_now_action" model="ir.actions.server">
- <field name="name">Fast Confirm</field>
- <field name="model_id" ref="model_sale_order"/>
- <field name="state">code</field>
- <field name="code">
- if context.get('active_model') == 'sale.order' and context.get('active_ids'):
- self.order_process_now(cr, uid, context['active_ids'], context=context)
- </field>
- </record>
- <record id="ir_order_process_now" model="ir.values">
- <field eval="'client_action_multi'" name="key2"/>
- <field eval="'sale.order'" name="model"/>
- <field name="name">Fast Confirm</field>
- <field eval="'ir.actions.server,%d'%order_process_now_action" name="value"/>
- </record>
- </data>
- </openerp>
|