Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Troubles with "Update Modules List" - OpenERP 7 on Windows 7 Professional

By
Percy Echevarría Gómez
on 5/19/14, 4:30 PM 1,422 views

Any body can help me?

I'm trying update the modules downloaded from Github, but i have this message:

--------------------------------------------------------------------------------------------------------------------

OpenERP Server Error

Client Traceback (most recent call last): File "C:\OPENERP7\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\OPENERP7\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button File "C:\OPENERP7\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw File "C:\OPENERP7\Server\server\openerp\addons\web\session.py", line 42, in proxy File "C:\OPENERP7\Server\server\openerp\addons\web\session.py", line 30, in proxy_method File "C:\OPENERP7\Server\server\openerp\addons\web\session.py", line 103, in send Server Traceback (most recent call last): File "C:\OPENERP7\Server\server\openerp\addons\web\session.py", line 89, in send File "C:\OPENERP7\Server\server\.\openerp\netsvc.py", line 296, in dispatch_rpc File "C:\OPENERP7\Server\server\.\openerp\service\web_services.py", line 626, in dispatch File "C:\OPENERP7\Server\server\.\openerp\osv\osv.py", line 190, in execute_kw File "C:\OPENERP7\Server\server\.\openerp\osv\osv.py", line 132, in wrapper File "C:\OPENERP7\Server\server\.\openerp\osv\osv.py", line 199, in execute File "C:\OPENERP7\Server\server\.\openerp\osv\osv.py", line 187, in execute_cr File "C:\OPENERP7\Server\server\openerp\addons\base\module\wizard\base_module_update.py", line 42, in update_module File "C:\OPENERP7\Server\server\openerp\addons\base\module\module.py", line 619, in update_list File "C:\OPENERP7\Server\server\openerp\addons\web\http.py", line 580, in load_addons File "C:\OPENERP7\Server\server\.\openerp\modules\module.py", line 133, in load_module File "C:\OPENERP7\Server\server\openerp\addons\account\__init__.py", line 22, in <module> File "C:\OPENERP7\Server\server\openerp\addons\account\partner.py", line 182

for partner_id in ids

^

SyntaxError: invalid syntax

--------------------------------------------------------------------------------------------------------------------

The downloaded modules was copied in addons folder

0

Update on 20-05-2014:

I'm downloading app by app from https://www.odoo.com/apps/7.0/[module_name]

 

----------------------------------------------------------------------------------

This is the code in addons/account/partner.py

-------------------------------------------------------------------------------------------------------------------------

    def _journal_item_count(self, cr, uid, ids, field_name, arg, context=None):
        MoveLine = self.pool('account.move.line')
        AnalyticAccount = self.pool('account.analytic.account')
        return {
            partner_id: {
                'journal_item_count': MoveLine.search_count(cr, uid, [('partner_id', '=', partner_id)], context=context),
                'contracts_count': AnalyticAccount.search_count(cr,uid, [('partner_id', '=', partner_id)], context=context)
            }
        for partner_id in ids            
        }

----------------------------------------------------------------------------------------------------------

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/19/14, 4:30 PM
Seen: 1422 times
Last updated: 3/16/15, 8:10 AM