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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f881d17c
Commit
f881d17c
authored
Apr 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! budget: py3
parent
80bd30fc
Pipeline
#33954
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
bt5/erp5_budget/DocumentTemplateItem/portal_components/document.erp5.CategoryBudgetVariation.py
...ortal_components/document.erp5.CategoryBudgetVariation.py
+1
-1
bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getConsumptionSign.py
...portal_skins/erp5_budget/BudgetLine_getConsumptionSign.py
+1
-1
bt5/erp5_budget/TestTemplateItem/portal_components/test.erp5.testBudget.py
...estTemplateItem/portal_components/test.erp5.testBudget.py
+0
-17
No files found.
bt5/erp5_budget/DocumentTemplateItem/portal_components/document.erp5.CategoryBudgetVariation.py
View file @
f881d17c
...
...
@@ -207,7 +207,7 @@ class CategoryBudgetVariation(BudgetVariation):
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getBudgetVariationRangeCategoryList'
)
def
getBudgetVariationRangeCategoryList
(
self
,
contex
t
):
def
getBudgetVariationRangeCategoryList
(
self
,
budge
t
):
"""Returns the Variation Range Category List that can be applied to this
budget.
"""
...
...
bt5/erp5_budget/SkinTemplateItem/portal_skins/erp5_budget/BudgetLine_getConsumptionSign.py
View file @
f881d17c
editable_property_list
=
zip
(
*
context
.
BudgetLine_getEditablePropertyList
(
))[
0
]
editable_property_list
=
list
(
zip
(
*
context
.
BudgetLine_getEditablePropertyList
()
))[
0
]
if
'destination_credit'
in
editable_property_list
:
return
-
1
...
...
bt5/erp5_budget/TestTemplateItem/portal_components/test.erp5.testBudget.py
View file @
f881d17c
...
...
@@ -1190,23 +1190,6 @@ class TestBudget(ERP5TypeTestCase):
self
.
assertEqual
(
default_cell_range
,
budget_line
.
BudgetLine_asCellRange
(
'available'
))
if
0
:
self
.
assertEqual
(
dict
(
from_date
=
DateTime
(
2000
,
1
,
1
),
at_date
=
DateTime
(
2000
,
12
,
31
).
latestTime
(),
#node_category_strict_membership=['account_type/expense',
# 'account_type/asset'],
node_category_strict_membership
=
'account_type'
,
section_category_strict_membership
=
[
'group/demo_group/sub1'
],
group_by_node_category_strict_membership
=
True
,
group_by_node
=
True
,
node_uid
=
[
self
.
portal
.
account_module
.
goods_purchase
.
getUid
(),
self
.
portal
.
account_module
.
fixed_assets
.
getUid
()],
group_by_section_category_strict_membership
=
True
,
),
budget_model
.
getInventoryListQueryDict
(
budget_line
))
atransaction
=
self
.
portal
.
accounting_module
.
newContent
(
portal_type
=
'Accounting Transaction'
,
resource_value
=
self
.
portal
.
currency_module
.
euro
,
...
...
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