Commit 9aa6b278 authored by Jérome Perrin's avatar Jérome Perrin

accounting_simulation_legacy: format AccountingRuleCell properly

pylint complained about indentation
parent 5d206c29
...@@ -31,29 +31,32 @@ from AccessControl import ClassSecurityInfo ...@@ -31,29 +31,32 @@ 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.Document.Invoice import Invoice from Products.ERP5.Document.Invoice import Invoice
class AccountingRuleCell(Predicate, Invoice): class AccountingRuleCell(Predicate, Invoice):
""" """
An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Matrix An AccountingRuleCell object allows to add SaleInvoiceTransactionLines into a Matrix
""" """
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = (
, PropertySheet.XMLObject PropertySheet.Base,
, PropertySheet.CategoryCore PropertySheet.XMLObject,
, PropertySheet.DublinCore PropertySheet.CategoryCore,
, PropertySheet.Delivery PropertySheet.DublinCore,
, PropertySheet.Task PropertySheet.Delivery,
, PropertySheet.Arrow PropertySheet.Task,
, PropertySheet.Movement PropertySheet.Arrow,
, PropertySheet.Amount PropertySheet.Movement,
, PropertySheet.Reference PropertySheet.Amount,
, PropertySheet.PaymentCondition PropertySheet.Reference,
, PropertySheet.Predicate PropertySheet.PaymentCondition,
, PropertySheet.MappedValue PropertySheet.Predicate,
) PropertySheet.MappedValue,
# CMF Type Definition )
meta_type = 'ERP5 Accounting Rule Cell' # CMF Type Definition
portal_type = 'Accounting Rule Cell' meta_type = 'ERP5 Accounting Rule Cell'
add_permission = Permissions.AddPortalContent portal_type = 'Accounting Rule Cell'
# Declarative security add_permission = Permissions.AddPortalContent
security = ClassSecurityInfo() # Declarative security
security.declareObjectProtected(Permissions.AccessContentsInformation) security = ClassSecurityInfo()
\ No newline at end of file security.declareObjectProtected(Permissions.AccessContentsInformation)
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>AccountingRuleCell</string> </value> <value> <string>AccountingRuleCell</string> </value>
...@@ -39,15 +45,7 @@ ...@@ -39,15 +45,7 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <tuple/>
<string>W: 35, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 39, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 54, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 55, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 56, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 58, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
<string>W: 59, 0: Bad indentation. Found 4 spaces, expected 2 (bad-indentation)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -57,13 +55,28 @@ ...@@ -57,13 +55,28 @@
<item> <item>
<key> <string>workflow_history</string> </key> <key> <string>workflow_history</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <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> <pickle>
<global name="PersistentMapping" module="Persistence.mapping"/> <global name="PersistentMapping" module="Persistence.mapping"/>
</pickle> </pickle>
...@@ -76,7 +89,7 @@ ...@@ -76,7 +89,7 @@
<item> <item>
<key> <string>component_validation_workflow</string> </key> <key> <string>component_validation_workflow</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -85,7 +98,7 @@ ...@@ -85,7 +98,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
......
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