← Back to team overview

openerp-india team mailing list archive

[Bug 1102978] Re: v7 Share button raises TypeError exception "has_share() takes at least 4 arguments (4 given)"

 

*** This bug is a duplicate of bug 1093038 ***
    https://bugs.launchpad.net/bugs/1093038

** This bug has been marked a duplicate of bug 1093038
   v7.0: unable to share portal

-- 
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/1102978

Title:
  v7 Share button raises TypeError exception "has_share() takes at least
  4 arguments (4 given)"

Status in OpenERP Addons (modules):
  New

Bug description:
  Found in version Version 7.0-20130122-001415, with CRM and Share
  modules.

  Steps to reproduce : 
  - go to Sales > Customers and open Agrolait
  - at Customers / Agrolait click on the More button > Share
  - at the "Share your documents" dialog,  select "Sharing method" as "Direct link or embed code" and click "Share"

  
  Server Traceback (most recent call last):
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/netsvc.py", line 289, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/share/wizard/share_wizard.py", line 696, in go_step_2
      self._check_preconditions(cr, uid, wizard_data, context=context)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/portal/wizard/share_wizard.py", line 56, in _check_preconditions
      return super(share_wizard_portal, self)._check_preconditions(cr, uid, wizard_data, context=context)
    File "/home/erp_user/openerp/build-oe/v7/server/openerp/addons/share/wizard/share_wizard.py", line 663, in _check_preconditions
      self._assert(self.has_share(cr, uid, context=context),
  TypeError: has_share() takes at least 4 arguments (4 given)

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


References