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

[IMP] services: avoid exporting labels of technical fields #162167

Conversation

MissingNoShiny
Copy link
Contributor

Task-3631801

@robodoo
Copy link
Contributor

robodoo commented Apr 17, 2024

@MissingNoShiny MissingNoShiny force-pushed the master-services-technical-fields-vila branch from dda2cbb to 5f0b068 Compare April 17, 2024 08:38
@MissingNoShiny MissingNoShiny changed the title [FIX] services: avoid exporting labels of technical fields [IMP] services: avoid exporting labels of technical fields Apr 17, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 17, 2024
@MissingNoShiny MissingNoShiny force-pushed the master-services-technical-fields-vila branch from 5f0b068 to 3370678 Compare April 17, 2024 10:39
Copy link
Contributor

@xavierbol xavierbol left a comment

Choose a reason for hiding this comment

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

Thanks again for your work, I left some comments. 🙂

@@ -54,19 +54,19 @@ def _domain_employee_id(self):
'project.task', 'Task', index='btree_not_null',
compute='_compute_task_id', store=True, readonly=False,
domain="[('allow_timesheets', '=', True), ('project_id', '=?', project_id)]")
parent_task_id = fields.Many2one('project.task', related='task_id.parent_id', store=True)
parent_task_id = fields.Many2one('project.task', related='task_id.parent_id', store=True, export_string_translation=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

This field seems used in the search view, so I guess we should still keep the string translated in that case, right? 🧐

@@ -10,7 +10,7 @@ class Project(models.Model):

allow_timesheets = fields.Boolean(
"Timesheets", compute='_compute_allow_timesheets', store=True, readonly=False,
default=True)
default=True, export_string_translation=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

This field seems display in the UI and so I don't think it is a good idea to not translate its string.

What do you think? 🧐

@xavierbol xavierbol marked this pull request as ready for review April 17, 2024 12:08
@C3POdoo C3POdoo requested a review from a team April 17, 2024 12:11
@MissingNoShiny MissingNoShiny force-pushed the master-services-technical-fields-vila branch from 3370678 to a8e3ef7 Compare April 17, 2024 12:16
Copy link
Contributor

@xavierbol xavierbol left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your work. 🙂

robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Apr 30, 2024

@MissingNoShiny @xavierbol unable to stage: merge conflict

@xavierbol xavierbol force-pushed the master-services-technical-fields-vila branch from a8e3ef7 to 9ff900b Compare April 30, 2024 06:16
@xavierbol
Copy link
Contributor

robodoo r+

@xavierbol xavierbol force-pushed the master-services-technical-fields-vila branch from 9ff900b to 1698997 Compare May 6, 2024 09:52
@xavierbol xavierbol force-pushed the master-services-technical-fields-vila branch from 1698997 to bdf813e Compare May 8, 2024 15:25
@xavierbol
Copy link
Contributor

robodoo r+

robodoo pushed a commit that referenced this pull request May 8, 2024
Task-3631801

closes #162167

Related: odoo/enterprise#60904
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
@robodoo robodoo closed this May 8, 2024
@robodoo robodoo added the 17.3 label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants