diff --git a/project_disable_last_sol_as_sol_by_default/README.rst b/project_disable_last_sol_as_sol_by_default/README.rst new file mode 100644 index 0000000..91701d4 --- /dev/null +++ b/project_disable_last_sol_as_sol_by_default/README.rst @@ -0,0 +1,43 @@ +========================================== +project_disable_last_sol_as_sol_by_default +========================================== + +If there is no sale order line in a task, do not add automaticly the last sol of customer as the sale order line by default + +Installation +============ + +Use Odoo normal module installation procedure to install ``project_disable_last_sol_as_sol_by_default``. + +Known issues / Roadmap +====================== + +None yet. + +Bug Tracker +=========== + +Bugs are tracked on `our issues website `_. In case of +trouble, please check there if your issue has already been +reported. If you spotted it first, help us smashing it by providing a +detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Laetitia Da Costa (https://github.com/LaetitiaElabore) + +Funders +------- + +The development of this module has been financially supported by: +* Elabore (https://elabore.coop) + + +Maintainer +---------- + +This module is maintained by Elabore. \ No newline at end of file diff --git a/project_disable_last_sol_as_sol_by_default/__init__.py b/project_disable_last_sol_as_sol_by_default/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/project_disable_last_sol_as_sol_by_default/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/project_disable_last_sol_as_sol_by_default/__manifest__.py b/project_disable_last_sol_as_sol_by_default/__manifest__.py new file mode 100644 index 0000000..df20434 --- /dev/null +++ b/project_disable_last_sol_as_sol_by_default/__manifest__.py @@ -0,0 +1,37 @@ +# Copyright 2022 Stéphan Sainléger (Elabore) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "project_disable_last_sol_as_sol_by_default", + "version": "14.0.1.0.0", + "author": "Elabore", + "website": "https://elabore.coop", + "maintainer": "Laetitia Da Costa", + "license": "AGPL-3", + "category": "Project", + "summary": "Do not add last sale order line automaticly as the sale order line by default in a task", + # any module necessary for this one to work correctly + "depends": [ + "base", + "project", + "sale_timesheet" + ], + "qweb": [ + # "static/src/xml/*.xml", + ], + "external_dependencies": { + "python": [], + }, + # always loaded + "data": [ + ], + # only loaded in demonstration mode + "demo": [], + "js": [], + "css": [], + "installable": True, + # Install this module automatically if all dependency have been previously + # and independently installed. Used for synergetic or glue modules. + "auto_install": False, + "application": False, +} \ No newline at end of file diff --git a/project_disable_last_sol_as_sol_by_default/models/__init__.py b/project_disable_last_sol_as_sol_by_default/models/__init__.py new file mode 100644 index 0000000..cfd8e16 --- /dev/null +++ b/project_disable_last_sol_as_sol_by_default/models/__init__.py @@ -0,0 +1 @@ +from . import project_task \ No newline at end of file diff --git a/project_disable_last_sol_as_sol_by_default/models/project_task.py b/project_disable_last_sol_as_sol_by_default/models/project_task.py new file mode 100644 index 0000000..72f026d --- /dev/null +++ b/project_disable_last_sol_as_sol_by_default/models/project_task.py @@ -0,0 +1,7 @@ +from odoo import models + +class Task(models.Model): + _inherit = "project.task" + + def _get_last_sol_of_customer(self): + return False \ No newline at end of file