hostel_room.py 369 B

1234567
  1. from odoo import models, fields, api
  2. class HostelRoom(models.Model):
  3. _name = 'hostel.room'
  4. currency_id = fields.Many2one('res.currency', string='Currency')
  5. rent_amount = fields.Monetary("Rnet Amount", help="Enter rent amount per month")
  6. # optional attribute: currency_field='currency_id' incase currency field have another name then 'currency_id'