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