[ADD]project_disable_last_sol_as_sol_by_default: do not use last sol as sol by default in a task

This commit is contained in:
2023-09-26 11:35:53 +02:00
committed by Stéphan Sainléger
parent 1a342d3b8b
commit 45e38de4ff
5 changed files with 89 additions and 0 deletions

View File

@@ -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 <https://github.com/elabore-coop/project-tools/issues>`_. 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.

View File

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

View File

@@ -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,
}

View File

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

View File

@@ -0,0 +1,7 @@
from odoo import models
class Task(models.Model):
_inherit = "project.task"
def _get_last_sol_of_customer(self):
return False