I need to remove the sum header of some columns that it automatically calculated for me.
I created a new tree view without inheriting any view, and have the fields like so:
. . .
<field name="model">my.purchase.order.line.inherit</field>
. . .
. . .
<field name="product_uom_qty"/>
<field name="price_unit"/>
. . .
<field name="price_subtotal" widget="monetary"/>
. . .
. . .
The main model is from purchase.order.line
.
Now with the answer from CZoellner, my model is now something like this.
class purchase_order_line_inherit(models.Model):
_name = "my.purchase.order.line.inherit"
_inherit = "purchase.order.line"
product_uom_qty = fields.Float(group_operator="min")
I think the system just calculated them for me but the point is that I want to change it from sum to min.
I have seen this but my fields (as shown earlier) do not have the sum attribute. I also have tried something like this but the sum headers are still there.
How can I achieve such task?