diff options
| author | Frédéric van der Essen <fva@openerp.com> | 2013-11-13 18:24:48 +0100 |
|---|---|---|
| committer | Frédéric van der Essen <fva@openerp.com> | 2013-11-13 18:24:48 +0100 |
| commit | 47d375738084c84c7fb46e1bc300dea4eef5ffc5 (patch) | |
| tree | 9433a2b5754b745f0dbc8c80a6adbec4e102d69b /addons/stock/static/src/xml/picking.xml | |
| parent | 9ca77ea0c0db088286d54711f213195d2f42d934 (diff) | |
[IMP] stock_picking_ui: reworked the main menu: now has better ui and interactive searchbox
bzr revid: fva@openerp.com-20131113172448-xbm8gx7t9x0a8x8z
Diffstat (limited to 'addons/stock/static/src/xml/picking.xml')
| -rw-r--r-- | addons/stock/static/src/xml/picking.xml | 49 |
1 files changed, 40 insertions, 9 deletions
diff --git a/addons/stock/static/src/xml/picking.xml b/addons/stock/static/src/xml/picking.xml index 71c0b260b3a..242aaf2d462 100644 --- a/addons/stock/static/src/xml/picking.xml +++ b/addons/stock/static/src/xml/picking.xml @@ -153,6 +153,20 @@ </table> </div> </t> + <t t-name="PickingSearchResults"> + <t t-if="results.length === 0"> + <div class='oe_search_empty'> + No picking found. + </div> + </t> + <t t-if="results.length > 0"> + <t t-foreach="results" t-as="picking"> + <div class="oe_picking" t-att-data-id="picking.id"> + <span class='oe_picking_name'><t t-esc="picking.name" /></span> + </div> + </t> + </t> + </t> <t t-name="PickingMenuWidget"> <div class='oe_pick_widget'> @@ -170,18 +184,35 @@ <td class='oe_pick_body_cont'> <div class='oe_pick_body'> <div class='oe_pick_app'> + + <div class='oe_searchbox'> + <input type='text' placeholder='Search'/> + </div> + <h3 class='oe_pick_app_title'>Pickings</h3> - <t t-foreach="widget.picking_types" t-as="type"> - <h4 class='oe_pick_app_subtitle'> <t t-esc="type.name" /> </h4> - <t t-if="widget.pickings_by_type[type.id].length > 0"> - <span class='oe_pick_button oe_medium js_pick_last' t-att-data-id="type.id">Last Picking</span> - <span class='oe_pick_button oe_medium js_pick_scan' t-att-data-id="type.id">Scan</span> - </t> - <t t-if="widget.pickings_by_type[type.id].length === 0"> - <p class='oe_pick_app_info'>Nothing to process.</p> + <div class='oe_picking_not_found oe_hidden'> + Scanned picking could not be found + </div> + + <div class='oe_picking_search_results'> + </div> + + <div class='oe_picking_categories'> + <p> + Select the picking category you want to process. + </p> + <t t-foreach="widget.picking_types" t-as="type"> + <div t-att-class="'oe_picking ' + (widget.pickings_by_type[type.id].length === 0 ? 'oe_empty':'js_pick_last') " + t-att-data-id="type.id"> + + <span class='oe_picking_name'><t t-esc="type.name" /></span> + <t t-if="widget.pickings_by_type[type.id].length === 0"> + <span class='oe_pick_app_info'>Nothing to do</span> + </t> + </div> </t> - </t> + </div> </div> </div> </td> |
