forked from michel/Coworking
27 lines
631 B
Python
27 lines
631 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
""" Coworker module """
|
|
|
|
from odoo import models, fields, api, _
|
|
from odoo.exceptions import ValidationError
|
|
|
|
class ResPartner(models.Model):
|
|
""" Coworker model """
|
|
_inherit = 'res.partner'
|
|
name = fields.Char(required=True)
|
|
company_ids = fields.One2many(
|
|
string="Company",
|
|
comodel_name="res.partner",
|
|
inverse_name="parent_id",
|
|
)
|
|
|
|
#Adress fields
|
|
street = fields.Char()
|
|
zip = fields.Char()
|
|
city = fields.Char()
|
|
phone = fields.Char()
|
|
mobile = fields.Char('GSM')
|
|
email = fields.Char()
|
|
url = fields.Char('URL')
|
|
comment = fields.Text()
|