[Trunk] Task can not be created from via project Tasks act_window

Bug #898113 reported by Amit Parik
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

Install Project
Goto Project Form View
Click to Tasks Act window
create New Task
Got the Error:

Traceback (most recent call last):
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amp/workspace/trunk6/server/openerp/osv/orm.py", line 1468, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/home/amp/workspace/trunk6/addons/project/project.py", line 535, in _default_project
    return int(context['project_id'])
ValueError: invalid literal for int() with base 10: 'OpenERP Integration'

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Jigar A. (ifixthat)
summary: - [Trunk] Project can not created
+ [Trunk] Task can not be created from via project Tasks act_window
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Amit,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-898113-mtr
Revision ID: <email address hidden>
Revision no: 5839

Thanks,
Meera

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Serge (sboivin) wrote :

This fix is in trunk ?

because i try 2 minute ago with
http://trunk_4096.runbot.openerp.com:9489

and same error happen

Revision history for this message
Serge (sboivin) wrote :

still same bug with

runbot

Age: 1m (Build 4097)
Connect
server 3878
addons 5988
web 1725

Changed in openobject-addons:
status: Fix Committed → New
Amit Parik (amit-parik)
Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Atul Patel(OpenERP) (atp-openerp) wrote :

Hello,

It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-898113-atp branch.

Revision ID: <email address hidden>
Revision NO: 6193

kindly review it.

It will merge in addons soon.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
GaCriv (gacriv) wrote :

Hello,

Not working at Build 5497

server 3946
addons 6291
web 1894

Client Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/common/http.py", line 175, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/controllers/main.py", line 875, in default_get
    return Model.default_get(fields, req.session.eval_context(req.context))
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/common/openerplib/main.py", line 260, in proxy
    args, kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/common/openerplib/main.py", line 127, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/common/http.py", line 577, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/web/common/http.py", line 558, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/osv/osv.py", line 166, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/osv/orm.py", line 1492, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-5496/server/openerp/addons/project/project.py", line 529, in _default_project
    return int(context['project_id'])
ValueError: invalid literal for int() with base 10: 'new project'

Revision history for this message
Songpon Phusing (songpon.p-almacom) wrote :

Hello GaCriv (gacriv)

In trunk still not merge yet ( it just in the state merging proposal)
if you want update you can merge from https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-898113-atp

Hello atp-openerp,
IMOH the way to fix it should fixed why context "project_id" return project "name" instead of return "id"
anyway you're patch it work good

tags: added: default project
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Hello,

Thanks for your fix. It landed in trunk.
revno: 6296
revision-id: <email address hidden>

Best regards,

Thibault.

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.