mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] Contract Forecast: split from analytic account
This commit is contained in:
committed by
sbejaoui
parent
2be43da7f9
commit
0e4daa70d1
@@ -4,9 +4,9 @@
|
||||
from odoo import _, api, models
|
||||
|
||||
|
||||
class AccountAnalyticAccount(models.Model):
|
||||
class ContractContract(models.Model):
|
||||
|
||||
_inherit = "account.analytic.account"
|
||||
_inherit = "contract.contract"
|
||||
|
||||
@api.multi
|
||||
def action_show_contract_forecast(self):
|
||||
@@ -29,7 +29,7 @@ class AccountAnalyticAccount(models.Model):
|
||||
|
||||
@api.multi
|
||||
def write(self, values):
|
||||
res = super(AccountAnalyticAccount, self).write(values)
|
||||
res = super(ContractContract, self).write(values)
|
||||
if any(
|
||||
[
|
||||
field in values
|
||||
|
||||
Reference in New Issue
Block a user