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

5 years ago
5 years ago
  1. from odoo import api, models
  2. class BeescoopPosPartner(models.Model):
  3. _inherit = "res.partner"
  4. def _get_eater(self):
  5. eaters = [False, False, False]
  6. for i, eater in enumerate(self.child_eater_ids):
  7. eaters[i] = eater.name
  8. return tuple(eaters)
  9. @api.multi
  10. def get_eater(self):
  11. eater1, eater2, eater3 = self._get_eater()
  12. return eater1, eater2, eater3