Initial Commit
This commit is contained in:
@@ -1 +0,0 @@
|
||||
from . import hr_expense
|
||||
@@ -1,13 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models, api
|
||||
|
||||
class HrExpense(models.Model):
|
||||
_inherit = "hr.expense"
|
||||
|
||||
project_id = fields.Many2one('project.project', string="Projet", required=True)
|
||||
|
||||
@api.onchange('project_id')
|
||||
def set_analytic_account(self):
|
||||
self.analytic_account_id = self.project_id.analytic_account_id
|
||||
|
||||
Reference in New Issue
Block a user