Files
account-financial-tools/account_cost_center/models/account_move_line.py

16 lines
379 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 AccountMoveLine(models.Model):
_inherit = 'account.move.line'
cost_center_id = fields.Many2one(
'account.cost.center',
index=True,
string='Cost Center'
)