Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][mig] hr_timesheet_task_domain #586

Closed
wants to merge 27 commits into from

Conversation

heliaktiv
Copy link

No description provided.

alexey-pelykh and others added 27 commits June 5, 2023 18:25
Currently translated at 100.0% (1 of 1 strings)

Translation: timesheet-12.0/timesheet-12.0-hr_timesheet_task_domain
Translate-URL: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_task_domain/de/
It's `project.task.type`, not `project.stage`.
Currently translated at 75.0% (3 of 4 strings)

Translation: timesheet-14.0/timesheet-14.0-hr_timesheet_task_domain
Translate-URL: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_domain/fr/
Currently translated at 100.0% (4 of 4 strings)

Translation: timesheet-15.0/timesheet-15.0-hr_timesheet_task_domain
Translate-URL: https://translation.odoo-community.org/projects/timesheet-15-0/timesheet-15-0-hr_timesheet_task_domain/fr/
Currently translated at 100.0% (1 of 1 strings)

Translation: timesheet-15.0/timesheet-15.0-hr_timesheet_task_domain
Translate-URL: https://translation.odoo-community.org/projects/timesheet-15-0/timesheet-15-0-hr_timesheet_task_domain/it/
@pedrobaeza
Copy link
Member

/ocabot migration hr_timesheet_task_domain

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 5, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request May 24, 2023
16 tasks
@Yadier-Tecnativa
Copy link

Yadier-Tecnativa commented Jun 9, 2023

You should review the migrations guidelines and Squash administrative commits with the previous commit for reducing commit noise for example : Translated using Weblate or README.rst

Copy link

@Yadier-Tecnativa Yadier-Tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TT43228

from odoo.tests import common


class TestHrTimesheetTaskDomain(common.TransactionCase):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class TestHrTimesheetTaskDomain(common.TransactionCase):
class TestHrTimesheetTaskDomain(TransactionCase):

# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo.tests import common

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from odoo.tests import common
from odoo.tests import TransactionCase

@stefan-tecnativa
Copy link

ping @heliaktiv

@DorianMAG
Copy link

Hi,
Tested on runboat.
Seems to be good

Copy link

@DorianMAG DorianMAG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for this work.
Tested on runboat.
LGTM

Copy link
Member

@flotho flotho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code review, LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should change domains to something not returned in onchange, as that's deprecated. @Yadier-Tecnativa take care of this migration.

@@ -19,7 +19,6 @@ def _onchange_project_id(self):
if self.project_id: # Show only opened tasks
task_domain = [
("project_id", "=", self.project_id.id),
("stage_id.is_closed", "=", False),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this?

@Yadier-Tecnativa
Copy link

Supersede by #593

@pedrobaeza pedrobaeza closed this Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.