first commit
This commit is contained in:
19
modules/account_payment_stripe/view/account_form.xml
Normal file
19
modules/account_payment_stripe/view/account_form.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="name"/>
|
||||
<field name="name" colspan="3"/>
|
||||
<label name="secret_key"/>
|
||||
<field name="secret_key" colspan="3"/>
|
||||
<label name="publishable_key"/>
|
||||
<field name="publishable_key" colspan="3"/>
|
||||
<label name="webhook_endpoint"/>
|
||||
<field name="webhook_endpoint" colspan="2"/>
|
||||
<button name="new_identifier"/>
|
||||
<label name="webhook_signing_secret"/>
|
||||
<field name="webhook_signing_secret" colspan="3"/>
|
||||
|
||||
<label name="setup_intent_delay"/>
|
||||
<field name="setup_intent_delay" colspan="3"/>
|
||||
</form>
|
||||
6
modules/account_payment_stripe/view/account_list.xml
Normal file
6
modules/account_payment_stripe/view/account_list.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="name" expand="1"/>
|
||||
</tree>
|
||||
29
modules/account_payment_stripe/view/customer_form.xml
Normal file
29
modules/account_payment_stripe/view/customer_form.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="party"/>
|
||||
<field name="party"/>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
<label name="stripe_account"/>
|
||||
<field name="stripe_account"/>
|
||||
<newline/>
|
||||
<label name="stripe_customer_id"/>
|
||||
<field name="stripe_customer_id"/>
|
||||
<group id="buttons" col="-1" colspan="4">
|
||||
<button name="stripe_checkout"/>
|
||||
<button name="stripe_update"/>
|
||||
<button name="detach_source"/>
|
||||
<button name="find_identical"/>
|
||||
</group>
|
||||
<label name="stripe_error_message"/>
|
||||
<field name="stripe_error_message"/>
|
||||
<newline/>
|
||||
<label name="stripe_error_code"/>
|
||||
<field name="stripe_error_code"/>
|
||||
<label name="stripe_error_param"/>
|
||||
<field name="stripe_error_param"/>
|
||||
|
||||
<field name="identical_customers" colspan="4"/>
|
||||
</form>
|
||||
11
modules/account_payment_stripe/view/customer_list.xml
Normal file
11
modules/account_payment_stripe/view/customer_list.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="party" expand="2"/>
|
||||
<field name="stripe_account" expand="1"/>
|
||||
<field name="stripe_customer_id"/>
|
||||
<field name="stripe_token"/>
|
||||
<button name="stripe_checkout"/>
|
||||
<button name="stripe_update" multiple="1"/>
|
||||
</tree>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form col="2">
|
||||
<label name="customer"/>
|
||||
<field name="customer"/>
|
||||
<label name="source"/>
|
||||
<field name="source"/>
|
||||
</form>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='currency']" position="after">
|
||||
<label name="stripe_customer" string="Customer:"/>
|
||||
<field name="stripe_customer" colspan="3"/>
|
||||
|
||||
<label name="stripe_customer_source_selection" string="Source:"/>
|
||||
<field name="stripe_customer_source_selection" colspan="3"/>
|
||||
|
||||
<label name="stripe_customer_payment_method_selection" string="Payment Method:"/>
|
||||
<field name="stripe_customer_payment_method_selection" colspan="3"/>
|
||||
|
||||
<field name="stripe_customer_source" colspan="4" invisible="1"/>
|
||||
<field name="stripe_customer_payment_method" colspan="4" invisible="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
54
modules/account_payment_stripe/view/payment_form.xml
Normal file
54
modules/account_payment_stripe/view/payment_form.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//group[@id='buttons']" position="inside">
|
||||
<button name="stripe_checkout"/>
|
||||
<button name="stripe_do_capture"/>
|
||||
<button name="stripe_do_pull"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@id='payment']" position="after">
|
||||
<page id="stripe" string="Stripe" col="6">
|
||||
<label name="stripe_charge_id" string="Charge ID:"/>
|
||||
<field name="stripe_charge_id" colspan="5"/>
|
||||
|
||||
<label name="stripe_customer" string="Customer:"/>
|
||||
<field name="stripe_customer" colspan="5"/>
|
||||
|
||||
<field name="stripe_customer_source" colspan="6" invisible="1"/>
|
||||
<label name="stripe_customer_source_selection" string="Source:"/>
|
||||
<field name="stripe_customer_source_selection" colspan="5"/>
|
||||
|
||||
<field name="stripe_customer_payment_method" colspan="6" invisible="1"/>
|
||||
<label name="stripe_customer_payment_method_selection" string="Payment Method:"/>
|
||||
<field name="stripe_customer_payment_method_selection" colspan="5"/>
|
||||
|
||||
<label name="stripe_token" string="Token:"/>
|
||||
<field name="stripe_token" colspan="5"/>
|
||||
|
||||
<label name="stripe_payment_intent_id" string="Payment Intent:"/>
|
||||
<field name="stripe_payment_intent_id" colspan="5"/>
|
||||
|
||||
<label name="stripe_capture" string="Capture:"/>
|
||||
<field name="stripe_capture"/>
|
||||
<label name="stripe_capturable" string="Capturable:"/>
|
||||
<field name="stripe_capturable"/>
|
||||
<label name="stripe_chargeable" string="Chargeable:"/>
|
||||
<field name="stripe_chargeable"/>
|
||||
|
||||
<label name="stripe_error_message"/>
|
||||
<field name="stripe_error_message"/>
|
||||
<label name="stripe_error_code"/>
|
||||
<field name="stripe_error_code"/>
|
||||
<label name="stripe_error_param"/>
|
||||
<field name="stripe_error_param"/>
|
||||
|
||||
<label name="stripe_dispute_status"/>
|
||||
<field name="stripe_dispute_status"/>
|
||||
<label name="stripe_dispute_reason"/>
|
||||
<field name="stripe_dispute_reason"/>
|
||||
|
||||
<field name="stripe_refunds" colspan="6"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
||||
11
modules/account_payment_stripe/view/payment_journal_form.xml
Normal file
11
modules/account_payment_stripe/view/payment_journal_form.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='process_method']" position="after">
|
||||
<separator name="stripe_account" string="Stripe" colspan="4"/>
|
||||
<label name="stripe_account"/>
|
||||
<field name="stripe_account"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
9
modules/account_payment_stripe/view/payment_list.xml
Normal file
9
modules/account_payment_stripe/view/payment_list.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/tree/button[@name='approve']" position="after">
|
||||
<button name="stripe_checkout"/>
|
||||
<button name="stripe_do_capture" multiple="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
36
modules/account_payment_stripe/view/refund_form.xml
Normal file
36
modules/account_payment_stripe/view/refund_form.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="payment"/>
|
||||
<field name="payment" colspan="3"/>
|
||||
|
||||
<label name="amount"/>
|
||||
<field name="amount"/>
|
||||
<label name="reason"/>
|
||||
<field name="reason"/>
|
||||
|
||||
<label name="stripe_refund_id"/>
|
||||
<field name="stripe_refund_id" colspan="3"/>
|
||||
|
||||
<label name="stripe_error_message"/>
|
||||
<field name="stripe_error_message" colspan="3"/>
|
||||
|
||||
<label name="stripe_error_code"/>
|
||||
<field name="stripe_error_code"/>
|
||||
<label name="stripe_error_param"/>
|
||||
<field name="stripe_error_param"/>
|
||||
|
||||
<label name="submitted_by"/>
|
||||
<field name="submitted_by"/>
|
||||
<label name="approved_by"/>
|
||||
<field name="approved_by"/>
|
||||
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
<group col="-1" colspan="2" id="buttons">
|
||||
<button name="draft"/>
|
||||
<button name="submit"/>
|
||||
<button name="approve"/>
|
||||
</group>
|
||||
</form>
|
||||
11
modules/account_payment_stripe/view/refund_list.xml
Normal file
11
modules/account_payment_stripe/view/refund_list.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="payment" expand="1"/>
|
||||
<field name="amount" expand="2"/>
|
||||
<field name="reason" expand="1"/>
|
||||
<field name="state"/>
|
||||
<button name="submit" multiple="1"/>
|
||||
<button name="approve" multiple="1"/>
|
||||
</tree>
|
||||
Reference in New Issue
Block a user