pos_view.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!--<record id="act_res_partner_3_pos_order" model="ir.actions.act_window">
  5. <field name="name">Pos</field>
  6. <field name="res_model">pos.order.line</field>
  7. <field name="view_type">form</field>
  8. <field name="view_mode">tree,form</field>
  9. <field name="context">{'search_default_partner_id': active_id}</field>
  10. <field name="groups_id" eval="[(4, ref('point_of_sale.group_pos_user'))]"/>
  11. <field name="help" type="html">
  12. <p class="oe_view_nocontent_create">
  13. Click to create a quotation or pos order for this customer.
  14. </p><p>
  15. Odoo will help you efficiently handle the complete sale flow:
  16. pos order, invoicing and
  17. payment.
  18. </p><p>
  19. The social feature helps you organize discussions on each pos
  20. order, and allow your customer to keep track of the evolution
  21. of the pos order.
  22. </p>
  23. </field>
  24. </record> -->
  25. <record id="action_pos_line_product_tree" model="ir.actions.act_window">
  26. <field name="context">{}</field><!-- force empty -->
  27. <field name="name">Pos Order Lines</field>
  28. <field name="res_model">pos.order.line</field>
  29. <field name="view_id" ref="point_of_sale.view_pos_order_tree"/>
  30. <field name="context">{'search_default_confirmed': 1}</field>
  31. </record>
  32. <record model="ir.ui.view" id="product_form_view_pos_order_button1">
  33. <field name="name">product.product.pos.order1</field>
  34. <field name="model">product.product</field>
  35. <field name="inherit_id" ref="product.product_normal_form_view"/>
  36. <!-- <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/> -->
  37. <field name="arch" type="xml">
  38. <xpath expr="//div[@name='buttons']" position="inside">
  39. <button class="oe_inline oe_stat_button" name="action_view_pos"
  40. type="object" icon="fa-strikethrough">
  41. <field string="Pos" name="pos_count" widget="statinfo" />
  42. </button>
  43. </xpath>
  44. </field>
  45. </record>
  46. <record model="ir.ui.view" id="product_template_form_view_pos_order_button1">
  47. <field name="name">product.template.pos.order.button1</field>
  48. <field name="model">product.template</field>
  49. <field name="inherit_id" ref="product.product_template_only_form_view"/>
  50. <!-- <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/> -->
  51. <field name="arch" type="xml">
  52. <xpath expr="//div[@name='buttons']" position="inside">
  53. <button class="oe_inline oe_stat_button" name="action_view_pos"
  54. type="object" icon="fa-strikethrough">
  55. <field string="Pos" name="pos_count" widget="statinfo" />
  56. </button>
  57. </xpath>
  58. </field>
  59. </record>
  60. </data>
  61. </openerp>