summaryrefslogtreecommitdiff
path: root/addons/sale_project
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-11-16 13:25:50 +0000
committerMartin Trigaux <mat@odoo.com>2020-11-16 14:35:42 +0000
commitf5d0f4a1ebf406583889e9e04912d40c0693343e (patch)
tree92b51fb6d6671b24c55f323689cb3fbb7a2f94ed /addons/sale_project
parentbcb22aca37aa6f7301bc92fa3ae52f53d1044d97 (diff)
[FIX] *: rephrase, correct typos
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#61785 Related: odoo/enterprise#14751 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/sale_project')
-rw-r--r--addons/sale_project/i18n/sale_project.pot33
-rw-r--r--addons/sale_project/models/project.py12
2 files changed, 17 insertions, 28 deletions
diff --git a/addons/sale_project/i18n/sale_project.pot b/addons/sale_project/i18n/sale_project.pot
index 84d20d5a01d..acdcc106db1 100644
--- a/addons/sale_project/i18n/sale_project.pot
+++ b/addons/sale_project/i18n/sale_project.pot
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server saas~13.5\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-09-01 07:29+0000\n"
-"PO-Revision-Date: 2020-09-01 07:29+0000\n"
+"POT-Creation-Date: 2020-11-16 13:33+0000\n"
+"PO-Revision-Date: 2020-11-16 13:33+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -143,6 +143,11 @@ msgid "Project generated by the sales order item"
msgstr ""
#. module: sale_project
+#: model:ir.model.fields,field_description:sale_project.field_project_task__project_sale_order_id
+msgid "Project's sale order"
+msgstr ""
+
+#. module: sale_project
#: code:addons/sale_project/models/sale_order.py:0
#: model:ir.model.fields,field_description:sale_project.field_sale_order__project_ids
#, python-format
@@ -188,21 +193,12 @@ msgstr ""
#. module: sale_project
#: model:ir.model.fields,help:sale_project.field_project_project__sale_line_id
-msgid ""
-"Sales order item to which the project is linked. If an employee timesheets "
-"on a task that does not have a sale order item defines, and if this employee"
-" is not in the 'Employee/Sales Order Item Mapping' of the project, the "
-"timesheet entry will be linked to the sales order item defined on the "
-"project."
-msgstr ""
-
-#. module: sale_project
#: model:ir.model.fields,help:sale_project.field_project_task__sale_line_id
msgid ""
-"Sales order item to which the task is linked. If an employee timesheets on a"
-" this task, and if this employee is not in the 'Employee/Sales Order Item "
-"Mapping' of the project, the timesheet entry will be linked to this sales "
-"order item."
+"Sales order item to which the project is linked. Link the timesheet entry to"
+" the sales order item defined on the project. Only applies on tasks without "
+"sale order item defined, and if the employee is not in the 'Employee/Sales "
+"Order Item Mapping' of the project."
msgstr ""
#. module: sale_project
@@ -333,8 +329,3 @@ msgstr ""
msgid ""
"You have to unlink the task from the sale order item in order to delete it."
msgstr ""
-
-#. module: sale_project
-#: model:ir.model.fields,field_description:sale_project.field_project_task__project_sale_order_id
-msgid "project's sale order"
-msgstr ""
diff --git a/addons/sale_project/models/project.py b/addons/sale_project/models/project.py
index 9cc79509f71..9a7c521bad5 100644
--- a/addons/sale_project/models/project.py
+++ b/addons/sale_project/models/project.py
@@ -13,9 +13,8 @@ class Project(models.Model):
sale_line_id = fields.Many2one(
'sale.order.line', 'Sales Order Item', copy=False,
domain="[('is_expense', '=', False), ('order_id', '=', sale_order_id), ('state', 'in', ['sale', 'done']), '|', ('company_id', '=', False), ('company_id', '=', company_id)]",
- help="Sales order item to which the project is linked. If an employee timesheets on a task that does not have a "
- "sale order item defines, and if this employee is not in the 'Employee/Sales Order Item Mapping' of the project, "
- "the timesheet entry will be linked to the sales order item defined on the project.")
+ help="Sales order item to which the project is linked. Link the timesheet entry to the sales order item defined on the project. "
+ "Only applies on tasks without sale order item defined, and if the employee is not in the 'Employee/Sales Order Item Mapping' of the project.")
sale_order_id = fields.Many2one('sale.order', 'Sales Order', domain="[('partner_id', '=', partner_id)]", readonly=True, copy=False, help="Sales order to which the project is linked.")
_sql_constraints = [
@@ -36,10 +35,9 @@ class ProjectTask(models.Model):
sale_line_id = fields.Many2one(
'sale.order.line', 'Sales Order Item', domain="[('is_service', '=', True), ('order_partner_id', 'child_of', commercial_partner_id), ('is_expense', '=', False), ('state', 'in', ['sale', 'done']), ('order_id', '=?', project_sale_order_id)]",
compute='_compute_sale_line', store=True, readonly=False, copy=False,
- help="Sales order item to which the task is linked. If an employee timesheets on a this task, "
- "and if this employee is not in the 'Employee/Sales Order Item Mapping' of the project, the "
- "timesheet entry will be linked to this sales order item.")
- project_sale_order_id = fields.Many2one('sale.order', string="project's sale order", related='project_id.sale_order_id')
+ help="Sales order item to which the project is linked. Link the timesheet entry to the sales order item defined on the project. "
+ "Only applies on tasks without sale order item defined, and if the employee is not in the 'Employee/Sales Order Item Mapping' of the project.")
+ project_sale_order_id = fields.Many2one('sale.order', string="Project's sale order", related='project_id.sale_order_id')
invoice_count = fields.Integer("Number of invoices", related='sale_order_id.invoice_count')
task_to_invoice = fields.Boolean("To invoice", compute='_compute_task_to_invoice', search='_search_task_to_invoice', groups='sales_team.group_sale_salesman_all_leads')