Skip to content

Commit 4cd1663

Browse files
committed
[ADD] catering: testing moves
1 parent f990b5d commit 4cd1663

File tree

5 files changed

+70
-11
lines changed

5 files changed

+70
-11
lines changed

catering/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'demo/sale_order_line.xml',
4545
'demo/sale_order_confirm.xml',
4646
'demo/stock_picking.xml',
47+
'demo/stock_move.xml',
4748
'demo/project_project.xml',
4849
'demo/project_task.xml',
4950
'demo/calendar_event.xml',

catering/demo/calendar_event.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
3-
<!-- <record id="calendar_event_3" model="calendar.event">
4-
<field name="name">Custom Menu Design Validation</field>
5-
<field name="description"><![CDATA[<div><strong>Organized by</strong><br>Loïc Pierson (lpie)<br><a href="mailto:****@example.com">****@example.com</a></div>]]></field>
6-
<field name="duration">2.0</field>
7-
<field name="res_id" ref="project_task_31"/>
8-
<field name="res_model_id" ref="project.model_project_task"/>
9-
</record> -->
103
<record id="calendar_event_2" model="calendar.event" context="{'no_mail_to_attendees': True}">
114
<field name="name">Tasting Food Corporate Holiday Party Catering</field>
125
<field name="description"><![CDATA[<div><strong>Organized by</strong><br>Loïc Pierson (lpie)<br><a href="mailto:****@example.com">****@example.com</a></div>]]></field>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
3-
<function model="purchase.order" name="button_confirm">
3+
<function name="button_confirm" model="purchase.order">
44
<value eval="[ref('purchase_order_2'), ref('purchase_order_3')]"/>
55
</function>
6+
7+
<function name="action_confirm" model="stock.picking">
8+
<value eval="[ref('stock_picking_3')]"/>
9+
</function>
610
</odoo>

catering/demo/stock_move.xml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<odoo noupdate="1">
3+
<record id="stock_move_18" model="stock.move">
4+
<field name="picking_id" ref="stock_picking_3"/>
5+
<field name="product_id" ref="product_product_117"/>
6+
<field name="description_picking_manual"><![CDATA[High-Top Cocktail Table Rental]]></field>
7+
<field name="product_uom_qty">10.0</field>
8+
<field name="location_id" ref="stock.stock_location_stock"/>
9+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
10+
<field name="picking_type_id" ref="stock.picking_type_out"/>
11+
<field name="quantity">10.0</field>
12+
</record>
13+
<record id="stock_move_19" model="stock.move">
14+
<field name="picking_id" ref="stock_picking_3"/>
15+
<field name="product_id" ref="product_product_120"/>
16+
<field name="description_picking_manual"><![CDATA[Disposable Plate (Eco-friendly)]]></field>
17+
<field name="product_uom_qty">250.0</field>
18+
<field name="location_id" ref="stock.stock_location_stock"/>
19+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
20+
<field name="picking_type_id" ref="stock.picking_type_out"/>
21+
<field name="quantity">250.0</field>
22+
</record>
23+
<record id="stock_move_20" model="stock.move">
24+
<field name="picking_id" ref="stock_picking_3"/>
25+
<field name="product_id" ref="product_product_89"/>
26+
<field name="description_picking_manual"><![CDATA[Linen Napkin Rental (White)]]></field>
27+
<field name="product_uom_qty">100.0</field>
28+
<field name="location_id" ref="stock.stock_location_stock"/>
29+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
30+
<field name="picking_type_id" ref="stock.picking_type_out"/>
31+
<field name="quantity">100.0</field>
32+
</record>
33+
<record id="stock_move_21" model="stock.move">
34+
<field name="picking_id" ref="stock_picking_3"/>
35+
<field name="product_id" ref="product_product_114"/>
36+
<field name="description_picking_manual"><![CDATA[Extra Large Serving Spoon Rental]]></field>
37+
<field name="product_uom_qty">20.0</field>
38+
<field name="location_id" ref="stock.stock_location_stock"/>
39+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
40+
<field name="picking_type_id" ref="stock.picking_type_out"/>
41+
<field name="quantity">20.0</field>
42+
</record>
43+
<record id="stock_move_22" model="stock.move">
44+
<field name="picking_id" ref="stock_picking_3"/>
45+
<field name="product_id" ref="product_product_87"/>
46+
<field name="description_picking_manual"><![CDATA[Dessert Fork Rental]]></field>
47+
<field name="product_uom_qty">250.0</field>
48+
<field name="location_id" ref="stock.stock_location_stock"/>
49+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
50+
<field name="picking_type_id" ref="stock.picking_type_out"/>
51+
<field name="quantity">250.0</field>
52+
</record>
53+
<record id="stock_move_23" model="stock.move">
54+
<field name="picking_id" ref="stock_picking_3"/>
55+
<field name="product_id" ref="product_product_88"/>
56+
<field name="description_picking_manual"><![CDATA[Water Glass Rental]]></field>
57+
<field name="product_uom_qty">250.0</field>
58+
<field name="location_id" ref="stock.stock_location_stock"/>
59+
<field name="location_dest_id" ref="stock.stock_location_customers"/>
60+
<field name="picking_type_id" ref="stock.picking_type_out"/>
61+
<field name="quantity">250.0</field>
62+
<field name="additional" eval="True"/>
63+
</record>
64+
</odoo>

catering/demo/stock_picking.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
<field name="name">WH/OUT/00001</field>
55
<field name="picking_type_id" ref="stock.picking_type_out"/>
66
<field name="move_type">direct</field>
7-
<field name="state">assigned</field>
87
<field name="location_id" ref="stock.stock_location_stock"/>
98
<field name="location_dest_id" ref="stock.stock_location_customers"/>
10-
<field name="company_id" ref="base.main_company"/>
11-
<field name="is_date_editable" eval="True"/>
129
<field name="project_id" search="[('sale_order_id', '=', ref('sale_order_1'))]"/>
1310
</record>
1411
</odoo>

0 commit comments

Comments
 (0)