Odoo Help

0

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

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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