feat: hide authorizer for rental orders, auto-set sale type
Rental orders no longer show the "Authorizer Required?" question or the Authorizer field. The sale type is automatically set to 'Rentals' when creating or confirming a rental order. Validation logic also skips authorizer checks for rental sale type. Made-with: Cursor
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-credit-card"
|
||||
invisible="state != 'posted' or payment_state not in ('not_paid', 'partial') or move_type != 'out_invoice'"
|
||||
groups="account.group_account_invoice"
|
||||
groups="fusion_poynt.group_fusion_poynt_user"
|
||||
data-hotkey="p"/>
|
||||
</xpath>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-undo"
|
||||
invisible="state != 'posted' or payment_state not in ('not_paid', 'partial') or move_type != 'out_refund' or poynt_refunded"
|
||||
groups="account.group_account_invoice"
|
||||
groups="fusion_poynt.group_fusion_poynt_user"
|
||||
data-hotkey="r"/>
|
||||
</xpath>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-envelope"
|
||||
invisible="state != 'posted' or move_type != 'out_invoice' or not has_poynt_receipt"
|
||||
groups="account.group_account_invoice"/>
|
||||
groups="fusion_poynt.group_fusion_poynt_user"/>
|
||||
</xpath>
|
||||
|
||||
<!-- Resend Receipt button on credit notes (refunded via Poynt) -->
|
||||
@@ -62,7 +62,7 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-envelope"
|
||||
invisible="state != 'posted' or move_type != 'out_refund' or not poynt_refunded"
|
||||
groups="account.group_account_invoice"/>
|
||||
groups="fusion_poynt.group_fusion_poynt_user"/>
|
||||
</xpath>
|
||||
|
||||
<!-- Refunded banner on credit notes -->
|
||||
|
||||
@@ -105,6 +105,7 @@
|
||||
name="Poynt Terminals"
|
||||
parent="account.root_payment_menu"
|
||||
action="action_poynt_terminal"
|
||||
sequence="15"/>
|
||||
sequence="15"
|
||||
groups="fusion_poynt.group_fusion_poynt_user"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
class="btn-secondary"
|
||||
icon="fa-credit-card"
|
||||
invisible="state not in ('sale', 'done')"
|
||||
groups="fusion_poynt.group_fusion_poynt_user"
|
||||
data-hotkey="p"/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user