Commit d4850c81 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: drop template_member

parent 639bff25
...@@ -1998,8 +1998,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin): ...@@ -1998,8 +1998,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin):
return delivery_line return delivery_line
def test(self): def test(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
delivery = self._createDelivery(destination_value=person, delivery = self._createDelivery(destination_value=person,
destination_decision_value=person) destination_decision_value=person)
delivery_line = self._addDeliveryLine(delivery) delivery_line = self._addDeliveryLine(delivery)
...@@ -2037,8 +2037,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin): ...@@ -2037,8 +2037,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin):
built_delivery_line.getResource()) built_delivery_line.getResource())
def test_many_lines(self): def test_many_lines(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
delivery = self._createDelivery(destination_value=person, delivery = self._createDelivery(destination_value=person,
destination_decision_value=person) destination_decision_value=person)
setup_line_1 = self._addDeliveryLine(delivery) setup_line_1 = self._addDeliveryLine(delivery)
...@@ -2100,8 +2100,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin): ...@@ -2100,8 +2100,8 @@ class TestSlapOSAggregatedDeliveryBuilder(SlapOSTestCaseMixin):
built_subscription_line.getResource()) built_subscription_line.getResource())
def test_added_after(self): def test_added_after(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
delivery = self._createDelivery(destination_value=person, delivery = self._createDelivery(destination_value=person,
destination_decision_value=person) destination_decision_value=person)
delivery_line = self._addDeliveryLine(delivery) delivery_line = self._addDeliveryLine(delivery)
......
...@@ -37,8 +37,8 @@ class TestSlapOSEntityCreatePaymentMixin(SlapOSTestCaseMixin): ...@@ -37,8 +37,8 @@ class TestSlapOSEntityCreatePaymentMixin(SlapOSTestCaseMixin):
base_unit_quantity=0.1 base_unit_quantity=0.1
) )
if person is None: if person is None:
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
invoice = self.createSaleInvoiceTransaction( invoice = self.createSaleInvoiceTransaction(
source_value=organisation, source_value=organisation,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment