Tessnim
Tessnim

Reputation: 453

How to change existing attribute in a field

I have this kanban view that has this attribute:

default_group_by="stage_id"

I want to inherit this view and change this attribute with another variable

default_group_by="state"

Now I know how to add/replace a field or add an attribute, but is it possible to replace an attribute? Thanks.

Upvotes: 1

Views: 1789

Answers (1)

rahul mehra
rahul mehra

Reputation: 438

Like this you can replace the attribute value of a field in odoo:

<xpath expr="//field[@name='your-field-name-here']" position="attributes">
    <attribute name="default_group_by">state</attribute>
</xpath>

Upvotes: 5

Related Questions