diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 869762d66b1..a4116f51861 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -1074,7 +1074,7 @@ Update your business card, phone book, social media,... Send an email right now
res['closing']['today'] += 1
if date_deadline >= date.today() and date_deadline <= date.today() + timedelta(days=7):
res['closing']['next_7_days'] += 1
- if date_deadline < date.today():
+ if date_deadline < date.today() and not opp['date_closed']:
res['closing']['overdue'] += 1
# Next activities
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index 05db9db4862..b4c240d74bb 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -577,6 +577,9 @@
+
diff --git a/addons/l10n_fr_certification/models/account.py b/addons/l10n_fr_certification/models/account.py
index bef0880d7ca..07d5fc04e41 100644
--- a/addons/l10n_fr_certification/models/account.py
+++ b/addons/l10n_fr_certification/models/account.py
@@ -10,7 +10,7 @@ ERR_MSG = _("According to the french law, you cannot modify a %s in order for it
#forbidden fields
MOVE_FIELDS = ['date', 'journal_id', 'company_id']
-LINE_FIELDS = ['debit', 'credit', 'account_id', 'move_id', 'partner_id']
+LINE_FIELDS = ['debit', 'credit', 'account_id', 'partner_id']
class AccountMove(models.Model):
@@ -55,7 +55,8 @@ class AccountMove(models.Model):
for line in move.line_ids:
for field in LINE_FIELDS:
- values[field] = _getattrstring(line, field)
+ k = 'line_%d_%s' % (line.id, field)
+ values[k] = _getattrstring(line, field)
#make the json serialization canonical
# (https://tools.ietf.org/html/draft-staykov-hu-json-canonical-form-00)
move.l10n_fr_string_to_hash = dumps(values, sort_keys=True, encoding="utf-8",
diff --git a/addons/sales_team/static/src/js/sales_team_dashboard.js b/addons/sales_team/static/src/js/sales_team_dashboard.js
index 220c3896820..20fda227387 100644
--- a/addons/sales_team/static/src/js/sales_team_dashboard.js
+++ b/addons/sales_team/static/src/js/sales_team_dashboard.js
@@ -65,6 +65,8 @@ var SalesTeamDashboardView = KanbanView.extend({
} else if (action_name === 'crm.action_your_pipeline') {
if (action_extra === 'overdue') {
additional_context['search_default_overdue'] = 1;
+ } else if (action_extra === 'overdue_opp') {
+ additional_context['search_default_overdue_opp'] = 1;
}
} else if (action_name === 'crm.crm_opportunity_report_action_graph') {
additional_context.search_default_won = 1;
diff --git a/addons/sales_team/static/src/xml/sales_team_dashboard.xml b/addons/sales_team/static/src/xml/sales_team_dashboard.xml
index f17364a1f24..a0092222f9b 100644
--- a/addons/sales_team/static/src/xml/sales_team_dashboard.xml
+++ b/addons/sales_team/static/src/xml/sales_team_dashboard.xml
@@ -84,7 +84,7 @@
-
+
exp. closing
|