mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 21:52:04 +00:00
151 lines
5.7 KiB
XML
151 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright 2018-2022 Akretion France (http://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
<flectra>
|
|
|
|
<record id="account_cutoff_accrual_subscription_form" model="ir.ui.view">
|
|
<field name="name">account.cutoff.accrual.subscription.form</field>
|
|
<field name="model">account.cutoff.accrual.subscription</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<widget
|
|
name="web_ribbon"
|
|
title="Archived"
|
|
bg_color="bg-danger"
|
|
invisible="active"
|
|
/>
|
|
<div class="oe_title">
|
|
<label for="name" string="Subscription Name" class="oe_edit_only" />
|
|
<h1>
|
|
<field name="name" />
|
|
</h1>
|
|
</div>
|
|
<group name="main">
|
|
<field name="subscription_type" />
|
|
<field name="active" invisible="1" />
|
|
<field name="type_tax_use" invisible="1" />
|
|
<field name="partner_type" widget="radio" />
|
|
<field
|
|
name="partner_id"
|
|
invisible="partner_type != 'one'"
|
|
required="partner_type == 'one'"
|
|
/>
|
|
<field name="periodicity" />
|
|
<field name="start_date" />
|
|
<field name="account_id" />
|
|
<field
|
|
name="analytic_distribution"
|
|
groups="analytic.group_analytic_accounting"
|
|
widget="analytic_distribution"
|
|
/>
|
|
<field name="tax_ids" widget="many2many_tags" />
|
|
<field name="min_amount" />
|
|
<field name="provision_amount" />
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
<field name="company_id" invisible="1" />
|
|
<field name="company_currency_id" invisible="1" />
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_cutoff_accrual_subscription_tree" model="ir.ui.view">
|
|
<field name="name">account.cutoff.accrual.subscription.tree</field>
|
|
<field name="model">account.cutoff.accrual.subscription</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name" />
|
|
<field name="subscription_type" />
|
|
<field name="partner_type" optional="show" />
|
|
<field
|
|
name="partner_id"
|
|
invisible="partner_type != 'one'"
|
|
optional="show"
|
|
/>
|
|
<field name="periodicity" />
|
|
<field name="start_date" optional="hide" />
|
|
<field name="account_id" optional="show" />
|
|
<field
|
|
name="analytic_distribution"
|
|
groups="analytic.group_analytic_accounting"
|
|
optional="show"
|
|
/>
|
|
<field name="min_amount" optional="show" />
|
|
<field name="provision_amount" optional="hide" />
|
|
<field
|
|
name="company_id"
|
|
groups="base.group_multi_company"
|
|
optional="show"
|
|
/>
|
|
<field name="company_id" invisible="1" />
|
|
<field name="company_currency_id" invisible="1" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_cutoff_accrual_subscription_search" model="ir.ui.view">
|
|
<field name="name">account.cutoff.accrual.subscription.search</field>
|
|
<field name="model">account.cutoff.accrual.subscription</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name" />
|
|
<field name="partner_id" />
|
|
<field name="account_id" />
|
|
<separator />
|
|
<filter
|
|
name="revenue"
|
|
domain="[('subscription_type', '=', 'revenue')]"
|
|
string="Revenue"
|
|
/>
|
|
<filter
|
|
name="expense"
|
|
domain="[('subscription_type', '=', 'expense')]"
|
|
string="Expense"
|
|
/>
|
|
<separator />
|
|
<filter
|
|
string="Archived"
|
|
name="inactive"
|
|
domain="[('active', '=', False)]"
|
|
/>
|
|
<group name="groupby">
|
|
<filter
|
|
name="partner_type_groupby"
|
|
string="Partner Type"
|
|
context="{'group_by': 'partner_type'}"
|
|
/>
|
|
<filter
|
|
name="partner_groupby"
|
|
string="Partner"
|
|
context="{'group_by': 'partner_id'}"
|
|
/>
|
|
<filter
|
|
name="account_groupby"
|
|
string="Account"
|
|
context="{'group_by': 'account_id'}"
|
|
/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_cutoff_accrual_subscription_action" model="ir.actions.act_window">
|
|
<field name="name">Subscriptions</field>
|
|
<field name="res_model">account.cutoff.accrual.subscription</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
id="account_cutoff_accrual_subscription_menu"
|
|
action="account_cutoff_accrual_subscription_action"
|
|
parent="account.account_account_menu"
|
|
sequence="105"
|
|
/>
|
|
|
|
</flectra>
|