Public release from ruodoo-project: 19.0 - 2026-05-10 21:19:01 UTC
This commit is contained in:
31
account_move_templates_invoice/views/account_move_views.xml
Normal file
31
account_move_templates_invoice/views/account_move_views.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_account_move_template_invoice_form" model="ir.ui.view">
|
||||
<field name="name">account.move.template.invoice.form</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<!-- Smart button: visible when move_count > 0 -->
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button type="object"
|
||||
name="action_view_moves"
|
||||
class="oe_stat_button"
|
||||
icon="fa-book"
|
||||
invisible="move_count == 0">
|
||||
<field name="move_count" widget="statinfo" string="Проводки"/>
|
||||
</button>
|
||||
</xpath>
|
||||
|
||||
<!-- Template selector after invoice_date -->
|
||||
<xpath expr="//field[@name='invoice_date']" position="after">
|
||||
<field name="journal_template_id"
|
||||
string="Шаблон типовой операции"
|
||||
options="{'no_create': True}"/>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="res_config_settings_view_form_template_invoice" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.template.invoice</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//app[@name='account']" position="inside">
|
||||
<block title="Шаблоны типовых операций" name="journal_templates_setting_container">
|
||||
<setting help="Использовать шаблоны типовых операций вместо стандартных проводок для счетов">
|
||||
<field name="use_journal_templates_for_invoices"/>
|
||||
<label for="use_journal_templates_for_invoices"/>
|
||||
</setting>
|
||||
</block>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user