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

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