mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
ADD contract_show_recurring_invoice module
This commit is contained in:
14
contract_show_recurring_invoice/models/contract.py
Normal file
14
contract_show_recurring_invoice/models/contract.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from openerp import models, api
|
||||
|
||||
|
||||
class AccountAnalyticAccount(models.Model):
|
||||
_inherit = 'account.analytic.account'
|
||||
|
||||
@api.model
|
||||
def _prepare_invoice_data(self, contract):
|
||||
invoice_vals = super(AccountAnalyticAccount, self).\
|
||||
_prepare_invoice_data(
|
||||
contract)
|
||||
invoice_vals['contract_id'] = contract.id
|
||||
return invoice_vals
|
||||
Reference in New Issue
Block a user