Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
93ca7989
Commit
93ca7989
authored
Mar 09, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes and code reorganisation.
parent
ee8da024
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Rule%20Configurator%20Item.xml
...eTemplateItem/portal_types/Rule%20Configurator%20Item.xml
+6
-0
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_displayDownload.xml
...urator_standard/BusinessConfiguration_displayDownload.xml
+10
-16
product/ERP5Configurator/Document/PurchaseTradeConditionConfiguratorItem.py
...urator/Document/PurchaseTradeConditionConfiguratorItem.py
+8
-8
product/ERP5Configurator/Document/SaleTradeConditionConfiguratorItem.py
...nfigurator/Document/SaleTradeConditionConfiguratorItem.py
+8
-8
No files found.
bt5/erp5_configurator/PortalTypeTemplateItem/portal_types/Rule%20Configurator%20Item.xml
View file @
93ca7989
...
...
@@ -42,6 +42,12 @@
<key>
<string>
type_class
</string>
</key>
<value>
<string>
RuleConfiguratorItem
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
...
...
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/BusinessConfiguration_displayDownload.xml
View file @
93ca7989
...
...
@@ -89,27 +89,21 @@ configuration_save.addConfigurationItem("Catalog Keyword Key Configurator Item",
# site_property_list=[[[\'email_from_address\', \'email@example.com\', \'string\'],]])\n
\n
# Customize portal type information.\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",
\n
target_portal_type=\'Purchase Order\',
\n
add_propertysheet_list=(\'TradeOrder\',))
\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=
\'Sale Order\'
,\n
# Include Constraints to some Simulation Objects
\n
# XXX (rafael) Why not Purchase Packing List?
\n
for portal_type in [\'Purchase Order\', \'Sale Order\',\'Sale Packing List\']:
\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=
portal_type
,\n
add_propertysheet_list=(\'TradeOrder\',))\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=\'Purchase Order Line\',\n
add_propertysheet_list=(\'TradeOrderLine\',))\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=\'Sale Order Line\',\n
\n
for portal_type in [\'Purchase Order Line\', \'Sale Order Line\',\'Sale Packing List Line\']:\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=portal_type,\n
add_propertysheet_list=(\'TradeOrderLine\',))\n
\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=\'Inventory\',\n
add_propertysheet_list=(\'InventoryConstraint\',))\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=\'Sale Packing List\',\n
add_propertysheet_list=(\'TradeOrder\',))\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=\'Sale Packing List Line\',\n
add_propertysheet_list=(\'TradeOrderLine\',))\n
</string>
</value>
</item>
<item>
...
...
product/ERP5Configurator/Document/PurchaseTradeConditionConfiguratorItem.py
View file @
93ca7989
...
...
@@ -60,7 +60,7 @@ class PurchaseTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
def
_build
(
self
,
business_configuration
):
portal
=
self
.
getPortalObject
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'organisation_id'
)
...
...
@@ -68,20 +68,20 @@ class PurchaseTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
currency_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'currency_id'
)
purchase_
trade_condition
=
portal
.
purchase_trade_condition_module
.
newContent
(
trade_condition
=
portal
.
purchase_trade_condition_module
.
newContent
(
portal_type
=
"Purchase Trade Condition"
,
reference
=
self
.
getReference
(),
title
=
self
.
getTitle
(),
effective_date
=
DateTime
()
-
1
,
expiration_date
=
DateTime
()
+
10
*
365
)
purchase_
trade_condition
.
setSpecialise
(
"business_process_module/%s"
%
\
trade_condition
.
setSpecialise
(
"business_process_module/%s"
%
\
business_process_id
)
purchase_
trade_condition
.
setDestination
(
"organisation_module/%s"
%
organisation_id
)
purchase_
trade_condition
.
setDestinationSection
(
"organisation_module/%s"
%
organisation_id
)
purchase_
trade_condition
.
setPriceCurrency
(
"currency_module/%s"
%
currency_id
)
trade_condition
.
setDestination
(
"organisation_module/%s"
%
organisation_id
)
trade_condition
.
setDestinationSection
(
"organisation_module/%s"
%
organisation_id
)
trade_condition
.
setPriceCurrency
(
"currency_module/%s"
%
currency_id
)
purchase_
trade_condition
.
validate
(
comment
=
"Validated by Configurator"
)
trade_condition
.
validate
(
comment
=
"Validated by Configurator"
)
self
.
install
(
purchase_
trade_condition
,
business_configuration
)
self
.
install
(
trade_condition
,
business_configuration
)
product/ERP5Configurator/Document/SaleTradeConditionConfiguratorItem.py
View file @
93ca7989
...
...
@@ -60,7 +60,7 @@ class SaleTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
def
_build
(
self
,
business_configuration
):
portal
=
self
.
getPortalObject
()
business_process_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
business_configuration
.
getGlobalConfigurationAttr
(
'business_process_id'
)
organisation_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'organisation_id'
)
...
...
@@ -68,20 +68,20 @@ class SaleTradeConditionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
currency_id
=
\
business_configuration
.
getGlobalConfigurationAttr
(
'currency_id'
)
sale_
trade_condition
=
portal
.
sale_trade_condition_module
.
newContent
(
trade_condition
=
portal
.
sale_trade_condition_module
.
newContent
(
portal_type
=
"Sale Trade Condition"
,
reference
=
self
.
getReference
(),
title
=
self
.
getTitle
(),
effective_date
=
DateTime
()
-
1
,
expiration_date
=
DateTime
()
+
10
*
365
)
sale_
trade_condition
.
setSpecialise
(
"business_process_module/%s"
%
\
trade_condition
.
setSpecialise
(
"business_process_module/%s"
%
\
business_process_id
)
sale_
trade_condition
.
setSource
(
"organisation_module/%s"
%
organisation_id
)
sale_
trade_condition
.
setSourceSection
(
"organisation_module/%s"
%
organisation_id
)
sale_
trade_condition
.
setPriceCurrency
(
"currency_module/%s"
%
currency_id
)
trade_condition
.
setSource
(
"organisation_module/%s"
%
organisation_id
)
trade_condition
.
setSourceSection
(
"organisation_module/%s"
%
organisation_id
)
trade_condition
.
setPriceCurrency
(
"currency_module/%s"
%
currency_id
)
sale_
trade_condition
.
validate
(
comment
=
"Validated by Configurator"
)
trade_condition
.
validate
(
comment
=
"Validated by Configurator"
)
self
.
install
(
sale_
trade_condition
,
business_configuration
)
self
.
install
(
trade_condition
,
business_configuration
)
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