summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-07-03 16:59:56 +0000
committerRomain Derie <rde@odoo.com>2019-07-04 08:48:50 +0000
commit8b55cdd7afbdd6beec40de20061b3606d7ea421d (patch)
treef68fda837ed38c7b914377dd6c75d6944744c726 /addons/web/static/src
parentd82b897ea15b7dd5eb9bc34687d9380f25f216f7 (diff)
[FIX] account, portal, sale, website_sale: get correct company_name
This commit fixes multiple issues regarding the /shop/address and /my/account forms where both are displaying `vat` and `company_name` fields. 1. For a company's child partner, the `company_name` was empty instead of showing its company name (the name of its parent_id which is the commercial entity). 2. It was possible for a child partner to edit its `vat` (which is a field synced from parent to children, but only parent should be able to edit it as it is the commercial entity, see 4a1bc45934efd and 98b1fffd4e). 3. Company name now share the exact same condition than the vat field in order to be editable (as it should have been). It was possible to edit vat but not company name on /my/account. Steps to reproduce the bug: - Create a company contact CO with a VAT number - Create a contact C in CO with portal access - Log with C and go to the shop - In the checkout, try to edit the address details opw-2007368 closes odoo/odoo#34564 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions