This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from odoo import api, models
class AccountAnalyticLine(models.Model):
_inherit = 'account.analytic.line'
@api.model
def get_assistant_data(self):
ai_agent = self.env.ref('ai_timesheet_grid.ai_composer_timesheet_assistant', raise_if_not_found=False).ai_agent_id
return {
**super().get_assistant_data(),
"is_agent_available": bool(ai_agent),
}