add purchase modules
This commit is contained in:
parent
928509f5b1
commit
24c1dccd93
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue