Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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

Module updating error in Odoo.sh (Version 11)

Suscribirse

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

Se marcó esta pregunta
psycopg2python3odooodoo11
4069 Vistas
Avatar
Barış Erdoğan

Hello 

I developed a custom module for currency rates. I have added extra fields like "special_currency_rate" to the res.currency model during the development phase of this module. However, when I upload the changes I make to Odoo.sh , I am getting error in odoo.log file like this: psycopg2.ProgrammingError: column res_currency.special_currency_rate does not exist.

I've tried some ways to solve the problem:

- I changed name of variable

- I removed everything about "special_currency_rate" from methods and views and only I defined the variable.

But none of it worked. How can I solve this problem urgently?


2018-09-17 08:11:34,363 4 INFO ? werkzeug: 176.237.61.112 - - [17/Sep/2018 08:11:34] "GET /web_editor/static/src/xml/editor.xml HTTP/1.1" 200 -
2018-09-17 08:11:34,412 4 INFO nitrobilisim-test-131700 werkzeug: 176.237.61.112 - - [17/Sep/2018 08:11:34] "GET /web/image/website/1/favicon/ HTTP/1.1" 200 -
2018-09-17 08:11:34,468 4 INFO ? werkzeug: 176.237.61.112 - - [17/Sep/2018 08:11:34] "GET /web_planner/static/src/xml/web_planner.xml HTTP/1.1" 200 -
2018-09-17 08:11:34,585 4 INFO ? werkzeug: 176.237.61.112 - - [17/Sep/2018 08:11:34] "GET /web_tour/static/src/xml/tip.xml HTTP/1.1" 200 -
2018-09-17 08:11:34,611 4 INFO nitrobilisim-test-131700 werkzeug: 176.237.61.112 - - [17/Sep/2018 08:11:34] "POST /web/dataset/call_kw/web.planner/search_read HTTP/1.1" 200 -
2018-09-17 08:11:37,708 4 ERROR nitrobilisim-test-131700 odoo.sql_db: bad query: b'SELECT "res_currency"."id" as "id","res_currency"."special_currency_rate" as "special_currency_rate","res_currency"."create_uid" as "create_uid","res_currency"."name" as "name","res_currency"."write_date" as "write_date","res_currency"."currency_subunit_label" as "currency_subunit_label","res_currency"."active" as "active","res_currency"."currency_unit_label" as "currency_unit_label","res_currency"."position" as "position","res_currency"."create_date" as "create_date","res_currency"."write_uid" as "write_uid","res_currency"."symbol" as "symbol","res_currency"."rounding" as "rounding" FROM "res_currency" WHERE "res_currency".id IN (8, 1, 32, 11, 3)'
ERROR: column res_currency.special_currency_rate does not exist
LINE 1: SELECT "res_currency"."id" as "id","res_currency"."special_c...



File "/home/odoo/src/odoo/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: column res_currency.special_currency_rate does not exist
LINE 1: SELECT "res_currency"."id" as "id","res_currency"."special_c...
^


My class definition is as follows:

class ResCurrency(models.Model):

    _inherit  = 'res.currency'
    rate = fields.Float(compute='_compute_current_rate', string='Efektif Satış', digits=(12, 6),

                        help='The rate of the currency to the currency of rate 1.')

    banknot_buying_rate = fields.Float(digits=(12, 6), string="Efektif Alış", compute='compute_banknot_buying_rate')

    forex_selling_rate = fields.Float(digits=(12, 6), string="Döviz Satış", compute='compute_forex_selling_rate')

    forex_buying_rate = fields.Float(digits=(12, 6), string="Döviz Alış", compute='compute_forex_buying_rate')

    special_currency_rate = fields.Float(digits=(12, 6), string="Özel Kur")




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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Call Python function in window action odoo
python3 odoo odoo11
Avatar
0
ene 20
13160
How to integrate python code?
python3 odoo
Avatar
0
nov 23
3381
How to set a filter as default filter in odoo Resuelto
python3 odoo11
Avatar
Avatar
Avatar
2
feb 24
16875
How to set default stage to when recruitement record is created Resuelto
python3 odoo11
Avatar
Avatar
1
dic 22
5886
How to change the value of a field which depends on other fields automatically ? Resuelto
python3 odoo11
Avatar
Avatar
Avatar
2
dic 22
15803
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar totalmente integrado.

Sitio web hecho con

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