Skip to Content
Menu
This question has been flagged
1 Reply
2089 Views

Hello, I have a problem that I think that is easy to solve, but I am having a hard time doing so. Well... I added a field to 'product.template', as follows:

class ProductTemplate(models.Model):
    _inherit = 'product.template'

    should_upload = fields.Boolean('Upload to VTex', default=False, readonly=False) 

And then added a column to the product tree view using studio, showing the boolean info as a checkbox on the table. 

The only thing is that I wish I could change the checkbox status by clicking on it. Is there a way I can do it?

Thank you,

Arthur. 

Avatar
Discard
Author Best Answer

Ok, so I solved this problem placing a attribute tag with the editable property set to bottom on the tree tag, through xPath. Now, I can edit the products infos clicking on the table line, but I can't enter on the products details anymore. Any idea on how to solve this?

Avatar
Discard