Merge pull request #369 from expsa/dev_odex25_purchase_changes

Dev odex25 purchase changes
This commit is contained in:
eslam 2024-07-23 12:21:40 +03:00 committed by GitHub
commit ca1261a05a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -673,10 +673,10 @@ class ProductCustom(models.Model):
'Sale Price: ') + '{}'.format(product.list_price) + '\n' + _('Description: ') + '{}'.format(
product.description) + '\n' + _('On Date: ') + '{}'.format(fields.Date.today()) + '\n' + _(
'Created By: ') + '{}'.format(self.env.user.name)
group = self.env.ref('purchase.group_purchase_manager')
# group = self.env.ref('purchase.group_purchase_manager')
author_id = self.env.user.partner_id.id or None
self.env.user.partner_id.send_notification_message(subject=subject, body=message, author_id=author_id,
group=group )
)
@api.model
def create(self, vals):