openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10375
[Bug 980529] Re: auto create 2 address record when i save the partner
** Project changed: openobject-server => openerp-web
** Changed in: openerp-web
Importance: Undecided => Low
** Changed in: openerp-web
Status: New => Confirmed
** Changed in: openerp-web
Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/980529
Title:
auto create 2 address record when i save the partner
Status in OpenERP Web:
Confirmed
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/openerp-web/+bug/980529/+subscriptions
References