minor fix

This commit is contained in:
wilsongomez 2022-02-12 10:51:32 -05:00
parent 019ecd4ce2
commit 97b7d391dc
1 changed files with 4 additions and 0 deletions

View File

@ -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)