Commit 7c24c322 authored by Jérome Perrin's avatar Jérome Perrin

accounting_l10n_fr: enable coding style test

parent a8eb3619
Pipeline #27455 failed with stage
in 0 seconds
...@@ -58,12 +58,6 @@ ...@@ -58,12 +58,6 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -93,20 +87,4 @@ ...@@ -93,20 +87,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.Base_getTranslatedWorkflowStateItemList(wf_id = \'accounting_workflow\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -28,7 +28,7 @@ if ledger is not None: ...@@ -28,7 +28,7 @@ if ledger is not None:
else: else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid() kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid()
sum = 0.0 sum_ = 0.0
for accountNumber in accounts: for accountNumber in accounts:
# we get all acounts strict member of this GAP category # we get all acounts strict member of this GAP category
gap = context.restrictedTraverse("portal_categories/" + getURL(accountNumber)) gap = context.restrictedTraverse("portal_categories/" + getURL(accountNumber))
...@@ -36,6 +36,6 @@ for accountNumber in accounts: ...@@ -36,6 +36,6 @@ for accountNumber in accounts:
result = context.getPortalObject().portal_simulation.getInventoryAssetPrice(node_uid = account.getUid(), **kw) result = context.getPortalObject().portal_simulation.getInventoryAssetPrice(node_uid = account.getUid(), **kw)
if (result < 0 and include_creditor) or \ if (result < 0 and include_creditor) or \
(result > 0 and include_debtor): (result > 0 and include_debtor):
sum += result sum_ += result
return sum return sum_
...@@ -27,7 +27,7 @@ if ledger is not None: ...@@ -27,7 +27,7 @@ if ledger is not None:
else: else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid() kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid()
sum = 0.0 sum_ = 0.0
for account in accounts: for account in accounts:
for bank in context.restrictedTraverse(request.get("organisation"))\ for bank in context.restrictedTraverse(request.get("organisation"))\
.searchFolder(portal_type=context.getPortalPaymentNodeTypeList()) : .searchFolder(portal_type=context.getPortalPaymentNodeTypeList()) :
...@@ -38,5 +38,5 @@ for account in accounts: ...@@ -38,5 +38,5 @@ for account in accounts:
**kw ) **kw )
if (result < 0 and include_creditor) or \ if (result < 0 and include_creditor) or \
(result > 0 and include_debtor): (result > 0 and include_debtor):
sum += result sum_ += result
return sum return sum_
...@@ -211,6 +211,20 @@ ignored_skin_id_set = { ...@@ -211,6 +211,20 @@ ignored_skin_id_set = {
'OrderMilestone_view', 'OrderMilestone_view',
'TradeLine_viewProject', 'TradeLine_viewProject',
'ProductionDelivery_viewInventory', 'ProductionDelivery_viewInventory',
'FiscalReport_doReport',
'FiscalReportCell_creditorAccountsSum',
'FiscalReportCell_creditorBankAccountsBalance',
'FiscalReportCell_debtorAccountsSum',
'FiscalReportCell_debtorBankAccountsBalance',
'FiscalReportCell_doGetInventory',
'FiscalReportCell_formatCell',
'FiscalReportCell_getBalance',
'FiscalReportCell_getBankAccountBalance',
'FiscalReportCell_getThirdPartyBalance',
'FiscalReportCell_getThirdPartyCreditorBalance',
'FiscalReportCell_getThirdPartyDebtorBalance',
'FiscalReportCell_roundBalance',
'GAPCategory_getURLFromId',
} }
# TODO: ignore officejs skins for now, but these should probably be # TODO: ignore officejs skins for now, but these should probably be
......
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