← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 726293] Re: default accounts in journal allows selecting invalid company

 

Hello Albert,

I have checked your suggested patch again but there is no need to add
this type of domain because we have  already define a record rule for
multi-company.

So no need to add this type of domain in account.account object.

For now I am closing this issue.
Hope you will agree with this.

Thanks


** Changed in: openobject-addons
       Status: Expired => Invalid

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

Title:
  default accounts in journal allows selecting invalid company

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  If user has multi-company rights she can select accounts from any
  company as default credit/debit accounts.

  The attached patch changes the domain of default-account fields so
  only accounts from current company can be selected. However, the patch
  does not include a check constraint that IMHO it should be added to
  ensure account and journal companies match because the patch does not
  prevent the user from selecting another company once accounts have
  been filled in.

  Regarding the patch, note that I've removed the domain from the view
  and left only the domain in the .py file.


Follow ups

References