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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
25e4a08a
Commit
25e4a08a
authored
Jul 15, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator: allow using different business processes for sale/purchasse
parent
12f5ef1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.AdvancedPurchaseTradeConditionConfiguratorItem.py
...nt.erp5.AdvancedPurchaseTradeConditionConfiguratorItem.py
+1
-0
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.AdvancedSaleTradeConditionConfiguratorItem.py
...cument.erp5.AdvancedSaleTradeConditionConfiguratorItem.py
+1
-0
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.BusinessProcessConfiguratorItem.py
...mponents/document.erp5.BusinessProcessConfiguratorItem.py
+8
-1
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.PurchaseTradeConditionConfiguratorItem.py
...s/document.erp5.PurchaseTradeConditionConfiguratorItem.py
+2
-1
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.SaleTradeConditionConfiguratorItem.py
...nents/document.erp5.SaleTradeConditionConfiguratorItem.py
+2
-1
No files found.
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.AdvancedPurchaseTradeConditionConfiguratorItem.py
View file @
25e4a08a
...
...
@@ -64,6 +64,7 @@ class AdvancedPurchaseTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLO
portal
=
self
.
getPortalObject
()
business_configuration
=
self
.
getBusinessConfigurationValue
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'purchase_business_process_id'
)
or
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
...
...
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.AdvancedSaleTradeConditionConfiguratorItem.py
View file @
25e4a08a
...
...
@@ -65,6 +65,7 @@ class AdvancedSaleTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObjec
business_configuration
=
self
.
getBusinessConfigurationValue
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'sale_business_process_id'
)
or
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
...
...
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.BusinessProcessConfiguratorItem.py
View file @
25e4a08a
...
...
@@ -71,7 +71,14 @@ class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject):
business_configuration
=
self
.
getBusinessConfigurationValue
()
business_configuration
.
setGlobalConfigurationAttr
(
\
business_process_id
=
business_process
.
getId
())
# XXX for the standard cases, also set configuration attributes that
# Sale/Purchase Configurator Item will use.
if
self
.
getReference
()
==
'default_erp5_sale_business_process'
:
business_configuration
.
setGlobalConfigurationAttr
(
sale_business_process_id
=
business_process
.
getId
())
elif
self
.
getReference
()
==
'default_erp5_purchase_business_process'
:
business_configuration
.
setGlobalConfigurationAttr
(
purchase_business_process_id
=
business_process
.
getId
())
business_process_dict
=
self
.
_getBusinessProcessDict
()
int_index
=
0
...
...
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.PurchaseTradeConditionConfiguratorItem.py
View file @
25e4a08a
...
...
@@ -36,7 +36,7 @@ from erp5.component.interface.IConfiguratorItem import IConfiguratorItem
class
PurchaseTradeConditionConfiguratorItem
(
ConfiguratorItemMixin
,
XMLObject
):
""" Setup
Rule
s. """
""" Setup
Purchase Trade Condition
s. """
meta_type
=
'ERP5 Purchase Trade Condition Configurator Item'
portal_type
=
'Purchase Trade Condition Configurator Item'
...
...
@@ -64,6 +64,7 @@ class PurchaseTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
portal
=
self
.
getPortalObject
()
business_configuration
=
self
.
getBusinessConfigurationValue
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'purchase_business_process_id'
)
or
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
...
...
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.SaleTradeConditionConfiguratorItem.py
View file @
25e4a08a
...
...
@@ -36,7 +36,7 @@ from erp5.component.interface.IConfiguratorItem import IConfiguratorItem
class
SaleTradeConditionConfiguratorItem
(
ConfiguratorItemMixin
,
XMLObject
):
""" Setup
Rule
s. """
""" Setup
Sale Trade Condition
s. """
meta_type
=
'ERP5 Sale Trade Condition Configurator Item'
portal_type
=
'Sale Trade Condition Configurator Item'
...
...
@@ -65,6 +65,7 @@ class SaleTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
business_configuration
=
self
.
getBusinessConfigurationValue
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'sale_business_process_id'
)
or
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
...
...
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