Files
enterprise-addons/documents_account/views/res_config_settings_views.xml
T

28 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.documents</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="40"/>
<field name="inherit_id" ref="documents.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//app[@name='documents']" position="attributes">
<attribute name="notApp">0</attribute>
</xpath>
<xpath expr="//block[@id='files_centralization_section']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//block[@id='files_centralization_section']" position="inside">
<setting company_dependent="1" string="Accounting" help="Centralize accounting files and documents">
<label class="o_form_label col-lg-3" for="account_folder_id" string="Folder"/>
<field name="account_folder_id" required="True" widget="documents_folder_many2one"
options="{'no_create': True, 'no_create_edit': True}"/>
<div class="row col-lg-4">
<button type="action" name="%(documents_account.action_folder_settings_installer)d" string="Journals" icon="oi-arrow-right" class="btn-link"/>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>