diff options
| author | Olivier Dony <odo@openerp.com> | 2016-05-05 03:52:31 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2016-05-05 03:52:47 +0200 |
| commit | c8dc4c8daf8a3a2f8e52448c164a30d3cbeb524c (patch) | |
| tree | 1a7c587ada94bdd896bc082189d88ab2d29473ed | |
| parent | 9ac9869a57710a5060af5eddbda12c7abec92ace (diff) | |
| parent | a0484cbe45abb5dc393d3229ee1c6d24a4dfae23 (diff) | |
[MERGE] Forward-port 7.0 up to a0484cbe45abb5dc393d3229ee1c6d24a4dfae23
| -rw-r--r-- | addons/account/partner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/account/partner.py b/addons/account/partner.py index 6684222a46e..36011714cdf 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -22,6 +22,7 @@ from operator import itemgetter import time +from openerp import SUPERUSER_ID from openerp.osv import fields, osv from openerp import api @@ -317,7 +318,8 @@ class res_partner(osv.osv): return False def mark_as_reconciled(self, cr, uid, ids, context=None): - return self.write(cr, uid, ids, {'last_reconciliation_date': time.strftime('%Y-%m-%d %H:%M:%S')}, context=context) + self.pool['account.move.reconcile'].check_access_rights(cr, uid, 'write') + return self.write(cr, SUPERUSER_ID, ids, {'last_reconciliation_date': time.strftime('%Y-%m-%d %H:%M:%S')}, context=context) _columns = { 'vat_subjected': fields.boolean('VAT Legal Statement', help="Check this box if the partner is subjected to the VAT. It will be used for the VAT legal statement."), |
