Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
0
Merge Requests
0
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
Yusei Tahara
erp5
Commits
d41d8f94
Commit
d41d8f94
authored
Apr 30, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
payment_mean: constraint for PaymentTransactionGroup
This constraint will have to be enabled by configurator/upgrader.
parent
96255e39
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
695 additions
and
0 deletions
+695
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint.xml
...tal_property_sheets/PaymentTransactionGroupConstraint.xml
+66
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/payment_mode_category_existence_constraint.xml
...Constraint/payment_mode_category_existence_constraint.xml
+86
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/payment_transaction_group_type_category_existence_constraint.xml
..._transaction_group_type_category_existence_constraint.xml
+86
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/price_currency_category_existence_constraint.xml
...nstraint/price_currency_category_existence_constraint.xml
+86
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/source_payment_category_existence_constraint.xml
...nstraint/source_payment_category_existence_constraint.xml
+86
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/source_section_category_existence_constraint.xml
...nstraint/source_section_category_existence_constraint.xml
+86
-0
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/stop_date_constraint.xml
...aymentTransactionGroupConstraint/stop_date_constraint.xml
+99
-0
bt5/erp5_payment_mean/TestTemplateItem/portal_components/test.erp5.testPaymentTransactionGroup.py
...ortal_components/test.erp5.testPaymentTransactionGroup.py
+99
-0
bt5/erp5_payment_mean/bt/template_property_sheet_id_list
bt5/erp5_payment_mean/bt/template_property_sheet_id_list
+1
-0
No files found.
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Sheet"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
PaymentTransactionGroupConstraint
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Sheet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/payment_mode_category_existence_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_base_category
</string>
</key>
<value>
<tuple>
<string>
payment_mode
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
constraint_portal_type
</string>
</key>
<value>
<string>
python: (\'Category\', )
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Payment mode must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
payment_mode_category_existence_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_category_not_set
</string>
</key>
<value>
<string>
Payment Mode must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Existence Constraint
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/payment_transaction_group_type_category_existence_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_base_category
</string>
</key>
<value>
<tuple>
<string>
payment_transaction_group_type
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
constraint_portal_type
</string>
</key>
<value>
<string>
python: (\'Category\', )
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Payment Transaction Group Type must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
payment_transaction_group_type_category_existence_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_category_not_set
</string>
</key>
<value>
<string>
Payment Transaction Group Type must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Existence Constraint
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/price_currency_category_existence_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_base_category
</string>
</key>
<value>
<tuple>
<string>
price_currency
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
constraint_portal_type
</string>
</key>
<value>
<string>
python: (\'Currency\', )
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Currency must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
price_currency_category_existence_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_category_not_set
</string>
</key>
<value>
<string>
Currency must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Existence Constraint
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/source_payment_category_existence_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_base_category
</string>
</key>
<value>
<tuple>
<string>
source_payment
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
constraint_portal_type
</string>
</key>
<value>
<string>
python: object.getPortalPaymentNodeTypeList()
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Source payment must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
source_payment_category_existence_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_category_not_set
</string>
</key>
<value>
<string>
Section bank account must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Existence Constraint
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/source_section_category_existence_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_base_category
</string>
</key>
<value>
<tuple>
<string>
source_section
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
constraint_portal_type
</string>
</key>
<value>
<string>
python: (\'Organisation\', )
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Source section must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
source_section_category_existence_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_category_not_set
</string>
</key>
<value>
<string>
Section must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Existence Constraint
</string>
</value>
</item>
<item>
<key>
<string>
use_acquisition
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/PropertySheetTemplateItem/portal_property_sheets/PaymentTransactionGroupConstraint/stop_date_constraint.xml
0 → 100644
View file @
d41d8f94
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Existence Constraint"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
message_property_not_set
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
constraint_property
</string>
</key>
<value>
<tuple>
<string>
stop_date
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Date must be defined
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
stop_date_constraint
</string>
</value>
</item>
<item>
<key>
<string>
message_no_such_property
</string>
</key>
<value>
<string>
Date must be defined
</string>
</value>
</item>
<item>
<key>
<string>
message_property_not_set
</string>
</key>
<value>
<string>
Date must be defined
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Existence Constraint
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payment_mean/TestTemplateItem/portal_components/test.erp5.testPaymentTransactionGroup.py
View file @
d41d8f94
...
...
@@ -25,8 +25,11 @@
#
##############################################################################
from
DateTime
import
DateTime
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
class
TestPaymentTransactionGroup
(
ERP5TypeTestCase
):
def
test_source_reference_generated
(
self
):
ptg
=
self
.
portal
.
payment_transaction_group_module
.
newContent
(
...
...
@@ -42,3 +45,99 @@ class TestPaymentTransactionGroup(ERP5TypeTestCase):
# a new source reference
self
.
assertNotEqual
(
ptg
.
getSourceReference
(),
cloned_ptg
.
getSourceReference
())
class
TestPaymentTransactionGroupConstraint
(
ERP5TypeTestCase
):
def
afterSetUp
(
self
):
ti
=
self
.
portal
.
portal_types
[
'Payment Transaction Group'
]
ti
.
setTypePropertySheetList
(
ti
.
getTypePropertySheetList
()
+
[
'PaymentTransactionGroupConstraint'
])
self
.
commit
()
def
beforeTearDown
(
self
):
self
.
abort
()
ti
=
self
.
portal
.
portal_types
[
'Payment Transaction Group'
]
ti
.
setTypePropertySheetList
(
[
ps
for
ps
in
ti
.
getTypePropertySheetList
()
if
ps
!=
'PaymentTransactionGroupConstraint'
])
self
.
commit
()
def
test_constraints
(
self
):
ptg
=
self
.
portal
.
payment_transaction_group_module
.
newContent
(
portal_type
=
'Payment Transaction Group'
,
stop_date
=
None
,
)
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Currency must be defined'
,
'Date must be defined'
,
'Payment Mode must be defined'
,
'Payment Transaction Group Type must be defined'
,
'Section bank account must be defined'
,
'Section must be defined'
,
],
)
ptg
.
setPriceCurrencyValue
(
self
.
portal
.
currency_module
.
newContent
(
portal_type
=
'Currency'
))
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Date must be defined'
,
'Payment Mode must be defined'
,
'Payment Transaction Group Type must be defined'
,
'Section bank account must be defined'
,
'Section must be defined'
,
],
)
ptg
.
setStopDate
(
DateTime
(
2021
,
1
,
1
))
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Payment Mode must be defined'
,
'Payment Transaction Group Type must be defined'
,
'Section bank account must be defined'
,
'Section must be defined'
,
],
)
ptg
.
setPaymentModeValue
(
self
.
portal
.
portal_categories
.
payment_mode
.
newContent
(
portal_type
=
'Category'
))
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Payment Transaction Group Type must be defined'
,
'Section bank account must be defined'
,
'Section must be defined'
,
],
)
ptg
.
setPaymentTransactionGroupTypeValue
(
self
.
portal
.
portal_categories
.
payment_transaction_group_type
.
incoming
)
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Section bank account must be defined'
,
'Section must be defined'
,
],
)
section
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
)
ptg
.
setSourceSectionValue
(
section
)
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[
'Section bank account must be defined'
,
],
)
bank_account
=
section
.
newContent
(
portal_type
=
'Bank Account'
)
ptg
.
setSourcePaymentValue
(
bank_account
)
self
.
assertEqual
(
sorted
([
str
(
m
.
getMessage
())
for
m
in
ptg
.
checkConsistency
()]),
[])
bt5/erp5_payment_mean/bt/template_property_sheet_id_list
0 → 100644
View file @
d41d8f94
PaymentTransactionGroupConstraint
\ No newline at end of file
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