2020-04-24 17:27:55 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2019-04-11 15:49:20 +02:00
|
|
|
<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">
|
2020-04-24 17:27:55 +02:00
|
|
|
<form string="Journal Entry Template">
|
2019-04-11 15:49:20 +02:00
|
|
|
<group name="main">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="state" invisible="1" />
|
|
|
|
<field
|
|
|
|
name="template_id"
|
|
|
|
widget="selection"
|
2019-04-11 15:49:20 +02:00
|
|
|
domain="[('company_id', '=', company_id)]"
|
2020-04-24 17:27:55 +02:00
|
|
|
attrs="{'readonly': [('state', '=', 'set_lines')]}"
|
|
|
|
/>
|
2020-11-20 04:59:59 +01:00
|
|
|
<field
|
|
|
|
name="overwrite"
|
|
|
|
widget="ace"
|
|
|
|
options="{'mode': 'python'}"
|
|
|
|
attrs="{'invisible': [('state', '=', 'set_lines')]}"
|
|
|
|
placeholder="Add an internal note here..."
|
|
|
|
/>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
|
|
<field name="date" states="set_lines" />
|
|
|
|
<field name="journal_id" states="set_lines" />
|
|
|
|
<field name="ref" states="set_lines" />
|
|
|
|
<field name="partner_id" states="set_lines" />
|
2019-04-11 15:49:20 +02:00
|
|
|
</group>
|
|
|
|
<group name="lines" states="set_lines">
|
|
|
|
<field name="line_ids" nolabel="1">
|
|
|
|
<tree editable="bottom">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="sequence" invisible="1" />
|
|
|
|
<field name="name" />
|
|
|
|
<field
|
|
|
|
name="account_id"
|
|
|
|
domain="[('company_id','=',company_id)]"
|
|
|
|
/>
|
|
|
|
<field name="partner_id" />
|
|
|
|
<field
|
|
|
|
name="analytic_account_id"
|
|
|
|
domain="[('company_id','=',company_id)]"
|
|
|
|
groups="analytic.group_analytic_accounting"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="analytic_tag_ids"
|
|
|
|
widget="many2many_tags"
|
2020-04-24 17:30:12 +02:00
|
|
|
groups="analytic.group_analytic_tags"
|
2020-04-24 17:27:55 +02:00
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="tax_line_id"
|
|
|
|
attrs="{'invisible': [('tax_line_id','=',False)]}"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="tax_ids"
|
|
|
|
widget="many2many_tags"
|
|
|
|
attrs="{'invisible': [('tax_ids','=',[])]}"
|
|
|
|
/>
|
2019-04-11 15:49:20 +02:00
|
|
|
<field name="move_line_type" />
|
|
|
|
<field name="amount" />
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="note" />
|
|
|
|
<field name="payment_term_id" />
|
|
|
|
<field name="company_id" invisible="1" />
|
|
|
|
<field name="company_currency_id" invisible="1" />
|
2019-04-11 15:49:20 +02:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
<footer>
|
2020-04-24 17:27:55 +02:00
|
|
|
<button
|
|
|
|
name="load_lines"
|
|
|
|
class="btn-primary"
|
|
|
|
string="Next"
|
|
|
|
type="object"
|
|
|
|
states="select_template"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
name="generate_move"
|
|
|
|
class="btn-primary"
|
|
|
|
string="Create Journal Entry"
|
|
|
|
type="object"
|
|
|
|
states="set_lines"
|
|
|
|
/>
|
|
|
|
<button special="cancel" string="Cancel" class="btn-default" />
|
2019-04-11 15:49:20 +02:00
|
|
|
</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>
|
2020-04-24 17:27:55 +02:00
|
|
|
<menuitem
|
|
|
|
id="account_move_template_run_menu"
|
2020-04-24 17:30:12 +02:00
|
|
|
parent="account.menu_finance_entries_accounting_miscellaneous"
|
2020-04-24 17:27:55 +02:00
|
|
|
action="account_move_template_run_action"
|
|
|
|
sequence="10"
|
|
|
|
/>
|
2019-04-11 15:49:20 +02:00
|
|
|
</odoo>
|