[FIX]GOLEM Resource Account : post merge rename

This commit is contained in:
Fabien BOURGEOIS 2018-03-26 18:28:44 +02:00
parent cb33dda359
commit 2eb4845dfa
2 changed files with 2 additions and 2 deletions

View File

@ -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 """

View File

@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name='inherit_id' ref="golem_resource.golem_resource_reservation_view_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="colors">red : invoicing_state=='open'; green : invoicing_state=='paid'; black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected'</attribute>
<attribute name="colors">red : invoice_state=='open'; green : invoice_state=='paid'; black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected'</attribute>
</xpath>
<field name="state" position="after">
<field name="invoice_id" />