[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:
43
project_disable_last_sol_as_sol_by_default/README.rst
Normal file
43
project_disable_last_sol_as_sol_by_default/README.rst
Normal 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.
|
1
project_disable_last_sol_as_sol_by_default/__init__.py
Normal file
1
project_disable_last_sol_as_sol_by_default/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from . import models
|
37
project_disable_last_sol_as_sol_by_default/__manifest__.py
Normal file
37
project_disable_last_sol_as_sol_by_default/__manifest__.py
Normal 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,
|
||||||
|
}
|
@@ -0,0 +1 @@
|
|||||||
|
from . import project_task
|
@@ -0,0 +1,7 @@
|
|||||||
|
from odoo import models
|
||||||
|
|
||||||
|
class Task(models.Model):
|
||||||
|
_inherit = "project.task"
|
||||||
|
|
||||||
|
def _get_last_sol_of_customer(self):
|
||||||
|
return False
|
Reference in New Issue
Block a user