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

16 payment order improve and cleanup rebased #7

Open
wants to merge 137 commits into
base: 16-payment_order-improve_and_cleanup
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
dc39f0c
[FIX] payment order: fix compute_partner_bank_id
luc-demeyer Nov 4, 2023
688b3f5
[FIX] account_payment_order: Restrict payment lines button to payment…
pedrobaeza Nov 14, 2023
06442e8
Merge PR #1176 into 16.0
OCA-git-bot Nov 20, 2023
2f5fd75
[BOT] post-merge updates
OCA-git-bot Nov 20, 2023
f2b050b
[FIX] account_payment_order: Always return a string in the _get_payme…
victoralmau Nov 27, 2023
4b8bb2e
Merge PR #1188 into 16.0
OCA-git-bot Nov 27, 2023
9f3f2cd
[BOT] post-merge updates
OCA-git-bot Nov 27, 2023
28428a6
[IMP] account_banking_mandate: Allow sequence to be multi-company
victoralmau Sep 19, 2023
d3eaaba
[IMP] account_banking_mandate: Allow to set a specific mandate refere…
victoralmau Sep 19, 2023
355d811
Merge PR #1190 into 16.0
OCA-git-bot Nov 30, 2023
55718af
[BOT] post-merge updates
OCA-git-bot Nov 30, 2023
ee3dc4b
Translated using Weblate (Italian)
mymage Dec 18, 2023
1faf174
Translated using Weblate (Italian)
mymage Dec 18, 2023
d77fd9a
Translated using Weblate (Italian)
mymage Dec 24, 2023
a8c9e94
[16.0][FIX]account_banking_mandate: mandate_partner_bank_form columns
Tisho99 Dec 18, 2023
33a029c
Merge PR #1198 into 16.0
OCA-git-bot Dec 27, 2023
15a97f1
[BOT] post-merge updates
OCA-git-bot Dec 27, 2023
b619dec
Translated using Weblate (Italian)
mymage Dec 27, 2023
2271360
[FIX]account_payment_purchase: return result from onchange and get pr…
GuillemCForgeFlow Jan 3, 2024
14d5138
Merge PR #1205 into 16.0
OCA-git-bot Jan 4, 2024
bd1efe6
[BOT] post-merge updates
OCA-git-bot Jan 4, 2024
0a3854e
Merge PR #1169 into 16.0
OCA-git-bot Jan 30, 2024
8ce292a
[BOT] post-merge updates
OCA-git-bot Jan 30, 2024
70c07af
[FIX] Use correct company when search for mandate_id
hugosantosred Feb 6, 2024
9065d3f
Merge PR #1214 into 16.0
OCA-git-bot Feb 8, 2024
3f30ea3
[BOT] post-merge updates
OCA-git-bot Feb 8, 2024
fd3ae9d
Translated using Weblate (Italian)
mymage Feb 13, 2024
8c17786
Translated using Weblate (Italian)
mymage Feb 16, 2024
ca9135e
[IMP] account_payment_order: No error on unknown payment method codes
pedrobaeza Feb 13, 2024
c802689
Merge PR #1222 into 16.0
OCA-git-bot Feb 18, 2024
fb5f2b3
[UPD] Update account_payment_order.pot
Feb 18, 2024
886ea34
[BOT] post-merge updates
OCA-git-bot Feb 18, 2024
ab584e0
Update translation files
weblate Feb 18, 2024
2995640
[16.0][ADD] account_payment_method_fs_storage: init
AnizR Feb 16, 2024
a4d7845
Translated using Weblate (Italian)
mymage Feb 23, 2024
96547a8
Translated using Weblate (Italian)
mymage Feb 29, 2024
9738dd9
Translated using Weblate (Italian)
mymage Feb 29, 2024
aafec53
Translated using Weblate (Italian)
mymage Mar 1, 2024
ef05873
[IMP] account_payment_order: Display a message with the archived bank…
victoralmau Feb 16, 2024
3b432be
Merge PR #1227 into 16.0
OCA-git-bot Mar 1, 2024
629aed3
[UPD] Update account_payment_order.pot
Mar 1, 2024
59792d7
[BOT] post-merge updates
OCA-git-bot Mar 1, 2024
9dc761d
Update translation files
weblate Mar 1, 2024
d1fce9b
[FIX] account_payment_order_notification: Set rec_name
gdgellatly Feb 12, 2024
862b4cd
[ADD] account_banking_mandate_contact: new module
carlosdauden Dec 9, 2022
0f71479
[MIG] account_banking_mandate_contact: Migration to 15.0
Dec 9, 2022
3fe82aa
[UPD] Update account_banking_mandate_contact.pot
Dec 12, 2022
d201f76
[UPD] README.rst
OCA-git-bot Dec 12, 2022
d0a790b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
241bc6b
[IMP] account_banking_mandate_contact: test performance improvement
josep-tecnativa Oct 16, 2023
e1d3585
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
2ed7034
[IMP] account_banking_mandate_contact: pre-commit stuff
Tisho99 Mar 6, 2024
51dbdbc
Merge PR #1221 into 16.0
OCA-git-bot Mar 7, 2024
ac169ce
[UPD] Update account_payment_method_fs_storage.pot
Mar 7, 2024
2d1f0c7
[BOT] post-merge updates
OCA-git-bot Mar 7, 2024
09ad386
Translated using Weblate (Italian)
mymage Mar 7, 2024
0c35fdc
Translated using Weblate (Italian)
mymage Mar 7, 2024
4298db0
[MIG] account_banking_mandate_contact: Migration to 16.0
Tisho99 Mar 6, 2024
fa2e8af
Merge PR #1233 into 16.0
OCA-git-bot Mar 13, 2024
3b66e9e
[BOT] post-merge updates
OCA-git-bot Mar 13, 2024
251c36b
[16.0][ADD] account_banking_mandate_sale_contact: new module
Tisho99 Mar 11, 2024
3ccdf2d
Merge PR #1238 into 16.0
OCA-git-bot Mar 19, 2024
e866c72
[UPD] Update account_banking_mandate_sale_contact.pot
Mar 19, 2024
e19f50d
[BOT] post-merge updates
OCA-git-bot Mar 19, 2024
e15455c
[16.0][FIX] account_banking_mandate_sale_contact: icon, readme, and v…
Tisho99 Mar 19, 2024
b16e1b7
Merge PR #1241 into 16.0
OCA-git-bot Mar 19, 2024
f343914
[UPD] Update account_banking_mandate_sale_contact.pot
Mar 19, 2024
bdda55c
[BOT] post-merge updates
OCA-git-bot Mar 19, 2024
d965f20
Added translation using Weblate (Spanish)
Tisho99 Mar 20, 2024
40d8826
Translated using Weblate (Spanish)
Tisho99 Mar 20, 2024
0ab7af5
[16.0][IMP] account_banking_sepa_direct_debit: Button send mandate pe…
carolinafernandez-tecnativa Mar 25, 2024
3bf5c86
Translated using Weblate (Spanish)
Ivorra78 Mar 27, 2024
14a8371
Merge PR #1244 into 16.0
OCA-git-bot Apr 1, 2024
3e0fb9f
[UPD] Update account_banking_sepa_direct_debit.pot
Apr 1, 2024
86dcd99
[BOT] post-merge updates
OCA-git-bot Apr 1, 2024
5eb3775
Update translation files
weblate Apr 1, 2024
15acca4
[IMP] account_payment_sale: Add payment mode in invoicing grouping cr…
rousseldenis Apr 3, 2024
76372db
Merge PR #1246 into 16.0
OCA-git-bot Apr 5, 2024
a15f1a5
[BOT] post-merge updates
OCA-git-bot Apr 5, 2024
97ceaed
Add account_payment_order_transfer_journal.
adrienpeiffer Sep 21, 2022
059442e
[IMP] account_payment_order_transfer_journal: pre-commit stuff
luc-demeyer Jun 29, 2023
56f905d
[MIG] account_payment_order_transfer_journal: Migration to 16.0
luc-demeyer Jun 29, 2023
8dd8e05
account_payment_order_transfer_journal - add 'general' filter on tran…
luc-demeyer Jun 29, 2023
7aebbd4
unit test
luc-demeyer Jun 29, 2023
7ea2fa3
[IMP] move transfer jpurnal setting from journal to payment mode
luc-demeyer Nov 7, 2023
15b8ec8
[IMP] add capability to set transfer journal setting on company level…
luc-demeyer Nov 7, 2023
73d8572
[IMP] integrate transfer journal option into account_payment_order
luc-demeyer Nov 7, 2023
7c7fbfa
[FIX]account_payment_order transfer journal
luc-demeyer Apr 14, 2024
522a5e9
Merge PR #1251 into 16.0
OCA-git-bot Apr 19, 2024
2f78e0b
[UPD] Update account_banking_pain_base.pot
Apr 19, 2024
84920a2
[UPD] Update account_banking_sepa_direct_debit.pot
Apr 19, 2024
f283a2f
[UPD] Update account_payment_order.pot
Apr 19, 2024
cbe580f
[BOT] post-merge updates
OCA-git-bot Apr 19, 2024
020d44e
Update translation files
weblate Apr 19, 2024
c7dbfef
Update translation files
weblate Apr 19, 2024
f3ea619
Update translation files
weblate Apr 19, 2024
d05aba7
[IMP] update payment reference on open payment order
luc-demeyer Jun 23, 2023
ec2ccf4
Merge PR #1170 into 16.0
OCA-git-bot Apr 20, 2024
7059343
[UPD] Update account_payment_order.pot
Apr 20, 2024
0a16cf7
[BOT] post-merge updates
OCA-git-bot Apr 20, 2024
521f5b8
Update translation files
weblate Apr 20, 2024
755e602
[FIX] account_payment_partner: payment mode compute
ljsalvatierra-factorlibre Mar 19, 2024
5c3d434
Merge PR #1252 into 16.0
OCA-git-bot Apr 22, 2024
760b9b0
[BOT] post-merge updates
OCA-git-bot Apr 22, 2024
194fafd
Added translation using Weblate (Spanish)
Ivorra78 Apr 22, 2024
adbf6ea
Translated using Weblate (Spanish)
Ivorra78 Apr 22, 2024
655b6e2
Translated using Weblate (Spanish)
Ivorra78 Apr 22, 2024
034b69c
Translated using Weblate (Spanish)
Ivorra78 Apr 22, 2024
fa4279d
[FIX] account_payment_method_fs_storage: Translated term
aritzolea Apr 24, 2024
206eb98
Merge PR #1254 into 16.0
OCA-git-bot Apr 24, 2024
d86a1fd
[BOT] post-merge updates
OCA-git-bot Apr 24, 2024
bff6d34
[IMP] account_payment_order: adds restriction for duplicated move lin…
ACheung-FactorLibre Sep 27, 2023
1e59380
Merge PR #1148 into 16.0
OCA-git-bot Apr 24, 2024
c979d2f
[UPD] Update account_payment_order.pot
Apr 24, 2024
82c4954
[BOT] post-merge updates
OCA-git-bot Apr 24, 2024
c34e97c
Update translation files
weblate Apr 24, 2024
2bdd3cd
[IMP] update dotfiles
OCA-git-bot May 1, 2024
a3b9d21
Added translation using Weblate (Italian)
mymage May 2, 2024
2391f39
Added translation using Weblate (Italian)
mymage May 2, 2024
e8fa37d
Added translation using Weblate (Italian)
mymage May 2, 2024
437fa9d
Added translation using Weblate (Italian)
mymage May 2, 2024
9314814
Added translation using Weblate (Italian)
mymage May 2, 2024
0dab339
Added translation using Weblate (Italian)
mymage May 3, 2024
4de8d6e
Added translation using Weblate (Italian)
mymage May 3, 2024
d1894a7
Merge PR #1215 into 16.0
OCA-git-bot May 3, 2024
34dc118
[BOT] post-merge updates
OCA-git-bot May 3, 2024
c18ee85
Translated using Weblate (Italian)
mymage May 3, 2024
22ccbbe
Translated using Weblate (Italian)
mymage May 3, 2024
3455277
Translated using Weblate (Italian)
mymage May 3, 2024
e998192
Translated using Weblate (Italian)
mymage May 3, 2024
9886d68
Translated using Weblate (Italian)
mymage May 3, 2024
dc951ed
Translated using Weblate (Italian)
mymage May 3, 2024
287ed97
[IMP] account_banking_sepa_direct_debit: increase report signature space
Tisho99 Apr 30, 2024
9c2f771
Merge PR #1264 into 16.0
OCA-git-bot May 7, 2024
e9e6ca0
[BOT] post-merge updates
OCA-git-bot May 7, 2024
4d5d9ec
Large refactoring/improvement/cleanup of OCA/bank-payment
alexis-via Nov 7, 2023
c495144
Add support for regulatory reporting in PAIN files
alexis-via May 7, 2024
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
5 changes: 4 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.17.2
_commit: v1.21.1
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
Expand All @@ -19,4 +20,6 @@ repo_description: 'TODO: add repo description.'
repo_name: bank-payment
repo_slug: bank-payment
repo_website: https://github.com/OCA/bank-payment
use_pyproject_toml: false
use_ruff: false

4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand Down
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ exclude: |
^docs/_templates/.*\.html$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# Ignore test files in addons
/tests/samples/.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
Expand All @@ -35,7 +39,7 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: 969238e47c07d0c40573acff81d170f63245d738
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand All @@ -48,6 +52,7 @@ repos:
- --org-name=OCA
- --repo-name=bank-payment
- --if-source-changed
- --keep-source-digest
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_banking_mandate](account_banking_mandate/) | 16.0.1.1.0 | | Banking mandates
[account_banking_mandate](account_banking_mandate/) | 16.0.1.2.1 | | Banking mandates
[account_banking_mandate_contact](account_banking_mandate_contact/) | 16.0.1.0.1 | | Assign specific banking mandates in contact level
[account_banking_mandate_sale](account_banking_mandate_sale/) | 16.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Adds mandates on sale orders
[account_banking_pain_base](account_banking_pain_base/) | 16.0.1.1.0 | | Base module for PAIN file generation
[account_banking_mandate_sale_contact](account_banking_mandate_sale_contact/) | 16.0.1.0.1 | [![tisho99](https://github.com/tisho99.png?size=30px)](https://github.com/tisho99) | Add a specific contact mandate to sale orders
[account_banking_pain_base](account_banking_pain_base/) | 16.0.1.2.0 | | Base module for PAIN file generation
[account_banking_sepa_credit_transfer](account_banking_sepa_credit_transfer/) | 16.0.1.1.1 | | Create SEPA XML files for Credit Transfers
[account_banking_sepa_direct_debit](account_banking_sepa_direct_debit/) | 16.0.1.1.0 | | Create SEPA files for Direct Debit
[account_banking_sepa_direct_debit](account_banking_sepa_direct_debit/) | 16.0.1.4.0 | | Create SEPA files for Direct Debit
[account_payment_method_fs_storage](account_payment_method_fs_storage/) | 16.0.1.0.2 | | Add the possibility to specify on the payment method, a storage where files generated will be pushed to upon payment
[account_payment_mode](account_payment_mode/) | 16.0.1.2.0 | | Account Payment Mode
[account_payment_order](account_payment_order/) | 16.0.1.5.0 | | Account Payment Order
[account_payment_order](account_payment_order/) | 16.0.1.9.1 | | Account Payment Order
[account_payment_order_grouped_output](account_payment_order_grouped_output/) | 16.0.1.0.2 | | Account Payment Order - Generate grouped moves
[account_payment_order_notification](account_payment_order_notification/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Account Payment Order Notification
[account_payment_partner](account_payment_partner/) | 16.0.1.2.2 | | Adds payment mode on partners and invoices
[account_payment_purchase](account_payment_purchase/) | 16.0.2.0.0 | | Adds Bank Account and Payment Mode on Purchase Orders
[account_payment_order_notification](account_payment_order_notification/) | 16.0.1.0.1 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Account Payment Order Notification
[account_payment_partner](account_payment_partner/) | 16.0.1.2.3 | | Adds payment mode on partners and invoices
[account_payment_purchase](account_payment_purchase/) | 16.0.2.0.1 | | Adds Bank Account and Payment Mode on Purchase Orders
[account_payment_purchase_stock](account_payment_purchase_stock/) | 16.0.1.0.0 | | Integrate Account Payment Purchase with Stock
[account_payment_sale](account_payment_sale/) | 16.0.1.0.0 | | Adds payment mode on sale orders
[account_payment_sale](account_payment_sale/) | 16.0.1.0.1 | | Adds payment mode on sale orders

[//]: # (end addons)

Expand Down
2 changes: 1 addition & 1 deletion account_banking_mandate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Account Banking Mandate",
"summary": "Banking mandates",
"version": "16.0.1.1.0",
"version": "16.0.1.2.1",
"development_status": "Production/Stable",
"license": "AGPL-3",
"author": "Compassion CH, "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<field name="code">account.banking.mandate</field>
<field name="prefix">BM</field>
<field name="padding" eval="7" />
<field name="company_id" eval="False" />
</record>
</odoo>
58 changes: 29 additions & 29 deletions account_banking_mandate/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: bank-payment (10.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-21 10:17+0000\n"
"PO-Revision-Date: 2023-09-22 16:39+0000\n"
"PO-Revision-Date: 2024-05-03 14:37+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-payment-10-0/"
"language/it/)\n"
Expand All @@ -26,18 +26,18 @@ msgid ""
"A Banking Mandate is a document signed by your customer that gives you the "
"autorization to do one or several operations on his bank account."
msgstr ""
"Un Mandato Bancario è un documento firmato dal cliente che autorizza a "
"Un mandato bancario è un documento firmato dal cliente che autorizza ad "
"eseguire una o più operazioni sul conto corrente."

#. module: account_banking_mandate
#: model:ir.model.constraint,message:account_banking_mandate.constraint_account_banking_mandate_mandate_ref_company_uniq
msgid "A Mandate with the same reference already exists for this company!"
msgstr "Un Mandato con le stesse referenze esiste già per questa società!"
msgstr "Un mandato con le stesse referenze esiste già per questa società!"

#. module: account_banking_mandate
#: model:ir.model,name:account_banking_mandate.model_account_banking_mandate
msgid "A generic banking mandate"
msgstr "Un Mandato bancario generico"
msgstr "Un mandato bancario generico"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_needaction
Expand All @@ -54,8 +54,8 @@ msgid ""
"Activate this option if this payment method requires your customer to sign a "
"direct debit mandate with your company."
msgstr ""
"Attiva questa opzione se questo metodo di pagamento richiede la firma di un "
"mandato di addebito diretto (SDD)."
"Attivare questa opzione se questo metodo di pagamento richiede che il "
"cliente firmi un mandato di addebito diretto (SDD) con la vostra azienda."

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__activity_ids
Expand Down Expand Up @@ -100,18 +100,18 @@ msgstr "Conto bancario"
#. module: account_banking_mandate
#: model:ir.model,name:account_banking_mandate.model_res_partner_bank
msgid "Bank Accounts"
msgstr "Conti Bancari"
msgstr "Conti bancari"

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_form
msgid "Banking Mandate"
msgstr "Mandato Bancario"
msgstr "Mandato bancario"

#. module: account_banking_mandate
#: model:ir.actions.act_window,name:account_banking_mandate.mandate_action
#: model:ir.ui.menu,name:account_banking_mandate.mandate_menu
msgid "Banking Mandates"
msgstr "Mandati Bancari"
msgstr "Mandati bancari"

#. module: account_banking_mandate
#: model:ir.model.fields,help:account_banking_mandate.field_account_setup_bank_manual_config__mandate_ids
Expand All @@ -126,7 +126,7 @@ msgstr ""
#. module: account_banking_mandate
#: model:ir.model.fields.selection,name:account_banking_mandate.selection__account_banking_mandate__format__basic
msgid "Basic Mandate"
msgstr "Mandato Basic"
msgstr "Mandato base"

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_form
Expand All @@ -147,7 +147,7 @@ msgid ""
"Cannot validate the mandate '%s' because it is not attached to a bank "
"account."
msgstr ""
"non si può validare il mandato '%s' poichè non è collegato ad un conto "
"Non si può validare il mandato '%s' poiché non è collegato ad un conto "
"bancario."

#. module: account_banking_mandate
Expand All @@ -160,7 +160,7 @@ msgstr "Non si può validare il mandato '%s' senza una data di firma."
#. module: account_banking_mandate
#: model_terms:ir.actions.act_window,help:account_banking_mandate.mandate_action
msgid "Click to create a new Banking Mandate."
msgstr "Cliccare per creare un nuovo Mandato Bancario."
msgstr "Fare clic per creare un nuovo mandato bancario."

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__company_id
Expand All @@ -185,12 +185,12 @@ msgstr "Creato il"
#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__signature_date
msgid "Date of Signature of the Mandate"
msgstr "Data di firma del Mandato"
msgstr "Data di firma del mandato"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__last_debit_date
msgid "Date of the Last Debit"
msgstr "Data dell'ultimo Addebito"
msgstr "Data dell'ultimo addebito"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_bank_statement_line__mandate_id
Expand Down Expand Up @@ -229,7 +229,7 @@ msgstr "Scaduto"
#: model:ir.model.fields,field_description:account_banking_mandate.field_res_partner__valid_mandate_id
#: model:ir.model.fields,field_description:account_banking_mandate.field_res_users__valid_mandate_id
msgid "First Valid Mandate"
msgstr "Primo Mandato Valido"
msgstr "Primo mandato valido"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_follower_ids
Expand All @@ -255,7 +255,7 @@ msgstr "Formato"
#. module: account_banking_mandate
#: model:ir.model.fields.selection,name:account_banking_mandate.selection__account_banking_mandate__type__generic
msgid "Generic Mandate"
msgstr "Mandato Generico"
msgstr "Mandato generico"

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search
Expand Down Expand Up @@ -340,28 +340,28 @@ msgstr "Formato del Mandato"
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_payment_line__mandate_required
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_payment_method__mandate_required
msgid "Mandate Required"
msgstr "Mandato Richiesto"
msgstr "Mandato richiesto"

#. module: account_banking_mandate
#. odoo-python
#: code:addons/account_banking_mandate/models/account_banking_mandate.py:0
#, python-format
msgid "Mandate should be in cancel state."
msgstr "Il Mandato dovrebbe essere in stato Cancellato."
msgstr "Il mandato dovrebbe essere in stato cancellato."

#. module: account_banking_mandate
#. odoo-python
#: code:addons/account_banking_mandate/models/account_banking_mandate.py:0
#, python-format
msgid "Mandate should be in draft or valid state."
msgstr "Il Mandato dovrebbe essere in stato Bozza o Valido."
msgstr "Il mandato dovrebbe essere in stato bozza o valido."

#. module: account_banking_mandate
#. odoo-python
#: code:addons/account_banking_mandate/models/account_banking_mandate.py:0
#, python-format
msgid "Mandate should be in draft state."
msgstr "Il Mandato dovrebbe essere in stato Bozza."
msgstr "Il mandato dovrebbe essere in stato bozza."

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.partner_view_buttons
Expand Down Expand Up @@ -419,7 +419,7 @@ msgstr "Numero di azioni"
#: model:ir.model.fields,field_description:account_banking_mandate.field_res_partner__mandate_count
#: model:ir.model.fields,field_description:account_banking_mandate.field_res_users__mandate_count
msgid "Number of Mandates"
msgstr "Numero di Mandati"
msgstr "Numero di mandati"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_has_error_counter
Expand Down Expand Up @@ -484,7 +484,7 @@ msgstr "Riferimento"
#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search
msgid "Reference or Partner"
msgstr "Riferimento o Partner"
msgstr "Riferimento o partner"

#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__payment_line_ids
Expand All @@ -504,7 +504,7 @@ msgstr "Scansione del mandato"
#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search
msgid "Search Banking Mandates"
msgstr "Ricerca dei Mandati Bancari"
msgstr "Ricerca dei mandati bancari"

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search
Expand Down Expand Up @@ -578,7 +578,7 @@ msgstr "Tipo"
#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__type
msgid "Type of Mandate"
msgstr "Tipo di Mandato"
msgstr "Tipo di mandato"

#. module: account_banking_mandate
#: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__activity_exception_decoration
Expand All @@ -588,7 +588,7 @@ msgstr ""
#. module: account_banking_mandate
#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__unique_mandate_reference
msgid "Unique Mandate Reference"
msgstr "Riferimento univoco del Mandato"
msgstr "Riferimento univoco del mandato"

#. module: account_banking_mandate
#: model:ir.model.fields.selection,name:account_banking_mandate.selection__account_banking_mandate__state__valid
Expand Down Expand Up @@ -621,17 +621,17 @@ msgid ""
"You cannot change the company of Partner Bank %s, as there exists mandates "
"referencing it that belong to another company."
msgstr ""
"Non puoi cambiare la company della banca del partner %s, poiché ci sono "
"mandati collegati che appartengono ad un altra company."
"Non puoi cambiare l'azienda della banca del partner %s, poiché ci sono "
"mandati collegati che appartengono ad un altra azienda."

#. module: account_banking_mandate
#: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_form
msgid ""
"You should set a mandate back to draft only if you cancelled it by mistake. "
"Do you want to continue?"
msgstr ""
"Dovresti reimpostare un mandato a Bozza solo se lo hai cancellato per "
"errore. Vuoi continuare?"
"Dovresti reimpostare un mandato a bozza solo se lo hai cancellato per "
"errore. vuoi continuare?"

#~ msgid "SMS Delivery error"
#~ msgstr "Errore consegna SMS"
Expand Down
6 changes: 3 additions & 3 deletions account_banking_mandate/models/account_banking_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_default_partner_bank_id_domain(self):
required=True,
default=lambda self: self.env.company,
)
unique_mandate_reference = fields.Char(tracking=10, copy=False)
unique_mandate_reference = fields.Char(tracking=10, copy=False, default="/")
signature_date = fields.Date(
string="Date of Signature of the Mandate",
tracking=50,
Expand Down Expand Up @@ -176,8 +176,8 @@ def _check_valid_state(self):
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
unique_mandate_reference = vals.get("unique_mandate_reference")
if not unique_mandate_reference or unique_mandate_reference == "New":
unique_mandate_reference = vals.get("unique_mandate_reference", "/")
if unique_mandate_reference == "/":
vals["unique_mandate_reference"] = (
self.env["ir.sequence"].next_by_code("account.banking.mandate")
or "New"
Expand Down
3 changes: 2 additions & 1 deletion account_banking_mandate/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class AccountMove(models.Model):
related="payment_mode_id.payment_method_id.mandate_required", readonly=True
)

@api.depends("payment_mode_id", "partner_id")
@api.depends("company_id", "payment_mode_id", "partner_id")
def _compute_mandate_id(self):
for move in self:
move = move.with_company(move.company_id)
if move.payment_mode_id.payment_method_id.mandate_required:
move.mandate_id = move.partner_id.valid_mandate_id
else:
Expand Down
3 changes: 1 addition & 2 deletions account_banking_mandate/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -367,7 +366,7 @@ <h1 class="title">Account Banking Mandate</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:65a46ee9619fe8b739d955186a289a1fe533a2aab227896d9eb915f21c05ce58
!! source digest: sha256:a2e985ff665c753c4fc04968eca91622f81cf5c595fd9d26967c2aefea3556a3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-payment/tree/16.0/account_banking_mandate"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_mandate"><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/bank-payment&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a generic model for banking mandates.
Expand Down
Loading