Community mailing list archives

community@mail.odoo.com

Avatar

Re: how fill Many2one but any column of table ??

by
Fawad Mazhar
- 2017年11月24日 02时57分16秒

i want this please


partner_email = fields.Many2one




From: Matt Taylor <matt454357@gmail.com>
Sent: Thursday, November 23, 2017 7:20:45 PM
To: Community
Subject: Re: how fill Many2one but any column of table ??
 
You need to create 2 fields in your model:
partner_id = fields.Many2one(comodel_name='res.partner')
partner_email = fields.Char(related='partner_id.email')

Matt


On Wed, Nov 22, 2017 at 3:20 AM, Fawad Mazhar <fmazhar@comstarusa.com> wrote:


Dear All,
I want to fill my Many2one field by email column of res.partner how is it possible
email = fields.Many2one('res.partner')

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

 
 
You're receiving this message because you're a member of the Odoo group. If you don't want to receive any messages or events from this group, stop following it in your inbox.
 
View group conversations   |   View group files
 

Reference