[16.0][ADD] stock_move_zone_location_source#1377
[16.0][ADD] stock_move_zone_location_source#1377rousseldenis wants to merge 5 commits intoOCA:16.0from
Conversation
b6e6f46 to
fe8696f
Compare
As Odoo does not reflect the leaf location from where the product is eventually taken from on the stock move level, take the zone location source from the move line.
90d87e3 to
af10c68
Compare
| # Reset value if is_zone field is set to False | ||
| self.filtered(lambda location: location.is_zone).update( | ||
| {"is_considered_as_source": False} | ||
| ) |
There was a problem hiding this comment.
In fact, you reset value when is_zone is set to True. You inverted the filter domain
|
From your explanation, you try to build a reporting based on a package type category and not from where it has been picked. |
@jbaudoux Nope. Nothing to do with a package type category. This is only to find the REAL origin (for a particular move) of a product move. This will retrieve only the location origin. To find it, we look behind and take the first location we find in the chain that has these characteristics:
So, if the product comes at T time from Food A zone, it will be marked coming from there. If product configuration has changed and comes from Food B zone, the next shipping will mention that one. |
|
Yes I understand what your module is doing. But I don't think the report you build should be based on this module. Because the information serves a report that is for the transporter. And I think he doesn't care from where in your stock the product is coming. He needs to know what type of package/product to load in the truck and unload at customer. E.g. 2 boxes of drugs, 3 bags of food and 1 box of hardware. He is interested by the package type as this is what he handles. Just a design remark ;) |
…o parent(s) of zone_location_id
|
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. |
|
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. |
No description provided.