mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] hr_expense_change_analytic: for Odoo 13.0
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'HR Expense Change - Analytic',
|
'name': 'HR Expense Change - Analytic',
|
||||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||||
'version': '12.0.1.0.0',
|
'version': '13.0.1.0.0',
|
||||||
'category': 'Employees',
|
'category': 'Employees',
|
||||||
'sequence': 96,
|
'sequence': 96,
|
||||||
'summary': 'Change Analytic Account on Expense.',
|
'summary': 'Change Analytic Account on Expense.',
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ class ExpenseChangeWizard(models.TransientModel):
|
|||||||
return rec
|
return rec
|
||||||
|
|
||||||
@api.onchange('expense_id', 'analytic_account_id')
|
@api.onchange('expense_id', 'analytic_account_id')
|
||||||
@api.multi
|
|
||||||
def _compute_analytic_warning(self):
|
def _compute_analytic_warning(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
expenses = self._find_expenses_to_write_analytic(self.expense_id.analytic_account_id.id)
|
expenses = self._find_expenses_to_write_analytic(self.expense_id.analytic_account_id.id)
|
||||||
@@ -30,7 +29,6 @@ class ExpenseChangeWizard(models.TransientModel):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def affect_change(self):
|
def affect_change(self):
|
||||||
old_analytic_id = self.expense_id.analytic_account_id.id
|
old_analytic_id = self.expense_id.analytic_account_id.id
|
||||||
res = super(ExpenseChangeWizard, self).affect_change()
|
res = super(ExpenseChangeWizard, self).affect_change()
|
||||||
|
|||||||
Reference in New Issue
Block a user