← Back to team overview

openerp-india team mailing list archive

[Bug 1217779] [NEW] Generate recurring move is not company aware

 

Public bug reported:

The wizard that generate recurring move ignore company and breaks on
security rules in multi company mode.

Inside transient model "account.subscription.generate" function action_generate, there is a direct use of the cursor that ignore the user current company:
cr.execute('select id from account_subscription_line where date<%s and move_id is null', (data['date'],))

So it tries to generate lines for all companies and breaks on security
rules

Regards

Nicolas

** 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/1217779

Title:
  Generate recurring move is not company aware

Status in OpenERP Addons (modules):
  New

Bug description:
  The wizard that generate recurring move ignore company and breaks on
  security rules in multi company mode.

  Inside transient model "account.subscription.generate" function action_generate, there is a direct use of the cursor that ignore the user current company:
  cr.execute('select id from account_subscription_line where date<%s and move_id is null', (data['date'],))

  So it tries to generate lines for all companies and breaks on security
  rules

  Regards

  Nicolas

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


Follow ups

References