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
1 changed files with 1 additions and 0 deletions

View File

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