r环境审批问题
This commit is contained in:
@@ -1 +1,2 @@
|
||||
from . import upload_file_wizard
|
||||
from . import upload_file_wizard
|
||||
from . import comment_wizard
|
||||
15
jikimo_purchase_tier_validation/wizards/comment_wizard.py
Normal file
15
jikimo_purchase_tier_validation/wizards/comment_wizard.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class CommentWizard(models.TransientModel):
|
||||
_inherit = "comment.wizard"
|
||||
|
||||
def add_comment(self):
|
||||
|
||||
rec = self.env[self.res_model].browse(self.res_id)
|
||||
|
||||
self.review_ids = rec.review_ids
|
||||
|
||||
result = super(CommentWizard, self).add_comment()
|
||||
|
||||
return result
|
||||
Reference in New Issue
Block a user