2020-04-24 17:27:55 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2017-08-23 03:48:14 +02:00
|
|
|
<odoo>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_line_tree" model="ir.ui.view">
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="name">account.move.template.line.tree</field>
|
|
|
|
<field name="model">account.move.template.line</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="sequence" />
|
|
|
|
<field name="account_id" domain="[('company_id', '=', company_id)]" />
|
2020-11-20 04:59:59 +01:00
|
|
|
<field
|
|
|
|
name="opt_account_id"
|
|
|
|
domain="[('company_id', '=', company_id)]"
|
|
|
|
/>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="partner_id" />
|
|
|
|
<field name="name" />
|
|
|
|
<field
|
|
|
|
name="analytic_account_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="move_line_type" />
|
|
|
|
<field name="type" />
|
|
|
|
<field name="note" />
|
|
|
|
<field name="tax_line_id" invisible="1" />
|
|
|
|
<field
|
|
|
|
name="tax_ids"
|
|
|
|
widget="many2many_tags"
|
|
|
|
options="{'no_create': True}"
|
|
|
|
/>
|
|
|
|
<field name="payment_term_id" />
|
|
|
|
<field name="company_id" invisible="1" />
|
|
|
|
<field name="company_currency_id" invisible="1" />
|
2018-03-05 20:31:53 +01:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_line_form" model="ir.ui.view">
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="name">account.move.template.line.form</field>
|
|
|
|
<field name="model">account.move.template.line</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Journal Entry Template Line">
|
|
|
|
<sheet>
|
2019-04-16 11:15:58 +02:00
|
|
|
<group name="main">
|
|
|
|
<group name="account">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="sequence" />
|
|
|
|
<field name="name" />
|
|
|
|
<field
|
|
|
|
name="account_id"
|
|
|
|
domain="[('company_id', '=', company_id)]"
|
|
|
|
/>
|
2020-11-20 04:59:59 +01:00
|
|
|
<field
|
|
|
|
name="opt_account_id"
|
|
|
|
domain="[('company_id', '=', company_id)]"
|
|
|
|
/>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="partner_id" />
|
|
|
|
<field name="payment_term_id" />
|
|
|
|
<field name="company_id" invisible="1" />
|
2018-10-31 13:03:41 +01:00
|
|
|
</group>
|
2020-04-24 17:27:55 +02:00
|
|
|
<group
|
|
|
|
groups="analytic.group_analytic_accounting"
|
|
|
|
string="Analytic"
|
|
|
|
name="analytic"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="analytic_account_id"
|
|
|
|
domain="[('company_id','=',company_id)]"
|
|
|
|
/>
|
2020-04-24 17:30:12 +02:00
|
|
|
<field
|
|
|
|
name="analytic_tag_ids"
|
|
|
|
widget="many2many_tags"
|
|
|
|
groups="analytic.group_analytic_tags"
|
|
|
|
/>
|
2014-12-09 16:52:37 +01:00
|
|
|
</group>
|
2019-04-16 11:15:58 +02:00
|
|
|
<group name="amount" string="Amount">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="move_line_type" />
|
|
|
|
<field name="type" />
|
|
|
|
<field name="note" />
|
2017-08-23 03:48:14 +02:00
|
|
|
</group>
|
2019-04-16 11:15:58 +02:00
|
|
|
<group string="Taxes" name="tax">
|
2020-04-24 17:30:12 +02:00
|
|
|
<field name="is_refund" />
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="tax_line_id" />
|
2020-04-24 17:30:12 +02:00
|
|
|
<field
|
|
|
|
name="tax_repartition_line_id"
|
|
|
|
attrs="{'invisible': [('tax_line_id','=',False)]}"
|
|
|
|
/>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="tax_ids" widget="many2many_tags" />
|
2018-10-31 13:03:41 +01:00
|
|
|
</group>
|
2018-03-05 20:31:53 +01:00
|
|
|
</group>
|
2020-04-24 17:27:55 +02:00
|
|
|
<group
|
|
|
|
name="python_code"
|
|
|
|
attrs="{'invisible': [('type', '!=', 'computed')]}"
|
|
|
|
col="1"
|
|
|
|
string="Compute Formula"
|
|
|
|
>
|
2019-04-11 15:49:20 +02:00
|
|
|
<div class="oe_account_help">
|
2020-04-24 17:27:55 +02:00
|
|
|
<p
|
|
|
|
>You can refer to other lines using their sequence number e.g. <i
|
|
|
|
>L1</i> for line with sequence = 1. Examples:</p>
|
2019-04-11 15:49:20 +02:00
|
|
|
<ul>
|
|
|
|
<li>L1 * 0.2</li>
|
|
|
|
<li>L2 - L1</li>
|
|
|
|
<li>L1 + L2 + L3</li>
|
|
|
|
<li>1250</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field
|
|
|
|
name="python_code"
|
|
|
|
nolabel="1"
|
|
|
|
attrs="{'required': [('type', '=', 'computed')]}"
|
|
|
|
/>
|
2019-04-11 15:49:20 +02:00
|
|
|
</group>
|
2018-03-05 20:31:53 +01:00
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_form" model="ir.ui.view">
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="name">account.move.template.form</field>
|
|
|
|
<field name="model">account.move.template</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Journal Entry Template">
|
|
|
|
<header>
|
2020-04-24 17:27:55 +02:00
|
|
|
<button
|
|
|
|
string="Generate Journal Entry"
|
|
|
|
name="generate_journal_entry"
|
|
|
|
class="btn-primary"
|
|
|
|
type="object"
|
|
|
|
/>
|
2021-06-07 15:40:33 +02:00
|
|
|
<button
|
|
|
|
type="object"
|
|
|
|
name="toggle_active"
|
|
|
|
string="Archive"
|
|
|
|
attrs="{'invisible': [('active', '=', False)]}"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="object"
|
|
|
|
name="toggle_active"
|
|
|
|
string="Restore"
|
|
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
|
|
/>
|
2018-03-05 20:31:53 +01:00
|
|
|
</header>
|
|
|
|
<sheet>
|
2021-06-07 15:40:33 +02:00
|
|
|
<widget
|
|
|
|
name="web_ribbon"
|
|
|
|
title="Archived"
|
|
|
|
bg_color="bg-danger"
|
|
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
|
|
/>
|
2018-03-05 20:31:53 +01:00
|
|
|
<div class="oe_title">
|
2020-04-24 17:27:55 +02:00
|
|
|
<label for="name" class="oe_edit_only" />
|
|
|
|
<h1>
|
2021-06-07 15:40:33 +02:00
|
|
|
<field name="active" invisible="1" />
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="name" />
|
|
|
|
</h1>
|
2017-08-23 03:48:14 +02:00
|
|
|
</div>
|
2019-04-11 15:49:20 +02:00
|
|
|
<group name="main">
|
|
|
|
<group name="main-left">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field
|
|
|
|
name="company_id"
|
|
|
|
widget="selection"
|
|
|
|
groups="base.group_multi_company"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="journal_id"
|
|
|
|
options="{'no_open': True, 'no_create': True}"
|
|
|
|
/>
|
2019-04-11 15:49:20 +02:00
|
|
|
</group>
|
|
|
|
<group name="main-right">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="ref" />
|
2019-04-11 15:49:20 +02:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group name="lines">
|
2020-04-24 17:27:55 +02:00
|
|
|
<field
|
|
|
|
name="line_ids"
|
|
|
|
nolabel="1"
|
|
|
|
context="{'default_company_id': company_id}"
|
|
|
|
/>
|
2018-03-05 20:31:53 +01:00
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_tree" model="ir.ui.view">
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="name">account.move.template.tree</field>
|
|
|
|
<field name="model">account.move.template</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="name" />
|
|
|
|
<field name="journal_id" />
|
|
|
|
<field name="company_id" groups="base.group_multi_company" />
|
2018-03-05 20:31:53 +01:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_search" model="ir.ui.view">
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="name">account.move.template.search</field>
|
|
|
|
<field name="model">account.move.template</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Journal Entry Template">
|
2021-06-07 15:40:33 +02:00
|
|
|
<filter
|
|
|
|
string="Archived"
|
|
|
|
name="inactive"
|
|
|
|
domain="[('active','=',False)]"
|
|
|
|
/>
|
2020-04-24 17:27:55 +02:00
|
|
|
<field name="name" />
|
2019-04-11 15:49:20 +02:00
|
|
|
<group name="groupby">
|
2020-04-24 17:27:55 +02:00
|
|
|
<filter
|
|
|
|
name="journal_groupby"
|
|
|
|
string="Journal"
|
|
|
|
context="{'group_by': 'journal_id'}"
|
|
|
|
/>
|
2018-03-05 20:31:53 +01:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2019-04-11 15:49:20 +02:00
|
|
|
<record id="account_move_template_action" model="ir.actions.act_window">
|
2018-10-31 11:56:26 +01:00
|
|
|
<field name="name">Journal Entry Templates</field>
|
2018-03-05 20:31:53 +01:00
|
|
|
<field name="res_model">account.move.template</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
<menuitem
|
2019-04-11 15:49:20 +02:00
|
|
|
id="account_move_template_menu"
|
|
|
|
action="account_move_template_action"
|
2018-10-31 11:56:26 +01:00
|
|
|
parent="account.account_account_menu"
|
2020-04-24 17:27:55 +02:00
|
|
|
sequence="300"
|
|
|
|
/>
|
2017-08-23 03:48:14 +02:00
|
|
|
</odoo>
|