Skip to content

Commit

Permalink
[16.0][FIX] product_supplierinfo_stock_picking_type: rename on change…
Browse files Browse the repository at this point in the history
… picking type method
  • Loading branch information
AlexPForgeFlow committed Nov 21, 2024
1 parent 3521029 commit 7e35f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class PurchaseOrder(models.Model):
_inherit = "purchase.order"

@api.onchange("picking_type_id")
def onchange_picking_type_id(self):
def onchange_picking_type_id_onchange_product(self):
for line in self.order_line:
line.onchange_product_id()
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ def test_product_picking_type_c(self):
po = self._create_purchase_order(self.picking_in_c)
self.assertEqual(po.order_line.price_unit, 20)
po.picking_type_id = self.picking_in_a
po.onchange_picking_type_id()
po.onchange_picking_type_id_onchange_product()
self.assertEqual(po.order_line.price_unit, 5)

0 comments on commit 7e35f92

Please sign in to comment.