<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="external_referential_form_view" model="ir.ui.view">
			<field name="name">external_referential_form_view</field>
			<field name="model">external.referential</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form>
					<group col="4" colspan="4">
						<field name="name" />
						<notebook colspan="4">
							<page string="General">
								<field name="type_id" />
								<field name="mapping_column_name" />
								<field name="location" />
							</page>
							<page string="Authentication">
								<field name="apiusername" />
								<field name="apipass" />
							</page>
						</notebook>
						<field name="state" />
						<button name="core_sync" string="Synchronize Referential Settings" colspan="2" type="object" />
					</group>
					<field name="mapping_ids" widget="one2many_list" nolabel="1">
						<tree string="Object Mappings">
							<field name="model_id" />
							<field name="related_model_ids" invisible="1"/>
							<field name="external_field_id" />
							<field name="mapping_ids" />
						</tree>
						<form string="Object Mappings">
							<field name="model_id" on_change="model_id_change(model_id)"/>
							<field name="related_model_ids" invisible="1"/>
							<group col="4" colspan="4">
								<field name="external_list_method" />
								<field name="external_get_method" />
								<field name="external_update_method" />
								<field name="external_create_method" />
								<field name="external_delete_method" />
							</group>
							<field colspan="4" name="mapping_ids" widget="one2many_list" nolabel="1" context="{'model_id':model_id}">
								<tree editable="bottom" string="Field Mappings">
									<field name="field_id" domain="[('model_id','in',[rec[1] for rec in parent.related_model_ids])]" />
									<field name="external_field" />
									<field name="type" />
									<field name="external_type" />
								</tree>
								<form string="Field Mapping">
									<field name="field_id" domain="[('model_id','=',parent.model_id)]"/>
									<field name="external_field" />
									<field name="type" />
									<field name="external_type" />
									<newline />
									<field name="in_function" />
									<newline />
									<field name="out_function" />
								</form>
							</field>
						</form>
					</field>
				</form>
			</field>
		</record>
		
		<record id="external_referential_tree_view" model="ir.ui.view">
			<field name="name">external_referential_tree_view</field>
			<field name="model">external.referential</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<tree>
					<field name="name" select="1" />
					<field name="location" select="1" />
				</tree>
			</field>
		</record>

		<record id="ir_actions_act_window_externalreferential0" model="ir.actions.act_window">
			<field eval="&quot;&quot;&quot;form&quot;&quot;&quot;" name="view_type" />
			<field eval="&quot;&quot;&quot;external.referential&quot;&quot;&quot;" name="res_model" />
			<field eval="&quot;&quot;&quot;tree,form&quot;&quot;&quot;" name="view_mode" />
			<field eval="&quot;&quot;&quot;current&quot;&quot;&quot;" name="target" />
			<field eval="&quot;&quot;&quot;external_referential&quot;&quot;&quot;" name="name" /><commit_msg>[IMP]base_ext..:modified view to match changes in introduced mapping reps + added button to refresh mappings<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="external_referential_form_view" model="ir.ui.view">
			<field name="name">external_referential_form_view</field>
			<field name="model">external.referential</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form>
					<group col="4" colspan="4">
						<field name="name" />
						<notebook colspan="4">
							<page string="General">
								<field name="type_id" />
								<field name="mapping_column_name" />
								<field name="location" />
							</page>
							<page string="Authentication">
								<field name="apiusername" />
								<field name="apipass" />
							</page>
						</notebook>
						<field name="state" />
						<button name="refresh_mapping" string="Remap the mappings" colspan="2" type="object" />
						<button name="core_sync" string="Synchronize Referential Settings" colspan="2" type="object" />
					</group>
					<field name="mapping_ids" widget="one2many_list" nolabel="1">
						<tree string="Object Mappings">
							<field name="model_id" />
							<field name="related_model_ids" invisible="1" />
							<field name="external_field_id" />
							<field name="mapping_ids" />
						</tree>
						<form string="Object Mappings">
							<field name="model_id" on_change="model_id_change(model_id)" />
							<field name="related_model_ids" invisible="1" />
							<group col="4" colspan="4">
								<field name="external_list_method" />
								<field name="external_get_method" />
								<field name="external_update_method" />
								<field name="external_create_method" />
								<field name="external_delete_method" />
							</group>
							<field colspan="4" name="mapping_ids" widget="one2many_list" nolabel="1" context="{'model_id':model_id}">
								<tree editable="bottom" string="Field Mappings">
									<!--<field name="field_id" domain="[('model_id','in',[rec[1] for rec in parent.related_model_ids])]" />-->
									<field name="external_field" />
									<field name="type" />
									<field name="external_type" />
								</tree>
								<form string="Field Mapping">
									<!--<field name="field_id" domain="[('model_id','=',parent.model_id)]" />-->
									<field name="external_field" />
									<field name="type" />
									<field name="external_type" />
									<newline />
									<field name="in_function" />
									<newline />
									<field name="out_function" />
								</form>
							</field>
						</form>
					</field>
				</form>
			</field>
		</record>

		<record id="external_referential_tree_view" model="ir.ui.view">
			<field name="name">external_referential_tree_view</field>
			<field name="model">external.referential</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<tree>
					<field name="name" select="1" />
					<field name="location" select="1" />
				</tree>
			</field>
		</record>

		<record id="ir_actions_act_window_externalreferential0" model="ir.actions.act_window">
			<field eval="&quot;&quot;&quot;form&quot;&quot;&quot;" name="view_type" />
			<field eval="&quot;&quot;&quot;external.referential&quot;&quot;&quot;" name="res_model" />
			<field eval="&quot;&quot;&quot;tree,form&quot;&quot;&quot;" name="view_mode" />
			<field eval="&quot;&quot;&quot;current&quot;&quot;&quot;" name="target" />
			<field eval="&quot;&quot;&quot;external_referential&quot;&quot;&quot;" name="name" />
{'fraction_non_alphanumeric': 0.1832005792903693, 'fraction_numerical': 0.005937726285300507, 'mean_word_length': 3.3875476493011436, 'pattern_counts': {'":': 0, '<': 182, '<?xml version=': 2, '>': 182, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7588685', 'n_tokens_mistral': 3003, 'n_tokens_neox': 2189, 'n_words': 382}