mirror of https://github.com/OCA/web.git
Fix README.rst
parent
232613d68d
commit
b383356307
|
@ -13,11 +13,18 @@ Usage
|
||||||
|
|
||||||
To use this module, you need to:
|
To use this module, you need to:
|
||||||
|
|
||||||
#. Go to ...
|
#. Go to any pivot table. Click on a column header. The table will be sorted by that column.
|
||||||
|
|
||||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
:target: https://runbot.odoo-community.org/runbot/web/8.0
|
:target: https://runbot.odoo-community.org/runbot/162/8.0
|
||||||
|
|
||||||
|
Known issues / Roadmap
|
||||||
|
======================
|
||||||
|
|
||||||
|
* The columns are sorted according to the sum over the row. If you have multiple
|
||||||
|
accounting periods for example, if you click on the column header of the first semester,
|
||||||
|
the rows will still be sorted by the total for the year.
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -69,7 +69,7 @@ openerp.web_graph_sort = function(instance) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var result = this.model.query(_.without(fields, '__count'));
|
var result = this.model.query(_.without(fields, '__count'));
|
||||||
if(this.sort !== null) {
|
if(this.sort !== null) {
|
||||||
result=result.order_by(this.sort);
|
result = result.order_by(this.sort);
|
||||||
}
|
}
|
||||||
return result.filter(domain)
|
return result.filter(domain)
|
||||||
.context(this.context)
|
.context(this.context)
|
||||||
|
|
Loading…
Reference in New Issue