16.0 done sale order update issue #1

Merged
stephansainleger merged 2 commits from 16.0-done-sale-order-update-issue into 16.0 2025-06-05 12:48:08 +00:00
Showing only changes of commit fcfb571112 - Show all commits

View File

@@ -37,7 +37,8 @@ class EventRegistration(models.Model):
else:
order_lines = self.env['sale.order.line'].search([
('order_id','=',financier.quotation_id.id),
('product_id','=',financier.get_product_id())
('product_id','=',financier.get_product_id()),
('state', '!=', 'done'),
])
if order_lines:
order_lines[0].price_unit = financier.amount