← Back to team overview

savoirfairelinux-openerp team mailing list archive

[Merge] lp:~savoirfairelinux-openerp/partner-contact-management/change_value_organism into lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions

 

elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/partner-contact-management/change_value_organism into lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.

Requested reviews:
  Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/change_value_organism/+merge/205999

- In partner view form: organism = parent organism
- When we create a new organism , the default values of is_company field is true.

-- 
https://code.launchpad.net/~savoirfairelinux-openerp/partner-contact-management/change_value_organism/+merge/205999
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions.
=== modified file 'base_contact_by_functions/res_partner_view.xml'
--- base_contact_by_functions/res_partner_view.xml	2014-02-05 15:54:23 +0000
+++ base_contact_by_functions/res_partner_view.xml	2014-02-12 16:15:50 +0000
@@ -329,7 +329,7 @@
         </xpath>
         have the  same form for contact and other postions
         <field name="parent_id" position="replace">
-            <field name="parent_id" placeholder="Organism"
+            <field name="parent_id" placeholder="Parent organism"
                    domain="[('is_company','=',True)]"
                    attrs="{'invisible': [('is_company','=', False)]}"/>
         </field>
@@ -446,6 +446,7 @@
             <field name="view_type">form</field>
             <field name="view_mode">kanban,tree,form</field>
             <field name="domain">[('is_company','=',1)]</field>
+            <field name="context" eval="{'default_is_company': True}"/>
             <field name="filter" eval="True"/>
         </record>
     <!-- Actions for Contacts -->


Follow ups