Skip to Content
Menu
This question has been flagged
1 Reply
1064 Views

Hello, I am using odoo 13 enterprise. I am trying to set the 'Printed' checkbox to false. When back orders are generated during delivery, the print status adopts the status of original delivery Order. I have tried automated actions, set custom defaults. No matter what I do , when generating a back order the printed status is always True (as the original delivery was set to true).

The only thing I have not tried was to set the original Delivery print status to false prior to generating the back order via an automated action. This does not seem like a clean approach and doubt it may even work. 


This can be that difficult and would appreciate any direction on this. I am using studio to do my modifications in odoo

thanks in advance


Avatar
Discard
Best Answer

The field has the Copied property set, so this means when you copy (or generate a backorder) the copy/back order will get the same value.


You can override the definition of the field in your own module.  Mark might be able to help you with this! :)

https://github.com/odoo/odoo/blob/13.0/addons/stock/models/stock_picking.py#L358

You can see from the Source that we don't set any of the other properties explicitly, so the boolean takes the defaults for all the properties, and for COPY the default is True.

https://www.odoo.com/documentation/13.0/reference/orm.html#fields


Please report this as "a bug/incorrect behavior" via https://www.odoo.com/help so we can get this feedback to the team who can fix it.

Avatar
Discard