[IMP] base_comment_template: Dynamic placeholder genereator added.

This commit is contained in:
Bearnard21
2023-02-09 13:33:53 +03:00
parent a4f870f115
commit 43c4e7f805
3 changed files with 22 additions and 1 deletions

View File

@@ -77,6 +77,26 @@
<page name="text" string="Comment">
<field name="text" />
</page>
<page
string="Dynamic Placeholder Generator"
name="dynamic_placeholder_generator"
>
<group>
<field name="model_ids" invisible="1" />
<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>