← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 882684] [NEW] [6.0] account: onchange_partner_id with optional company_id does not work as expected

 

Public bug reported:

When calling the onchange_partner_id function on an invoice with the optional company_id you would expect you
get the receivable/payable accounts and the fiscal position and payment terms as viewed from the company specified.

This does not happen, in fact there are two errors:
* when the partner does not have a specific property for either property_account_receivable or property_account_payable it returns the error : 'Can not find account chart for this company, Please Create account.'
* the fiscal position and payment terms are retrieved by reading the values for the current company (not the company_id specified) thus it will return the users company financial position and payment term for this partner

Here is a scenario:
* Create 2 companies ( Company A / Company B )
* Company B is child of Company A
* Set a different payment term and fiscal position default for both companies
* Create a user for Company A with group Useability / Multi Company
* Have a user who belongs to Company A create an invoice for Company B
* When changing the partner you will get the wrong fiscal position and payment term.
* If the partner you selected does not have a specific receivable / payable account set for Company B it will produce error 'Can not find account chart for this company, Please Create account.'

Regards,
Niels

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/882684

Title:
  [6.0] account: onchange_partner_id with optional company_id does not
  work as expected

Status in OpenERP Addons (modules):
  New

Bug description:
  When calling the onchange_partner_id function on an invoice with the optional company_id you would expect you
  get the receivable/payable accounts and the fiscal position and payment terms as viewed from the company specified.

  This does not happen, in fact there are two errors:
  * when the partner does not have a specific property for either property_account_receivable or property_account_payable it returns the error : 'Can not find account chart for this company, Please Create account.'
  * the fiscal position and payment terms are retrieved by reading the values for the current company (not the company_id specified) thus it will return the users company financial position and payment term for this partner

  Here is a scenario:
  * Create 2 companies ( Company A / Company B )
  * Company B is child of Company A
  * Set a different payment term and fiscal position default for both companies
  * Create a user for Company A with group Useability / Multi Company
  * Have a user who belongs to Company A create an invoice for Company B
  * When changing the partner you will get the wrong fiscal position and payment term.
  * If the partner you selected does not have a specific receivable / payable account set for Company B it will produce error 'Can not find account chart for this company, Please Create account.'

  Regards,
  Niels

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


Follow ups

References