File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -755,14 +755,14 @@ def view_relation_object(self):
755755 if not self .criteria_ids :
756756 raise ValidationError (_ ("There are no criteria associated" ))
757757 else :
758- action = self .env [ "ir.actions.act_window" ]. for_xml_id (
759- "record_merge" , " record_merge_criteria_act_window"
758+ action = self .env . ref (
759+ "mass_merge_lite. record_merge_criteria_act_window"
760760 )
761+ action = action .read ([])[0 ]
761762 action .update (
762763 {
763764 "res_id" : self .criteria_ids .id ,
764765 "views" : [(False , "form" )],
765- "view_type" : "form" ,
766766 "view_mode" : "form" ,
767767 }
768768 )
@@ -772,14 +772,12 @@ def view_relation_object(self):
772772 if not self .merge_ids :
773773 raise ValidationError (_ ("There are no merges associated" ))
774774 else :
775- action = self .env ["ir.actions.act_window" ].for_xml_id (
776- "record_merge" , "record_merge_id_act_window"
777- )
775+ action = self .env .ref ("mass_merge_lite.record_merge_id_act_window" )
776+ action = action .read ([])[0 ]
778777 action .update (
779778 {
780779 "res_id" : self .merge_ids .id ,
781780 "views" : [(False , "form" )],
782- "view_type" : "form" ,
783781 "view_mode" : "form" ,
784782 }
785783 )
You can’t perform that action at this time.
0 commit comments