point_of_sale_security.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.module.category" id="base.module_category_sales_point_of_sale">
  4. <field name="description">Helps you get the most out of your points of sale with fast sale encoding, simplified payment mode encoding, automatic picking lists generation and more.</field>
  5. <field name="sequence">21</field>
  6. </record>
  7. <record id="group_pos_user" model="res.groups">
  8. <field name="name">User</field>
  9. <field name="category_id" ref="base.module_category_sales_point_of_sale"/>
  10. </record>
  11. <record id="group_pos_manager" model="res.groups">
  12. <field name="name">Administrator</field>
  13. <field name="category_id" ref="base.module_category_sales_point_of_sale"/>
  14. <field name="implied_ids" eval="[(4, ref('group_pos_user')), (4, ref('stock.group_stock_user'))]"/>
  15. <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
  16. </record>
  17. <data noupdate="1">
  18. <record id="rule_pos_bank_statement_account_user" model="ir.rule">
  19. <field name="name">Point Of Sale Bank Statement Accountant</field>
  20. <field name="model_id" ref="account.model_account_bank_statement" />
  21. <field name="groups" eval="[(4, ref('account.group_account_invoice'))]"/>
  22. <field name="domain_force">[(1, '=', 1)]</field>
  23. </record>
  24. <record id="rule_pos_bank_statement_line_user" model="ir.rule">
  25. <field name="name">Point Of Sale Bank Statement Line POS User</field>
  26. <field name="model_id" ref="account.model_account_bank_statement_line" />
  27. <field name="groups" eval="[(4, ref('group_pos_user'))]"/>
  28. <field name="domain_force">[('pos_session_id', '!=', False)]</field>
  29. </record>
  30. <record id="rule_pos_bank_statement_line_account_user" model="ir.rule">
  31. <field name="name">Point Of Sale Bank Statement Line Accountant</field>
  32. <field name="model_id" ref="account.model_account_bank_statement_line" />
  33. <field name="groups" eval="[(4, ref('account.group_account_invoice'))]"/>
  34. <field name="domain_force">[(1, '=', 1)]</field>
  35. </record>
  36. <record id="rule_pos_multi_company" model="ir.rule">
  37. <field name="name">Point Of Sale Order</field>
  38. <field name="model_id" ref="model_pos_order" />
  39. <field name="domain_force">[('company_id', 'in', company_ids)]</field>
  40. </record>
  41. <record id="rule_pos_session_multi_company" model="ir.rule">
  42. <field name="name">Point Of Sale Session</field>
  43. <field name="model_id" ref="model_pos_session" />
  44. <field name="domain_force">[('config_id.company_id', 'in', company_ids)]</field>
  45. </record>
  46. <record id="rule_pos_config_multi_company" model="ir.rule">
  47. <field name="name">Point Of Sale Config</field>
  48. <field name="model_id" ref="model_pos_config" />
  49. <field name="domain_force">[('company_id', 'in', company_ids)]</field>
  50. </record>
  51. <record id="rule_pos_order_report_multi_company" model="ir.rule">
  52. <field name="name">Point Of Sale Order Analysis multi-company</field>
  53. <field name="model_id" ref="model_report_pos_order"/>
  54. <field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
  55. </record>
  56. <record id="rule_pos_payment_method_multi_company" model="ir.rule">
  57. <field name="name">PoS Payment Method</field>
  58. <field name="model_id" ref="model_pos_payment_method" />
  59. <field name="domain_force">[('company_id', 'in', company_ids)]</field>
  60. </record>
  61. <record id="rule_pos_payment_multi_company" model="ir.rule">
  62. <field name="name">PoS Payment</field>
  63. <field name="model_id" ref="model_pos_payment" />
  64. <field name="domain_force">[('company_id', 'in', company_ids)]</field>
  65. </record>
  66. <record id="base.default_user" model="res.users">
  67. <field name="groups_id" eval="[(4,ref('point_of_sale.group_pos_manager'))]"/>
  68. </record>
  69. </data>
  70. </odoo>