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

Fedex Service Type

Suscribirse

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

Se marcó esta pregunta
shippingfedexservicetypes
1 Responder
3220 Vistas
Avatar
Dan Witting

Fedex has added some new Service types that are i do not see in ODOO 14.

Anyone know if there a way to fetch new service types or myself adding new service types ? 

0
Avatar
Descartar
Avatar
Bhavin Patel
Mejor respuesta

Yes, it is possible to fetch new service types from FedEx and add them to Odoo 14.

Here are the steps you can follow:

Log in to your FedEx account and navigate to the "Developer Resource Center" section.

In the Developer Resource Center, navigate to the "API Documentation" section and select the API you are using in Odoo 14.

Look for the latest version of the API documentation and search for the list of service types.

Copy the new service types that you want to add to Odoo 14.

In Odoo 14, navigate to the FedEx Shipping Configuration page and open the "Service Types" tab.

Click on the "Create" button to create a new service type.

Enter the name of the new service type and paste the service type code that you copied from the FedEx API documentation.

Save the new service type and repeat the process for any other new service types you want to add.

After adding the new service types, they should be available in Odoo 14 for use in shipping configurations.

Note that adding new service types in this way does not include any specific customizations or functionalities associated with those service types. If you need to customize the behavior of the new service types, you may need to create a custom module or customize the existing FedEx module in Odoo 14.

1
Avatar
Descartar
Dan Witting
Autor

Dear Geek,
many thanks for your reply. Yes, i found the Fedex Service on this website : https://developer.fedex.com/api/en-us/catalog/ship/docs.html

Should work well. Many thanks

Dan Witting
Autor

Geek,
somehow i can't find the FedEx Shipping Configuration page. I tried to use the debug mode and go to Settings -> Technical -> Fields. I searched for the field name "fedex_service_type". Then i tried to add my new service types to the list.
When i clicked on Save I get this error message " Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!". Any thoughts how to fix it ?

Bhavin Patel

Based on the error message you received, it seems that you're trying to modify a base field in Odoo through the UI, which is not allowed.

To add your new service types to the list, you will need to create a custom addon that extends the existing FedEx shipping module in Odoo. Here are the steps you can follow:

Create a new module: You can create a new module through the Odoo user interface or using the command line.

In your new module, create a new Python file: You can name this file whatever you like, but it's a good idea to name it something descriptive, like "fedex_service_type.py".

In the Python file, create a new class that extends the existing FedEx carrier class in Odoo. You can do this by importing the existing FedEx carrier class and creating a new class that extends it. Here's an example:

python
from odoo.addons.delivery_fedex.models.delivery_carrier import DeliveryFedex

class DeliveryFedexCustom(DeliveryFedex):
_description = "Custom FedEx Delivery Carrier"

def fedex_rate_shipment(self, **kwargs):
# Add your new service types to the list here
# You can access the existing service types using self.fedex_services
# For example, to add a new service type called "My Service Type", you could do:
# self.fedex_services.append(('my_service_type', 'My Service Type'))

# Call the original method to get the updated rates
return super().fedex_rate_shipment(**kwargs)

In your new class, override the fedex_rate_shipment method: This method is called when a customer requests a shipping rate quote from FedEx. In this method, you can add your new service types to the list of available services. You can access the existing list of services using self.fedex_services.

Update the __init__.py file in your new module: In the __init__.py file, you need to import your new class and replace the existing FedEx carrier class with your new custom class. Here's an example:

python
from . import fedex_service_type

# Replace the existing FedEx carrier class with your custom class
from odoo.addons.delivery.models.delivery_carrier import DeliveryCarrier
DeliveryCarrier._inherit = 'delivery.carrier'
DeliveryCarrier._delivery_fedex = fedex_service_type.DeliveryFedexCustom

Install and activate your new module: Once you've made these changes, you can install and activate your new module in Odoo. Your new service types should now be available in the FedEx shipping configuration.

Note that modifying base fields in Odoo through the UI is not recommended, as it can cause problems with other parts of the system. Creating a custom addon is a more robust and flexible solution that allows you to extend the system without interfering with its core functionality.

¿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
Where can I find the code for the FedEx shipping integration?
shipping fedex
Avatar
Avatar
1
oct 19
4173
FedEx App - State code exceeds 2 characters
shipping fedex odoo16
Avatar
0
abr 25
2037
Fedex configuration error 1000 autentification failed
shipping fedex e-commerce
Avatar
1
jul 24
2327
Missing Fedex Service Type "FedEx International Economy Freight (IEF) Resuelto
shipping fedex ShippingMethod
Avatar
Avatar
1
nov 24
1888
Shipping Cost in e-commerce
shipping fedex dhl
Avatar
0
ago 22
6458
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.

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