Skip to content

Commit

Permalink
[FIX] fleet_vehicle_purchase: fix prepare_account_move_line method
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Apr 8, 2024
1 parent 5e3a7ac commit 0bf4bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fleet_vehicle_purchase/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PurchaseOrderLine(models.Model):

_inherit = "purchase.order.line"

def _prepare_account_move_line(self):
result = super()._prepare_account_move_line()
def _prepare_account_move_line(self, move=False):
result = super()._prepare_account_move_line(move)
result["vehicle_id"] = self.order_id.fleet_vehicle_id.id
return result

0 comments on commit 0bf4bbb

Please sign in to comment.