Community archivos de la lista de correo

community@mail.odoo.com

Avatar

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

por
Matt Taylor
- 23/11/2017 09:16:23
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


Referencia