diff --git a/sale_timesheet_order_line_no_update/README.rst b/sale_timesheet_order_line_no_update/README.rst index 47c0a08e4..47ea98c2f 100644 --- a/sale_timesheet_order_line_no_update/README.rst +++ b/sale_timesheet_order_line_no_update/README.rst @@ -84,6 +84,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. +.. |maintainer-ilyasprogrammer| image:: https://github.com/ilyasprogrammer.png?size=40px + :target: https://github.com/ilyasprogrammer + :alt: ilyasprogrammer + +Current `maintainer `__: + +|maintainer-ilyasprogrammer| + This module is part of the `OCA/timesheet `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_timesheet_order_line_no_update/__manifest__.py b/sale_timesheet_order_line_no_update/__manifest__.py index 9cb44e280..e5cdff82a 100644 --- a/sale_timesheet_order_line_no_update/__manifest__.py +++ b/sale_timesheet_order_line_no_update/__manifest__.py @@ -1,11 +1,12 @@ -# © 2023 ooops404 +# Copyright 2023 ooops404 - Ilyas # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html { "name": "Sale Timesheet Order Line no Update", "version": "14.0.1.0.0", "license": "AGPL-3", "author": "Ilyas, Ooops404, Odoo Community Association (OCA)", + "maintainers": ["ilyasprogrammer"], "website": "https://github.com/OCA/timesheet", - "depends": ["sale_timesheet", "web_domain_field"], + "depends": ["sale_timesheet"], "data": ["views/project.xml", "views/res_config_settings_views.xml"], } diff --git a/sale_timesheet_order_line_no_update/models/account_analytic_line.py b/sale_timesheet_order_line_no_update/models/account_analytic_line.py index fcdd35c16..db1a6cf41 100644 --- a/sale_timesheet_order_line_no_update/models/account_analytic_line.py +++ b/sale_timesheet_order_line_no_update/models/account_analytic_line.py @@ -1,4 +1,4 @@ -# © 2023 ooops404 +# Copyright 2023 ooops404 - Ilyas # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import api, models diff --git a/sale_timesheet_order_line_no_update/models/project.py b/sale_timesheet_order_line_no_update/models/project.py index 41c49abcd..a5b161a33 100644 --- a/sale_timesheet_order_line_no_update/models/project.py +++ b/sale_timesheet_order_line_no_update/models/project.py @@ -1,4 +1,4 @@ -# © 2023 ooops404 +# Copyright 2023 ooops404 - Ilyas # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import api, fields, models @@ -13,14 +13,14 @@ class ProjectTask(models.Model): ) hide_original_sol = fields.Boolean() - new_sale_line_id_domain = fields.Char(related="project_id.sale_line_id_domain") + new_sale_line_id_domain = fields.Binary(related="project_id.sale_line_id_domain") class ProjectProject(models.Model): _inherit = "project.project" select_all_project_sale_items = fields.Boolean() - sale_line_id_domain = fields.Char( + sale_line_id_domain = fields.Binary( compute="_compute_sale_line_id_domain", readonly=True, store=False, diff --git a/sale_timesheet_order_line_no_update/models/res_config_settings.py b/sale_timesheet_order_line_no_update/models/res_config_settings.py index 23ef650d9..4e36fb3f9 100644 --- a/sale_timesheet_order_line_no_update/models/res_config_settings.py +++ b/sale_timesheet_order_line_no_update/models/res_config_settings.py @@ -1,4 +1,4 @@ -# © 2023 ooops404 +# Copyright 2023 ooops404 - Ilyas # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import fields, models diff --git a/sale_timesheet_order_line_no_update/static/description/index.html b/sale_timesheet_order_line_no_update/static/description/index.html index 04778450f..3e78e1866 100644 --- a/sale_timesheet_order_line_no_update/static/description/index.html +++ b/sale_timesheet_order_line_no_update/static/description/index.html @@ -421,6 +421,8 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

+

Current maintainer:

+

ilyasprogrammer

This module is part of the OCA/timesheet project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/sale_timesheet_order_line_no_update/tests/test_sale_timesheet_order_line_no_update.py b/sale_timesheet_order_line_no_update/tests/test_sale_timesheet_order_line_no_update.py index 9b190990f..44eeaddc7 100644 --- a/sale_timesheet_order_line_no_update/tests/test_sale_timesheet_order_line_no_update.py +++ b/sale_timesheet_order_line_no_update/tests/test_sale_timesheet_order_line_no_update.py @@ -143,7 +143,7 @@ def test_sale_timesheet_order_line_sync(self): self.assertEqual(timesheet1.so_line, sale_order_line2) project.select_all_project_sale_items = False project._compute_sale_line_id_domain() - self.assertIn("order_partner_id", project.sale_line_id_domain) + self.assertIn("order_partner_id", str(project.sale_line_id_domain)) project.select_all_project_sale_items = True project._compute_sale_line_id_domain() - self.assertIn("order_id", project.sale_line_id_domain) + self.assertIn("order_id", str(project.sale_line_id_domain))