odoo/ext/custom-addons/dp_intercompany_invoicing/models/res_company.py

34 lines
1.8 KiB
Python

# -*- coding: utf-8 -*-
##############################################################################
#
# datenpol gmbh
# Copyright (C) 2013-TODAY datenpol gmbh (<http://www.datenpol.at/>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import models, api, fields
class Company(models.Model):
_inherit = 'res.company'
inter_company_supplier_id = fields.Many2one(comodel_name='res.company', string='Inter-Company Lieferant',
help='Wenn gesetzt, dann wird eine Eingangsrechung von diesem ' \
'Lieferant erstellt. Im Unternehmen des Lieferanten wird entsprechend eine Ausgangsrechnung erstellt')
percentage_billing = fields.Float(string='Prozentsatz Weiterverrechnung',
help='Wenn hier 70% hinterlegt ist, dann wird bei einer Weiterverrechnung eine Eingangsrechnung erstellt mit einem um 30% verminderten Preis erstellt')
admin_user_id = fields.Many2one(comodel_name='res.users',
help='Mit diesem User werden Inter-Company Rechnungen erstellt')