Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
d4850c81
Commit
d4850c81
authored
Oct 27, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: drop template_member
parent
639bff25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingBuilder.py
...ortal_components/test.erp5.testSlapOSAccountingBuilder.py
+6
-6
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSEntityCreatePayment.py
...tal_components/test.erp5.testSlapOSEntityCreatePayment.py
+2
-2
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingBuilder.py
View file @
d4850c81
...
@@ -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)
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSEntityCreatePayment.py
View file @
d4850c81
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment