Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7508 Vistas

We frequently deal with Vendors that short ship so that when we receive products, we don't receive the full amount.

We also have to partially deliver to Customers, when we don't have everything on their order.

In both cases our Users see a popup dialog telling them "You have processed less products than the initial demand." and asking them to choose if they want to create a back order or not "Create a backorder if you expect to process the remaining products later. Do not create a backorder if you will not process the remaining products. "

Can Odoo always create the back order?

Avatar
Descartar

Thank you Ray. We have tried that in our V14 odoo and it works.

Mejor respuesta

At v14 we added a context key called skip_backorder.


See it in the code at https://github.com/odoo/odoo/blob/14.0/addons/stock/models/stock_picking.py#L951


If you override the standard stock.picking form view with your own Extension View, the back order seems to be created automatically without the popup asking the User.

I tested with a standard database with a basic Inventory configuration, but please verify this works for all Use Cases with all configurations.




<xpath expr="//button[@name='button_validate'][1]" position="attributes">
<attribute name="context">{'skip_backorder': True}</attribute>
</xpath>
Avatar
Descartar

Hi !

I tried the Ray's solution, but wasn't able to make it work.
Perhaps because I already have a studio customization inherited view ?

> Can't post image here, sorry <

Thanks a lot !

Works for me , i was using it for internal transfer to a transit location for verification before merging with the stock , the problem was the transit location does accumulate each transfer( not good for my intention ) , but for now i can reduce the current shipment transfer , with out backorder confirmation , which is good

self.with_context(skip_backorder=True).button_validate() if the condition in stock.picking

Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 21
921
1
ago 23
1240
1
ene 20
3575
0
jun 23
1341
0
abr 19
5074