22 lines
698 B
Python
22 lines
698 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2014-2016 Akretion (http://www.akretion.com)
|
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models, fields
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = "res.company"
|
|
|
|
capital_amount = fields.Monetary(string='Capital Amount')
|
|
# in v9, title is only for contacts, not for companies
|
|
legal_type = fields.Char(
|
|
string="Legal Type", help="Type of Company, e.g. SARL, SAS, ...")
|
|
|
|
_sql_constraints = [(
|
|
'capital_amount_positive',
|
|
'CHECK (capital_amount >= 0)',
|
|
"The value of the field 'Capital Amount' must be positive."
|
|
)]
|