diff --git a/golem_resource_account/tests/test_golem_reservation_invoice.py b/golem_resource_account/tests/test_golem_reservation_invoice.py index 8ecc5ad..6a99335 100644 --- a/golem_resource_account/tests/test_golem_reservation_invoice.py +++ b/golem_resource_account/tests/test_golem_reservation_invoice.py @@ -78,7 +78,7 @@ class TestGolemResourceReservation(TransactionCase): 'product_tmpl_id': self.env.ref('product.product_product_5').id}) reservation.create_invoice() self.assertTrue(reservation.invoice_id) - self.assertEqual(reservation.invoicing_state, "draft") + self.assertEqual(reservation.invoice_state, "draft") def test_multiple_reservation_in(self): """ Test Multiple Reservation Invoices """ diff --git a/golem_resource_account/views/golem_resource_reservation_views.xml b/golem_resource_account/views/golem_resource_reservation_views.xml index df7c05e..48d4f68 100644 --- a/golem_resource_account/views/golem_resource_reservation_views.xml +++ b/golem_resource_account/views/golem_resource_reservation_views.xml @@ -25,7 +25,7 @@ along with this program. If not, see . - red : invoicing_state=='open'; green : invoicing_state=='paid'; black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected' + red : invoice_state=='open'; green : invoice_state=='paid'; black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected'