[IMP] survey_record_generation: feature be able to update existing record
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m40s

This commit is contained in:
2025-10-24 16:57:49 +02:00
parent fd25c2b970
commit c60c74c80b
5 changed files with 270 additions and 34 deletions

View File

@@ -18,16 +18,18 @@
<group>
<field name="name" />
<field name="model_id" />
<field name="update_existing_records" />
<field name="field_to_retrieve_existing_records" attrs="{'invisible': [('update_existing_records', '=', False)]}"/>
<field name="field_values_ids">
<tree>
<field name="field_id" />
<field name="displayed_value" />
<field name="unicity_check" />
</tree>
</tree>
<form>
<group>
<field name="model_id" invisible="1" />
<field name="field_id" />
<field name="model_id" invisible="1" />
<field name="field_id" />
<field name="unicity_check" />
<field name="field_relation" invisible="1" />
<field name="field_type" invisible="1" />
@@ -40,37 +42,37 @@
</group>
<div attrs="{'invisible':['|',('value_origin','!=','fixed'),('field_id','=',False)]}">
<group>
<field name="displayed_value" invisible="1" />
<field
name="fixed_value_char"
<field name="displayed_value" invisible="1" />
<field
name="fixed_value_char"
attrs="{'invisible':[('field_type','!=','char')]}"
/>
<field
name="fixed_value_selection"
<field
name="fixed_value_selection"
attrs="{'invisible':[('field_type','!=','selection')]}"
/>
<field
name="fixed_value_text"
<field
name="fixed_value_text"
attrs="{'invisible':[('field_type','!=','text')]}"
/>
<field
name="fixed_value_html"
<field
name="fixed_value_html"
attrs="{'invisible':[('field_type','!=', 'html')]}"
/>
<field
name="fixed_value_integer"
<field
name="fixed_value_integer"
attrs="{'invisible':[('field_type','!=', 'integer')]}"
/>
<field
name="fixed_value_float"
<field
name="fixed_value_float"
attrs="{'invisible':[('field_type','!=', 'float')]}"
/>
<field
name="fixed_value_date"
<field
name="fixed_value_date"
attrs="{'invisible':[('field_type','!=', 'date')]}"
/>
<field
name="fixed_value_datetime"
<field
name="fixed_value_datetime"
attrs="{'invisible':[('field_type','!=', 'datetime')]}"
/>
<field
@@ -87,7 +89,7 @@
attrs="{'invisible':[('field_type','not in',['one2many','many2many'])]}">
<tree editable="bottom">
<field name="survey_record_creation_field_values_id" invisible="1" />
<field name="value_reference"
<field name="value_reference"
options="{'hide_model': True, 'no_create': True, 'no_edit': True, 'no_open': True}"
/>
</tree>
@@ -104,7 +106,7 @@
<field name="other_created_record_id" />
</group>
</div>
</form>
</form>
</field>
<div colspan="2">
<field name="warning_message" />