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
Klaus Wölfel
erp5
Commits
cb43b0c4
Commit
cb43b0c4
authored
10 years ago
by
Klaus Wölfel
Browse files
Options
Download
Email Patches
Plain Diff
ERP5Configurator get organisaiton_id in Configurator Item if not given
parent
36aef241
Changes
2
Hide 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
())
...
...
This diff is collapsed.
Click to expand it.
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
(),
...
...
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