Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
9b8e76e5
Commit
9b8e76e5
authored
Aug 22, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Remove "GAP must be set on accounts" constraint from erp5_accounting.
parent
14b608f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
product/ERP5/tests/testAccounting.py
product/ERP5/tests/testAccounting.py
+2
-4
No files found.
product/ERP5/tests/testAccounting.py
View file @
9b8e76e5
...
@@ -244,12 +244,10 @@ class TestAccounts(AccountingTestCase):
...
@@ -244,12 +244,10 @@ class TestAccounts(AccountingTestCase):
"""Tests Accounts.
"""Tests Accounts.
"""
"""
def
test_AccountValidation
(
self
):
def
test_AccountValidation
(
self
):
# Accounts need a
gap category and a
n account_type category to be valid
# Accounts need an account_type category to be valid
account
=
self
.
portal
.
account_module
.
newContent
(
portal_type
=
'Account'
)
account
=
self
.
portal
.
account_module
.
newContent
(
portal_type
=
'Account'
)
self
.
assertEqual
(
2
,
len
(
account
.
checkConsistency
()))
account
.
setAccountType
(
'equity'
)
self
.
assertEqual
(
1
,
len
(
account
.
checkConsistency
()))
self
.
assertEqual
(
1
,
len
(
account
.
checkConsistency
()))
account
.
set
Gap
(
'my_country/my_accounting_standards/1
'
)
account
.
set
AccountType
(
'equity
'
)
self
.
assertEqual
(
0
,
len
(
account
.
checkConsistency
()))
self
.
assertEqual
(
0
,
len
(
account
.
checkConsistency
()))
def
test_AccountWorkflow
(
self
):
def
test_AccountWorkflow
(
self
):
...
...
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