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.

1

netsvc.Service no longer available on v8

By
Fabian Semal
on 1/7/15, 12:35 PM 825 views

Hi,

In a custom module in v7, I was using Service from the netsvc module in order to remove a service to replace it by a custom one:

from netsvc import Service
del Service._services['report.account_followup.followup.print'] 

But it is no longer available anymore on v8, any idea what I can do now to achieve the same result ?

Thank you

Fabian

 

 

Fabien, though netsvc is depricated, its still working in v8 for workflow transition n all. I just had a custom module using netsvc, and its working. Also in your code given above, its not "netsrv"

Akhil P Sivan
on 1/7/15, 1:46 PM
1

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 1/8/15, 4:11 AM

Altough netsvc is depreciated ,it is still working, so, you can use it...
There is no need to delete existing service (because it is not existing) 
You want to migrate your report module from v7 to v8, and in v8 reports are mostly qweb-pdf, 
so what you need is only the correct id of report you want to override , and it will work...
You will change the type of report from qweb-pdf to pdf...and the you need to check in settings->Reports if all is ok...
(notice new menuitem for managing reports!)
 

hope it helps:)

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

3 follower(s)

Stats

Asked: 1/7/15, 12:35 PM
Seen: 825 times
Last updated: 3/16/15, 8:10 AM