forked from Techsystech/web
FIX
parent
6524ddcbd4
commit
ca0840d97a
|
@ -106,7 +106,7 @@ class TileTile(models.Model):
|
||||||
'ir.model.fields',
|
'ir.model.fields',
|
||||||
string='Field',
|
string='Field',
|
||||||
domain="[('model_id', '=', model_id),"
|
domain="[('model_id', '=', model_id),"
|
||||||
" ('ttype', 'in', ['float', 'integer'])]")
|
" ('ttype', 'in', ['float', 'integer', 'monetary'])]")
|
||||||
primary_format = fields.Char(
|
primary_format = fields.Char(
|
||||||
string='Format',
|
string='Format',
|
||||||
help='Python Format String valid with str.format()\n'
|
help='Python Format String valid with str.format()\n'
|
||||||
|
@ -126,7 +126,7 @@ class TileTile(models.Model):
|
||||||
'ir.model.fields',
|
'ir.model.fields',
|
||||||
string='Secondary Field',
|
string='Secondary Field',
|
||||||
domain="[('model_id', '=', model_id),"
|
domain="[('model_id', '=', model_id),"
|
||||||
" ('ttype', 'in', ['float', 'integer'])]")
|
" ('ttype', 'in', ['float', 'integer', 'monetary'])]")
|
||||||
secondary_format = fields.Char(
|
secondary_format = fields.Char(
|
||||||
string='Secondary Format',
|
string='Secondary Format',
|
||||||
help='Python Format String valid with str.format()\n'
|
help='Python Format String valid with str.format()\n'
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
//
|
//
|
||||||
//#############################################################################
|
//#############################################################################
|
||||||
|
|
||||||
odoo.web_dashboard_tile = function (instance)
|
odoo.web_dashboard_tile = function (require)
|
||||||
{
|
{
|
||||||
var QWeb = instance.web.qweb,
|
var QWeb = require('web.qweb')
|
||||||
_t = instance.web._t,
|
var _t = require('web._t')
|
||||||
_lt = instance.web._lt;
|
var _lt = require('web._lt')
|
||||||
|
|
||||||
_.mixin({
|
_.mixin({
|
||||||
sum: function (obj) { return _.reduce(obj, function (a, b) { return a + b; }, 0); }
|
sum: function (obj) { return _.reduce(obj, function (a, b) { return a + b; }, 0); }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue