how to visible a tab while clicking a button , the button condition where , available = true and approved = false
i need the python function and xml code
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how to visible a tab while clicking a button , the button condition where , available = true and approved = false
i need the python function and xml code
Hi,
You can do this by using a boolean field.
Python
class className(models.Model):Here test is the boolean field and it is set to False by default.Inside the button clicking function it is set to True.
_name = "model name"
test = fields.Boolean(string="Test", default=False)
def button_action(self):
self.test = True
.....
Your code
.....
Here condition checked for displaying the page,that is it will shown only when the test boolean field is True(This condition will set upon button click),otherwise it will be invisible.
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up