← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Attachment added: "account.diff"
   https://bugs.launchpad.net/bugs/726293/+attachment/1875665/+files/account.diff

-- 
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):
  New

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.



References