Commit Graph

481 Commits

Author SHA1 Message Date
Thomas Binsfeld
e8189250d0 [REF] Banking Mandate: indexes on bank account and partner 2024-03-02 12:19:33 +01:00
Thomas Binsfeld
5bbab4ccbc [IMP] Banking Mandate: deletion of bank accounts linked to mandates
It should not be possible to delete a bank account linked to mandate(s).
2024-03-02 12:19:33 +01:00
Thomas Binsfeld
a47c53f724 [FIX] Banking Mandate: local variable referenced before assignment 2024-03-02 12:19:33 +01:00
Thomas Binsfeld
a03e7f867c [REF] Banking Mandate: move payment lines list in shortcut button
It allows a user with no access on payment line to open mandates
2024-03-02 12:19:32 +01:00
Thomas Binsfeld
b2fd97ab1c [REF] Banking Mandate: searches with sudo in constraint
The searches in the constraint should be done as sudo since it should not depend on the access of the user
2024-03-02 12:19:32 +01:00
Pedro M. Baeza
fccf99d0cf [MIG] account_banking_mandate: Finish migration to v12
* Adapted test
* Removed unneeded constraint
* Fixed view for accessibility
2024-03-02 12:19:32 +01:00
Sergio Teruel
06ca275396 [12.0][mig] account_banking_mandate: Migrate to V12.0 2024-03-02 12:19:31 +01:00
Pedro M. Baeza
d1f8c02f5b [FIX] account_banking_mandate: Condition is reversed
So multi-company environment won't work correctly.
2024-03-02 12:19:31 +01:00
lembregtse
ca2574a7c6 [FIX] account_banking_mandate: Add signature_date for _check_valid_state constraint (#445) 2024-03-02 12:19:31 +01:00
Pedro M. Baeza
4c5666d34e [FIX] account_banking_sepa_direct_debit:
* Fix tests due to upstream change

  Odoo has added a constraint for avoiding a company currency change if there
  are move lines, making these tests to fail, as the currency is changed to EUR.

  With this commit, we create a new company with EUR currency for avoiding the
  problem.

  This commit also changes account_banking_mandate for not duplicating mandate
  number, as it was detected during the test creation.

  Similar to 1f8e345469695d1fb1a2ba2109ddea3adbdf1f78
* Avoid errors in tests when run with other modules
* More adaptations to make tests to work properly

  All these problems comes from using demo data.
2024-03-02 12:19:31 +01:00
Francisco Iván Antón Prieto
7ee883b9f8 [FIX] account_banking_mandate: _onchange_partner_id missing return (#451) 2024-03-02 12:19:30 +01:00
rgarnau
92ab61a1a3 [FIX] minor fix 2024-03-02 12:19:30 +01:00
Carlos Dauden
12f2c1c8ac [FIX] account_banking_mandate: If Create and edit acc_number not set 2024-03-02 12:19:30 +01:00
OCA Transbot
3f53e12a1c OCA Transbot updated translations from Transifex 2024-03-02 12:19:30 +01:00
Jordi Ballester
3ef3d84b63 add rests. Add better multicompany support
add tests and constrains
2024-03-02 12:19:30 +01:00
Carlos Dauden
f272a7862a [IMP] account_banking_mandate: Fill payment line with first valid mandate + Add valid_mandate field and fix onchange
(cherry picked from commit 25d2e4d)
2024-03-02 12:19:30 +01:00
etobella
5e525df1f4 [MIG] account_payment_mandate: Migration to 11.0 2024-03-02 12:19:30 +01:00
Andrea Stirpe
7924a7c4fd [FIX][10.0] account_banking_mandate: onchange return value missing (#382) 2024-03-02 12:19:30 +01:00
Pedro M. Baeza
1c0b0e2667 [IMP] account_banking_mandate: Fill mandate in invoices if none is provided
Using same method as in upstream, mandate is filled on invoice creation if no
one is provided. This way, we don't need to install account_banking_mandate_sale
if we don't want to handle several mandates at sales level.
2024-03-02 12:19:29 +01:00
Alexis de Lattre
f858826dc5 Port almost all modules to v10 (#305)
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
2024-03-02 12:19:29 +01:00
Alexis de Lattre
50d0756e94 [MIG] account_banking_mandate: Migration to v9 2024-03-02 12:19:28 +01:00
Sergio Incaser
69a85ebbd3 [FIX+IMP] account_banking_mandate: Several fixes and imps:
* Add creditor identifier field to report mandate.
* Translate.
* Split basic and sepa mandate
* Use api.multi instead
* Make format field required
2024-03-02 11:34:00 +01:00
Pedro M. Baeza
5ecad67cf3 [IMP] account_banking_mandate: Cleanup
* Short headers
* Bump version numbers
* es translations
2024-03-02 11:33:59 +01:00
Alexis de Lattre
cad9046049 Add bank.payment.lines object to allow grouping in the payments 2024-03-02 11:33:59 +01:00
Darío Lodeiros
94944f7a7a Mandates multicompany error #242
The restriction rule Banking Mandate multi-company, gives an error when editing a partner bank account from a company A when that account has created a mandate from another company B. So it is impossible to create a mandate for each company without disabling the rule.
Solution: Uncheck the rule writte in Banking Mandate multi-company. But i'm not sure this is correct.
2024-03-02 11:33:59 +01:00
Pedro M. Baeza
b64a1301f2 [FIX] account_banking_mandate: es translation 2024-03-02 11:33:59 +01:00
Antonio Espinosa
35e769cbfb [FIX] Allow to select bank account when creating a mandate 2024-03-02 11:33:59 +01:00
Pedro M. Baeza
40cab635e9 [FIX] account_banking_mandate: Fix name_get call 2024-03-02 11:33:59 +01:00
sergio-incaser
e33ade9ae7 [IMP] account_banking_mandate: Add report SEPA mandate. 2024-03-02 11:33:59 +01:00
Alexis de Lattre
41a3618413 Port SEPA modules to new API
Fix an important regression in account_banking_sepa_direct_debit: "Date of Last Debit" was not set any more
Proper write of date_done with account_banking_payment_export is installed without account_banking_payment_transfer
Add post-install script for date_sent on payment.order
2024-03-02 11:33:59 +01:00
Philippe Schmidt
27ba2e84a7 Add requested descriptions in an OCA README.rst file 2024-03-02 11:33:59 +01:00
Alexis de Lattre
4cd9c36422 [FIX+IMP] account_banking_mandate: Several things
* Bug #96 bad use of new API
* [Usability] mandates: search by reference, add group_by, add seq type in tree view
* Add scheme in mandate tree+search view
* Replace tabs by spaces in mandate views
* account_banking_mandate/views/account_banking_mandate_view.xml: convert from dos to unix format
* Add multi-company rule on account.banking.mandate
2024-03-02 11:33:59 +01:00
Pedro M. Baeza
c95d96b588 [ADD] account_banking_mandate, spliting functionality in two modules 2024-03-02 11:33:59 +01:00
mymage
4b4f8842a3 Translated using Weblate (Italian)
Currently translated at 99.0% (206 of 208 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-03-01 11:37:08 +00:00
mymage
4a15d6d834 Translated using Weblate (Italian)
Currently translated at 76.4% (159 of 208 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-03-01 08:37:05 +00:00
mymage
11c4813f63 Translated using Weblate (Italian)
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
2024-03-01 08:37:04 +00:00
mymage
99b240fe3c Translated using Weblate (Italian)
Currently translated at 35.0% (73 of 208 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-02-29 15:38:48 +00:00
mymage
6f64789c10 Translated using Weblate (Italian)
Currently translated at 100.0% (4 of 4 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_sale
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_sale/it/
2024-02-29 15:38:47 +00:00
Weblate
ca47d55ede Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-02-29 12:09:57 +00:00
OCA-git-bot
ccee522fb6 [BOT] post-merge updates 2024-02-29 11:38:12 +00:00
oca-ci
06cf25ae7a [UPD] Update account_payment_order.pot 2024-02-29 11:34:43 +00:00
OCA-git-bot
b8af5ba2bc Merge PR #1208 into 17.0
Signed-off-by pedrobaeza
2024-02-29 11:32:12 +00:00
David Ramia
1f9fb94511 [MIG] account_payment_order: Migration to 17.0 2024-02-28 20:59:50 +01:00
David Ramia
eb14ae21c7 [IMP] account_payment_order: pre-commit auto fixes 2024-02-26 22:06:46 +01:00
Víctor Martínez
d882d8e690 [FIX] account_payment_order: Always return a string in the _get_payment_order_order_communication_direct() method.
Related to: https://github.com/OCA/bank-payment/issues/1178
2024-02-26 22:06:46 +01:00
Pedro M. Baeza
dc03f1070c [FIX] account_payment_order: Restrict payment lines button to payment group
If not, you get an access error when accessing the invoice if you
don't have such permission:

```
You are not allowed to access 'Payment Lines' (account.payment.line) records.

This operation is allowed for the following groups:
      - Extra Rights/Accounting / Payments

Contact your administrator to request access if necessary
```

TT45952
2024-02-26 22:06:46 +01:00
Luc De Meyer
a39adcf3e5 [IMP] account_payment_order: add payment lines smart button on invoice 2024-02-26 22:06:46 +01:00
Luc De Meyer
60dcc45383 [IMP]grouped invoices: " - ".join in stead of "-".join 2024-02-26 22:06:46 +01:00
Alexis de Lattre
9285446226 Add warning when payment order is not SEPA
The field 'sepa' on account.payment.order is only display for SEPA
payment methods.
If the option "show warning if not SEPA" is enabled on the payment
method, a warning banner is now displayed on payment orders with a SEPA
payment method which are not SEPA.
2024-02-26 22:06:46 +01:00
Víctor Martínez
fca73ec341 [FIX] account_payment_order: Define the value of the communication field correctly
- Purchases: Ref field from invoice always.
- Sales: Payment_ref or ref field from invoice.

TT45153
2024-02-26 22:06:46 +01:00