<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/sale_project/models, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] sale_timesheet: prevent multicompany issue on SOL</title>
<updated>2021-04-29T12:05:28+00:00</updated>
<author>
<name>Laurent Stukkens (LTU)</name>
<email>ltu@odoo.com</email>
</author>
<published>2021-04-23T16:06:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=2480e9593808126ade2537cc2ae40b85080ba441'/>
<id>2480e9593808126ade2537cc2ae40b85080ba441</id>
<content type='text'>
Steps to reproduce:

        - Create an SO for a prepaid service in company A and confirm it
        - Create a project and a task in company B and select the customer linked to the SO you previously created
        - Unselect company A from the multi-company widget; only display the records from company B
        - Timesheet on the task you previously created

Observed behavior:

        - The SOL set by default belongs to company A, thus generating an access right error when trying to timesheet on the task

Expected behavior:

        - The SOL set by default should belong to the same company as the task

task-2515259

closes odoo/odoo#69783

Related: odoo/enterprise#17921
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps to reproduce:

        - Create an SO for a prepaid service in company A and confirm it
        - Create a project and a task in company B and select the customer linked to the SO you previously created
        - Unselect company A from the multi-company widget; only display the records from company B
        - Timesheet on the task you previously created

Observed behavior:

        - The SOL set by default belongs to company A, thus generating an access right error when trying to timesheet on the task

Expected behavior:

        - The SOL set by default should belong to the same company as the task

task-2515259

closes odoo/odoo#69783

Related: odoo/enterprise#17921
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_timesheet: speed up computing is_service on installation</title>
<updated>2021-04-14T15:34:50+00:00</updated>
<author>
<name>Ivan Yelizariev</name>
<email>iel@odoo.com</email>
</author>
<published>2021-03-26T13:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f66fc7b9c410e60ab08ccb3882d39631e4d1eccc'/>
<id>f66fc7b9c410e60ab08ccb3882d39631e4d1eccc</id>
<content type='text'>
on large database module installation may be aborted because of timeout error.

---

opw-2475335

closes odoo/odoo#69260

X-original-commit: 982ac9f5df2bd0e41b39f9be42a42dab4fe8153c
Signed-off-by: Adrian Torres (adt) &lt;adt@odoo.com&gt;
Signed-off-by: Ivan Yelizariev // IEL &lt;yelizariev@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
on large database module installation may be aborted because of timeout error.

---

opw-2475335

closes odoo/odoo#69260

X-original-commit: 982ac9f5df2bd0e41b39f9be42a42dab4fe8153c
Signed-off-by: Adrian Torres (adt) &lt;adt@odoo.com&gt;
Signed-off-by: Ivan Yelizariev // IEL &lt;yelizariev@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_project: clearer error message</title>
<updated>2021-03-17T15:17:19+00:00</updated>
<author>
<name>Florent de Labarre</name>
<email>florent.mirieu@gmail.com</email>
</author>
<published>2021-03-17T14:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=8db6e654a50d38001c42247b33392aad90cab821'/>
<id>8db6e654a50d38001c42247b33392aad90cab821</id>
<content type='text'>
The error message raised when linking a wrong SOline and a task used
unclear/incomplete information.

This commit improves the displayed message, replacing:
* the SO id by the SO reference, since record ids are not really useful to
    end users.
* the product name by its display name, to include variants details.

closes odoo/odoo#64673

Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error message raised when linking a wrong SOline and a task used
unclear/incomplete information.

This commit improves the displayed message, replacing:
* the SO id by the SO reference, since record ids are not really useful to
    end users.
* the product name by its display name, to include variants details.

closes odoo/odoo#64673

Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_project: get only sales order for sale_order_id in project</title>
<updated>2021-02-24T13:04:59+00:00</updated>
<author>
<name>Xavier BOL (xbo)</name>
<email>xbo@odoo.com</email>
</author>
<published>2021-02-23T15:51:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1ced9aaf7a3d6d345fe5bd05269af978c8c86ee3'/>
<id>1ced9aaf7a3d6d345fe5bd05269af978c8c86ee3</id>
<content type='text'>
Before this commit, the user can select a sales order which is always a
quotation and he cannot select a sales order line because the state of
the sales order is not equal to 'sale' or 'done'.

This commit adds ('state', 'in' ['sale', 'done']) in the domain of the
sale_order_id field in project.project model.

closes odoo/odoo#66756

Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, the user can select a sales order which is always a
quotation and he cannot select a sales order line because the state of
the sales order is not equal to 'sale' or 'done'.

This commit adds ('state', 'in' ['sale', 'done']) in the domain of the
sale_order_id field in project.project model.

closes odoo/odoo#66756

Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_project: use correct variable on validation</title>
<updated>2021-01-15T16:39:13+00:00</updated>
<author>
<name>Swapnesh Shah</name>
<email>swapneshshah111@gmail.com</email>
</author>
<published>2021-01-09T18:36:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9ffd6a62366ce75d125bcab8e1858a05b7c34c74'/>
<id>9ffd6a62366ce75d125bcab8e1858a05b7c34c74</id>
<content type='text'>
`product_name` is correct variable name.

Followup on https://github.com/odoo/odoo/blame/755bdbeb04a769bf1fcf9157f74d6a5deb4ad48d/addons/sale_project/models/project.py#L68

Fixes #64097

closes odoo/odoo#64296

Signed-off-by: Martin Trigaux (mat) &lt;mat@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`product_name` is correct variable name.

Followup on https://github.com/odoo/odoo/blame/755bdbeb04a769bf1fcf9157f74d6a5deb4ad48d/addons/sale_project/models/project.py#L68

Fixes #64097

closes odoo/odoo#64296

Signed-off-by: Martin Trigaux (mat) &lt;mat@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_project: Display SO with services only</title>
<updated>2020-12-21T14:35:20+00:00</updated>
<author>
<name>Yannick Tivisse</name>
<email>yti@odoo.com</email>
</author>
<published>2020-12-15T13:24:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=83c0f908d1e5c025311f264d103d868149485bf1'/>
<id>83c0f908d1e5c025311f264d103d868149485bf1</id>
<content type='text'>
Purpose
=======

On the project form view, only propose SO with the related customer
+ SO on which there is at least one line with a service product.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Purpose
=======

On the project form view, only propose SO with the related customer
+ SO on which there is at least one line with a service product.
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] sale_project,sale_timesheet: set the last SOL of customer</title>
<updated>2020-12-21T14:35:20+00:00</updated>
<author>
<name>Xavier BOL (xbo)</name>
<email>xbo@odoo.com</email>
</author>
<published>2020-12-10T07:01:38+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=c4331560668f1eb56852a712e502ece78701d3fe'/>
<id>c4331560668f1eb56852a712e502ece78701d3fe</id>
<content type='text'>
When the customer is set in the task form, we apply the compute, if the
compute doesn't find a SOL, then we search the last SOL of this customer
set and whose remaining hours &gt; 0 to give this SOL to the current task.

task-2409761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the customer is set in the task form, we apply the compute, if the
compute doesn't find a SOL, then we search the last SOL of this customer
set and whose remaining hours &gt; 0 to give this SOL to the current task.

task-2409761
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] project_sale: prevent invalid SOL on project</title>
<updated>2020-12-21T14:17:08+00:00</updated>
<author>
<name>Laurent Stukkens (LTU)</name>
<email>ltu@odoo.com</email>
</author>
<published>2020-12-07T15:09:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=9c01e06f06cff8e237392cfde7bb9670b5d5259e'/>
<id>9c01e06f06cff8e237392cfde7bb9670b5d5259e</id>
<content type='text'>
Prior to this commit:

    - The user could set a SOL which product was not of 'service' type.

After this commit:

    - The user will no more be able to set a SOL which product is not
      of 'service' type.

task-2409761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this commit:

    - The user could set a SOL which product was not of 'service' type.

After this commit:

    - The user will no more be able to set a SOL which product is not
      of 'service' type.

task-2409761
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] sale_project: only recompute planned_hours for service product</title>
<updated>2020-12-21T14:17:08+00:00</updated>
<author>
<name>Laurent Stukkens (LTU)</name>
<email>ltu@odoo.com</email>
</author>
<published>2020-12-02T15:24:06+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=8052da9602437c8de03bd7f675b7086500fcdb10'/>
<id>8052da9602437c8de03bd7f675b7086500fcdb10</id>
<content type='text'>
task-2409761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
task-2409761
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_project: fix usage of unavailable field "is_fsm"</title>
<updated>2020-12-11T15:08:51+00:00</updated>
<author>
<name>Qiuyu (QHO)</name>
<email>qho@odoo.com</email>
</author>
<published>2020-12-08T13:53:09+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=36c3fb0e1d16f5cce21e3edcb01ee8a39a35caa8'/>
<id>36c3fb0e1d16f5cce21e3edcb01ee8a39a35caa8</id>
<content type='text'>
Step to reproduce:
1. Install module "sale_project"
2. In Project &gt; Configuration &gt; Settings, turn on "Recurring Tasks"
3. Create a recurrent task
4. Set the "next_recurrence_date" for the recurrence ahead of today
5. Run scheduled action " Project: Create Recurring Tasks"
=&gt; error: 'project.task' object has no attribute 'is_fsm'

Reason:
"is_fsm" is defined in the module "industry_fsm" and the module "sale_project" does not depend on that module.

opw-2412370

closes odoo/odoo#63027

Related: odoo/enterprise#15272
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Step to reproduce:
1. Install module "sale_project"
2. In Project &gt; Configuration &gt; Settings, turn on "Recurring Tasks"
3. Create a recurrent task
4. Set the "next_recurrence_date" for the recurrence ahead of today
5. Run scheduled action " Project: Create Recurring Tasks"
=&gt; error: 'project.task' object has no attribute 'is_fsm'

Reason:
"is_fsm" is defined in the module "industry_fsm" and the module "sale_project" does not depend on that module.

opw-2412370

closes odoo/odoo#63027

Related: odoo/enterprise#15272
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
