mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
- Fix new lints. - Simplify the way to define modifiers as states, required, readonly, invisible and column_invisible as part of [1]. [1] https://github.com/odoo/odoo/pull/104741
90 lines
4.0 KiB
XML
90 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="account_move_template_run_form" model="ir.ui.view">
|
|
<field name="model">account.move.template.run</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Journal Entry Template">
|
|
<group name="main">
|
|
<field name="state" invisible="1" />
|
|
<field
|
|
name="template_id"
|
|
widget="selection"
|
|
readonly="state == 'set_lines'"
|
|
/>
|
|
<field
|
|
name="overwrite"
|
|
widget="ace"
|
|
options="{'mode': 'python'}"
|
|
invisible="state == 'set_lines'"
|
|
/>
|
|
<field name="company_id" invisible="1" />
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
<field name="date" invisible="state != 'set_lines'" />
|
|
<field name="journal_id" invisible="state != 'set_lines'" />
|
|
<field name="ref" invisible="state != 'set_lines'" />
|
|
<field name="partner_id" invisible="state != 'set_lines'" />
|
|
</group>
|
|
<group name="lines" invisible="state != 'set_lines'">
|
|
<field name="line_ids" nolabel="1" colspan="2">
|
|
<tree editable="bottom">
|
|
<field name="sequence" invisible="1" />
|
|
<field name="name" />
|
|
<field
|
|
name="account_id"
|
|
domain="[('company_id','=',company_id)]"
|
|
/>
|
|
<field name="partner_id" />
|
|
<field
|
|
name="analytic_distribution"
|
|
widget="analytic_distribution"
|
|
groups="analytic.group_analytic_accounting"
|
|
/>
|
|
<field name="tax_line_id" invisible="not tax_line_id" />
|
|
<field
|
|
name="tax_ids"
|
|
widget="many2many_tags"
|
|
invisible="not tax_ids"
|
|
/>
|
|
<field name="move_line_type" />
|
|
<field name="amount" />
|
|
<field name="note" />
|
|
<field name="payment_term_id" />
|
|
<field name="company_id" invisible="1" />
|
|
<field name="company_currency_id" invisible="1" />
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
<footer>
|
|
<button
|
|
name="load_lines"
|
|
class="btn-primary"
|
|
string="Next"
|
|
type="object"
|
|
invisible="state != 'select_template'"
|
|
/>
|
|
<button
|
|
name="generate_move"
|
|
class="btn-primary"
|
|
string="Create Journal Entry"
|
|
type="object"
|
|
invisible="state != 'set_lines'"
|
|
/>
|
|
<button special="cancel" string="Cancel" class="btn-default" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="account_move_template_run_action" model="ir.actions.act_window">
|
|
<field name="name">Create Entry from Template</field>
|
|
<field name="res_model">account.move.template.run</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
<menuitem
|
|
id="account_move_template_run_menu"
|
|
parent="account.menu_finance_entries_actions"
|
|
action="account_move_template_run_action"
|
|
sequence="10"
|
|
/>
|
|
</odoo>
|