콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2570 화면

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

아바타
취소