diff --git a/ebill_paynet/data/ir_cron.xml b/ebill_paynet/data/ir_cron.xml index 7df5131..9a01504 100644 --- a/ebill_paynet/data/ir_cron.xml +++ b/ebill_paynet/data/ir_cron.xml @@ -1,7 +1,7 @@ - Paynet - Poll for shipments + E-Bill - Poll for shipments 1 hours -1 diff --git a/ebill_paynet/data/mail_activity_type.xml b/ebill_paynet/data/mail_activity_type.xml index 9d6f9c4..46df9b1 100644 --- a/ebill_paynet/data/mail_activity_type.xml +++ b/ebill_paynet/data/mail_activity_type.xml @@ -2,7 +2,7 @@ - Paynet System Error + E-Bill System Error fa-warning 0 99 diff --git a/ebill_paynet/data/transmit.method.xml b/ebill_paynet/data/transmit.method.xml index 13a13f0..3b490b6 100644 --- a/ebill_paynet/data/transmit.method.xml +++ b/ebill_paynet/data/transmit.method.xml @@ -1,7 +1,7 @@ - Paynet + E-Bill paynet diff --git a/ebill_paynet/messages/invoice-2013A-invocloud.xml b/ebill_paynet/messages/invoice-2013A-invocloud.xml index 4d278da..e5c6cd6 100644 --- a/ebill_paynet/messages/invoice-2013A-invocloud.xml +++ b/ebill_paynet/messages/invoice-2013A-invocloud.xml @@ -17,17 +17,17 @@ {{ invoice.name }} - {{ format_date() }} + {{ format_date(invoice.invoice_date) }} - {{ format_date(invoice.date_invoice) }} + {{ format_date(invoice.invoice_date) }} {{ invoice.name }} - {{ format_date(invoice.date_invoice) }} + {{ format_date(invoice.invoice_date) }} @@ -121,7 +121,7 @@ - {{ format_date(invoice.date_due or invoice.date_invoice) }} + {{ format_date(invoice.invoice_date_due or invoice.invoice_date) }} diff --git a/ebill_paynet/models/account_invoice.py b/ebill_paynet/models/account_invoice.py index 616a91b..e087cd4 100644 --- a/ebill_paynet/models/account_invoice.py +++ b/ebill_paynet/models/account_invoice.py @@ -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):