templates.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <!-- <menuitem id="eiru_pos.new_sale" name="Nueva venta" parent="eiru_dashboard.eiru_dashboard_main" action="eiru_pos.pos_action" sequence="2" /> -->
  21. <!-- <menuitem id="eiru_pos.new_budget" name="Nuevo presupuesto" parent="eiru_dashboard.eiru_dashboard_main" action="eiru_pos.budget_action" sequence="3" /> -->
  22. <record id="eiru_pos.settings_form" model="ir.ui.view">
  23. <field name="name">Preferencias Eiru POS</field>
  24. <field name="model">res.config.settings</field>
  25. <field name="arch" type="xml">
  26. <form string="Eiru POS">
  27. <header>
  28. <button string="Guardar" type="object" name="execute" class="oe_highlight" />
  29. or
  30. <button string="Cancelar" type="object" name="cancel" class="oe_link" />
  31. </header>
  32. <div name="general">
  33. <separator string="Preferencias" />
  34. <group>
  35. <group>
  36. <field name="image_type" />
  37. <field name="allow_currency_exchange" />
  38. <field name="view_currency_exchanges" />
  39. </group>
  40. <group>
  41. <field name="currency_ids" widget="many2many_tags" options="{'no_create_edit': True}" />
  42. </group>
  43. </group>
  44. </div>
  45. </form>
  46. </field>
  47. </record>
  48. <record id="eiru_pos.action_settings" model="ir.actions.act_window">
  49. <field name="name">Preferencias Eiru POS</field>
  50. <field name="type">ir.actions.act_window</field>
  51. <field name="res_model">base.config.settings</field>
  52. <field name="view_id" ref="eiru_pos.settings_form"></field>
  53. <field name="view_mode">form</field>
  54. <field name="target">inline</field>
  55. </record>
  56. <menuitem id="eiru_pos.preferences" name="TPV" parent="base.menu_config" action="eiru_pos.action_settings" sequence="100" />
  57. </data>
  58. </openerp>