12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="sale_order_form_invoice_credit" model="ir.ui.view">
- <field name="name">sale_order_form_invoice_credit</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_form"/>
- <field name="arch" type="xml">
- <button name="%(sale.action_view_sale_advance_payment_inv)d" states="manual" position="replace">
- <button name="create_invoice" string="Crear Factura" type="object" states="manual" groups="base.group_user"/>
- </button>
- <field name="payment_term" position="replace"/>
- <field name="pricelist_id" position="after">
- <label for="contado" string="Forma de pago"/>
- <div>
- <label for="contado" string="Contado"/>
- <field name="contado" attrs="{'readonly': [('state','!=','draft')]}"/>
- <label for="credito" string="Crédito"/>
- <field name="credito" attrs="{'readonly' : ['|',('state','!=','draft')]}"/>
- <field name="payment_term" options="{'no_create': True}" attrs="{'invisible' : [('credito', '=', False )],'readonly': [('state','!=','draft')]}"/>
- </div>
- </field>
- </field>
- </record>
- <record id="view_order_form_inherit" model="ir.ui.view">
- <field name="name">view_order_form_inherit</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale_stock.view_order_form_inherit"/>
- <field name="arch" type="xml">
- <field name="order_policy" position="replace">
- <field name="order_policy"/>
- </field>
- </field>
- </record>
- </data>
- </openerp>
|