[IMP] inventory kanban
bzr revid: fp@openerp.com-20130728185525-yxpk3o4wlucj17fi
This commit is contained in:
@@ -5,12 +5,12 @@ openerp.stock = function(openerp) {
|
||||
start: function() {
|
||||
var self = this;
|
||||
var title = this.$node.html();
|
||||
console.log('mlklm')
|
||||
setTimeout(function () {
|
||||
var value = _.pluck(self.field.value, 'value');
|
||||
var tooltips = _.pluck(self.field.value, 'tooltip');
|
||||
var type = this.options ? this.options.type : "bar";
|
||||
self.$el.sparkline(value, {
|
||||
type: 'bar',
|
||||
type: type,
|
||||
barWidth: 5,
|
||||
tooltipFormat: '{{offset:offset}} {{value}}',
|
||||
tooltipValueLookups: {
|
||||
@@ -60,7 +60,7 @@ openerp.stock = function(openerp) {
|
||||
},
|
||||
});
|
||||
|
||||
openerp.web_kanban.fields_registry.add("stock_sparkline_bar", "openerp.stock.SparklineBarWidget");
|
||||
openerp.web_kanban.fields_registry.add("stock_sparkline", "openerp.stock.SparklineBarWidget");
|
||||
openerp.web_kanban.fields_registry.add("stock_gage", "openerp.stock.GaugeWidget");
|
||||
|
||||
openerp.stock = openerp.stock || {};
|
||||
|
||||
@@ -1213,36 +1213,37 @@
|
||||
<t t-esc="record.name.raw_value"/>
|
||||
</a>
|
||||
<a name="%(action_picking_tree)d" type="action">
|
||||
<field name="weekly_picking" widget="stock_sparkline_bar">Weekly Moves</field>
|
||||
<field name="weekly_picking" widget="stock_sparkline">Weekly Moves</field>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<div t-if="record.count_picking_waiting.raw_value > 0">
|
||||
<a name="%(action_picking_tree)d" type="action">
|
||||
<field name="count_picking_waiting"/>
|
||||
Waiting
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<div t-if="record.count_picking_late.raw_value > 0">
|
||||
<a name="%(action_picking_tree)d" type="action">
|
||||
<field name="count_picking_late"/>
|
||||
Late
|
||||
</a>
|
||||
<a name="%(action_picking_tree)d" type="action" class="oe_sparkline_bar_link">
|
||||
<field name="latest_picking_late" widget="stock_sparkline_bar"/>
|
||||
<field name="latest_picking_late" widget="stock_sparkline" options="{'type': 'tristate'}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<div t-if="record.count_picking_backorders.raw_value > 0">
|
||||
<a name="%(action_picking_tree)d" type="action">
|
||||
<field name="count_picking_backorders"/>
|
||||
Partial
|
||||
Backorders
|
||||
</a>
|
||||
<a name="%(action_picking_tree)d" type="action" class="oe_sparkline_bar_link">
|
||||
<field name="latest_picking_backorders" widget="stock_sparkline_bar"/>
|
||||
<field name="latest_picking_backorders" widget="stock_sparkline" options="{'type': 'tristate'}"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="oe_clear"> </div>
|
||||
<div class="oe_center">
|
||||
<field name="rate_picking_late" widget="stock_gage" style="width:160px; height: 120px;">Late</field>
|
||||
<field name="rate_picking_backorders" widget="stock_gage" style="width:160px; height: 120px;">Backorders</field>
|
||||
|
||||
Reference in New Issue
Block a user