← Back to team overview

openerp-india team mailing list archive

[Bug 980529] [NEW] auto create 2 address record when i save the partner

 

You have been subscribed to a public bug:

res.partner module, Partner Views, when I create a new partner, only input partner name and save, then on the address tab, I find the address number change to 2, if change to tree view, can find two empty record in the tree view. This problem will appear little.
But when I modify the res.partner, code as follow, then this bug will appear very frequent. pls help confirm if this is a bug or my mistake.thanks

class res_partner(osv.osv):    
    _name = "res.partner"
    _inherit = 'res.partner'
    _columns = {       
        'partner_level': fields.many2one('res.partner.level','Partner Level'),
   }
res_partner()

<record id="view_partner_form_extend" model="ir.ui.view">
            <field name="name">res.partner.form.extend</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
            <xpath expr="/form/notebook/page[@string='General']" position="before">
                <page string="Info">
                    <field colspan="2" name="partner_level"  widget="selection"/>
                </page>
            </xpath>
            </field>
 </record>

** Affects: openobject-server
     Importance: Low
     Assignee: OpenERP Publisher's Warranty Team (openerp-opw)
         Status: Fix Committed


** Tags: maintenance
-- 
auto create 2 address record when i save the partner
https://bugs.launchpad.net/bugs/980529
You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Server.


References