You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

5 years ago
5 years ago
5 years ago
  1. <odoo>
  2. <record id="pos_transaction_tree_view" model="ir.ui.view">
  3. <field name="name">pos.transaction.tree</field>
  4. <field name="model">pos.transaction</field>
  5. <field name="arch" type="xml">
  6. <tree>
  7. <field name="balance_id"/>
  8. <field name="name"/>
  9. <field name="qrcode"/>
  10. <field name="ean13"/>
  11. <field name="ean13_verif"/>
  12. <field name="write_date"/>
  13. <field name="date_iso"/>
  14. <!-- <field name="weight"/> -->
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="pos_transaction_form_view" model="ir.ui.view">
  19. <field name="name">pos.transaction.form</field>
  20. <field name="model">pos.transaction</field>
  21. <field name="arch" type="xml">
  22. <form>
  23. <sheet>
  24. <group>
  25. <group>
  26. <field name="balance_id" readonly="1"/>
  27. <field name="name" readonly="1"/>
  28. <field name="product_id" readonly="1"/>
  29. <field name="write_date" readonly="1"/>
  30. <field name="date_iso" readonly="1"/>
  31. </group>
  32. <group>
  33. <field name="ean13" readonly="1"/>
  34. <field name="ean13_verif" readonly="1"/>
  35. <field name="qrcode" readonly="1"/>
  36. <field name="weight_net" readonly="1"/>
  37. <field name="weight_tare" readonly="1"/>
  38. <field name="price_product" readonly="1"/>
  39. <field name="price_net" readonly="1"/>
  40. </group>
  41. </group>
  42. </sheet>
  43. </form>
  44. </field>
  45. </record>
  46. <record id="pos_transaction_action_window" model="ir.actions.act_window" >
  47. <field name="name">transactions</field>
  48. <field name="res_model">pos.transaction</field>
  49. <field name="view_mode">tree,form</field>
  50. </record>
  51. <menuitem id="pos_transaction_menu"
  52. name="transactions"
  53. parent="point_of_sale.pos_config_menu_catalog"
  54. sequence="13"
  55. action="pos_transaction_action_window"
  56. groups="point_of_sale.group_pos_manager,point_of_sale.group_pos_user"
  57. />
  58. </odoo>