templates.xml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <openerp>
  2. <data>
  3. <template id="eiru_pos.assets" name="Eiru Pos Assets" inherit_id="eiru_assets.assets">
  4. <xpath expr="." position="inside">
  5. <link rel="stylesheet" href="/eiru_pos/static/src/main.css" />
  6. <link rel="stylesheet" href="/eiru_pos/static/report/ticket_style.css" />
  7. <script type="text/javascript" src="/eiru_pos/static/src/main.js" />
  8. </xpath>
  9. </template>
  10. <record id="eiru_pos.pos_action" model="ir.actions.client">
  11. <field name="name">Eiru Ventas</field>
  12. <field name="tag">eiru_pos.action_launch</field>
  13. <field name="params">{'mode': 'sale'}</field>
  14. </record>
  15. <record id="eiru_pos.budget_action" model="ir.actions.client">
  16. <field name="name">Eiru Presupuestos</field>
  17. <field name="tag">eiru_pos.action_launch</field>
  18. <field name="params">{'mode': 'budget'}</field>
  19. </record>
  20. <record id="eiru_pos.pos_rel_1_action" model="ir.actions.client">
  21. <field name="name">Eiru Ventas 1</field>
  22. <field name="tag">eiru_pos.action_launch</field>
  23. <field name="params">{'mode': 'product_picking'}</field>
  24. </record>
  25. <record id="eiru_pos.pos_rel_2_action" model="ir.actions.client">
  26. <field name="name">Eiru Ventas 2</field>
  27. <field name="tag">eiru_pos.action_launch</field>
  28. <field name="params">{'mode': 'payment'}</field>
  29. </record>
  30. <record id="eiru_pos.pos_rel_3_action" model="ir.actions.client">
  31. <field name="name">Eiru Ventas 3</field>
  32. <field name="tag">eiru_pos.action_launch</field>
  33. <field name="params">{'mode': 'product_delivery'}</field>
  34. </record>
  35. <!-- <menuitem id="eiru_pos.new_sale" name="Nueva venta" parent="eiru_dashboard.eiru_dashboard_main" action="eiru_pos.pos_action" sequence="2" /> -->
  36. <!-- <menuitem id="eiru_pos.new_budget" name="Nuevo presupuesto" parent="eiru_dashboard.eiru_dashboard_main" action="eiru_pos.budget_action" sequence="3" /> -->
  37. <record id="eiru_pos.settings_form" model="ir.ui.view">
  38. <field name="name">Preferencias Eiru POS</field>
  39. <field name="model">res.config.settings</field>
  40. <field name="arch" type="xml">
  41. <form string="Eiru POS">
  42. <header>
  43. <button string="Guardar" type="object" name="execute" class="oe_highlight" />
  44. or
  45. <button string="Cancelar" type="object" name="cancel" class="oe_link" />
  46. </header>
  47. <div name="general">
  48. <separator string="Preferencias" />
  49. <group>
  50. <group>
  51. <field name="image_type" />
  52. <field name="allow_currency_exchange" />
  53. <field name="view_currency_exchanges" />
  54. </group>
  55. <group>
  56. <field name="currency_ids" widget="many2many_tags" options="{'no_create_edit': True}" />
  57. <field name="allow_change_user" />
  58. <field name="allow_change_date" />
  59. <field name="allow_pricelist" />
  60. </group>
  61. </group>
  62. </div>
  63. </form>
  64. </field>
  65. </record>
  66. <record id="eiru_pos.action_settings" model="ir.actions.act_window">
  67. <field name="name">Preferencias Eiru POS</field>
  68. <field name="type">ir.actions.act_window</field>
  69. <field name="res_model">res.config.settings</field>
  70. <field name="view_id" ref="eiru_pos.settings_form"></field>
  71. <field name="view_mode">form</field>
  72. <field name="target">inline</field>
  73. </record>
  74. <menuitem id="eiru_pos.preferences" name="TPV" parent="base.menu_config" action="eiru_pos.action_settings" sequence="100" />
  75. </data>
  76. </openerp>