summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/account_payment.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixco_custom/views/account_payment.xml b/fixco_custom/views/account_payment.xml
new file mode 100644
index 0000000..c291281
--- /dev/null
+++ b/fixco_custom/views/account_payment.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data>
+ <record id="inherited_payment_form_view" model="ir.ui.view">
+ <field name="name">inherited_payment_form_view</field>
+ <field name="model">account.payment</field>
+ <field name="inherit_id" ref="account.view_account_payment_form" />
+ <field name="arch" type="xml">
+ <button name="mark_as_sent" position="after">
+ <button name="auto_sync_payment" string="Sync Payment" type="object" attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('payment_method_code', '!=', 'manual')]}"/>
+ </button>
+ </field>
+ </record>
+ </data>
+</odoo>