mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[ADD] Contract section module (#177)
This commit is contained in:
committed by
Pedro M. Baeza
parent
19d6a841b1
commit
d1eb4bc29f
17
contract_section/models/account_analytic_account.py
Normal file
17
contract_section/models/account_analytic_account.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright 2018 Road-Support - Roel Adriaans
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class AccountAnalyticAccount(models.Model):
|
||||
_inherit = 'account.analytic.account'
|
||||
|
||||
@api.model
|
||||
def _prepare_invoice_line(self, line, invoice_id):
|
||||
invoice_line_vals = super(AccountAnalyticAccount, self). \
|
||||
_prepare_invoice_line(line, invoice_id)
|
||||
invoice_line_vals.update({
|
||||
'layout_category_id': line.layout_category_id.id,
|
||||
})
|
||||
return invoice_line_vals
|
||||
Reference in New Issue
Block a user