Skip to content

Commit

Permalink
[FIX] sale_comment_template: fix action to allow to see templates in …
Browse files Browse the repository at this point in the history
…sales
  • Loading branch information
GasparJarsa authored and alan196 committed May 7, 2024
1 parent 88b0e5c commit cba67ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sale_comment_template/views/base_comment_template_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">base.comment.template</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('model_ids.model', '=', 'sale.order')]</field>
<field
name="context"
eval="{'default_model_ids': [(4, ref('sale.model_sale_order'))]}"
/>
<field name="domain">[('model_ids', '=', 'sale.order')]</field>
<field name="context">{'default_models': 'sale.order'}</field>
<field
name="view_id"
ref="base_comment_template.view_base_comment_template_tree"
Expand Down

0 comments on commit cba67ad

Please sign in to comment.