summaryrefslogtreecommitdiff
path: root/addons/lunch/models/lunch_location.py
blob: 5bb47de3a10894df2c8ee847a51e4f158d2f4d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models


class LunchLocation(models.Model):
    _name = 'lunch.location'
    _description = 'Lunch Locations'

    name = fields.Char('Location Name', required=True)
    address = fields.Text('Address')
    company_id = fields.Many2one('res.company', default=lambda self: self.env.company)