diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-02-04 17:44:38 +0530 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-04-23 10:27:08 +0200 |
| commit | 3d63c15a567db74e9d65f47d9c7060527de7dcba (patch) | |
| tree | 5416144cfbf9bafacceaaf1ef09a784e2915a891 /addons/lunch/static/src/xml/lunch.xml | |
| parent | 058d4033098c9a05439ee0d00876f34906984abb (diff) | |
[MIGR] lunch: migration to the new API, cleaning and new
widget for displaying previous orders.
Detailed changes :
- previous order is not a computed field, with its own custom widget that has been designed
according the new spec for widgets;
- useless wizards have been removed, and replaced by some server actions that perform the
same action with less code and views;
- removed deprecated or incomplete reporting;
- some renaming to follow the new specifications of module coding
Diffstat (limited to 'addons/lunch/static/src/xml/lunch.xml')
| -rw-r--r-- | addons/lunch/static/src/xml/lunch.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/addons/lunch/static/src/xml/lunch.xml b/addons/lunch/static/src/xml/lunch.xml new file mode 100644 index 00000000000..66f9a806600 --- /dev/null +++ b/addons/lunch/static/src/xml/lunch.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates> + <t t-name="lunch_order_widget_previous_orders"> + <div> + <div class="previous_order_lines"></div> + </div> + </t> + <t t-name="lunch_order_widget_no_previous_order"> + <div class="oe_inline o_lunch_intro"> + <h3>This is the first time you order a meal</h3> + <p class="text-muted">Select a product and put your order comments on the note.</p> + <p class="text-muted">Your favorite meals will be created based on your last orders.</p> + <p class="text-muted">Don't forget the alerts displayed in the reddish area</p> + </div> + </t> + <t t-name="lunch_order_widget_previous_orders_list"> + <t t-foreach="categories" t-as="product_category"> + <div class="o_lunch_30pc"> + <h2><t t-esc="product_category"/></h2> + <t t-foreach='categories[product_category]' t-as='product'> + <div class="o_lunch_vignette"> + <span class="pull-right add_button oe_edit_only" t-att-id="product.id"> + <button type="button" class="oe_button oe_link"> + <span class="fa fa-plus-square"></span> + <span>Add</span> + </button> + </span> + <div class="oe_group_text_button"> + <div class="o_lunch_text"> + <t t-esc="product.product_id[1]"/> + <span class="oe_tag"> + <t t-esc="widget.monetary.format_value(product.price)"/> <t t-esc="product.currency_id[1]"/> + </span> + </div> + </div> + <div class="text-muted"><t t-if="product.note != false" t-esc="product.note"/></div> + </div> + </t> + </div> + </t> + </t> +</templates> |
