Odoo pivot view styling

71 views Asked by At

Is it possible to show empty place in pivot view as 0.

        Quantity
Sales1      1
Sales2     
Sales3     2

When Sales2 quantity is not set, show 0 instead of empty. Is it possible?

1

There are 1 answers

0
Kenly On

Odoo will not set the cell value if it is undefined

You can override the model _computeRows function and append a default value

Example:

if (aggregates === undefined) {
    aggregates = 0.0;
}