[FIX] point_of_sale: more info of partner
When you are eon the details form of partner in POS UI, you have a button 'More Info' that redirect you to the backend partner form. This button is always displayed and can lead to a traceback if you are clikcing on it while creating a new partner. To avoid such issues, we are only display the button when we are editing existing partners closes odoo/odoo#92967 Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
committed by
Pierre Masereel
parent
bc37c41da9
commit
5cb0bf528c
@@ -22,7 +22,7 @@
|
||||
<t t-if="!env.isMobile"> Discard</t>
|
||||
</div>
|
||||
<div class="top-right-buttons">
|
||||
<div t-if="state.detailIsShown" class="button more-info">
|
||||
<div t-if="state.detailIsShown && state.editModeProps.partner.id" class="button more-info">
|
||||
<a t-att-href="partnerLink" target="_blank"> More info</a>
|
||||
</div>
|
||||
<div class="search-bar-container sb-partner" t-if="!state.detailIsShown">
|
||||
|
||||
Reference in New Issue
Block a user