Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jérome Perrin
erp5
Commits
7f0a3b61
Commit
7f0a3b61
authored
12 years ago
by
Julien Muchembled
Browse files
Options
Download
Email Patches
Plain Diff
Remove obsolete Delivery.updateAppliedRule
parent
5c09e2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
product/ERP5/Document/Delivery.py
product/ERP5/Document/Delivery.py
+0
-9
No files found.
product/ERP5/Document/Delivery.py
View file @
7f0a3b61
...
...
@@ -716,15 +716,6 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
"""Do an immediate local build for this delivery"""
return
self
.
asComposedDocument
().
build
(
explanation
=
self
)
# deprecated - see ExpandableMixin
@
UnrestrictedMethod
def
updateAppliedRule
(
self
,
rule_reference
=
None
,
rule_id
=
None
,
**
kw
):
reference
=
self
.
getRuleReference
()
if
(
rule_id
or
rule_reference
)
!=
reference
:
raise
RuntimeError
(
"expected %r as rule reference, got %r"
%
(
reference
,
rule_reference
))
self
.
_updateSimulation
(
create_root
=
1
)
# should it be always reexpanded ?
def
_createRootAppliedRule
(
self
):
portal
=
self
.
getPortalObject
()
# Only create RAR if we are not in a "too early" or "too late" state.
...
...
This diff is collapsed.
Click to expand it.
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