summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFlorimond Husquinet (fhu) <fhu@odoo.com>2019-11-20 14:05:39 +0000
committerlaa <laa@odoo.com>2020-01-08 16:21:10 +0000
commit34dd971ddc17b4d5eac83f229c587367ed045318 (patch)
tree9ac21556b2d3b9edf12d4288adcdd72a5c5e7ae6 /addons
parent69c86a2c1a7fc453b3e397402a64c37f776a1fdc (diff)
[IMP] base, account: move basic bank accounts info from account to base
Before this commit: If neither Invoicing nor Accounting are installed, users are stuck with menus items to create bank-related informations (Banks and Bank accounts). They won't be able to set these information directly on their contacts. After this commit: The Bank Accounts part of the Invoicing tab has been moved from the `account` module to `base`, so it's now visible in the partner form even when only `contacts` is installed Task ID: 2126832 closes odoo/odoo#40563 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/views/partner_view.xml39
1 files changed, 7 insertions, 32 deletions
diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml
index 2cb76486b91..efbba66c284 100644
--- a/addons/account/views/partner_view.xml
+++ b/addons/account/views/partner_view.xml
@@ -166,38 +166,13 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="groups_id" eval="[(5,)]"/>
<field name="arch" type="xml">
- <page name="sales_purchases" position="after">
- <page string="Invoicing" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}" groups="account.group_account_invoice">
- <group>
- <group string="Bank Accounts" name="banks" groups="account.group_account_invoice">
- <field name="bank_ids" nolabel="1">
- <tree editable="bottom">
- <field name="sequence" widget="handle"/>
- <field name="bank_id"/>
- <field name="acc_number"/>
- <field name="acc_holder_name" invisible="1"/>
- </tree>
- </field>
- <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, 'form_view_ref': 'account.view_company_partner_bank_form'}"
- string="View accounts detail"
- colspan="2"
- />
- </group>
- <group string="Accounting Entries" name="accounting_entries" groups="account.group_account_user">
- <field name="currency_id" invisible="1"/>
- <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)]}" groups="account.group_account_invoice">
- <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>
+ <xpath expr="//group[@name='banks']" position="after">
+ <group string="Accounting Entries" name="accounting_entries" groups="account.group_account_user">
+ <field name="currency_id" invisible="1"/>
+ <field name="property_account_receivable_id"/>
+ <field name="property_account_payable_id"/>
+ </group>
+ </xpath>
<xpath expr="//group[@name='misc']" position="before">
<group string="Fiscal Information" name="fiscal_information" priority="5" groups="account.group_account_invoice">
<field name="property_account_position_id" options="{'no_create': True, 'no_open': True}"/>