diff --git a/app/main.py b/app/main.py index 9bc868e..e743da3 100644 --- a/app/main.py +++ b/app/main.py @@ -678,6 +678,10 @@ class AppWindow(FrontWindow): self._process_quantity(self._amount_text) else: error = not(self._process_price(self._amount_text)) + sale_line, = self.SaleLine.find([ + ('id', '=', self._sale_line['id']) + ]) + self.model_sale_lines.update_record(sale_line) elif self._state in ['add', 'cancel', 'accept']: self.clear_right_panel() self.add_product(code=self._input_text)