[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
5 changed files with 25 additions and 2 deletions

View File

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

View File

@@ -3,7 +3,7 @@
{ {
"name": "project_parent_tasks", "name": "project_parent_tasks",
"version": "14.0.1.0.0", "version": "14.0.1.1.0",
"author": "Elabore", "author": "Elabore",
"website": "https://elabore.coop", "website": "https://elabore.coop",
"maintainer": "Laetitia Da Costa", "maintainer": "Laetitia Da Costa",

View File

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

View File

@@ -0,0 +1,21 @@
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é
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é
from odoo import models, fields, api
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
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é
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
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"
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
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é
#overwrite others def _compute_sale_line(self)
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é
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')
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é
def _compute_sale_line(self):
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é
for task in self:
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é
# check sale_line_id and customer are coherent
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é
if task.sale_line_id.order_partner_id.commercial_partner_id != task.partner_id.commercial_partner_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é
task.sale_line_id = False
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é
if not task.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é
task.sale_line_id = task.parent_id.sale_line_id or task.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
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')
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é
def _onchange_parent_id(self):
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é

View File

@@ -6,7 +6,7 @@
<field name="inherit_id" ref="project.view_task_form2" /> <field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="attributes"> <xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="domain">[('project_id','=', active_id)]</attribute> <attribute name="domain">[('project_id','=', project_id)]</attribute>
</xpath> </xpath>
</field> </field>
</record> </record>