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
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Binh
erp5
Commits
cb43b0c4
Commit
cb43b0c4
authored
Sep 18, 2014
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Configurator get organisaiton_id in Configurator Item if not given
parent
36aef241
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
product/ERP5Configurator/Document/BankAccountConfiguratorItem.py
.../ERP5Configurator/Document/BankAccountConfiguratorItem.py
+0
-1
product/ERP5Configurator/Document/PersonConfiguratorItem.py
product/ERP5Configurator/Document/PersonConfiguratorItem.py
+7
-2
No files found.
product/ERP5Configurator/Document/BankAccountConfiguratorItem.py
View file @
cb43b0c4
...
...
@@ -94,7 +94,6 @@ class BankAccountConfiguratorItem(ConfiguratorItemMixin, XMLObject):
}
bank_account
.
edit
(
**
bank_dict
)
business_configuration
=
self
.
getBusinessConfigurationValue
()
# store globally bank_account_id
business_configuration
.
setGlobalConfigurationAttr
(
bank_account_id
=
bank_account
.
getId
())
...
...
product/ERP5Configurator/Document/PersonConfiguratorItem.py
View file @
cb43b0c4
...
...
@@ -72,9 +72,14 @@ class PersonConfiguratorItem(XMLObject, ConfiguratorItemMixin):
group_id
=
getattr
(
aq_base
(
self
),
'group_id'
,
None
)
site_id
=
getattr
(
aq_base
(
self
),
'site_id'
,
None
)
if
getattr
(
aq_base
(
self
),
'organisation_id'
,
None
)
is
not
None
:
business_configuration
=
self
.
getBusinessConfigurationValue
()
organisation_id
=
getattr
(
aq_base
(
self
),
'organisation_id'
,
None
)
if
organisation_id
is
None
:
organisation_id
=
business_configuration
.
\
getGlobalConfigurationAttr
(
'organisation_id'
)
if
organisation_id
is
not
None
:
person
.
setCareerSubordination
(
'organisation_module/%s'
%
\
self
.
organisation_id
)
organisation_id
)
# save
person
.
edit
(
**
{
'default_email_text'
:
self
.
getDefaultEmailText
(),
...
...
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