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
Tristan Cavelier
erp5
Commits
ad97fc23
Commit
ad97fc23
authored
Oct 25, 2017
by
Cédric Le Ninivin
Committed by
Cédric Le Ninivin
Nov 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_mrp: Add needed trade phase and builder to use Manufacturing Order
parent
14435b07
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
1652 additions
and
1 deletion
+1652
-1
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing.xml
...plateItem/portal_categories/trade_phase/manufacturing.xml
+144
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing/order.xml
...tem/portal_categories/trade_phase/manufacturing/order.xml
+86
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing/transforming.xml
...tal_categories/trade_phase/manufacturing/transforming.xml
+104
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production.xml
...TemplateItem/portal_categories/trade_phase/production.xml
+144
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/delivery.xml
...tem/portal_categories/trade_phase/production/delivery.xml
+104
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/manufacturing.xml
...ortal_categories/trade_phase/production/manufacturing.xml
+105
-0
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/order.xml
...teItem/portal_categories/trade_phase/production/order.xml
+85
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder.xml
...ateItem/portal_deliveries/manufacturing_order_builder.xml
+140
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/base_variant_movement_group_in_line.xml
...ing_order_builder/base_variant_movement_group_in_line.xml
+42
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/category_movement_group_on_delivery.xml
...ing_order_builder/category_movement_group_on_delivery.xml
+62
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/category_movement_group_on_line.xml
...cturing_order_builder/category_movement_group_on_line.xml
+60
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/delivery_causality_assignement_movement_group_on_delivery.xml
...very_causality_assignement_movement_group_on_delivery.xml
+42
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/previous_causality_movement_group_on_delivery.xml
...builder/previous_causality_movement_group_on_delivery.xml
+46
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/property_movement_group_on_delivery.xml
...ing_order_builder/property_movement_group_on_delivery.xml
+43
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/property_movement_group_on_line.xml
...cturing_order_builder/property_movement_group_on_line.xml
+56
-0
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/variant_movement_group_on_cell.xml
...acturing_order_builder/variant_movement_group_on_cell.xml
+43
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.py
...rtal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.py
+4
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.xml
...tal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.xml
+62
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.py
...ns/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.py
+57
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.xml
...s/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.xml
+62
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ManufacturingOrderBuilder_selectSimulationMovement.py
...mrp/ManufacturingOrderBuilder_selectSimulationMovement.py
+9
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ManufacturingOrderBuilder_selectSimulationMovement.xml
...rp/ManufacturingOrderBuilder_selectSimulationMovement.xml
+66
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testProductionManufacturingSimulationRule.py
...tionMovement_testProductionManufacturingSimulationRule.py
+13
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testProductionManufacturingSimulationRule.xml
...ionMovement_testProductionManufacturingSimulationRule.xml
+62
-0
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testTransformationSimulationRule.py
...rp/SimulationMovement_testTransformationSimulationRule.py
+2
-1
bt5/erp5_mrp/bt/template_path_list
bt5/erp5_mrp/bt/template_path_list
+9
-0
No files found.
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sort_index
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/manufacturing
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Different phases used in for manufacturing
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
manufacturing
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
sort_index
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Manufacturing
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing/order.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/manufacturing/order
</string>
<string>
trade_phase/manufacturing/order
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
order
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Order
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/manufacturing/transforming.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sort_index
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/manufacturing/transforming
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Transforming components and operations into other products
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transforming
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
sort_index
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Transforming
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sort_index
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/production
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Different phases used in for manufacturing
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
production
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
sort_index
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Production
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/delivery.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sort_index
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/production/delivery
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Delivery of produced products
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
delivery
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
sort_index
</string>
</key>
<value>
<string>
3
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Delivery
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/manufacturing.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
sort_index
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/production/manufacturing
</string>
<string>
trade_phase/production/manufacturing
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Transforming components and operations into other products
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
manufacturing
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
sort_index
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Manufacturing
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_categories/trade_phase/production/order.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
trade_phase/production/order
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
order
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Order
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Delivery Builder"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
delivery_after_generation_script_id
</string>
</key>
<value>
<string>
Builder_updateManufacturingOrderAfterBuild
</string>
</value>
</item>
<item>
<key>
<string>
delivery_cell_collect_order
</string>
</key>
<value>
<tuple>
<string>
VariantMovementGroup
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
delivery_cell_portal_type
</string>
</key>
<value>
<string>
Manufacturing Order Cell
</string>
</value>
</item>
<item>
<key>
<string>
delivery_cell_separate_order
</string>
</key>
<value>
<tuple>
<string>
calculateAddQuantity
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
delivery_collect_order
</string>
</key>
<value>
<tuple>
<string>
PathMovementGroup
</string>
<string>
DateMovementGroup
</string>
<string>
SectionPathMovementGroup
</string>
<string>
OrderMovementGroup
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
delivery_line_collect_order
</string>
</key>
<value>
<tuple>
<string>
ResourceMovementGroup
</string>
<string>
BaseVariantMovementGroup
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
delivery_line_portal_type
</string>
</key>
<value>
<string>
Manufacturing Order Line
</string>
</value>
</item>
<item>
<key>
<string>
delivery_module
</string>
</key>
<value>
<string>
manufacturing_order_module
</string>
</value>
</item>
<item>
<key>
<string>
delivery_portal_type
</string>
</key>
<value>
<string>
Manufacturing Order
</string>
</value>
</item>
<item>
<key>
<string>
delivery_select_method_id
</string>
</key>
<value>
<string>
Builder_selectAutoPlannedOrderList
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
manufacturing_order_builder
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Delivery Builder
</string>
</value>
</item>
<item>
<key>
<string>
simulation_select_method_id
</string>
</key>
<value>
<string>
ManufacturingOrderBuilder_selectSimulationMovement
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Manufacturing Order Builder
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/base_variant_movement_group_in_line.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Base Variant Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
collect_order_group/line
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
base_variant_movement_group_in_line
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
2
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Base Variant Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
base_variant_movement_group_in_line
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/category_movement_group_on_delivery.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
divergence_scope/category
</string>
<string>
collect_order_group/delivery
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
category_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
tested_property
</string>
</key>
<value>
<tuple>
<string>
source
</string>
<string>
destination
</string>
<string>
source_section
</string>
<string>
destination_section
</string>
<string>
source_project
</string>
<string>
destination_project
</string>
<string>
source_payment
</string>
<string>
destination_payment
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
category_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
update_always
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/category_movement_group_on_line.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
divergence_scope/category
</string>
<string>
collect_order_group/line
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
category_movement_group_on_line
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
tested_property
</string>
</key>
<value>
<tuple>
<string>
resource
</string>
<string>
base_contribution
</string>
<string>
base_application
</string>
<string>
industrial_phase
</string>
<string>
quantity_unit
</string>
<string>
aggregate
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
category_movement_group_on_line
</string>
</value>
</item>
<item>
<key>
<string>
update_always
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/delivery_causality_assignement_movement_group_on_delivery.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Delivery Causality Assignment Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
collect_order_group/delivery
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
delivery_causality_assignement_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Delivery Causality Assignment Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Delivery Causality Assignement Movement Group On Delivery
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/previous_causality_movement_group_on_delivery.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Previous Causality Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
collect_order_group/delivery
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
causality_portal_type
</string>
</key>
<value>
<string>
Production Order
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
previous_causality_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
4
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Previous Causality Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
previous_causality_movement_group_on_delivery
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/property_movement_group_on_delivery.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
property_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
tested_property
</string>
</key>
<value>
<tuple>
<string>
start_date
</string>
<string>
stop_date
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
property_movement_group_on_delivery
</string>
</value>
</item>
<item>
<key>
<string>
update_always
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/property_movement_group_on_line.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Property Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
collect_order_group/line
</string>
<string>
divergence_scope/property
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
property_movement_group_on_line
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
2
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Property Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
tested_property
</string>
</key>
<value>
<tuple>
<string>
description
</string>
<string>
int_index
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
property_movement_group_on_line
</string>
</value>
</item>
<item>
<key>
<string>
update_always
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/PathTemplateItem/portal_deliveries/manufacturing_order_builder/variant_movement_group_on_cell.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Variant Movement Group"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
collect_order_group/cell
</string>
<string>
divergence_scope/category
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
variant_movement_group_on_cell
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Variant Movement Group
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
variant_movement_group_on_cell
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.py
0 → 100644
View file @
ad97fc23
portal_type
=
context
.
getDeliveryPortalType
()
# make sure that the result of the simulation state is update to date, so check getSimulationState manually
return
[
x
.
getObject
()
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
simulation_state
=
'auto_planned'
)
if
x
.
getObject
().
getSimulationState
()
==
'auto_planned'
]
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_selectAutoPlannedOrderList.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Builder_selectAutoPlannedOrderList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.py
0 → 100644
View file @
ad97fc23
assert
context
.
getPortalType
()
==
"Manufacturing Order"
portal
=
context
.
getPortalObject
()
# XXX, the API is weird, we can get movement_list as parameter of this script, but movement_list is not filtered
# by the generated order in the case we have several distinct orders generated. So we will filter movements ourself
# for now
assert
len
(
movement_list
)
>
0
# We assume no variation here
new_movement_list
=
[]
resource_set
=
set
([
x
.
getResource
()
for
x
in
context
.
getMovementList
()])
for
movement
in
movement_list
:
if
movement
.
getResource
()
in
resource_set
:
new_movement_list
.
append
(
movement
)
movement_list
=
new_movement_list
assert
len
(
movement_list
)
# This is not a loop
while
context
.
getSimulationState
()
==
"draft"
:
context
.
plan
()
# Make sure to erase the date set by init script
context
.
setStartDate
(
None
)
# The following is to check if it should be confirmed automatically.
# Only if not other Manufacturing Order for the same element has been done.
child_list
=
context
.
objectValues
()
if
child_list
:
child
=
child_list
[
0
]
# Set Production Order as Causality if needed
causality
=
child
.
getCausalityValue
(
portal_type
=
"Production Packing List"
)
if
causality
:
production_order
=
causality
.
getCausalityValue
()
context
.
setCausalityValue
(
production_order
)
# Confirm if no other Manufacturing Orders are related to Production Order
sibling_list
=
portal
.
portal_catalog
(
portal_type
=
"Manufacturing Order"
,
strict_causality_uid
=
production_order
.
getUid
(),
simulation_state
=
"confirmed"
,
)
if
sibling_list
:
break
context
.
confirm
()
break
# XXX Not ideal way to set date. In particular, if a production was cancelled, we might still
# have a start_date or stop_date corresponding to it. Like if you have a production order
# in july, annother one in august, you might have purhcase order in july. But if you cancel
# production order of july, then the purchase will still be in juny while it can be shifted
# to july.
for
property_name
in
(
'start_date'
,
'stop_date'
):
property_value_list
=
[]
delivery_property_value
=
context
.
getProperty
(
property_name
)
if
delivery_property_value
:
property_value_list
.
append
(
delivery_property_value
)
for
movement
in
movement_list
:
property_value_list
.
append
(
movement
.
getProperty
(
property_name
))
property_value
=
min
(
property_value_list
)
assert
property_value
is
not
None
context
.
setProperty
(
property_name
,
property_value
)
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/Builder_updateManufacturingOrderAfterBuild.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
movement_list, *kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Builder_updateManufacturingOrderAfterBuild
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ManufacturingOrderBuilder_selectSimulationMovement.py
0 → 100644
View file @
ad97fc23
result_list
=
context
.
portal_catalog
(
parent_specialise_reference
=
"default_production_manufacturing_rule"
,
grand_parent_simulation_state
=
(
"confirmed"
,
"planned"
),
delivery_uid
=
None
,
left_join_list
=
(
"delivery_uid"
,),
select_list
=
(
"delivery_uid"
,),
group_by
=
(
"uid"
,),
**
kw
)
return
result_list
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/ManufacturingOrderBuilder_selectSimulationMovement.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ManufacturingOrderBuilder_selectSimulationMovement
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testProductionManufacturingSimulationRule.py
0 → 100644
View file @
ad97fc23
movement
=
context
result
=
False
parent
=
movement
.
getParentValue
()
if
parent
.
getPortalType
()
==
'Applied Rule'
and
movement
.
getSpecialiseValue
(
portal_type
=
"Transformation"
):
grand_parent
=
parent
.
getParentValue
()
if
grand_parent
.
getPortalType
()
==
"Simulation Movement"
and
\
grand_parent
.
getDeliveryValue
()
and
\
grand_parent
.
getDeliveryValue
().
getPortalType
()
==
"Production Order Line"
:
resource_value
=
context
.
getResourceValue
()
if
resource_value
:
result
=
(
len
(
resource_value
.
getAggregatedPortalTypeList
())
!=
0
)
and
\
(
"production"
in
resource_value
.
getUseList
())
return
result
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testProductionManufacturingSimulationRule.xml
0 → 100644
View file @
ad97fc23
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
rule=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SimulationMovement_testProductionManufacturingSimulationRule
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_mrp/SkinTemplateItem/portal_skins/erp5_mrp/SimulationMovement_testTransformationSimulationRule.py
View file @
ad97fc23
...
@@ -6,4 +6,5 @@ if (len(specialise_list) == 1 and
...
@@ -6,4 +6,5 @@ if (len(specialise_list) == 1 and
movement
=
context
.
getParentValue
().
getDeliveryValue
()
movement
=
context
.
getParentValue
().
getDeliveryValue
()
return
movement
is
not
None
and
movement
.
getPortalType
()
in
(
return
movement
is
not
None
and
movement
.
getPortalType
()
in
(
"Production Order Line"
,
"Production Order Cell"
)
"Production Order Line"
,
"Production Order Cell"
,
"Manufacturing Order Line"
,
"Manufacturing Order Cell"
)
bt5/erp5_mrp/bt/template_path_list
View file @
ad97fc23
portal_categories/trade_phase/manufacturing
portal_categories/trade_phase/manufacturing/order
portal_categories/trade_phase/manufacturing/transforming
portal_categories/trade_phase/production
portal_categories/trade_phase/production/delivery
portal_categories/trade_phase/production/manufacturing
portal_categories/trade_phase/production/order
portal_deliveries/manufacturing_execution_builder
portal_deliveries/manufacturing_execution_builder
portal_deliveries/manufacturing_execution_builder/**
portal_deliveries/manufacturing_execution_builder/**
portal_deliveries/manufacturing_order_builder
portal_deliveries/manufacturing_order_builder/**
portal_deliveries/production_packing_list_builder
portal_deliveries/production_packing_list_builder
portal_deliveries/production_packing_list_builder/**
portal_deliveries/production_packing_list_builder/**
portal_domains/production_order_module_specialise_domain
portal_domains/production_order_module_specialise_domain
\ No newline at end of file
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