res_config_settings_views.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.l10n.es</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="inherit_id" ref="account.res_config_settings_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[@data-key='account']/div" position="after">
  9. <h2 attrs="{'invisible': [('country_code', '!=', 'ES')]}">Spain Localization</h2>
  10. <div class="row mt16 o_settings_container"
  11. name="spain_localization"
  12. attrs="{'invisible': [('country_code', '!=', 'ES')]}">
  13. <div class="col-xs-12 col-md-6 o_setting_box">
  14. <!-- Invisible fields -->
  15. <field name="l10n_es_edi_certificate_ids" invisible="1"/>
  16. <div class="o_setting_left_pane"/>
  17. <div class="o_setting_right_pane">
  18. <span class="o_form_label">Registro de Libros connection SII</span>
  19. <span class="fa fa-lg fa-building-o"
  20. title="Values set here are company-specific."
  21. groups="base.group_multi_company"/>
  22. <div class="content-group">
  23. <div class="mt16">
  24. <label for="l10n_es_edi_tax_agency" class="o_light_label"/>
  25. <field name="l10n_es_edi_tax_agency"/>
  26. <div class="text-muted" attrs="{'invisible': [('l10n_es_edi_tax_agency', '!=', False)]}">
  27. No tax agency selected: SII not activated.
  28. </div>
  29. <div class="text-muted" attrs="{'invisible': [('l10n_es_edi_tax_agency', '=', False)]}">
  30. Tax agency selected: invoices will be sent by SII for journals where it is activated.
  31. </div>
  32. <br/>
  33. <div class="o_row">
  34. <label for="l10n_es_edi_test_env" class="o_light_label"/>
  35. <field name="l10n_es_edi_test_env"/>
  36. </div>
  37. <div class="text-muted" attrs="{'invisible': [('l10n_es_edi_test_env', '=', False)]}">
  38. Test mode: EDI data is sent to separate test servers and is not considered official.
  39. </div>
  40. <div class="text-muted" attrs="{'invisible': [('l10n_es_edi_test_env', '!=', False)]}">
  41. Production mode: EDI data is sent to the official agency servers.
  42. </div>
  43. <br/>
  44. <div>
  45. <button name="%(l10n_es_edi_certificate_action)d" type="action" class="oe_link">Manage certificates (SII/TicketBAI)</button>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </xpath>
  53. </field>
  54. </record>
  55. </odoo>