Skip to content

Commit

Permalink
[16.0][IMP] stock_move_qty_by_packaging: Change dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berezi authored and anajuaristi committed Jan 31, 2025
1 parent 50ca46e commit bb1b8f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
4 changes: 1 addition & 3 deletions stock_move_qty_by_packaging/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ Stock move qty by packaging
* In stock move, and stock move line, new field "Boxes/Sacks".
* New fields in move and move lines: Product Packaging, Packaging quantity,
palet, palet quantity and gross weight.
* When confirming the sale order, it going to take packaging, palet and their
quantities to the picking move lines.

* When you force move lines, it going to take packaging, from the move.
Bug Tracker
===========

Expand Down
1 change: 0 additions & 1 deletion stock_move_qty_by_packaging/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"website": "https://github.com/avanzosc/odoo-addons",
"depends": [
"stock",
"sale_order_line_qty_by_packaging",
"stock_move_line_force_done",
"product_packaging_palet",
"uom",
Expand Down
13 changes: 2 additions & 11 deletions stock_move_qty_by_packaging/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ def button_force_done_detailed_operations(self):
result = super().button_force_done_detailed_operations()
for picking in self:
for line in picking.move_line_ids_without_package:
if line.move_id and line.move_id.sale_line_id:
if line.move_id.sale_line_id.product_packaging_id:
line.product_packaging_id = (
line.move_id.sale_line_id.product_packaging_id.id
)
line.product_packaging_qty = (
line.move_id.sale_line_id.product_packaging_qty
)
if line.move_id.sale_line_id.palet_id:
line.palet_id = line.move_id.sale_line_id.palet_id.id
line.palet_qty = line.move_id.sale_line_id.palet_qty
if line.move_id and line.move_id.product_packaging_id:
line.product_packaging_id = line.move_id.product_packaging_id.id
return result

0 comments on commit bb1b8f8

Please sign in to comment.