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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
56acc9dc
Commit
56acc9dc
authored
Jan 23, 2019
by
Xiaowu Zhang
Committed by
Titouan Soulard
Mar 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OrganisationConfiguratorItem: get organisation id from user input
parent
6fbf4f6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.OrganisationConfiguratorItem.py
..._components/document.erp5.OrganisationConfiguratorItem.py
+21
-22
No files found.
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.OrganisationConfiguratorItem.py
View file @
56acc9dc
...
@@ -61,8 +61,8 @@ class OrganisationConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -61,8 +61,8 @@ class OrganisationConfiguratorItem(ConfiguratorItemMixin, XMLObject):
""" Setup organisation. """
""" Setup organisation. """
if
fixit
:
if
fixit
:
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
organisation
=
portal
.
organisation_module
.
newContent
(
portal_type
=
"Organisation"
)
organisation
=
portal
.
organisation_module
[
self
.
getId
()]
if
organisation
is
not
None
:
org_dict
=
{
'price_currency'
:
'currency_module/%s'
%
self
.
getPriceCurrency
(),
org_dict
=
{
'price_currency'
:
'currency_module/%s'
%
self
.
getPriceCurrency
(),
'group'
:
self
.
getGroup
(),
'group'
:
self
.
getGroup
(),
'title'
:
self
.
getTitle
(),
'title'
:
self
.
getTitle
(),
...
@@ -73,7 +73,6 @@ class OrganisationConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -73,7 +73,6 @@ class OrganisationConfiguratorItem(ConfiguratorItemMixin, XMLObject):
'default_address_zip_code'
:
self
.
getDefaultAddressZipCode
(),
'default_address_zip_code'
:
self
.
getDefaultAddressZipCode
(),
'default_address_region'
:
self
.
getDefaultAddressRegion
(),
'default_address_region'
:
self
.
getDefaultAddressRegion
(),
'default_address_street_address'
:
self
.
getDefaultAddressStreetAddress
(),
'default_address_street_address'
:
self
.
getDefaultAddressStreetAddress
(),
'site'
:
'main'
,
# First customer's organisation is always main site.
}
}
organisation
.
edit
(
**
org_dict
)
organisation
.
edit
(
**
org_dict
)
...
...
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