You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
697 B

# Copyright (C) 2015 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields
class PosPlace(models.Model):
_name = 'pos.place'
_description = 'Point of Sale Places'
# Default section
def _default_company_id(self):
return self.env.user.company_id.id
# Columns section
code = fields.Char(required=True, size=6)
name = fields.Char(required=True)
active = fields.Boolean(default=True)
company_id = fields.Many2one(
string='Company', comodel_name='res.company',
default=_default_company_id)