res_config_settings_views.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.sale.timesheet</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="priority" eval="1"/>
  7. <field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@name='section_leaves']" position="before">
  10. <h2>Billing</h2>
  11. <div name="timesheet_billing" class="row mt16 o_settings_container">
  12. <div class="col-12 col-lg-6 o_setting_box" id="time_billing_setting">
  13. <div class="o_setting_right_pane">
  14. <span class="o_form_label">Time Billing</span>
  15. <div class="text-muted">
  16. Sell services and invoice time spent
  17. </div>
  18. <div class="content-group" name="msg_module_sale_timesheet">
  19. <div class="mt8">
  20. <div>
  21. <button name="%(sale_timesheet.product_template_action_default_services)d" string="Configure your services" type="action" class="btn-link" icon="fa-arrow-right"/>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="col-12 col-lg-6 o_setting_box" name="invoice_policy">
  28. <div class="o_setting_left_pane">
  29. <field name="invoice_policy" widget="upgrade_boolean"/>
  30. </div>
  31. <div class="o_setting_right_pane">
  32. <label for="invoice_policy"/>
  33. <div class="text-muted">
  34. Timesheets taken into account when invoicing your time
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </xpath>
  40. </field>
  41. </record>
  42. </odoo>