This commit is contained in:
gsinghpal
2026-04-04 15:37:16 -04:00
parent c66bdf5089
commit 3cc93b8783
36 changed files with 3278 additions and 548 deletions

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_payment_form_inherit_poynt_settlement" model="ir.ui.view">
<field name="name">account.payment.form.inherit.poynt.settlement</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_view_poynt_settlement" type="object"
class="oe_stat_button" icon="fa-credit-card"
invisible="poynt_settlement_count == 0">
<field name="poynt_settlement_count" string="Settlement" widget="statinfo"/>
</button>
</xpath>
</field>
</record>
</odoo>

View File

@@ -40,19 +40,27 @@
<button name="action_match_deposit" type="object"
string="Match Bank Deposit" class="btn-primary"
invisible="state != 'draft' or not line_ids"/>
<button name="action_match_customers" type="object"
string="Match Customers" class="btn-secondary"
<button name="action_match_existing_payments" type="object"
string="Match Existing Payments" class="btn-secondary"
invisible="state not in ('draft', 'matched')"/>
<button name="action_create_payments" type="object"
string="Create Payments" class="btn-primary"
invisible="state not in ('matched',)"
confirm="This will create customer payment records for all matched lines. Continue?"/>
<button name="action_reset_to_draft" type="object"
string="Reset to Draft" class="btn-secondary"
invisible="state in ('draft', 'reconciled')"/>
<field name="state" widget="statusbar" statusbar_visible="draft,matched,reconciled"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_view_payments" type="object"
class="oe_stat_button" icon="fa-money"
invisible="payment_count == 0">
<field name="payment_count" string="Payments" widget="statinfo"/>
</button>
<button name="action_view_invoices" type="object"
class="oe_stat_button" icon="fa-pencil-square-o"
invisible="invoice_count == 0">
<field name="invoice_count" string="Invoices" widget="statinfo"/>
</button>
</div>
<div class="oe_title">
<h1>
<field name="name" readonly="1"/>
@@ -83,8 +91,8 @@
<page string="Transaction Lines" name="lines">
<field name="line_ids">
<list editable="bottom"
decoration-success="state == 'paid'"
decoration-warning="state == 'matched'"
decoration-success="state == 'matched'"
decoration-muted="state == 'no_match'"
decoration-danger="state == 'error'">
<field name="transaction_date"/>
<field name="action"/>
@@ -93,12 +101,12 @@
<field name="card_last4"/>
<field name="card_holder_name"/>
<field name="partner_id"/>
<field name="invoice_id"/>
<field name="payment_id"/>
<field name="existing_payment_id" string="Staff Payment"/>
<field name="existing_invoice_id" string="Invoice"/>
<field name="match_method"/>
<field name="state" widget="badge"
decoration-success="state == 'paid'"
decoration-warning="state == 'matched'"
decoration-success="state == 'matched'"
decoration-muted="state == 'no_match'"
decoration-danger="state == 'error'"/>
<field name="currency_id" column_invisible="1"/>
</list>
@@ -158,7 +166,7 @@
<field name="name">poynt.settlement.line.list</field>
<field name="model">poynt.settlement.line</field>
<field name="arch" type="xml">
<list decoration-success="state == 'paid'" decoration-warning="state == 'matched'" decoration-danger="state == 'error'">
<list decoration-success="state == 'matched'" decoration-muted="state == 'no_match'" decoration-danger="state == 'error'">
<field name="batch_id"/>
<field name="transaction_date"/>
<field name="action"/>
@@ -167,12 +175,12 @@
<field name="card_last4"/>
<field name="card_holder_name"/>
<field name="partner_id"/>
<field name="invoice_id"/>
<field name="payment_id"/>
<field name="existing_payment_id" string="Staff Payment"/>
<field name="existing_invoice_id" string="Invoice"/>
<field name="match_method"/>
<field name="state" widget="badge"
decoration-success="state == 'paid'"
decoration-warning="state == 'matched'"
decoration-success="state == 'matched'"
decoration-muted="state == 'no_match'"
decoration-danger="state == 'error'"/>
</list>
</field>
@@ -188,9 +196,9 @@
<field name="card_last4"/>
<field name="partner_id"/>
<field name="poynt_transaction_id"/>
<filter name="filter_unmatched" string="Unmatched" domain="[('partner_id', '=', False), ('action', '=', 'SALE')]"/>
<filter name="filter_matched" string="Matched" domain="[('state', '=', 'matched')]"/>
<filter name="filter_paid" string="Paid" domain="[('state', '=', 'paid')]"/>
<filter name="filter_unmatched" string="No Payment Found" domain="[('state', '=', 'no_match')]"/>
<filter name="filter_matched" string="Matched to Payment" domain="[('state', '=', 'matched')]"/>
<filter name="filter_fetched" string="Pending Match" domain="[('state', '=', 'fetched')]"/>
<filter name="filter_errors" string="Errors" domain="[('state', '=', 'error')]"/>
<separator/>
<filter name="group_batch" string="Batch" context="{'group_by': 'batch_id'}" domain="[]"/>