Skip to Content
Menu
This question has been flagged
1 Reply
1010 Views
# -*- coding: utf-8 -*-
from flectra import models, fields
class DucumentModel(models.Model):
_name = 'ducument'
ducument = fields.Char('Ducuments Name')
attachment = fields.Many2many('ir.attachment', 'car_rent_checklist_ir_attachments_rel',
'rental_id', 'attachment_id', string="Attachments",
help="Images of the vehicle before contract/any attachments")




This is my model which have two fields ducument name and ducuments..
i wanna show this data in my template what should i doo..??
plz help me any one....


Avatar
Discard
Best Answer

Hi,

You have to define view for the model which you have created(If you meant template as a view).

For creating view for your custom model you can refer the blog below


Regards

Avatar
Discard