sale_order.xml 1.2 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="button_change_pricelist_products" model="ir.ui.view">
  5. <field name="name">button.change.pricelist.products</field>
  6. <field name="model">sale.order</field>
  7. <field name="inherit_id" ref="sale.view_order_form"/>
  8. <field name="arch" type="xml">
  9. <field name="pricelist_id" position="replace">
  10. <field domain="[('type','=','sale')]" name="pricelist_id" groups="product.group_sale_pricelist" on_change="onchange_pricelist_id(pricelist_id,order_line)" options="{'no_create':True}" readonly="1"/>
  11. </field>
  12. <field name="pricelist_id" position="after">
  13. <label for="pricelist_id" string="Actualizar Tarifa"/>
  14. <div>
  15. <button name="%(action_change_pricelist)d" type="action" string="Tarifa" icon="gtk-jump-to"
  16. class="oe_button oe_form_button oe_highlight" help="Seleccionar Lista de Precio"
  17. attrs="{'invisible': [('state', 'not in', ['draft', 'sent'])]}"/>
  18. </div>
  19. </field>
  20. </field>
  21. </record>
  22. </data>
  23. </openerp>