Odoo Help

0

0
1 Answer
0
Avatar

subbarao

--subbarao--

1299
| 5 2 8
Chennai, India
--subbarao--


subbarao
23.10.18, 00:46

class ResPartner(models.Model):

    _inherit = 'res.partner'

    bookings = fields.One2many('ff.booking', 'partner_id', string='Booking')


class FfBooking(models.Model):

    _name = 'ff.booking'

    partner_id = fields.Many2one('res.partner', string='Partner')


I think you missed relation for both tables

2 Comments
FLOR & FJÆRE AS, Alf Olsen
23.10.18, 02:43

No, I have that, I just didn't find it relevant to my problem.

FLOR & FJÆRE AS, Alf Olsen
23.10.18, 02:46

I put it in there now so others wont be confused

Ask a Question
Writer
Tag
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now