<commit_before><?xml version="1.0" ?>
<openerp>
	<data>
		<record id="base_vat.view_partner_form_readonly" model="ir.ui.view">
            <field name="name">res.partner.vat.inherit.readonly</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="l10n_it_account.view_partner_form_fiscalcode_data"/>

            <field name="arch" type="xml">
				<field name="vat" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)]}</attribute>
				</field>

				<field name="cf" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)]}</attribute>
				</field>

  				<xpath expr="/form/notebook/page[@string='Fiscal Code']/field[@name='fiscalcode']" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)]}</attribute>
                </xpath>

				<field name="vat" position="after" >
					<field name="vat_readonly" invisible="1" />
				</field>
            </field>
        </record>
	</data>
</openerp><commit_msg>[partner_vat_and_cf_readonly] fix attrs (readonly and invisible) for cf field<commit_after><?xml version="1.0" ?>
<openerp>
	<data>
		<record id="base_vat.view_partner_form_readonly" model="ir.ui.view">
            <field name="name">res.partner.vat.inherit.readonly</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="l10n_it_account.view_partner_form_fiscalcode_data"/>

            <field name="arch" type="xml">
				<field name="vat" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)]}</attribute>
				</field>

				<field name="cf" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)], 'invisible': [('individual', '=', False)]}</attribute>
				</field>

  				<xpath expr="/form/notebook/page[@string='Fiscal Code']/field[@name='fiscalcode']" position="attributes">
					<attribute name="attrs">{'readonly': [('vat_readonly', '!=', False)]}</attribute>
                </xpath>

				<field name="vat" position="after" >
					<field name="vat_readonly" invisible="1" />
				</field>
            </field>
        </record>
	</data>
</openerp>
{'fraction_non_alphanumeric': 0.20353200883002207, 'fraction_numerical': 0.004415011037527594, 'mean_word_length': 3.81104033970276, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 2, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5101067', 'n_tokens_mistral': 846, 'n_tokens_neox': 721, 'n_words': 116}