We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case of entirely package move field result_package_id from stock_pack_operation is empty.
I propose the following changes stock_picking.py
class StockPicking(models.Model): _inherit = 'stock.picking' @api.multi @api.depends('pack_operation_ids', 'pack_operation_ids.result_package_id') def _calc_picking_packages(self): for record in self: packages = self.env['stock.quant.package'] for op in record.pack_operation_ids: if op.result_package_id: packages |= op.result_package_id elif op.package_id: packages |= op.package_id record.packages = packages #record.packages = record.pack_operation_ids.mapped( 'result_package_id')
The text was updated successfully, but these errors were encountered:
I don't understand the problem. If you assing the correct packages on transfer lines, it works. So I don't see the need of adding new code.
@pedrobaeza opinion?
Sorry, something went wrong.
I do, Ana. He's referring to the case when you are not packing something, but just using an already stored package. I see the patch correct.
No branches or pull requests
In case of entirely package move field result_package_id from stock_pack_operation is empty.
I propose the following changes stock_picking.py
The text was updated successfully, but these errors were encountered: