Skip to content

Commit ee87655

Browse files
committed
[16.0][MIG] sale_timesheet_project_manual: Migration to 16.0
1 parent 69ec319 commit ee87655

File tree

7 files changed

+506
-33
lines changed

7 files changed

+506
-33
lines changed
Lines changed: 49 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2-
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
3-
:alt: License: AGPL-3
4-
51
=============================
62
Sale Timesheet Project Manual
73
=============================
84

5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
17+
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_timesheet_project_manual
18+
:alt: OCA/sale-workflow
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_timesheet_project_manual
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/sale-workflow&target_branch=16.0
24+
:alt: Try me on Runboat
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
928
Allows to create the project/tasks before the sale confirmation.
1029

30+
**Table of contents**
31+
32+
.. contents::
33+
:local:
34+
1135
Usage
1236
=====
1337

@@ -17,42 +41,45 @@ To use this module, you need to:
1741
#. Create a SO and select the previous product
1842
#. When the SO is in draft, a button *Generate Project/Task* is available and it will create the project and tasks based on the order lines
1943

20-
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
21-
:alt: Try me on Runbot
22-
:target: https://runbot.odoo-community.org/runbot/167/11.0
23-
2444
Bug Tracker
2545
===========
2646

27-
Bugs are tracked on `GitHub Issues
28-
<https://github.com/OCA/sale-workflow/issues>`_. In case of trouble, please
29-
check there if your issue has already been reported. If you spotted it first,
30-
help us smash it by providing detailed and welcomed feedback.
47+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
48+
In case of trouble, please check there if your issue has already been reported.
49+
If you spotted it first, help us smashing it by providing a detailed and welcomed
50+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_timesheet_project_manual%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
51+
52+
Do not contact contributors directly about support or help with technical issues.
3153

3254
Credits
3355
=======
3456

35-
Images
36-
------
57+
Authors
58+
~~~~~~~
3759

38-
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
60+
* ACSONE SA/NV
3961

4062
Contributors
41-
------------
63+
~~~~~~~~~~~~
4264

43-
* Benjamin Willig <benjamin.willig@acsone.eu>
65+
* `Acsone <https://www.acsone.eu/>`__
4466

45-
Maintainer
46-
----------
67+
* Benjamin Willig <[email protected]>
68+
* Maxime Franco <[email protected]>
69+
70+
Maintainers
71+
~~~~~~~~~~~
72+
73+
This module is maintained by the OCA.
4774

4875
.. image:: https://odoo-community.org/logo.png
4976
:alt: Odoo Community Association
5077
:target: https://odoo-community.org
5178

52-
This module is maintained by the OCA.
53-
5479
OCA, or the Odoo Community Association, is a nonprofit organization whose
5580
mission is to support the collaborative development of Odoo features and
5681
promote its widespread use.
5782

58-
To contribute to this module, please visit https://odoo-community.org.
83+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_timesheet_project_manual>`_ project on GitHub.
84+
85+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

sale_timesheet_project_manual/models/sale_order.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class SaleOrder(models.Model):
1313
compute="_compute_action_project_manual_allowed"
1414
)
1515

16-
@api.multi
1716
@api.depends(
1817
"state",
1918
"order_line.is_service",
@@ -25,17 +24,15 @@ def _compute_action_project_manual_allowed(self):
2524
[
2625
line.is_service
2726
and line.product_id.service_tracking
28-
in ("task_global_project", "project_only", "task_new_project")
27+
in ("task_global_project", "project_only", "task_in_project")
2928
for line in rec.order_line
3029
]
3130
)
3231

33-
@api.multi
3432
def action_project_manual(self):
3533
self.action_project_manual_allowed_check()
3634
self.order_line._timesheet_service_generation()
3735

38-
@api.multi
3936
def action_project_manual_allowed_check(self):
4037
for rec in self:
4138
if not rec.action_project_manual_allowed:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* `Acsone <https://www.acsone.eu/>`__
2+
3+
* Benjamin Willig <[email protected]>
4+
* Maxime Franco <[email protected]>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allows to create the project/tasks before the sale confirmation.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To use this module, you need to:
2+
3+
#. Create a service product and set its service tracking to *Create a task* or *Create a project*
4+
#. Create a SO and select the previous product
5+
#. When the SO is in draft, a button *Generate Project/Task* is available and it will create the project and tasks based on the order lines

0 commit comments

Comments
 (0)