[IMP][14.0] base_comment_template

Added dynmaic placeholder template support
This commit is contained in:
Ashish Hirpara
2022-10-15 14:01:01 +05:30
parent b272599df8
commit fdd6624ee2
2 changed files with 20 additions and 0 deletions

View File

@@ -75,6 +75,25 @@
<page name="text" string="Comment">
<field name="text" />
</page>
<page
string="Dynamic Placeholder Generator"
name="dynamic_placeholder_generator"
>
<group>
<field
name="model_object_field"
domain="[('model_id','in',model_ids),('ttype','!=','one2many'),('ttype','!=','many2many')]"
/>
<field name="sub_object" readonly="1" />
<field
name="sub_model_object_field"
domain="[('model_id','=',sub_object),('ttype','!=','one2many'),('ttype','!=','many2many')]"
attrs="{'readonly':[('sub_object','=',False)],'required':[('sub_object','!=',False)]}"
/>
<field name="null_value" />
<field name="copyvalue" />
</group>
</page>
</notebook>
</sheet>
</form>