Skip to content
Snippets Groups Projects
Commit 2b5ad684 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[add] rejected payments

parent 31516912
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
"security/security_rules.xml",
"security/ir.model.access.csv",
"views/account_invoice.xml",
"views/account_move.xml",
"views/account_payment_term.xml",
"views/account_payment_order.xml",
"views/account_payment_line.xml",
......
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Copyright 2020 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<!-- Tree View -->
<record id="scop_account_move_tree" model="ir.ui.view">
<field name="name">scop.account.move.tree</field>
<field name="model">account.move</field>
<field name="arch" type="xml">
<tree decoration-info="state == 'draft'" string="Pièces comptables" create="0" edit="0">
<field name="date"/>
<field name="name"/>
<field name="partner_id"/>
<field name="ref"/>
<field name="journal_id"/>
<field name="amount" sum="Total Amount"/>
<field name="reverse_date"/>
<field name="reverse_entry_id"/>
<button name="%(account.action_view_account_move_reversal)d" type="action"
string="Rejeter (extourne)" class="btn-outline-danger btn-sm"
attrs="{'invisible': [('reverse_entry_id', '!=', False), ('state', '=', 'posted')]}"/>
<field name="state"/>
<field name="currency_id" invisible="1"/>
</tree>
</field>
</record>
<!-- Search View -->
<record id="scop_account_move_search" model="ir.ui.view">
<field name="name">scop.account.move.search</field>
<field name="model">account.move</field>
<field name="arch" type="xml">
<search string="Pièces comptables">
<field name="partner_id" string="Adhérent"/>
<field name="ref" string="Référence"/>
<field name="name"/>
<filter name="rejected" domain="[('reverse_entry_id', '!=', False)]" string="Rejetés"/>
<filter name="not_rejected" domain="[('reverse_entry_id', '=', False)]" string="En cours"/>
</search>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
......@@ -17,6 +17,13 @@
string="Modifier les lignes de paiement"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
</xpath>
<xpath expr="//field[@name='description']" position="after">
<button name="view_account_move"
type="object"
string="Gérer les rejets de prélèvement"
class="btn-info"
attrs="{'invisible': [('state', 'not in', ('uploaded', 'done'))]}"/>
</xpath>
<xpath expr="//notebook" position="inside">
<page name="attachments" string="Fichiers de prélèvements">
<field name="attachment_ids">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment