Skip to content
Snippets Groups Projects
Commit 7314d3b8 authored by Ivan Yelizariev's avatar Ivan Yelizariev
Browse files

[FIX] website_sale: prevent changing name when invoiced are issued

/my/account controller blocks name/vat/company_name updating if there are issued invoices.

However Before this commit, user can change name via /shop/address page

STEPS

1/ install sales, eCommerce,inventory,Accounting
2/ create a sales order from the portal page, validate and create an invoice from SO and post it
3/ Try to change the name from the Portal > Account
Result - not possible = correct
4/ Place a new SO by the same portal user and edit the name on the address before proceeding to checkout

[1]: https://github.com/odoo/odoo/blob/1f49528a4b198e8912beb33be921d2855c694e2e/addons/account/controllers/portal.py#L111-L113



opw-2848251

closes odoo/odoo#97686

Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
parent 98f6c247
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment