Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

[odoo11]: What are the points or tips which could be helpful for the migration from v10 to v11?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
odoo10odoo11migrations
2 Respuestas
11634 Vistas
Avatar
Anil Kesariya

Hello Everyone,

What are the useful tips which could be helpful in odoo migration from v10 to v11?

Like,

1. Which modules are removed? reason for removing, if merged in existing one than with which module it has been merged?

2. Model name replaced with new names.

3. Any changes in java script architecture?

4. Any changes in calling of report method?

I will update soon with answers, with some topics, which I've already discovered for the above questions, which could help you in migration of v11.


Rgds,

Anil


7
Avatar
Descartar
Avatar
Anil Kesariya
Autor Mejor respuesta

Hello All,

Here is some info about new changes on v11.

Python3 Syntactical changes for odoo v11.

1. All the py file which resides in same folder or directory will be imported like, this is mandatory in v11 now.

v11.

from . import <your_file_name>

v10

import <your_file_name>

2. Dictionary syntax on iteration.

v11  (Python3)

dict = {'a':"Anil","k":"Kesariya"}
for k, v in dict.items():
print "KEY ::",k
print "VALUE ::",v
    #your code.

v10  (Python2)

dict = {'a':"Anil","k":"Kesariya"}
for k, v in dict.iteritems():
print "KEY ::",k
print "VALUE ::",v
    #your code.

3. Print Statement

v11 (Python3)

print("Your Message")

v10,

You must know already :)

print "Your message"

4. has_key() will not work anymore.

 - Use .get() function instead has_key() in the dictionary


Module Enhancements:


1. Module renamed.

- an account_accountant module is renamed with account_invoicing.

- sale module is renamed with sale_management.

2. Merged module 

Following module, you will not find inside odoo v11 addons,

- account_tax_cash_basis

-  report
Because they are merged with following modules.

- account_tax_cash_basis this module is merged with account module.

- report module is merged with web module.


3. Changed model name.

-  It will be updated soon.


4. Completely removed

- Workflow has been completely removed from v11, till v10 it was deprecated and supported.


5. Changes or updates to fields in respective of specific model (table)

- ir.cron :argument could be directly passed to function, instead of function there is code field which allows to add python code or call of function associated model, instead of model now it is model_id to reference, like we do for security record rule. from the below example you will understand more about the difference between v10 and v11.

   v11

<!--Scheduler Sync Send Request-->
<record id="gengo_sync_send_request_scheduler" model="ir.cron">
<field name="name">Gengo: Sync translation (Request)</field>
<field name="model_id" ref="base_gengo.model_base_gengo_translations"/>
<field name="state">code</field>
<field name="code">model._sync_request(20)</field>
<field name="interval_number">6</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
</record>

v10

<record id="gengo_sync_send_request_scheduler" model="ir.cron">
<field name="name" >Gengo Sync Translation (Request)</field>
<field eval="True" name="active"/>
<field name="interval_number">6</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
<field name="model" eval="'base.gengo.translations'"></field>
<field name="function" eval="'_sync_request'"/>
<field name="args" eval="'(20,)'"/>
</record>


6. Report Improvements,  

def render_html() method replaced with get_report_values() with same api decorator and argument list.

E.g. v11.

 @api.model
 def get_report_values(self, docids, data=None):

E.g. v10.

def render_html(self, docids, data=None):


Note: the return statement (result) is different in both methods.


- Below is example which will explain better the return of result.


E.g. v10

@api.model
def render_html(self, docids, data=None):
docargs = {}
return self.env['report'].render('account.report_journal', docargs)


E.g. v11


@api.model
def get_report_values(self, docids, data=None):
docargs = {}
return docargs

• get_action() method is replaced with report_action() for call report template.

The following example will explain better.

E.g. v11.

return self.env.ref(report_template_action_external_id).report_action(self, data=data)

E.g. v10

 return self.env['report'].get_action(self, report_tempalte_external_id, data=data) 


• To call the _run_wkhtmltopdf() from the different model and also change the argument sequence.

 

E.g. v11

self.env['ir.actions.report']._run_wkhtmltopdf(arguments)

E.g. v10

 self.env['report']._run_wkhtmltopdf(arguments)


- get_html() is replaced with render_qweb_html()

Hope this answer will you help in migration process of v11, any idea or correction appreciated.


Reference for JS framework update

1. Click here

2. Click here

3. Sample code reference, Click here

Best Regards,

Anil Kesariya.

19
Avatar
Descartar
Niyas Raphy (Walnut Software Solutions)

Sale module Is also renamed ..sale_management

Anil Kesariya
Autor

thanks, updated.

Ermin Trevisan

Thanks, very helpful!

Anil Kesariya
Autor

Thank you @Ermin, for appreciation and upvote :)

Niyas Raphy (Walnut Software Solutions)

get_html is changed to render_qweb_html

Niyas Raphy (Walnut Software Solutions)

Changes in js see this video : https://www.youtube.com/watch?v=u-6aLi1oqcw

You can update the answer with this :)

Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,

Described nicely .... Any wat check out this link to... 

-*- coding: utf-8 -*-  is not needed any more ..
like much more...

 https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0


For the Changes in the JS see this video from Odoo Experience : https://www.youtube.com/watch?v=u-6aLi1oqcw


 Js tutorials :

link1 : https://www.odoo.com/documentation/11.0/reference/javascript_api.html

link2 : https://www.odoo.com/documentation/11.0/reference/javascript_reference.html?t=1&cn=ZmxleGlibGVfcmVjcw%3D%3D&refsrc=email&iid=6b2c92f818ab445ab4f80b82bca57fb9&uid=909761905459204096&nid=244+272699400


Thanks

5
Avatar
Descartar
Anil Kesariya
Autor

thanks.

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Issue in showing kanban image in odoo 11
odoo10 odoo11
Avatar
Avatar
1
dic 18
9597
Why limit attribute is removed in tree view list mode v11?
odoo10 odoo11
Avatar
Avatar
Avatar
2
feb 18
5342
audit log odoo 11.0
odoo10 odoo11
Avatar
0
oct 17
5905
does odoo 11 Community have the same speed as the entreprise edition X3 Faster than odoo 10 Resuelto
odoo10 odoo11
Avatar
Avatar
4
oct 17
5214
difference between this._super() and this._super.apply() odoo js
JavascriptCallFromOdoo odoo10 odoo11
Avatar
Avatar
1
feb 20
8743
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now