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

How to Temporarily Lock a Location During Inventory Count in Odoo?

Suscribirse

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

Se marcó esta pregunta
warehouseinventorylocation18
2 Respuestas
1545 Vistas
Avatar
Abdallah Mahmoud

Hello,

), and I would like to Location during inventory operations such as stocktaking. The goal is to users from adding or removing products (via transfers, sales, purchases, manufacturing, etc.) while the inventory count is in progress.

Is there a built-in feature or recommended workaround to:

  1. Temporarily disable operations on a specific warehouse?
  2. Restrict any stock movements (inbound/outbound/internal) for that warehouse during a defined period?

Any help or guidance would be appreciated.

Thanks in advance!

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

Hi,

Please refer to the code below:

Custom field in warehouse:

from odoo import models, fields

class StockWarehouse(models.Model):
_inherit = "stock.warehouse"

is_blocked = fields.Boolean(
string="Block Operations",
help="If enabled, all stock movements (inbound, outbound, internal) "
"for this warehouse will be restricted."
)


Warning :

from odoo.exceptions import UserError

class StockPicking(models.Model):
_inherit = "stock.picking"

def action_confirm(self):
for picking in self:
if picking.location_id.warehouse_id.is_blocked or picking.location_dest_id.warehouse_id.is_blocked:
raise UserError("This warehouse is locked for stocktaking. No transfers allowed.")
return super().action_confirm()

def button_validate(self):
for picking in self:
if picking.location_id.warehouse_id.is_blocked or picking.location_dest_id.warehouse_id.is_blocked:
raise UserError("This warehouse is locked for stocktaking. No transfers allowed.")
return super().button_validate()

Hope it helps.

0
Avatar
Descartar
Avatar
Ray Carnes (ray)
Mejor respuesta

In the Warehouse, you would block the area with a chain or tape and a sign so that employees know that counting is in progress.


In Odoo, you can mimic this process by renaming the location, then rename it back when you are finished counting.

While this does not block Users, it does alert them.  

Since the chain or tape in the Warehouse does not stop employees from taking something while counting is in progress, you are both matching the real-world process and leveraging out of the box functionality (ie: free to implement). 

They may have to take something and tell the employee responsible for counting, especially if it is crucial for the business and more important than potentially messing up the count.

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
Location structure shows all inventory in v7
warehouse inventory location
Avatar
Avatar
1
mar 15
6196
What are chaining types and chained locations in OpenERP warehouse management ?
stock warehouse inventory location
Avatar
Avatar
1
ago 16
11212
How to do a physical inventory in large warehouse?
stock warehouse inventory location
Avatar
Avatar
Avatar
2
mar 15
10086
Assign inventory tasks to employee
warehouse inventory
Avatar
0
jul 25
1221
How to prevent negative stock in Odoo18? Resuelto
warehouse inventory
Avatar
Avatar
Avatar
Avatar
Avatar
4
sept 25
9961
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