diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py
index 2657b8141e5..845821925f7 100644
--- a/addons/account/models/account_payment.py
+++ b/addons/account/models/account_payment.py
@@ -494,7 +494,10 @@ class account_payment(models.Model):
move.line_ids.remove_move_reconcile()
move.button_cancel()
move.unlink()
- rec.state = 'cancelled'
+ rec.write({
+ 'state': 'cancelled',
+ 'move_name': False,
+ })
@api.multi
def unlink(self):
diff --git a/addons/document/models/ir_attachment.py b/addons/document/models/ir_attachment.py
index 2bc6aee234d..bdc4559e893 100644
--- a/addons/document/models/ir_attachment.py
+++ b/addons/document/models/ir_attachment.py
@@ -9,7 +9,7 @@ import zipfile
from odoo import api, models
_logger = logging.getLogger(__name__)
-FTYPES = ['docx', 'pptx', 'xlsx', 'opendoc', 'pdf']
+FTYPES = ['docx', 'pptx', 'xlsx', 'opendoc']
def textToString(element):
buff = u""
@@ -92,6 +92,9 @@ class IrAttachment(models.Model):
def _index_pdf(self, bin_data):
'''Index PDF documents'''
+ # extractText gives very bad results for indexing, hence we don't index PDF anymore. A
+ # better alternative is probably PDFMiner.six, but not for stable.
+ # See POC at https://github.com/odoo/odoo/pull/27568.
buf = u""
if bin_data.startswith(b'%PDF-'):
f = io.BytesIO(bin_data)
diff --git a/addons/point_of_sale/wizard/pos_details.xml b/addons/point_of_sale/wizard/pos_details.xml
index 6e1eb5f5ae3..3226f42cb11 100644
--- a/addons/point_of_sale/wizard/pos_details.xml
+++ b/addons/point_of_sale/wizard/pos_details.xml
@@ -10,7 +10,7 @@
-
+