2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2008-10-20 20:49:11 +00:00
|
|
|
|
|
|
|
<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">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Fiscal Position">
|
2012-06-05 17:54:11 +00:00
|
|
|
<group col="4">
|
2012-06-12 06:38:15 +00:00
|
|
|
<field name="name"/>
|
2012-04-25 13:40:18 +00:00
|
|
|
<field name="active"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
2011-09-21 07:13:12 +00:00
|
|
|
</group>
|
2014-06-29 21:31:16 +00:00
|
|
|
<group>
|
|
|
|
<field name="auto_apply"/>
|
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="vat_required" attrs="{'readonly': [('auto_apply', '=', False)]}"/>
|
2014-09-29 10:26:13 +00:00
|
|
|
<field name="country_id"/>
|
|
|
|
<field name="country_group_id"/>
|
2014-06-29 21:31:16 +00:00
|
|
|
</group>
|
2012-09-20 09:27:26 +00:00
|
|
|
<separator string="Taxes Mapping"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
<field name="tax_ids" widget="one2many_list">
|
2009-01-27 11:15:46 +00:00
|
|
|
<tree string="Tax Mapping" editable="bottom">
|
2008-10-21 16:28:19 +00:00
|
|
|
<field name="tax_src_id" domain="[('parent_id','=',False)]"/>
|
2015-08-19 09:14:28 +00:00
|
|
|
<field name="tax_dest_id" domain="[('parent_id','=',False), ('price_include', '=', False)]"/>
|
2008-10-21 14:57:42 +00:00
|
|
|
</tree>
|
2012-06-12 06:38:15 +00:00
|
|
|
<form string="Tax Mapping">
|
2008-10-21 16:28:19 +00:00
|
|
|
<field name="tax_src_id" domain="[('parent_id','=',False)]"/>
|
2015-08-19 09:14:28 +00:00
|
|
|
<field name="tax_dest_id" domain="[('parent_id','=',False), ('price_include', '=', False)]"/>
|
2008-10-21 14:57:42 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
2012-09-20 09:27:26 +00:00
|
|
|
<separator string="Accounts Mapping"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
<field name="account_ids" widget="one2many_list">
|
2009-01-27 11:15:46 +00:00
|
|
|
<tree string="Account Mapping" editable="bottom">
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="account_src_id"/>
|
|
|
|
<field name="account_dest_id"/>
|
|
|
|
</tree>
|
2012-06-12 06:38:15 +00:00
|
|
|
<form string="Account Mapping">
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="account_src_id"/>
|
|
|
|
<field name="account_dest_id"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
2012-06-05 17:54:11 +00:00
|
|
|
<separator string="Notes"/>
|
|
|
|
<field name="note"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
</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">
|
2010-10-09 16:01:43 +00:00
|
|
|
<tree string="Fiscal Position">
|
2014-06-29 21:31:16 +00:00
|
|
|
<field name="sequence"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="name"/>
|
2009-12-23 16:15:54 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-05-07 16:51:13 +00:00
|
|
|
<record id="action_open_partner_analytic_accounts" model="ir.actions.act_window">
|
2013-02-26 07:33:32 +00:00
|
|
|
<field name="context">{'search_default_partner_id': [active_id], 'default_partner_id': active_id}</field>
|
|
|
|
<field name="name">Contracts/Analytic Accounts</field>
|
|
|
|
<field name="res_model">account.analytic.account</field>
|
2013-05-07 16:51:13 +00:00
|
|
|
<field name="view_id" ref="view_account_analytic_account_tree"/>
|
|
|
|
<field name="search_view_id" ref="view_account_analytic_account_search"/>
|
2013-02-26 07:33:32 +00:00
|
|
|
</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" />
|
2013-05-30 05:59:18 +00:00
|
|
|
<field name="priority" eval="20"/>
|
2015-02-23 14:27:45 +00:00
|
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
2013-02-26 07:33:32 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
2014-03-14 14:01:14 +00:00
|
|
|
<button type="action"
|
|
|
|
class="oe_stat_button"
|
2014-07-25 12:18:03 +00:00
|
|
|
id="invoice_button"
|
2014-03-17 15:28:28 +00:00
|
|
|
icon="fa-pencil-square-o"
|
2015-03-25 15:31:21 +00:00
|
|
|
name="%(account.action_invoice_refund_out_tree)d"
|
2014-04-25 09:51:23 +00:00
|
|
|
attrs="{'invisible': [('customer', '=', False)]}"
|
2015-02-23 14:27:45 +00:00
|
|
|
context="{'search_default_partner_id': active_id,'default_partner_id': active_id}">
|
2014-04-18 09:37:56 +00:00
|
|
|
<div><strong><field name="total_invoiced" widget="monetary"/></strong><br/>Invoiced</div>
|
2014-03-14 14:01:14 +00:00
|
|
|
</button>
|
2015-02-23 14:27:45 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="partner_view_button_journal_item_count">
|
|
|
|
<field name="name">partner.view.button.journal_item_count</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="priority" eval="21"/>
|
|
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
|
|
|
<button type="action" class="oe_stat_button" name="%(account.action_account_moves_all_tree)d" icon="fa-list">
|
2014-03-14 14:01:14 +00:00
|
|
|
<field string="Journal Items" name="journal_item_count" widget="statinfo"/>
|
|
|
|
</button>
|
2015-02-23 14:27:45 +00:00
|
|
|
</xpath>
|
|
|
|
</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('analytic.group_analytic_accounting'))]"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
2014-03-20 13:44:14 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="action" name="%(account.action_open_partner_analytic_accounts)d"
|
2015-02-23 14:27:45 +00:00
|
|
|
icon="fa-book">
|
2014-04-14 09:32:21 +00:00
|
|
|
<field string="Contracts" name="contracts_count" widget="statinfo"/>
|
2014-03-20 13:44:14 +00:00
|
|
|
</button>
|
2013-02-26 07:33:32 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-10-20 20:49:11 +00:00
|
|
|
<record id="action_account_fiscal_position_form" model="ir.actions.act_window">
|
2010-10-09 16:01:43 +00:00
|
|
|
<field name="name">Fiscal Positions</field>
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="res_model">account.fiscal.position</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem
|
|
|
|
action="action_account_fiscal_position_form"
|
|
|
|
id="menu_action_account_fiscal_position_form"
|
2010-06-04 13:01:56 +00:00
|
|
|
parent="next_id_27" sequence="20"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2008-08-19 19:26:29 +00:00
|
|
|
Partners Extension
|
2012-06-28 06:40:05 +00:00
|
|
|
-->
|
2008-09-15 09:13:57 +00:00
|
|
|
|
2008-08-19 19:26:29 +00:00
|
|
|
<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"/>
|
[FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).
Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)
opw-634402
2015-05-12 09:20:14 +00:00
|
|
|
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
|
2008-08-19 19:26:29 +00:00
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<page name="sales_purchases" position="after">
|
[FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).
Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)
opw-634402
2015-05-12 09:20:14 +00:00
|
|
|
<page string="Accounting" col="4" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
|
2012-07-06 13:39:41 +00:00
|
|
|
<group>
|
2012-07-18 12:18:17 +00:00
|
|
|
<group>
|
2012-07-11 11:14:34 +00:00
|
|
|
<field name="property_account_position" widget="selection"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
</group>
|
2012-07-06 13:39:41 +00:00
|
|
|
<group>
|
2012-07-20 14:18:30 +00:00
|
|
|
<field name="last_reconciliation_date"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
</group>
|
2012-07-06 13:39:41 +00:00
|
|
|
<group>
|
[FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).
Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)
opw-634402
2015-05-12 09:20:14 +00:00
|
|
|
<field name="property_account_receivable"/>
|
2012-07-20 14:18:30 +00:00
|
|
|
<field name="property_payment_term" widget="selection"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
<field name="credit"/>
|
|
|
|
<field name="credit_limit"/>
|
|
|
|
</group>
|
2012-07-06 13:39:41 +00:00
|
|
|
<group>
|
[FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).
Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)
opw-634402
2015-05-12 09:20:14 +00:00
|
|
|
<field name="property_account_payable"/>
|
2012-08-02 13:40:12 +00:00
|
|
|
<field name="property_supplier_payment_term" widget="selection"/>
|
2012-06-05 17:54:11 +00:00
|
|
|
<field name="debit"/>
|
|
|
|
</group>
|
2012-07-06 13:39:41 +00:00
|
|
|
</group>
|
2012-09-26 10:09:01 +00:00
|
|
|
<field name="bank_ids" context="{'default_partner_id': active_id, 'form_view_ref': 'base.view_partner_bank_form'}">
|
2012-07-06 13:39:41 +00:00
|
|
|
<tree string="Bank Details">
|
2013-02-25 14:10:14 +00:00
|
|
|
<field name="state" invisible="1"/>
|
2012-07-06 13:39:41 +00:00
|
|
|
<field name="sequence" invisible="1"/>
|
|
|
|
<field name="acc_number"/>
|
|
|
|
<field name="bank_name"/>
|
|
|
|
<field name="owner_name"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2008-09-08 23:33:22 +00:00
|
|
|
</page>
|
[FIX] *: accesses of views concernings specific groups
If the whole view relates to a specific group,
apply the group on the view itself instead of
each view part (each fields, each page, each div,...),
so the view is loaded / added to the base view
only if the user is in the right group.
So the view is not loaded uselessly
and the fields are not read for nothing
(performances & security).
Indeed, when a group is applied on a field itself, the field content
is read, but hidden, therefore reading the content of the field
uselessly, and potentially leading to accesses issues
if the user hasn't the rights to read the field.
(e.g. reading a property when not having access to the model
of the proprty, pricelists on partners for instance)
opw-634402
2015-05-12 09:20:14 +00:00
|
|
|
<page string="Accounting" name="accounting_disabled" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}">
|
2013-04-07 23:50:13 +00:00
|
|
|
<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>
|
2010-06-24 06:40:29 +00:00
|
|
|
</page>
|
2008-08-19 19:26:29 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|