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
    • e-learning
    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
    • Conocimientos
    • 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

Branch to Branch Internal Transfer

Suscribirse

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

Se marcó esta pregunta
transferrecord_rulesinternal
5 Respuestas
3308 Vistas
Avatar
Marc Albert Bautista

How can I set up an internal transfer between different warehouses in Odoo while ensuring that the receiving warehouse can view the transfer record created by the source warehouse, without exposing the entire list of transfer records from other warehouses?

0
Avatar
Descartar
Avatar
Piyush H
Mejor respuesta

Hello
You want to set up inter-warehouse transfers in Odoo where each warehouse can see the transfers they are involved in (either sending or receiving) but not see all transfers happening across the entire organization. Here's how you can achieve this using a combination of security groups, record rules, and potentially some automation:

1. Security Groups:

  • Create separate security groups for each warehouse. For example:
    • Warehouse A User
    • Warehouse B User
    • Warehouse C User
  • Assign users to the appropriate security group based on which warehouse they work at.

2. Record Rules (Crucial for Visibility Control):

  • Record rules are the core of controlling which transfer records each warehouse can see. You'll create rules on the stock.picking model (which represents the transfer).
  • Rule 1: Warehouse A Can See Transfers Where Source or Destination is Warehouse A
    [('location_id.warehouse_id', '=', user.warehouse_id.id), ('company_id', '=', user.company_id.id)]
    or
    [('location_dest_id.warehouse_id', '=', user.warehouse_id.id), ('company_id', '=', user.company_id.id)]
    
    • Apply this rule to the Warehouse A User group.
    • This rule says: "A user in the 'Warehouse A User' group can see a transfer record if either the source location's warehouse or the destination location's warehouse is Warehouse A, and the company matches the user's company."
  • Rule 2: Warehouse B Can See Transfers Where Source or Destination is Warehouse B
    [('location_id.warehouse_id', '=', user.warehouse_id.id), ('company_id', '=', user.company_id.id)]
    or
    [('location_dest_id.warehouse_id', '=', user.warehouse_id.id), ('company_id', '=', user.company_id.id)]
    
    • Apply this rule to the Warehouse B User group.
    • This rule is the same as above, but it applies to Warehouse B.
  • Repeat for Each Warehouse: Create similar record rules for each warehouse, adjusting the user.warehouse_id.id in the domain to match the correct warehouse.

How Record Rules Work

  • Odoo automatically applies these rules whenever a user tries to access transfer records.
  • The rules filter the records based on the conditions you define.
  • Users will only see the transfer records that match the conditions in their assigned record rules.

Detailed Steps in Odoo

  1. Enable Developer Mode: Go to Settings and activate Developer Mode (also called Debug Mode).
  2. Create Security Groups:
    • Go to Settings -> Users & Companies -> Groups.
    • Create a new group (e.g., "Warehouse A User").
    • In the "Inherited" tab, add the "Inventory / User" group. This gives them basic inventory access.
    • Repeat for each warehouse.
  3. Assign Users to Groups:
    • Go to Settings -> Users & Companies -> Users.
    • Edit each user and assign them to the appropriate warehouse security group. Make sure they only have the group for their warehouse (and "Inventory / User").
  4. Create Record Rules:
    • Go to Settings -> Technical -> Record Rules.
    • Click "Create."
    • Name: "Warehouse A Transfers"
    • Model: stock.picking
    • Groups: Select "Warehouse A User"
    • Domain Filter: (Paste the Python code from above, replacing user.warehouse_id.id with the actual ID of Warehouse A's warehouse record. You can find the warehouse ID in the URL when you're viewing the warehouse form.) It's best practice to use the user.warehouse_id.id if you configure the user's warehouse in their user profile.
    • Permissions: Check "Read" (and potentially "Write" if you want them to be able to edit transfers). Leave "Create" and "Delete" unchecked unless you want them to be able to create and delete all transfers that match the rule (which is usually not what you want).
    • Apply to Read, Write, Create, Delete: Check the boxes to apply the rule to all operations.
    • Repeat this process for each warehouse, creating a record rule for each.

Important Considerations and Enhancements

  • User's Warehouse: The record rules rely on the user.warehouse_id field. Make sure you configure the "Warehouse" field on each user's profile (in the "Preferences" tab). If this field is not set, the rules won't work correctly.
  • Company: The company_id check in the record rules is important if you have a multi-company Odoo setup. It ensures that users only see transfers within their company.
  • Transfer Types: If you have different types of transfers (e.g., internal transfers, deliveries, receipts), you might need to create separate record rules for each type to fine-tune the visibility. You can add conditions to the domain filter to check the picking_type_id field on the stock.picking record.
  • Automation (Optional): You can automate the process of assigning users to the correct warehouse security group when they are created. This can be done with a server action or a custom module.
  • Testing: Thoroughly test the setup by logging in as users from different warehouses and verifying that they can only see the transfers they are supposed to see.
  • Performance: Complex record rules can impact performance. Keep the rules as simple and efficient as possible. Use indexed fields in your domain filters.
  • Security Review: Have a security expert review your record rules to ensure that they are correctly configured and don't have any unintended consequences.

Troubleshooting

  • Record Rules Not Working: Double-check the following:
    • Is Developer Mode enabled?
    • Are the record rules active?
    • Are the users assigned to the correct security groups?
    • Is the user.warehouse_id field configured on each user's profile?
    • Is the domain filter correct? Use the "Test Domain" button in the record rule form to verify that it's working as expected.
    • Are there any conflicting record rules? Odoo applies all matching record rules, so conflicting rules can cause unexpected behavior.
  • Too Many Records Visible: The domain filter is likely too broad. Narrow it down to only include the records that the user should see.
  • Not Enough Records Visible: The domain filter is likely too restrictive. Broaden it to include all the records that the user should see.

By carefully implementing these security groups and record rules, you can create a secure and efficient inter-warehouse transfer system in Odoo. Remember to test thoroughly and adjust the configuration to meet your specific business requirements.

🚀 Did This Solve Your Problem?

If this answer helped you save time, money, or frustration, consider:

✅ Upvoting (👍) to help others find it faster

✅ Marking as "Best Answer" if it resolved your issue

Your feedback keeps the Odoo community strong! 💪

(Need further customization? Drop a comment—I’m happy to refine the solution!)

0
Avatar
Descartar
Avatar
Dishant Doshi
Mejor respuesta

Hello ,

I have shared a post and also prepared a video demonstrating how to perform an internal stock transfer between multiple warehouses. Please review the link below. It should meet your requirements.

Link :  https://www.linkedin.com/posts/doshi-dishant-72290b84_how-to-do-internal-warehouse-transfers-activity-7324520642744057856-4E-r?utm_source=share&utm_medium=member_desktop&rcm=ACoAABHuukoBf_YakReIb9NRqoCeSlKvxvbcRMo

Video Link : 




0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,


Refer to the following for managing the inter-warehouse transfer.

* https://www.cybrosys.com/blog/how-to-process-inter-warehouse-and-intra-warehouse-transfers-in-odoo-18


* Forum : - https://www.odoo.com/sl_SI/forum/pomoc-1/solved-transfers-between-branches-multi-company-operations-260999


Hope it helps

0
Avatar
Descartar
Avatar
eng.omar.imad@gmail.com
Mejor respuesta

i have a greet module for warehouse transfers if you are interested contact me eng.omar.imad@gmail.com

0
Avatar
Descartar
Avatar
Carlos Hernández (carh)
Mejor respuesta

🚚 How to Make Internal Transfers in Odoo 🚚

Learn how to set up and perform internal transfers in Odoo with these simple steps!


⚙️ Activate Storage Locations and Multi-Step Routes


Go to the Inventory application.


Click on Configuration > Settings.


In the Warehouse section, check the boxes for Storage Locations and Multi-Step Routes.


Save the changes by clicking Save.


📦 Create an Internal Transfer


Go to the Inventory application.


On the dashboard, locate the Internal Transfers task card and click the # To Process button.


Click Create in the upper left corner of the page. This will take you to a new Internal Transfer form.


📍 Set Up the Transfer


The Operation Type will automatically appear as Internal Transfers.


The Source Location and Destination Location fields will default to WH/Stock, but you can change them to the locations you’re moving products from and to.


Once you’ve selected the locations, add the products you want to transfer.


And that’s it! 🎉 Your internal transfer is set up and ready to go.


https://www.odoo.com/documentation/18.0/applications/finance/accounting/bank/internal_transfers.html

0
Avatar
Descartar
¿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
The forcast is red
transfer internal
Avatar
0
dic 24
1534
Inventory - Internal transfer, delivery
inventory transfer internal
Avatar
0
may 25
132
Picklist for transferring product from one physical location to another.
transfer internal picklist
Avatar
0
nov 23
1615
Internal Transfer error - Missing required account on accountable invoice line Resuelto
configuration transfer internal
Avatar
Avatar
Avatar
Avatar
3
ago 24
7109
Effect on inventory valuation if $0 sales order created for inventory transfer to branch
transfer branch internal SalesOrder
Avatar
0
feb 24
1628
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