-
-
Notifications
You must be signed in to change notification settings - Fork 729
[16.0][ADD] stock_picking_backorder_reason #1199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 16.0
Are you sure you want to change the base?
Conversation
2c078c2 to
b2ded86
Compare
stock_picking_backorder_reason/models/stock_backorder_reason.py
Outdated
Show resolved
Hide resolved
|
@lmignon Could you update your review ? |
lmignon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @rousseldenis LGTM (Core review + functional tests)
lmignon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rousseldenis The licence must be LGPL since this addon will be mixed with helpdesk.
2092b8d to
1789528
Compare
|
@rousseldenis @lmignon I don't like the module name and how the module solves the initial requirement. Basically, we want to configure on the supplier if he supports backorder in his system or not, and this in order to not keep a reception backorder open in odoo for nothing as you will never receive the missing goods. So mainly we need to configure a backorder strategy on the supplier. Besides this, in my opinion, you cannot mirror this feature for sales in the same way. So all the code to try to be generic and cover sales looks useless to me. I would simplify a lot this module to just keep the basic need regarding supplier and rename the module to reflect that it basically adds a supplier backorder strategy. |
We have flows where customer has particular requirement on this, so we need to keep that.
From my preceding remark, I agree partly on this as this could be renamed 'backorder_partner_stragey' or 'backorder_third_party_strategy' to reflect a module centered on the 'partner' strategy, letting the 'reason' as accessory and not the main functionnality. |
f293614 to
f90781a
Compare
e42382e to
78304c1
Compare
…ior + several fixes
…ncel Due to odoo/odoo@74a7309#diff-c225137b15a0c221c12556a79d41a7cb32c52810558fe8206e2007e05118105eR74 pick_ids is used in context for cancel flow.
78304c1 to
08a6bfc
Compare
…parently As user does not want to have necessarily a reason wizard to cancel the backorder, add a parameter that allows to bypass that wizard.
08a6bfc to
d37b9d5
Compare
…on as a separate flow The reason option should not be mandatory to let the transparent cancel flow will occur. So, let the options for sale and purchase be enabled without the reason one.
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
…arent cancel backorders Pass 'picking_ids_not_to_backorder' context key when doing picking validation in order to do transparent backorder cancelation.
We have the case for customers too. |
In some flows, one may want to let the user have the choice on something more understandable in his context. So, instead choosing a backorder strategy, let him choose a 'reason'.
Let define some backorder reasons and associate the strategy on those reasons.
We define also a new strategy which is 'Use partner option' to delegate it on partner level.