[IMP] account: add return value

This allows the method to be called in RPC
The nil extension has not been enabled as explained at odoo/odoo#12289

closes odoo/odoo#55374

Cla: signature for parveenjangra290
X-original-commit: abac62f35c8cd293143e01c137c79519897eb21c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Parveen
2020-08-04 08:20:15 +00:00
committed by Martin Trigaux
parent 721f38b11d
commit c653afc81e
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -2370,6 +2370,7 @@ class AccountMove(models.Model):
# Force balance check since nothing prevents another module to create an incorrect entry.
# This is performed at the very end to avoid flushing fields before the whole processing.
self._check_balanced()
return True
def _auto_compute_invoice_reference(self):
''' Hook to be overridden to set custom conditions for auto-computed invoice references.
+11
View File
@@ -0,0 +1,11 @@
India, 2020-05-27
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Parveen Kumar parveensidhar@gmail.com https://github.com/parveenjangra290