This question has been flagged
2256 Views

Hi ,

 I have created new screen in asset module based on "customer" screen. in that new screen i have created "account payble" field and hided the accounting screen in bottom page in my screen. while i m edit the record and saving  the recored it is asking hided accounting screen account payble field but it is not at all calling my new field value and it is not at all taking the existing field properties. how will i solve?

i did like

<record id="view_partner_property_form2" model="ir.ui.view">
            <field name="name">res.partner.property.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="priority">2</field>
            <field name="inherit_id"   ref="itara_master_creation.invoice_customer_supplier_form_view"/>
            <field name="arch" type="xml">
            
             <page string="Accounting" position="replace">
             <field name="property_account_receivable" colspan="4"   />
              <field name="property_account_payable" colspan="4"   />
              </page>
             </field>
        </record>

<record id="view_partner_property_form3" model="ir.ui.view">
            <field name="name">res.partner.property.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="priority">2</field>
            <field name="inherit_id" ref="account.view_partner_property_form"/>
            <field name="arch" type="xml">
               <group>
                         <group>
                         <field name="property_account_receivable"
                            attrs="{'invisible': [('insurance_agencies','=', False)],'required':[('insurance_agencies','=',True),('customer','=',True)]}"
                            context="{ 'normal_view':False}"
                            groups="account.group_account_invoice" />
                         </group>
                        <group>
                        <field name="property_account_payable"
                            attrs="{'invisible': [('insurance_agencies','=', False)],'required':[('insurance_agencies','=',True),('customer','=',True)]}"
                            context="{ 'normal_view':False}"
                            groups="account.group_account_invoice" />
                        </group>
                    </group>
              </field>
          </record>        
 it is working in my screen but "Accounting" page  is hiding in all other screens

Avatar
Discard