diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-04-14 11:07:14 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-04-19 17:49:34 +0200 |
| commit | 90d6573579768525e339fa843a906016befd8aab (patch) | |
| tree | 10913d57432b311cc5c6f6215327b614013f2532 /addons/lunch/static/src/xml | |
| parent | 3445597940f4bf7791be8071910c4257254eb700 (diff) | |
[FIX] lunch: adapt the code to new views
We also adapt the code to comply to the new guidelines and we have
added some tests.
Diffstat (limited to 'addons/lunch/static/src/xml')
| -rw-r--r-- | addons/lunch/static/src/xml/lunch.xml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/addons/lunch/static/src/xml/lunch.xml b/addons/lunch/static/src/xml/lunch.xml index cda28f4fa3b..4efb8f9f5de 100644 --- a/addons/lunch/static/src/xml/lunch.xml +++ b/addons/lunch/static/src/xml/lunch.xml @@ -7,20 +7,22 @@ <p class="text-muted">Don't forget the alerts displayed in the reddish area</p> </div> <t t-name="LunchPreviousOrdersWidgetList"> - <div t-foreach="categories" t-as="product_category" class="col-sm-4"> - <h3><t t-esc="product_category"/></h3> - <div t-foreach='categories[product_category]' t-as='product' class="o_lunch_vignette"> - <button type="button" class="pull-right o_add_button oe_edit_only oe_link" t-att-data-id="product.id"> + <div t-foreach="categories" t-as="supplier" class="col-md-4"> + <h3><t t-esc="supplier"/></h3> + <div t-foreach='categories[supplier]' t-as='order' class="o_lunch_vignette"> + <button type="button" class="pull-right o_add_button oe_edit_only oe_link" t-att-data-id="order.line_id"> <span class="fa fa-plus-square"></span> <span>Add</span> </button> - <div class="o_lunch_text"> - <div class="badge pull-right"> - <t t-esc="widget.format_value(product.price)"/> <t t-esc="product.currency_id[1]"/> - </div> - <t t-esc="product.product_id[1]"/> + <div> + <t t-esc="order.product_name"/> + <span class="badge pull-right"> + <span class="o_lunch_price" t-raw="formatValue(order)"/> + </span> + </div> + <div class="text-muted"> + <t t-if="order.note != false" t-esc="order.note"/> </div> - <div class="text-muted"><t t-if="product.note != false" t-esc="product.note"/></div> </div> </div> </t> |
