openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #05078
[Bug 980529] Re: [6.1]auto create 2 address record when i save the partner
** Also affects: ocb-web
Importance: Undecided
Status: New
** Also affects: ocb-web/6.1
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Web).
https://bugs.launchpad.net/bugs/980529
Title:
[6.1]auto create 2 address record when i save the partner
Status in OpenERP Community Backports (Web):
New
Status in OpenERP Community Backports (Web) 6.1 series:
New
Status in OpenERP Web:
Invalid
Status in OpenERP Web 6.1 series:
Fix Committed
Status in OpenERP Web trunk series:
Invalid
Bug description:
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>
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-web/+bug/980529/+subscriptions