Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
8b2e45ef
Commit
8b2e45ef
authored
Aug 30, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add function to explicilty update the building_state of Business Manager
parent
3e657bd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+11
-0
No files found.
product/ERP5/Document/BusinessManager.py
View file @
8b2e45ef
...
...
@@ -228,6 +228,17 @@ class BusinessManager(Folder):
'business_manager_installation_workflow'
)
return
wf
.
_getWorkflowStateOf
(
self
,
id_only
=
id_only
)
def
changeBuildingStatetoModified
(
self
):
"""
Change building_state to 'modified'. This is needed specifically as we want
to update the building state even if we change any sub-objects(Business Item
or Business Property Item) of Business Manager.
"""
portal_workflow
=
self
.
getPortalObject
().
portal_workflow
wf
=
portal_workflow
.
_getOb
(
'business_manager_building_workflow'
)
wf
.
_executeMetaTransition
(
self
,
'modified'
)
def
applytoERP5
(
self
,
DB
):
"""Apply the flattened/reduced Business Manager to the DB"""
portal
=
self
.
getPortalObject
()
...
...
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