add to send the is_move_sent

This commit is contained in:
Kevin Kempf 2022-11-20 18:31:13 +00:00
parent f4428d28fa
commit cc8c0ce21c

View File

@ -39,6 +39,7 @@ class AccountInvoice(models.Model):
raise UserError(_("Error generating Paynet message")) raise UserError(_("Error generating Paynet message"))
message.send_to_paynet() message.send_to_paynet()
self.invoice_exported = True self.invoice_exported = True
self.is_move_sent = True
return "Paynet invoice generated and in state {}".format(message.state) return "Paynet invoice generated and in state {}".format(message.state)
def create_paynet_message(self): def create_paynet_message(self):