mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
19 lines
532 B
Python
19 lines
532 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2015-2018 Onestein (<http://www.onestein.eu>)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountCostCenter(models.Model):
|
|
_name = 'account.cost.center'
|
|
_description = 'Account Cost Center'
|
|
|
|
name = fields.Char(string='Title', required=True)
|
|
code = fields.Char(required=True)
|
|
company_id = fields.Many2one(
|
|
'res.company',
|
|
string='Company',
|
|
default=lambda self: self.env.user.company_id
|
|
)
|