Skip to content

Commit

Permalink
[IMP] account_due_list: reconcile accounts domain and filter by defau…
Browse files Browse the repository at this point in the history
…lt for payable and receivable accounts

[IMP] account_due_list: reconcile accounts domain and filter by default for payable and receivable accounts
  • Loading branch information
carolinafernandez-tecnativa committed Sep 14, 2023
1 parent d3abba0 commit 14028f7
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
12 changes: 12 additions & 0 deletions account_due_list/i18n/account_due_list.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-12 13:55+0000\n"
"PO-Revision-Date: 2023-09-12 13:55+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -48,6 +50,11 @@ msgstr ""
msgid "Group By"
msgstr ""

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Incoming"
msgstr ""

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_tree
Expand All @@ -74,6 +81,11 @@ msgstr ""
msgid "Not Full Reconciled"
msgstr ""

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Outgoing"
msgstr ""

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Overdue"
Expand Down
10 changes: 10 additions & 0 deletions account_due_list/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ msgstr "Apunte contable"
msgid "Not Full Reconciled"
msgstr "No conciliado completamente"

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Incoming"
msgstr "A recibir"

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Outgoing"
msgstr "A dar salida"

#. module: account_due_list
#: model_terms:ir.ui.view,arch_db:account_due_list.view_payments_filter
msgid "Overdue"
Expand Down
1 change: 1 addition & 0 deletions account_due_list/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Pedro M. Baeza
* Carlos Dauden
* Luis Daniel Lafaurie
* Carolina Fernandez

* Jordi Ballester <jordi.ballester@forgeflow.com> (Odoo v9 port)
* Maxime Chambreuil <mchambreuil@ursainfosystems.com>
Expand Down
2 changes: 1 addition & 1 deletion account_due_list/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module adds a pending payments due list. The list contains every
expected payment that has been generated by invoices. The list is fully filterable.
expected payment that has been generated by reconcilable accounts. The list is fully filterable.
1 change: 1 addition & 0 deletions account_due_list/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Pedro M. Baeza</li>
<li>Carlos Dauden</li>
<li>Luis Daniel Lafaurie</li>
<li>Carolina Fernandez</li>
</ul>
</blockquote>
</li>
Expand Down
9 changes: 5 additions & 4 deletions account_due_list/views/payment_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--****************************** PAYMENTS ***********************************-->
<!-- PAYMENTS -->
<record id="view_payments_tree" model="ir.ui.view">
<field name="name">Payments</field>
<field name="model">account.move.line</field>
Expand Down Expand Up @@ -106,6 +106,8 @@
domain="[('account_id.internal_type','=','payable')]"
name="payable"
/>
<filter string="Incoming" domain="[('debit','>',0)]" name="incoming" />
<filter string="Outgoing" domain="[('credit','>',0)]" name="outgoing" />
<separator />
<filter
name="unreconciled"
Expand Down Expand Up @@ -231,8 +233,7 @@
<field name="view_mode">tree,form,pivot,graph</field>
<field
name="context"
>{'search_default_posted_moves': 1, 'search_default_from_invoices': 1, 'search_default_not_full_reconciled': 1}</field>
<field
>{'search_default_posted_moves': 1, 'search_default_from_invoices': 1, 'search_default_not_full_reconciled': 1}</field> <field
name="view_ids"
eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_payments_tree')}),
Expand All @@ -242,7 +243,7 @@
<field name="search_view_id" ref="view_payments_filter" />
<field
name="domain"
>[('account_id.internal_type', 'in', ['receivable', 'payable']), ('balance', '!=', 0)]</field>
>[('account_id.reconcile', '=', True), ('balance', '!=', 0)]</field>
</record>
<menuitem
name="Payments and due list"
Expand Down

0 comments on commit 14028f7

Please sign in to comment.