Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/account-reconcile (16.0) #201

Merged
merged 8 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ addon | version | maintainers | summary
[account_move_reconcile_forbid_cancel](account_move_reconcile_forbid_cancel/) | 16.0.1.0.1 | | Account Move Reconcile Forbid Cancel
[account_move_so_import](account_move_so_import/) | 16.0.1.0.0 | | Journal Entry Sale Order completion
[account_reconcile_oca](account_reconcile_oca/) | 16.0.2.0.5 | [![etobella](https://github.com/etobella.png?size=30px)](https://github.com/etobella) | Reconcile addons for Odoo CE accounting
[account_statement_base](account_statement_base/) | 16.0.1.6.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Base module for Bank Statements
[account_statement_base](account_statement_base/) | 16.0.1.8.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Base module for Bank Statements
[base_transaction_id](base_transaction_id/) | 16.0.1.0.0 | | Base transaction ID for financial institutes

[//]: # (end addons)
Expand Down
2 changes: 1 addition & 1 deletion account_statement_base/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Bank Statement Base
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:add218e8a660e7290236382de939a2d192daabe58b2e4d0fb4c11033efec1e5f
!! source digest: sha256:0a5bcebe2bb116d98b92fa34701f4b7b6111a85e82b6b2ee20a27d0dc87c1685
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion account_statement_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Bank Statement Base",
"version": "16.0.1.6.0",
"version": "16.0.1.8.0",
"category": "Accounting",
"license": "LGPL-3",
"summary": "Base module for Bank Statements",
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/account_statement_base.pot
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ msgstr ""
"Plural-Forms: \n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr ""
Expand Down Expand Up @@ -60,6 +61,11 @@ msgstr ""
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr ""
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Notas"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr ""
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Notes"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr "Estratto conto bancario"
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Note"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 5.6.2\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr "Extrato Bancário"
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Notas"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr "Extrato bancário"
Expand Down Expand Up @@ -64,6 +65,11 @@ msgstr "Notas"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr "Kontoutdrag"
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Anteckningar"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
6 changes: 6 additions & 0 deletions account_statement_base/i18n/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgstr ""
"X-Generator: Weblate 4.17\n"

#. module: account_statement_base
#: model:ir.model,name:account_statement_base.model_account_bank_statement
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form
msgid "Bank Statement"
msgstr "Hesap Ektresi"
Expand Down Expand Up @@ -63,6 +64,11 @@ msgstr "Notlar"
msgid "Open Journal Entry"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree
msgid "Open Statement Lines"
msgstr ""

#. module: account_statement_base
#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search
msgid "Partner"
Expand Down
1 change: 1 addition & 0 deletions account_statement_base/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import account_journal_dashboard
from . import account_bank_statement_line
from . import account_bank_statement
15 changes: 15 additions & 0 deletions account_statement_base/models/account_bank_statement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from odoo import models


class AccountBankStatement(models.Model):
_inherit = "account.bank.statement"

def action_open_statement_lines(self):
self.ensure_one()
if not self:
return {}
action = self.env["ir.actions.act_window"]._for_xml_id(
"account_statement_base.account_bank_statement_line_action"
)
action.update({"domain": [("statement_id", "=", self.id)]})
return action
2 changes: 1 addition & 1 deletion account_statement_base/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Bank Statement Base</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:add218e8a660e7290236382de939a2d192daabe58b2e4d0fb4c11033efec1e5f
!! source digest: sha256:0a5bcebe2bb116d98b92fa34701f4b7b6111a85e82b6b2ee20a27d0dc87c1685
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-reconcile/tree/16.0/account_statement_base"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_statement_base"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<dl class="docutils">
Expand Down
19 changes: 19 additions & 0 deletions account_statement_base/views/account_bank_statement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,23 @@
<field name="view_mode">tree,form,pivot,graph</field>
</record>

<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute name="editable">bottom</attribute>
</tree>
<field name="balance_end_real" position="after">
<button
name="action_open_statement_lines"
type="object"
title="Open Statement Lines"
icon="fa-folder-open-o"
/>
</field>
</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<tree editable="top" multi_edit="1" decoration-muted="is_reconciled">
<field name="sequence" />
<field name="date" attrs="{'readonly': [('is_reconciled', '=', True)]}" />
<field name="move_id" optional="hide" />
<field name="move_id" optional="hide" required="0" />
<field
name="payment_ref"
attrs="{'readonly': [('is_reconciled', '=', True)]}"
Expand Down
Loading