Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
495bf49e
Commit
495bf49e
authored
Jul 18, 2011
by
Leonardo Rochael Almeida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variation_property_dict goes after resource too
Otherwise it can't be set, just like variation_category_list
parent
ba9baf90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
product/ERP5/Document/Movement.py
product/ERP5/Document/Movement.py
+4
-3
No files found.
product/ERP5/Document/Movement.py
View file @
495bf49e
...
...
@@ -831,8 +831,9 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
def
_edit
(
self
,
edit_order
=
(),
**
kw
):
"""Overloaded _edit to support setting debit and credit at the same time,
which is required for the GUI.
Also sets the variation category list at the end, because
_setVariationCategoryList needs the resource to be set.
Also sets the variation category list and property dict at the end, because
_setVariationCategoryList and _setVariationPropertyDict needs the resource
to be set.
"""
quantity
=
0
if
'source_debit'
in
kw
and
'source_credit'
in
kw
:
...
...
@@ -862,7 +863,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
kw
.
pop
(
'destination_asset_credit'
,
None
)
if
not
edit_order
:
edit_order
=
(
'variation_category_list'
,
)
edit_order
=
(
'variation_category_list'
,
'variation_property_dict'
,
)
return
XMLObject
.
_edit
(
self
,
edit_order
=
edit_order
,
**
kw
)
# Debit and credit methods for asset
...
...
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