Merge pull request #566 from expsa/purchase_req_chgs

Purchase req chgs
This commit is contained in:
eslam 2024-08-07 11:54:49 +03:00 committed by GitHub
commit 9c66b05bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ class PurchaseRequest(models.Model):
body = 'عزيزى %s موافقتك مطلوبة على %s ' % (direct_manager.name, self.name)
else:
body = 'Dear %s your approval is required on %s ' % (direct_manager.name, self.name)
rself.message_notify(body=body,
self.message_notify(body=body,
partner_ids=[direct_manager.user_id.partner_id.id])
elif vals['state'] == 'warehouse':

View File

@ -195,7 +195,7 @@ class PurchaseOrderCustom(models.Model):
line.account_analytic_id = line.department_name.analytic_account_id
def button_draft(self):
self.write({'state': 'draft'})
self.write({'state': 'wait'})
def button_cancel(self):
budgets = self.env['budget.confirmation'].search([