769eafb483
Flectra is Forked from Odoo v11 commit : (6135e82d73
)
216 lines
12 KiB
XML
216 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="view_account_position_form" model="ir.ui.view">
|
|
<field name="name">account.fiscal.position.form</field>
|
|
<field name="model">account.fiscal.position</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Fiscal Position">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="active"/>
|
|
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
|
</group>
|
|
<group>
|
|
<field name="auto_apply"/>
|
|
<field name="states_count" invisible="1"/>
|
|
<field name="vat_required" attrs="{'invisible': [('auto_apply', '!=', True)]}"/>
|
|
<field name="country_group_id" attrs="{'invisible': [('auto_apply', '!=', True)]}"/>
|
|
<field name="country_id" attrs="{'invisible': [('auto_apply', '!=', True)]}"/>
|
|
<field name="state_ids" widget="many2many_tags" domain="[('country_id', '=', country_id)]"
|
|
attrs="{'invisible': ['|', '|', ('auto_apply', '!=', True), ('country_id', '=', False), ('states_count', '=', 0)]}"/>
|
|
<label for="zip_from" string="Zip Range"
|
|
attrs="{'invisible': ['|', ('auto_apply', '!=', True), ('country_id', '=', False)]}"/>
|
|
<div attrs="{'invisible': ['|', ('auto_apply', '!=', True), ('country_id', '=', False)]}">
|
|
<span> From </span>
|
|
<field name="zip_from" class="oe_inline"/>
|
|
<div class="oe_edit_only"/>
|
|
<span> To </span>
|
|
<field name="zip_to" class="oe_inline"/>
|
|
</div>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="tax_mapping" string="Tax Mapping">
|
|
<group>
|
|
<field name="tax_ids" widget="one2many_list" nolabel="1">
|
|
<tree name="tax_map_tree" string="Tax Mapping" editable="bottom">
|
|
<field name="tax_src_id" domain="[('type_tax_use', '!=', None)]"/>
|
|
<field name="tax_dest_id" domain="[('type_tax_use', '!=', None)]"/>
|
|
</tree>
|
|
<form name="tax_map_form" string="Tax Mapping">
|
|
<group>
|
|
<field name="tax_src_id" domain="[('type_tax_use', '!=', None)]"/>
|
|
<field name="tax_dest_id" domain="[('type_tax_use', '!=', None)]"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</group>
|
|
</page>
|
|
<page name="account_mapping" string="Account Mapping" groups="account.group_account_user">
|
|
<group>
|
|
<field name="account_ids" widget="one2many_list" nolabel="1">
|
|
<tree string="Account Mapping" editable="bottom">
|
|
<field name="account_src_id"/>
|
|
<field name="account_dest_id"/>
|
|
</tree>
|
|
<form string="Account Mapping">
|
|
<field name="account_src_id"/>
|
|
<field name="account_dest_id"/>
|
|
</form>
|
|
</field>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
<field name="note" placeholder="Legal Notes..."/>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="view_account_position_tree" model="ir.ui.view">
|
|
<field name="name">account.fiscal.position.tree</field>
|
|
<field name="model">account.fiscal.position</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Fiscal Position">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_open_partner_analytic_accounts" model="ir.actions.act_window">
|
|
<field name="context">{'search_default_partner_id': [active_id], 'default_partner_id': active_id}</field>
|
|
<field name="name">Analytic Accounts</field>
|
|
<field name="res_model">account.analytic.account</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="partner_view_short_extra">
|
|
<field name="name">partner.short.view.account</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_short_form" />
|
|
<field name="priority" eval="20"/>
|
|
<field name="arch" type="xml">
|
|
<field name="email" position="after">
|
|
<field name="property_payment_term_id" widget="selection"/>
|
|
<field name="property_account_position_id" options="{'no_create': True, 'no_open': True}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record model="ir.ui.view" id="partner_view_buttons">
|
|
<field name="name">partner.view.buttons</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="priority" eval="20"/>
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button type="object" class="oe_stat_button" icon="fa-pencil-square-o" name="action_view_partner_invoices"
|
|
attrs="{'invisible': [('customer', '=', False)]}">
|
|
<div class="o_form_field o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="total_invoiced" widget='monetary' options="{'currency_field': 'currency_id'}"/>
|
|
</span>
|
|
<span class="o_stat_text">Invoiced</span>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
<group name="container_row_2" position="inside">
|
|
<group string="Payments" name="banks">
|
|
<field name="currency_id" invisible="1"/>
|
|
<div>
|
|
<button type="action" class="btn-link"
|
|
name="%(base.action_res_partner_bank_account_form)d"
|
|
context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}">
|
|
<field string="Bank account(s)" name="bank_account_count" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
|
|
</group>
|
|
</group>
|
|
<page name="internal_notes" position="inside">
|
|
<group colspan="2" col="2" groups="account.group_warning_account">
|
|
<separator string="Warning on the Invoice" colspan="4"/>
|
|
<field name="invoice_warn" nolabel="1" />
|
|
<field name="invoice_warn_msg" colspan="3" nolabel="1"
|
|
attrs="{'required':[('invoice_warn','!=','no-message')],'readonly':[('invoice_warn','=','no-message')]}"/>
|
|
</group>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="partner_view_button_contracts_count">
|
|
<field name="name">partner.view.button.contracts_count</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="priority" eval="22"/>
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
|
<field name="arch" type="xml">
|
|
<button name="toggle_active" position="before">
|
|
<button class="oe_stat_button" type="action" name="%(account.action_open_partner_analytic_accounts)d"
|
|
icon="fa-book" groups="analytic.group_analytic_accounting">
|
|
<field string="Analytic Accounts" name="contracts_count" widget="statinfo"/>
|
|
</button>
|
|
</button>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_account_fiscal_position_form" model="ir.actions.act_window">
|
|
<field name="name">Fiscal Positions</field>
|
|
<field name="res_model">account.fiscal.position</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,kanban,form</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
action="action_account_fiscal_position_form"
|
|
id="menu_action_account_fiscal_position_form"
|
|
parent="account_account_menu" sequence="3"/>
|
|
|
|
<!--
|
|
Partners Extension
|
|
-->
|
|
|
|
<record id="view_partner_property_form" model="ir.ui.view">
|
|
<field name="name">res.partner.property.form.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="priority">2</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
|
<field name="arch" type="xml">
|
|
<page name="sales_purchases" position="after">
|
|
<page string="Invoicing" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
|
|
<group>
|
|
<group string="Sale" name="acc_sale">
|
|
<field name="property_payment_term_id" widget="selection"/>
|
|
<field name="trust" groups="base.group_no_one"/>
|
|
</group>
|
|
<group string="Purchase" name="acc_purchase">
|
|
<field name="property_supplier_payment_term_id" widget="selection"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
</group>
|
|
<group string="Fiscal Information" name="fiscal_information">
|
|
<field name="property_account_position_id" options="{'no_create': True, 'no_open': True}"/>
|
|
</group>
|
|
<group string="Accounting Entries" name="accounting_entries" groups="account.group_account_user">
|
|
<field name="property_account_receivable_id"/>
|
|
<field name="property_account_payable_id"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Invoicing" name="accounting_disabled" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}">
|
|
<div>
|
|
<p>Accounting-related settings are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p>
|
|
</div>
|
|
</page>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|