Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to take required field properties in to my new fields in new screen

By
kalyan
on 6/11/14, 10:25 AM 473 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/11/14, 10:25 AM
Seen: 473 times
Last updated: 3/16/15, 8:10 AM