Skip to content

Commit

Permalink
[10.0][FIX] sale_order_invoicing_finished_task: Error creating task w…
Browse files Browse the repository at this point in the history
…ithput stage
  • Loading branch information
sergio-teruel authored and Ricardoalso committed Nov 27, 2023
1 parent 707f9f0 commit 88afcc8
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 1 deletion.
89 changes: 89 additions & 0 deletions sale_order_invoicing_finished_task/i18n/sk.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]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-27 03:53+0000\n"
"PO-Revision-Date: 2018-01-27 03:53+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2018\n"
"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sk\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\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 "Objednávka predaja"

#. 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 ""
2 changes: 1 addition & 1 deletion sale_order_invoicing_finished_task/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create(self, vals):
raise ValidationError(_('You cannot add a task to and invoiced '
'Sale Order Line'))
# Onchange stage_id field is not triggered with statusbar widget
if 'sale_line_id' in vals:
if 'sale_line_id' in vals and 'stage_id' in vals:
stage = self.env['project.task.type'].browse(vals['stage_id'])
if so_line.product_id.invoicing_finished_task and \
stage.invoiceable:
Expand Down

0 comments on commit 88afcc8

Please sign in to comment.