[FIX]project_parent_tasks:change behaviour of autocomplete task sale … #12

Merged
LaetitiaElabore merged 2 commits from 14.0-project_task_default_sale_line_id into 14.0 2023-09-25 18:14:16 +00:00
Showing only changes of commit ec074f365b - Show all commits

View File

@@ -5,7 +5,7 @@ class Task(models.Model):
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
_inherit = "project.task"
#overwrite others def _compute_sale_line(self)
#we want to skip _compute_sale_line in /home/laetitia/elabore/odoo/OCB/addons/sale_timesheet/models/project.py file
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
#we want to skip _compute_sale_line in sale_timesheet/models/project.py file
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
@api.depends('commercial_partner_id', 'sale_line_id.order_partner_id.commercial_partner_id', 'parent_id.sale_line_id', 'project_id.sale_line_id')
def _compute_sale_line(self):
@@ -18,4 +18,4 @@ class Task(models.Model):
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
@api.onchange('parent_id')
def _onchange_parent_id(self):
self.sale_line_id = self.parent_id.sale_line_id or self.project_id.sale_line_id
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
self.sale_line_id = self.parent_id.sale_line_id or self.project_id.sale_line_id
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
clementelabore commented 2023-09-25 14:12:32 +00:00 (Migrated from github.com)
Review

Le commentaire ligne 8 pointe sur un répertoire local

Le commentaire ligne 8 pointe sur un répertoire local
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé
LaetitiaElabore commented 2023-09-25 14:51:18 +00:00 (Migrated from github.com)
Review

bien vu, c'est corrigé

bien vu, c'est corrigé