Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: One2many function field New API 8

by
arthur parisi
- 07/28/2015 10:50:52
Hi Khalid,


@api.one        
def _compute_my_field_ids(self):
    self.my_field_ids = [x.id for x in self.get_some_recordsets()]
   

my_field_ids = fields.One2many('my.model' compute='_compute_my_field_ids')


Regards,

Arthur Parisi


Le 28/07/2015 16:42, Khalid LAKHSAM a écrit :
<blockquote cite="mid:CAHUN3YZwz1dUk8y3Qii8VFx96gAj8BsqC0TU_0bDbeJZUWj4PQ@mail.gmail.com" type="cite">
Hi Community,

How to create a One2many with a functionnal field in new api 8 ?

Best regards.

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