# -*- 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....
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....