Initial Commit

This commit is contained in:
2023-12-21 12:02:04 +01:00
parent 141ad6bfcd
commit edc8cffc69
49 changed files with 0 additions and 1732 deletions

View File

@@ -1 +0,0 @@
from . import hr_expense

View File

@@ -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