Skip to content

Commit

Permalink
[IMP] sale_order_invoicing_finished_task: Use with timesheet track_se…
Browse files Browse the repository at this point in the history
…rvice too (OCA#552)
  • Loading branch information
carlosdauden authored and Ricardoalso committed Nov 27, 2023
1 parent 7c9bddf commit 707f9f0
Show file tree
Hide file tree
Showing 26 changed files with 1,978 additions and 13 deletions.
25 changes: 16 additions & 9 deletions sale_order_invoicing_finished_task/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
Sale Order Invoicing Finished Task
==================================

The requirement of this module is to give the possibility in the task to indicate if a task is available to invoice or not. This means by default even the task is not finished you could set it as invoiceable.
The requirement of this module is to give the possibility in the task to
indicate if a task is available to invoice or not. This means by default even
the task is not finished you could set it as invoiceable.

As an option you can relate to a Proyect Stage ( ``project.task.type`` ) this control. For example if you want to assign Invoiceable to stage ``Done`` always
As an option you can relate to a Project Stage ( ``project.task.type`` ) this
control. For example if you want to assign Invoiceable to stage ``Done`` always.

Usage
=====
Expand All @@ -17,25 +20,29 @@ To use this module, you need to:

1. Go to Sales -> Product and create a service product

2. In the product go to Invoicing tab and select (1) An invocing policy (2) Track
service must be create a task and tack hours (3) Set Invoicing finished task
checkbox and save
2. In the product go to Invoicing tab and select (1) An invocing policy (2)
Track service must be create a task and tack hours (3) Set Invoicing
finished task checkbox and save


.. image:: static/description/product_view_invoicefinishedtask.png


3. Go to Sales -> Sale orders -> Create a new one. Add a customer y the product
you have created
4. Confirm the sales order, it will create you a proyect and a task
4. Confirm the sales order, it will create you a project and a task
5. Go to the task and you will find a smartbutton called Not invoiceable, when
you press the button you will indicate that the task can be invoiced

.. image:: static/description/task_view_invoicefinishedtask.png

6. Optional: if you want to use project stages to control this Go To Proyect -> Settings -> Stage -> You have to set true the field Invoiceable in the stages that you consider are invoiceable. Event to use stages for this functionality you can also set it manually in the task whenever you want.
6. Optional: if you want to use project stages to control this Go To
Project -> Settings -> Stage -> You have to set true the field Invoiceable
in the stages that you consider are invoiceable. Event to use stages for
this functionality you can also set it manually in the task whenever you
want.

You can try it in:'
You can try it in:

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
Expand All @@ -62,7 +69,7 @@ Images
Contributors
------------

* Denis Leemann <[email protected]>
* Denis Leemann <[email protected]>
* Sergio Teruel <[email protected]>
* Carlos Dauden <[email protected]>

Expand Down
3 changes: 1 addition & 2 deletions sale_order_invoicing_finished_task/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
{
"name": "Sale Order Invoicing Finished Task",
"summary": "Control invoice order lines if his task has been finished",
"version": "10.0.1.0.0",
"version": "10.0.1.0.1",
"category": "Sales",
"website": "https://github.com/OCA/sale-workflow",
"author": "Tecnativa, "
"Camptocamp, "
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"sale_timesheet",
Expand Down
89 changes: 89 additions & 0 deletions sale_order_invoicing_finished_task/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_finished_task
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoice the order lines only when the task is in folded stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoiceable
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_type_invoiceable
msgid "Invoiceable"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoicing finished task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_product_template
msgid "Product Template"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order
msgid "Sales Order"
msgstr "Comandes de venda"

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task
msgid "Task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task_type
msgid "Task Stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_sale_order_line_task_ids
msgid "Tasks"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:70
#, python-format
msgid "You cannot add a task to and invoiced Sale Order Line"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:55
#, python-format
msgid "You cannot modify the Sale Order Line of the task once it is invoiced"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:45
#, python-format
msgid ""
"You cannot modify the status if there is no Sale Order Line or if it has "
"been invoiced."
msgstr ""
89 changes: 89 additions & 0 deletions sale_order_invoicing_finished_task/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_finished_task
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoice the order lines only when the task is in folded stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoiceable
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_type_invoiceable
msgid "Invoiceable"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoicing finished task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_product_template
msgid "Product Template"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order
msgid "Sales Order"
msgstr "Verkaufsauftrag"

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task
msgid "Task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task_type
msgid "Task Stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_sale_order_line_task_ids
msgid "Tasks"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:70
#, python-format
msgid "You cannot add a task to and invoiced Sale Order Line"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:55
#, python-format
msgid "You cannot modify the Sale Order Line of the task once it is invoiced"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:45
#, python-format
msgid ""
"You cannot modify the status if there is no Sale Order Line or if it has "
"been invoiced."
msgstr ""
89 changes: 89 additions & 0 deletions sale_order_invoicing_finished_task/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_finished_task
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/el_GR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: el_GR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,help:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoice the order lines only when the task is in folded stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoiceable
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_type_invoiceable
msgid "Invoiceable"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_product_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_product_template_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_project_task_invoicing_finished_task
msgid "Invoicing finished task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_product_template
msgid "Product Template"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order
msgid "Sales Order"
msgstr "Εντολή Πώλησης"

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task
msgid "Task"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model,name:sale_order_invoicing_finished_task.model_project_task_type
msgid "Task Stage"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: model:ir.model.fields,field_description:sale_order_invoicing_finished_task.field_sale_order_line_task_ids
msgid "Tasks"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:70
#, python-format
msgid "You cannot add a task to and invoiced Sale Order Line"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:55
#, python-format
msgid "You cannot modify the Sale Order Line of the task once it is invoiced"
msgstr ""

#. module: sale_order_invoicing_finished_task
#: code:addons/sale_order_invoicing_finished_task/models/project.py:45
#, python-format
msgid ""
"You cannot modify the status if there is no Sale Order Line or if it has "
"been invoiced."
msgstr ""
Loading

0 comments on commit 707f9f0

Please sign in to comment.