You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
417 B

from odoo import api, models
class BeescoopPosPartner(models.Model):
_inherit = "res.partner"
def _get_eater(self):
eaters = [False, False, False]
for i, eater in enumerate(self.child_eater_ids):
eaters[i] = eater.name
return tuple(eaters)
@api.multi
def get_eater(self):
eater1, eater2, eater3 = self._get_eater()
return eater1, eater2, eater3