Files
Odoo-Modules/fusion_poynt/views/sale_order_views.xml
gsinghpal 14fe9ab716 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
2026-02-25 23:33:23 -05:00

24 lines
920 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_order_form_poynt_button" model="ir.ui.view">
<field name="name">sale.order.form.poynt.button</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="priority">60</field>
<field name="arch" type="xml">
<xpath expr="//button[@id='create_invoice']" position="after">
<button name="action_poynt_collect_payment"
string="Collect Payment"
type="object"
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>
</record>
</odoo>