res_config_settings.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="res_config_settings_view_form" model="ir.ui.view">
  4. <field name="name">res.config.settings.view.form.inherit.lunch</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="priority" eval="90"/>
  7. <field name="inherit_id" ref="base.res_config_settings_view_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[hasclass('settings')]" position="inside">
  10. <div class="app_settings_block" data-string="Lunch" string="Lunch" data-key="lunch" groups="lunch.group_lunch_manager">
  11. <field name="currency_id" invisible="1"/>
  12. <h2>Lunch</h2>
  13. <div class="row mt16 o_settings_container" name="lunch_overdraft_setting_container">
  14. <div class="col-12 col-lg-6 o_setting_box" id="lunch_minimum_threshold"
  15. title="None">
  16. <div class="o_setting_right_pane">
  17. <span class="o_form_label">Lunch Overdraft</span>
  18. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
  19. <div class="text-muted">
  20. Maximum overdraft that your employees can reach
  21. </div>
  22. <div class="content-group">
  23. <div class="mt16 row">
  24. <label for="company_lunch_minimum_threshold" string="Overdraft" class="col-3 col-lg-3 o_light_label"/>
  25. <field name="company_lunch_minimum_threshold" widget="monetary"/>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="row mt16 o_settings_container" name="lunch_notification_setting_container">
  32. <div class="col-12 col-lg-6 o_setting_box" id="lunch_notification">
  33. <div class="o_setting_right_pane">
  34. <span class="o_form_label">Reception notification</span>
  35. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
  36. <div class="text-mutex">
  37. Send this message to your users when their order has been delivered.
  38. </div>
  39. <div class="content-group">
  40. <div class="mt16 row">
  41. <field name="company_lunch_notify_message" widget="html" class="col col-lg w-100"/>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </xpath>
  49. </field>
  50. </record>
  51. <record id="lunch_config_settings_action" model="ir.actions.act_window">
  52. <field name="name">Settings</field>
  53. <field name="type">ir.actions.act_window</field>
  54. <field name="res_model">res.config.settings</field>
  55. <field name="view_id" ref="res_config_settings_view_form"/>
  56. <field name="view_mode">form</field>
  57. <field name="target">inline</field>
  58. <field name="context">{'module' : 'lunch', 'bin_size': False}</field>
  59. </record>
  60. </odoo>