res_config_settings_views.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="res_config_settings_view_form" model="ir.ui.view">
  5. <field name="name">res.config.settings.view.form.inherit.l10n.ch</field>
  6. <field name="model">res.config.settings</field>
  7. <field name="inherit_id" ref="account.res_config_settings_view_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@id='invoicing_settings']" position="inside">
  10. <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_bank" attrs="{'invisible': [('country_code', '!=', 'CH')]}">
  11. <div class="o_setting_left_pane">
  12. <field name="l10n_ch_isr_print_bank_location"/>
  13. </div>
  14. <div class="o_setting_right_pane">
  15. <label for="l10n_ch_isr_print_bank_location"/>
  16. <div class="text-muted">
  17. Print the coordinates of your bank under the &apos;Payment for&apos; title of the ISR.
  18. Your address will be moved to the &apos;in favour of&apos; section.
  19. </div>
  20. <div class="content-group" attrs="{'invisible': [('l10n_ch_isr_print_bank_location', '=', False)]}">
  21. <div class="row mt16">
  22. <label for="l10n_ch_isr_preprinted_bank" class="col-lg-4 o_light_label"/>
  23. <field name="l10n_ch_isr_preprinted_bank"/>
  24. </div>
  25. <div class="row">
  26. <label for="l10n_ch_isr_preprinted_account" class="col-lg-4 o_light_label"/>
  27. <field name="l10n_ch_isr_preprinted_account"/>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="col-12 col-lg-6 o_setting_box" id="l10n_ch-isr_print_scanline_offset" attrs="{'invisible': [('country_code', '!=', 'CH')]}">
  33. <div class="o_setting_left_pane"/>
  34. <div class="o_setting_right_pane">
  35. <span class="o_form_label">ISR scan line offset</span>
  36. <div class="text-muted">
  37. Offset to move the scan line in mm
  38. </div>
  39. <div class="content-group">
  40. <div class="row mt16">
  41. <label for="l10n_ch_isr_scan_line_top" class="col-lg-4 o_light_label"/>
  42. <field name="l10n_ch_isr_scan_line_top"/>
  43. </div>
  44. <div class="row">
  45. <label for="l10n_ch_isr_scan_line_left" class="col-lg-4 o_light_label"/>
  46. <field name="l10n_ch_isr_scan_line_left"/>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </xpath>
  52. </field>
  53. </record>
  54. </data>
  55. </odoo>