summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2016-11-24 13:52:16 +0100
committerGoffin Simon <sig@odoo.com>2016-11-28 10:39:53 +0100
commitcadb7e0bfddf90d9b97b7c45d96010759495e8d2 (patch)
tree7c0d929fd23287bb2a77a56600a0c6073b03aa46 /addons
parent043aa0b158be4fb0c97fb951bd7f4d346e0f15fc (diff)
[FIX] base: writing on is_company field
The commercial_partner_id field on "account.invoice" is a stored related field to commercial_partner_id on res.partner and this field is recomputed when changing the is_company field (by the function _commercial_partner_store_triggers). So when changing the "is_company" field, the commercial_partner_id is recomputed and a write is made on each account.invoice linked to the commercial_partner_id. To avoid access rights problem on account.invoice, the write on "is_company" must be done in SUPERUSER. opw:694687
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions