mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 11:52:18 -06:00
[MIG] document_page_approval: Migration to 17.0
This commit is contained in:
committed by
Bhavesh Heliconia
parent
49f3835e45
commit
a4972a014d
@@ -22,7 +22,6 @@ class DocumentPageHistory(models.Model):
|
||||
],
|
||||
"Status",
|
||||
default="draft",
|
||||
readonly=True,
|
||||
)
|
||||
|
||||
approved_date = fields.Datetime()
|
||||
@@ -79,7 +78,7 @@ class DocumentPageHistory(models.Model):
|
||||
[("groups_id", "in", guids), ("groups_id", "in", approver_gid.id)]
|
||||
)
|
||||
rec.message_subscribe(partner_ids=users.mapped("partner_id").ids)
|
||||
rec.message_post_with_template(template.id)
|
||||
rec.message_post_with_source(template)
|
||||
else:
|
||||
# auto-approve if approval is not required
|
||||
rec.action_approve()
|
||||
|
||||
Reference in New Issue
Block a user