Add validation invoice type

This commit is contained in:
Oscar Alvarez 2020-11-07 12:29:25 -05:00
parent 845f8745a4
commit b4a9df2b26

View file

@ -1327,7 +1327,7 @@ class MainWindow(FrontWindow):
def action_invoice_type_selection_changed(self, index):
val = self.field_invoice_type.get_id()
if val:
if val and self._sale and self._sale.get('id'):
self._PosSale.write([self._sale['id']], {'invoice_type': val})
def action_tax_selection_changed(self):