Browse Source

Move group of fields outside unrelated Sales & Purchases tab.

pull/225/head
Jairo Llopis 9 years ago
parent
commit
bb0a4b769a
  1. 2
      partner_employee_quantity/README.rst
  2. 2
      partner_employee_quantity/views/res_partner_view.xml

2
partner_employee_quantity/README.rst

@ -23,7 +23,7 @@ To use this module, you need to:
* Go to any partner's form.
* Enable *Is company?*.
* Go to *Sales & Purchases > Employee quantity*.
* You will see a new group of fields called *Employee quantity*.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot

2
partner_employee_quantity/views/res_partner_view.xml

@ -7,7 +7,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='sales_purchases']/group">
<xpath expr="/form/sheet/group">
<group name="employee_quantity"
string="Employee quantity"
attrs="{'invisible': [('is_company', '=', False)]}">

Loading…
Cancel
Save