Skip to Content
Menu
This question has been flagged

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
Discard

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

Best Answer

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
Discard

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

Related Posts Replies Views Activity
1
Aug 21
518
1
Aug 23
660
1
Jan 20
3158
0
Jun 23
874
0
Apr 19
4358