Skip to content

Commit 2d97252

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

File tree

10 files changed

+531
-54
lines changed

10 files changed

+531
-54
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/i18n/fr.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 11.0+e\n"
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2018-03-02 07:03+0000\n"
10-
"PO-Revision-Date: 2018-03-02 07:03+0000\n"
11-
"Last-Translator: <>\n"
9+
"POT-Creation-Date: 2023-06-16 07:18+0000\n"
10+
"PO-Revision-Date: 2023-06-16 07:18+0000\n"
11+
"Last-Translator: \n"
1212
"Language-Team: \n"
13-
"Language: \n"
1413
"MIME-Version: 1.0\n"
1514
"Content-Type: text/plain; charset=UTF-8\n"
1615
"Content-Transfer-Encoding: \n"
1716
"Plural-Forms: \n"
1817

1918
#. module: sale_timesheet_project_manual
20-
#: model:ir.model.fields,field_description:sale_timesheet_project_manual.field_sale_order_action_project_manual_allowed
19+
#: model:ir.model.fields,field_description:sale_timesheet_project_manual.field_sale_order__action_project_manual_allowed
2120
msgid "Action Project Manual Allowed"
2221
msgstr "Action Project Manual Allowed"
2322

2423
#. module: sale_timesheet_project_manual
25-
#: model:ir.ui.view,arch_db:sale_timesheet_project_manual.sale_order_form_view
24+
#: model_terms:ir.ui.view,arch_db:sale_timesheet_project_manual.sale_order_form_view
2625
msgid "Generate Project/Task"
2726
msgstr "Générer Projet/Tâche"
2827

2928
#. module: sale_timesheet_project_manual
3029
#: model:ir.model,name:sale_timesheet_project_manual.model_sale_order
31-
msgid "Quotation"
32-
msgstr "Devis"
30+
msgid "Sales Order"
31+
msgstr ""
3332

3433
#. module: sale_timesheet_project_manual
35-
#: code:addons/sale_timesheet_project_manual/models/sale_order.py:46
34+
#. odoo-python
35+
#: code:addons/sale_timesheet_project_manual/models/sale_order.py:0
3636
#, python-format
3737
msgid ""
3838
"You can anticipate the project creation only for draft quotations which "
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
# Translation of Odoo Server.
22
# This file contains the translation of the following modules:
3-
# * sale_timesheet_project_manual
3+
# * sale_timesheet_project_manual
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 11.0\n"
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"Last-Translator: <>\n"
9+
"POT-Creation-Date: 2023-06-16 07:18+0000\n"
10+
"PO-Revision-Date: 2023-06-16 07:18+0000\n"
11+
"Last-Translator: \n"
1012
"Language-Team: \n"
1113
"MIME-Version: 1.0\n"
1214
"Content-Type: text/plain; charset=UTF-8\n"
1315
"Content-Transfer-Encoding: \n"
1416
"Plural-Forms: \n"
1517

1618
#. module: sale_timesheet_project_manual
17-
#: model:ir.model.fields,field_description:sale_timesheet_project_manual.field_sale_order_action_project_manual_allowed
19+
#: model:ir.model.fields,field_description:sale_timesheet_project_manual.field_sale_order__action_project_manual_allowed
1820
msgid "Action Project Manual Allowed"
1921
msgstr ""
2022

2123
#. module: sale_timesheet_project_manual
22-
#: model:ir.ui.view,arch_db:sale_timesheet_project_manual.sale_order_form_view
24+
#: model_terms:ir.ui.view,arch_db:sale_timesheet_project_manual.sale_order_form_view
2325
msgid "Generate Project/Task"
2426
msgstr ""
2527

2628
#. module: sale_timesheet_project_manual
2729
#: model:ir.model,name:sale_timesheet_project_manual.model_sale_order
28-
msgid "Quotation"
30+
msgid "Sales Order"
2931
msgstr ""
3032

3133
#. module: sale_timesheet_project_manual
32-
#: code:addons/sale_timesheet_project_manual/models/sale_order.py:46
34+
#. odoo-python
35+
#: code:addons/sale_timesheet_project_manual/models/sale_order.py:0
3336
#, python-format
34-
msgid "You can anticipate the project creation only for draft quotations which contain service with timesheet generation. (SO: %s)"
35-
msgstr ""
36-
37+
msgid ""
38+
"You can anticipate the project creation only for draft quotations which "
39+
"contain service with timesheet generation. (SO: %s)"
40+
msgstr ""

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)