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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a0c2b666
Commit
a0c2b666
authored
Mar 31, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_accounting: Migrate Documents from filesystem.
parent
7a8017c6
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
1488 additions
and
12 deletions
+1488
-12
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Account.py
...ntTemplateItem/portal_components/document.erp5.Account.py
+73
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Account.xml
...tTemplateItem/portal_components/document.erp5.Account.xml
+110
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountTypeConstraint.py
.../portal_components/document.erp5.AccountTypeConstraint.py
+1
-2
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountTypeConstraint.xml
...portal_components/document.erp5.AccountTypeConstraint.xml
+110
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransaction.py
.../portal_components/document.erp5.AccountingTransaction.py
+87
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransaction.xml
...portal_components/document.erp5.AccountingTransaction.xml
+110
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionBalanceConstraint.py
...s/document.erp5.AccountingTransactionBalanceConstraint.py
+0
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionBalanceConstraint.xml
.../document.erp5.AccountingTransactionBalanceConstraint.xml
+104
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionLine.py
...tal_components/document.erp5.AccountingTransactionLine.py
+1
-1
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionLine.xml
...al_components/document.erp5.AccountingTransactionLine.xml
+131
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionRootSimulationRule.py
.../document.erp5.AccountingTransactionRootSimulationRule.py
+0
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionRootSimulationRule.xml
...document.erp5.AccountingTransactionRootSimulationRule.xml
+104
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransaction.py
...tem/portal_components/document.erp5.BalanceTransaction.py
+3
-3
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransaction.xml
...em/portal_components/document.erp5.BalanceTransaction.xml
+131
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransactionLine.py
...portal_components/document.erp5.BalanceTransactionLine.py
+1
-1
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransactionLine.xml
...ortal_components/document.erp5.BalanceTransactionLine.xml
+110
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Invoice.py
...ntTemplateItem/portal_components/document.erp5.Invoice.py
+73
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Invoice.xml
...tTemplateItem/portal_components/document.erp5.Invoice.xml
+110
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.InvoiceRootSimulationRule.py
...tal_components/document.erp5.InvoiceRootSimulationRule.py
+0
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.InvoiceRootSimulationRule.xml
...al_components/document.erp5.InvoiceRootSimulationRule.xml
+104
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.PaymentSimulationRule.py
.../portal_components/document.erp5.PaymentSimulationRule.py
+0
-0
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.PaymentSimulationRule.xml
...portal_components/document.erp5.PaymentSimulationRule.xml
+104
-0
bt5/erp5_accounting/bt/template_document_id_list
bt5/erp5_accounting/bt/template_document_id_list
+11
-0
bt5/erp5_accounting_simulation_legacy/DocumentTemplateItem/portal_components/document.erp5.AccountingRuleCell.py
...tem/portal_components/document.erp5.AccountingRuleCell.py
+1
-1
bt5/erp5_banking_core/DocumentTemplateItem/portal_components/document.erp5.BankingOperation.py
...eItem/portal_components/document.erp5.BankingOperation.py
+1
-1
bt5/erp5_banking_core/DocumentTemplateItem/portal_components/document.erp5.BankingOperationLine.py
...m/portal_components/document.erp5.BankingOperationLine.py
+1
-1
bt5/erp5_payroll/DocumentTemplateItem/portal_components/document.erp5.PaySheetTransaction.py
...em/portal_components/document.erp5.PaySheetTransaction.py
+1
-1
bt5/erp5_payroll/DocumentTemplateItem/portal_components/document.erp5.PaySheetTransactionLine.py
...ortal_components/document.erp5.PaySheetTransactionLine.py
+1
-1
product/ERP5/tests/testAmount.py
product/ERP5/tests/testAmount.py
+5
-0
No files found.
product/ERP5/Document/
Account.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
Account.py
View file @
a0c2b666
...
@@ -33,43 +33,41 @@ from Products.ERP5.Document.Node import Node
...
@@ -33,43 +33,41 @@ from Products.ERP5.Document.Node import Node
class
Account
(
Node
):
class
Account
(
Node
):
"""An account is an abstract node which holds currencies and is used in
"""An account is an abstract node which holds currencies and is used in
accounting.
accounting.
Accounts are member of categories that are used to do aggregated reporting
Accounts are member of categories that are used to do aggregated reporting
of accounting movements. Typically, the following categories are used::
of accounting movements. Typically, the following categories are used::
* GAP: This category represents the classification as defined by the
* GAP: This category represents the classification as defined by the
legislations that the organisatation have to comply to. Accounts can be
legislations that the organisatation have to comply to. Accounts can be
associated to multiple GAP category trees at the same time, and
associated to multiple GAP category trees at the same time, and
therefore it allows to generate reports for multiple legislations from
therefore it allows to generate reports for multiple legislations from
the same accounting data.
the same accounting data.
* Financial Section: This category is the representation of the financial
* Financial Section: This category is the representation of the financial
structure as seen by the company, regardless of the fiscal
structure as seen by the company, regardless of the fiscal
requirements. Balance Sheets and Profit & Loss reports can be
requirements. Balance Sheets and Profit & Loss reports can be
generated using those categories.
generated using those categories.
* Account Type: This category is used to describe what is the type of
* Account Type: This category is used to describe what is the type of
this account, and usually has impact on the behaviour of the
this account, and usually has impact on the behaviour of the
application and reportings. For instance, when using a "payable"
application and reportings. For instance, when using a "payable"
account in an accounting transaction, we set the supplier organisation
account in an accounting transaction, we set the supplier organisation
as mirror section, and reports such as trial balance can display a
as mirror section, and reports such as trial balance can display a
breakdown of this account for each supplier.
breakdown of this account for each supplier.
"""
"""
meta_type
=
'ERP5 Account'
portal_type
=
'Account'
add_permission
=
Permissions
.
AddPortalContent
meta_type
=
'ERP5 Account'
# Declarative security
portal_type
=
'Account'
security
=
ClassSecurityInfo
()
add_permission
=
Permissions
.
AddPortalContent
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Account
,
PropertySheet
.
Arrow
,
PropertySheet
.
Reference
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Account
,
PropertySheet
.
Arrow
,
PropertySheet
.
Reference
)
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Account.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Account
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.Account
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.Account
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
AccountTypeConstraint.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
AccountTypeConstraint.py
View file @
a0c2b666
...
@@ -27,8 +27,7 @@
...
@@ -27,8 +27,7 @@
##############################################################################
##############################################################################
from
Products.ERP5Type.mixin.constraint
import
ConstraintMixin
from
Products.ERP5Type.mixin.constraint
import
ConstraintMixin
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
PropertySheet
from
Products.ERP5Type.Message
import
Message
translateString
=
lambda
msg
:
msg
# just to extract messages
translateString
=
lambda
msg
:
msg
# just to extract messages
_MARKER
=
[]
_MARKER
=
[]
...
...
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountTypeConstraint.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AccountTypeConstraint
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.AccountTypeConstraint
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.AccountTypeConstraint
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
AccountingTransaction.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
AccountingTransaction.py
View file @
a0c2b666
...
@@ -32,57 +32,56 @@ from Products.ERP5Type import Permissions, PropertySheet
...
@@ -32,57 +32,56 @@ from Products.ERP5Type import Permissions, PropertySheet
from
Products.ERP5.Document.Delivery
import
Delivery
from
Products.ERP5.Document.Delivery
import
Delivery
class
AccountingTransaction
(
Delivery
):
class
AccountingTransaction
(
Delivery
):
"""
"""
A Transaction object allows to add
A Transaction object allows to add
elementary accounting transactions in the general ledger
elementary accounting transactions in the general ledger
"""
"""
# CMF Type Definition
# CMF Type Definition
meta_type
=
'ERP5 Accounting Transaction'
meta_type
=
'ERP5 Accounting Transaction'
portal_type
=
'Accounting Transaction'
portal_type
=
'Accounting Transaction'
add_permission
=
Permissions
.
AddPortalContent
add_permission
=
Permissions
.
AddPortalContent
# Declarative security
# Declarative security
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Default Properties
# Default Properties
property_sheets
=
(
PropertySheet
.
Base
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
XMLObject
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Task
,
PropertySheet
.
Task
,
PropertySheet
.
Arrow
,
PropertySheet
.
Arrow
,
PropertySheet
.
Movement
,
PropertySheet
.
Movement
,
PropertySheet
.
Delivery
,
PropertySheet
.
Delivery
,
PropertySheet
.
Order
,
PropertySheet
.
Order
,
PropertySheet
.
Reference
,
PropertySheet
.
Reference
,
PropertySheet
.
Comment
,
PropertySheet
.
Comment
,
PropertySheet
.
PaymentCondition
,
PropertySheet
.
PaymentCondition
)
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'hasSourceSectionAccounting'
)
'hasSourceSectionAccounting'
)
def
hasSourceSectionAccounting
(
self
):
def
hasSourceSectionAccounting
(
self
):
"""Return true if we should take into account accounting for source
"""Return true if we should take into account accounting for source
section.
section.
"""
"""
section
=
self
.
getSourceSectionValue
()
section
=
self
.
getSourceSectionValue
()
if
section
is
not
None
:
if
section
is
not
None
:
return
section
.
getPortalType
()
!=
'Person'
return
section
.
getPortalType
()
!=
'Person'
return
False
return
False
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'hasDestinationSectionAccounting'
)
'hasDestinationSectionAccounting'
)
def
hasDestinationSectionAccounting
(
self
):
def
hasDestinationSectionAccounting
(
self
):
"""Return true if we should take into account accounting for destination
"""Return true if we should take into account accounting for destination
section.
section.
"""
"""
section
=
self
.
getDestinationSectionValue
()
section
=
self
.
getDestinationSectionValue
()
if
section
is
not
None
:
if
section
is
not
None
:
return
section
.
getPortalType
()
!=
'Person'
return
section
.
getPortalType
()
!=
'Person'
return
False
return
False
# Compatibility
# Compatibility
# It may be necessary to create an alias after removing the Transaction class
# It may be necessary to create an alias after removing the Transaction class
# Products.ERP5Type.Document.Transaction = AccountingTransaction
# Products.ERP5Type.Document.Transaction = AccountingTransaction
\ No newline at end of file
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransaction.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AccountingTransaction
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.AccountingTransaction
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.AccountingTransaction
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
AccountingTransactionBalanceConstraint.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
AccountingTransactionBalanceConstraint.py
View file @
a0c2b666
File moved
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionBalanceConstraint.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AccountingTransactionBalanceConstraint
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.AccountingTransactionBalanceConstraint
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.AccountingTransactionBalanceConstraint
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
AccountingTransactionLine.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
AccountingTransactionLine.py
View file @
a0c2b666
...
@@ -70,7 +70,7 @@ class AccountingTransactionLine(DeliveryLine):
...
@@ -70,7 +70,7 @@ class AccountingTransactionLine(DeliveryLine):
# Pricing in standard currency
# Pricing in standard currency
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPrice'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPrice'
)
def
getPrice
(
self
,
context
=
None
):
def
getPrice
(
self
,
context
=
None
):
# pylint: disable=arguments-differ
"""
"""
On accounting transaction lines, the price is always set to 1.
On accounting transaction lines, the price is always set to 1.
We use the `quantity` property for the default quantity, and the
We use the `quantity` property for the default quantity, and the
...
...
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionLine.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AccountingTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.AccountingTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.AccountingTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
AccountingTransactionRootSimulationRule.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
AccountingTransactionRootSimulationRule.py
View file @
a0c2b666
File moved
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.AccountingTransactionRootSimulationRule.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AccountingTransactionRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.AccountingTransactionRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.AccountingTransactionRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
BalanceTransaction.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
BalanceTransaction.py
View file @
a0c2b666
...
@@ -31,7 +31,7 @@ from UserDict import UserDict
...
@@ -31,7 +31,7 @@ from UserDict import UserDict
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.Document.Inventory
import
Inventory
from
Products.ERP5.Document.Inventory
import
Inventory
from
Products.ERP5.D
ocument.AccountingTransaction
import
AccountingTransaction
from
erp5.component.d
ocument.AccountingTransaction
import
AccountingTransaction
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ZSQLCatalog.SQLCatalog
import
Query
import
types
import
types
...
@@ -39,7 +39,7 @@ import types
...
@@ -39,7 +39,7 @@ import types
class
InventoryKey
(
UserDict
):
class
InventoryKey
(
UserDict
):
"""Class to use as a key when defining inventory dicts.
"""Class to use as a key when defining inventory dicts.
"""
"""
def
__init__
(
self
,
**
kw
):
def
__init__
(
self
,
**
kw
):
# pylint: disable=super-init-not-called
self
.
data
=
{}
self
.
data
=
{}
self
.
data
.
update
(
kw
)
self
.
data
.
update
(
kw
)
...
@@ -49,7 +49,7 @@ class InventoryKey(UserDict):
...
@@ -49,7 +49,7 @@ class InventoryKey(UserDict):
def
pop
(
self
,
keys
,
*
args
):
def
pop
(
self
,
keys
,
*
args
):
raise
TypeError
,
'InventoryKey are immutable'
raise
TypeError
,
'InventoryKey are immutable'
def
update
(
self
,
dict
=
None
,
**
kwargs
):
def
update
(
self
,
dict
=
None
,
**
kwargs
):
# pylint: disable=redefined-builtin
raise
TypeError
,
'InventoryKey are immutable'
raise
TypeError
,
'InventoryKey are immutable'
def
__delitem__
(
self
,
key
):
def
__delitem__
(
self
,
key
):
...
...
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransaction.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
BalanceTransaction
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.BalanceTransaction
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.BalanceTransaction
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
BalanceTransactionLine.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
BalanceTransactionLine.py
View file @
a0c2b666
...
@@ -30,7 +30,7 @@ from AccessControl import ClassSecurityInfo
...
@@ -30,7 +30,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5.D
ocument.AccountingTransactionLine
import
\
from
erp5.component.d
ocument.AccountingTransactionLine
import
\
AccountingTransactionLine
AccountingTransactionLine
from
Products.ERP5.Document.InventoryLine
import
InventoryLine
from
Products.ERP5.Document.InventoryLine
import
InventoryLine
...
...
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransactionLine.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
BalanceTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.BalanceTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.BalanceTransactionLine
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
Invoice.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
Invoice.py
View file @
a0c2b666
...
@@ -28,47 +28,46 @@
...
@@ -28,47 +28,46 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.D
ocument.AccountingTransaction
import
AccountingTransaction
from
erp5.component.d
ocument.AccountingTransaction
import
AccountingTransaction
from
Products.ERP5.Document.Delivery
import
Delivery
from
Products.ERP5.Document.Delivery
import
Delivery
class
Invoice
(
AccountingTransaction
):
class
Invoice
(
AccountingTransaction
):
# CMF Type Definition
# CMF Type Definition
meta_type
=
'ERP5 Invoice'
meta_type
=
'ERP5 Invoice'
portal_type
=
'Invoice'
portal_type
=
'Invoice'
add_permission
=
Permissions
.
AddPortalContent
add_permission
=
Permissions
.
AddPortalContent
# Declarative security
# Declarative security
security
=
ClassSecurityInfo
()
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Default Properties
# Default Properties
property_sheets
=
(
PropertySheet
.
Base
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
XMLObject
,
PropertySheet
.
XMLObject
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
CategoryCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
DublinCore
,
PropertySheet
.
Delivery
,
PropertySheet
.
Delivery
,
PropertySheet
.
Order
,
PropertySheet
.
Order
,
PropertySheet
.
Task
,
PropertySheet
.
Task
,
PropertySheet
.
Arrow
,
PropertySheet
.
Arrow
,
PropertySheet
.
Movement
,
PropertySheet
.
Movement
,
PropertySheet
.
Reference
,
PropertySheet
.
Reference
,
PropertySheet
.
TradeCondition
,
PropertySheet
.
TradeCondition
,
PropertySheet
.
Folder
,
PropertySheet
.
Folder
)
)
security
.
declareProtected
(
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getTotalPrice'
)
Permissions
.
AccessContentsInformation
,
'getTotalPrice'
)
def
getTotalPrice
(
self
,
**
kw
):
def
getTotalPrice
(
self
,
**
kw
):
""" Returns the total price for this invoice """
""" Returns the total price for this invoice """
kw
.
setdefault
(
'portal_type'
,
kw
.
setdefault
(
'portal_type'
,
self
.
getPortalInvoiceMovementTypeList
())
self
.
getPortalInvoiceMovementTypeList
())
return
Delivery
.
getTotalPrice
(
self
,
**
kw
)
return
Delivery
.
getTotalPrice
(
self
,
**
kw
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getTotalQuantity'
)
def
getTotalQuantity
(
self
,
**
kw
):
""" Returns the total quantity for this invoice """
kw
.
setdefault
(
'portal_type'
,
self
.
getPortalInvoiceMovementTypeList
())
return
Delivery
.
getTotalQuantity
(
self
,
**
kw
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getTotalQuantity'
)
def
getTotalQuantity
(
self
,
**
kw
):
""" Returns the total quantity for this invoice """
kw
.
setdefault
(
'portal_type'
,
self
.
getPortalInvoiceMovementTypeList
())
return
Delivery
.
getTotalQuantity
(
self
,
**
kw
)
\ No newline at end of file
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.Invoice.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
Invoice
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.Invoice
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.Invoice
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
InvoiceRootSimulationRule.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
InvoiceRootSimulationRule.py
View file @
a0c2b666
File moved
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.InvoiceRootSimulationRule.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
InvoiceRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.InvoiceRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.InvoiceRootSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/Document/
PaymentSimulationRule.py
→
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.
PaymentSimulationRule.py
View file @
a0c2b666
File moved
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.PaymentSimulationRule.xml
0 → 100644
View file @
a0c2b666
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
PaymentSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5.Document.PaymentSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.PaymentSimulationRule
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</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>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_accounting/bt/template_document_id_list
0 → 100644
View file @
a0c2b666
document.erp5.Account
document.erp5.AccountTypeConstraint
document.erp5.AccountingTransaction
document.erp5.AccountingTransactionBalanceConstraint
document.erp5.AccountingTransactionLine
document.erp5.AccountingTransactionRootSimulationRule
document.erp5.BalanceTransaction
document.erp5.BalanceTransactionLine
document.erp5.Invoice
document.erp5.InvoiceRootSimulationRule
document.erp5.PaymentSimulationRule
\ No newline at end of file
bt5/erp5_accounting_simulation_legacy/DocumentTemplateItem/portal_components/document.erp5.AccountingRuleCell.py
View file @
a0c2b666
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Core.Predicate
import
Predicate
from
Products.ERP5Type.Core.Predicate
import
Predicate
from
Products.ERP5.D
ocument.Invoice
import
Invoice
from
erp5.component.d
ocument.Invoice
import
Invoice
class
AccountingRuleCell
(
Predicate
,
Invoice
):
class
AccountingRuleCell
(
Predicate
,
Invoice
):
...
...
bt5/erp5_banking_core/DocumentTemplateItem/portal_components/document.erp5.BankingOperation.py
View file @
a0c2b666
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.Document.Delivery
import
Delivery
from
Products.ERP5.Document.Delivery
import
Delivery
from
Products.ERP5.D
ocument.AccountingTransaction
import
AccountingTransaction
from
erp5.component.d
ocument.AccountingTransaction
import
AccountingTransaction
from
Products.ERP5Type.Utils
import
convertToMixedCase
,
convertToUpperCase
from
Products.ERP5Type.Utils
import
convertToMixedCase
,
convertToUpperCase
from
erp5.component.module.BaobabMixin
import
BaobabMixin
from
erp5.component.module.BaobabMixin
import
BaobabMixin
...
...
bt5/erp5_banking_core/DocumentTemplateItem/portal_components/document.erp5.BankingOperationLine.py
View file @
a0c2b666
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.D
ocument.AccountingTransactionLine
import
AccountingTransactionLine
from
erp5.component.d
ocument.AccountingTransactionLine
import
AccountingTransactionLine
from
erp5.component.module.BaobabMixin
import
BaobabMixin
from
erp5.component.module.BaobabMixin
import
BaobabMixin
class
BankingOperationLine
(
BaobabMixin
,
AccountingTransactionLine
):
class
BankingOperationLine
(
BaobabMixin
,
AccountingTransactionLine
):
...
...
bt5/erp5_payroll/DocumentTemplateItem/portal_components/document.erp5.PaySheetTransaction.py
View file @
a0c2b666
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.D
ocument.Invoice
import
Invoice
from
erp5.component.d
ocument.Invoice
import
Invoice
#XXX TODO: review naming of new methods
#XXX TODO: review naming of new methods
...
...
bt5/erp5_payroll/DocumentTemplateItem/portal_components/document.erp5.PaySheetTransactionLine.py
View file @
a0c2b666
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5.D
ocument.AccountingTransactionLine
import
AccountingTransactionLine
from
erp5.component.d
ocument.AccountingTransactionLine
import
AccountingTransactionLine
class
PaySheetTransactionLine
(
AccountingTransactionLine
):
class
PaySheetTransactionLine
(
AccountingTransactionLine
):
"""Not used and here for compatibility.
"""Not used and here for compatibility.
...
...
product/ERP5/tests/testAmount.py
View file @
a0c2b666
...
@@ -523,6 +523,11 @@ class TestAccountingTransactionLine(TestMovement):
...
@@ -523,6 +523,11 @@ class TestAccountingTransactionLine(TestMovement):
"""Tests for Accounting Transaction Line class, which have an overloaded
"""Tests for Accounting Transaction Line class, which have an overloaded
'edit' method.
'edit' method.
"""
"""
def
getBusinessTemplateList
(
self
):
"""
"""
return
(
'erp5_base'
,
'erp5_simulation'
,
'erp5_accounting'
)
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
login
()
self
.
login
()
self
.
portal
=
self
.
getPortal
()
self
.
portal
=
self
.
getPortal
()
...
...
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