← Back to team overview

openerp-india team mailing list archive

[Bug 985853] [NEW] [6.1][hr] employee work address has wrong domain

 

Public bug reported:

In the hr.employee from view, the address_id field is:
<field name="address_id" colspan="2" on_change="onchange_address_id(address_id)" domain="[('partner_id', '=', partner_id)]"/>

It has a domain that filters addresses by partner using the employee
partner_id. This field is a related one that gets the partner associated
with the employee's HOME address partner. This is used to associate a
partner to an employee. In this case the address_id field is the WORK
address.

The correct domain should be "[('company_id.partner_id', '=',
partner_id)]" in order to constraint the work address to be a employer
(company) address.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/985853

Title:
  [6.1][hr] employee work address has wrong domain

Status in OpenERP Addons (modules):
  New

Bug description:
  In the hr.employee from view, the address_id field is:
  <field name="address_id" colspan="2" on_change="onchange_address_id(address_id)" domain="[('partner_id', '=', partner_id)]"/>

  It has a domain that filters addresses by partner using the employee
  partner_id. This field is a related one that gets the partner
  associated with the employee's HOME address partner. This is used to
  associate a partner to an employee. In this case the address_id field
  is the WORK address.

  The correct domain should be "[('company_id.partner_id', '=',
  partner_id)]" in order to constraint the work address to be a employer
  (company) address.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/985853/+subscriptions


Follow ups

References