Skip to content

Commit

Permalink
[FIX] crm: remove the field date_closed from demo data
Browse files Browse the repository at this point in the history
Purpose:
The purpose of this commit is to change the current behavior of days to close
graph generating from customizable desk demo data.

Specification:
For the opportunities, the day_close field is a compute field depending upon the
date_closed field. For the customizable desk demo data, the date_closed field
pre-existed, due to that customizable desk opportunity was not won or lost but
the graph report was generated.
so, this commit fixes the current behavior for customizable desk opportunity.

Task-3278039

closes odoo#120407

X-original-commit: e368725
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
  • Loading branch information
nash-odoo committed May 3, 2023
1 parent 1a1bf29 commit 3bdf3f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion addons/crm/data/crm_lead_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ Andrew</p>]]></field>
<field name="team_id" ref="sales_team.crm_team_1"/>
<field name="user_id" ref="base.user_demo"/>
<field name="stage_id" ref="crm.stage_lead3"/>
<field name="date_closed" eval="(DateTime.today() - relativedelta(months=3)).strftime('%Y-%m-%d %H:%M')"/>
<field name="campaign_id" ref="utm.utm_campaign_email_campaign_products"/>
<field name="source_id" ref="utm.utm_source_mailing"/>
<field name="medium_id" ref="utm.utm_medium_email"/>
Expand Down

0 comments on commit 3bdf3f4

Please sign in to comment.