product_product_label_print.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="product_product_label_view_form" model="ir.ui.view">
  5. <field name="name">product.product.label.view.form</field>
  6. <field name="model">product.product.label</field>
  7. <field name="arch" type="xml">
  8. <form string="Etiquetas">
  9. <group col="4">
  10. <field name="label_lines" string="Lineas">
  11. <tree editable="bottom">
  12. <field name="product_id" string="Producto"/>
  13. <field name="quantity" string="Cantidad"/>
  14. </tree>
  15. </field>
  16. </group>
  17. <footer>
  18. <button string="Imprimir" name="print_labels" type="object" default_focus="1" class="btn-primary"/>
  19. <!-- Nuevo botón para imprimir etiquetas con precio -->
  20. <button string="Imprimir con Precio" name="print_labels_with_price" type="object" class="btn-secondary"/>
  21. <button string="Cancelar" class="btn-default" special="cancel"/>
  22. </footer>
  23. </form>
  24. </field>
  25. </record>
  26. <record id="product_product_label_view_action" model="ir.actions.act_window">
  27. <field name="name">Etiquetas</field>
  28. <field name="res_model">product.product.label</field>
  29. <field name="view_type">form</field>
  30. <field name="view_mode">form</field>
  31. <field name="view_id" ref="product_product_label_view_form"/>
  32. <field name="target">new</field>
  33. </record>
  34. <record id="product_product_action_product_product_label" model="ir.values">
  35. <field name="model_id" ref="product.model_product_product" />
  36. <field name="name">Etiquetas</field>
  37. <field name="key2">client_action_multi</field>
  38. <field name="value" eval="'ir.actions.act_window,' +str(ref('product_product_label_view_action'))" />
  39. <field name="key">action</field>
  40. <field name="model">product.product</field>
  41. </record>
  42. </data>
  43. </openerp>