add purchase modules

This commit is contained in:
eslamabady 2024-07-16 12:05:06 +03:00
parent 928509f5b1
commit 24c1dccd93
6 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class PurchaseRequest(models.Model):
def show_employee_button(self):
"""show only for the create employee"""
for rec in self:
rec.show_emp_buftton=False
rec.show_emp_button=False
if rec.create_uid.id == self.env.user.id and rec.state == 'employee':
rec.show_emp_button=True