Commit Graph

460 Commits

Author SHA1 Message Date
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
Víctor Martínez
faba2734a9 [IMP] account_payment_order: Add payment_ref field to account.payment tree and form views
Co-authored-by: luc-demeyer

TT45153
2024-02-26 22:06:45 +01:00
Víctor Martínez
0dc3f1c36f [FIX] account_payment_order: Add colspan=2 to a correct visualization 2024-02-26 22:06:45 +01:00
Víctor Martínez
a2dd94fdd4 [FIX] account_payment_order: Add extra form view only to avoid open move lines in edit mode
TT45211
2024-02-26 22:06:45 +01:00
Carlos Lopez
66868fa55a [FIX] account_payment_order: change result_payorder_ids to list to show action correctly 2024-02-26 22:06:45 +01:00
Pedro M. Baeza
f8043265ac [FIX+IMP] account_payment_order: Better error messages on "Add to order"
- The filter for payment order lines should be applied after checking
  the lack of payment mode.
- Added message when the payment mode is not valid for payment orders.
- Added message specifying the payment order where the line is already
  present.

TT44762
2024-02-26 22:06:45 +01:00
Víctor Martínez
8667d74eed [IMP] account_payment_order: Add a custom message if the invoice does not have a payment method
The message will be displayed when trying to create a line of a payment order to better clarify the reason.

TT44551
2024-02-26 22:06:45 +01:00
Yadier A. De Quesada
da438f025b [FIX] account_payment_order Allow to download file in edit mode 2024-02-26 22:06:45 +01:00
Pedro M. Baeza
fc3573739b [FIX] account_payment_order: Set payment method line for account.payment
On v15+, a new model account.payment.method.line is introduced for
fine-graining the outstanding account, being `payment_method_id` a
related field referred to this new model, so we need to change the
previous approach to select the proper method line only if found. If not
found, it will be auto-selected by standard code.

TT43278
2024-02-26 22:06:45 +01:00
Pedro M. Baeza
f80f6a17e1 [FIX] account_payment_order: treet2 > street2 2024-02-26 22:06:45 +01:00
Nikul-OSI
1601945a83 [FIX] Fixed Payment Transaction view 2024-02-26 22:06:45 +01:00
Simon Gonzalez
867c8c030f [IMP] account_payment_order: Concatenate all UserError messages
Gather all the errors to only show one with all the problem on the current debit order. This will avoid for the users to have to make multiple time the same process.
2024-02-26 22:06:45 +01:00
Reyes4711
ad31eab5de [FIX] account_payment_order: create lines with same sequence name 2024-02-26 22:06:45 +01:00
Wolfgang Pichler
c255abb1b3 [MIG] account_payment_order: Migration to 16.0 2024-02-26 22:06:45 +01:00
Wolfgang Pichler
c34825a469 [I18N] account_payment_order: Better translations for de_DE 2024-02-26 22:06:45 +01:00
Pedro M. Baeza
d0c1c61ccc [FIX] account_payment_order: Do correctly the fix on tests
Previous patch by Alexis created a co-dependency between
account_payment_order and account_banking_sepa_direct_debit, which is
not correct.

This patch avoids such problem and fix properly the test, although
the utility of some of them is debatible.
2024-02-26 22:06:44 +01:00
Pedro M. Baeza
342d898c8b [REF+IMP] account_payment_order: Use native payments
The previous approach creates manually the journal entries and does all
the hard work, plus not being 100% compatible with the bank statement
reconciliation widget (requiring a patch on OCB to see blue lines).

That decision made sense on the moment it was done (v9), where the
native payment model (account.payment) was very limited, and wasn't able
to store all the needed information for the bank transaction.

Now that the limitations are gone, we can get rid off this extra model,
and generate instead `account.payment` records, using both the native
model + methods to perform the same operations.

This serves also to workaround the problem found in #966.

All the code, views and tests of main module have been adapted to this
new approach in this commit. Later commits will adapt the rest of the
modules of the suite, and add migration scripts to transit from the
previous approach to this new one.

TT39832
2024-02-26 22:06:44 +01:00
Alexis de Lattre
2be42df05e [IMP] account_payment_order: add link to payment order in chatter 2024-02-26 22:06:44 +01:00
Bert Driehuis
06ac42cdd4 [FIX] account_payment_order: Fallback to payment_ref if ref is undefined 2024-02-26 22:06:44 +01:00
Denis Roussel
bbb10e3d8f [IMP] account_payment_order: Better communication field management
- Add a hook method to retrieve communication type and communication
- Improve normal communication if there is a credit note
  If there is a credit note that partially cancel an invoice, the payment communication
  should be the combination of the invoice reference and the credit note one.
- Remove not needed assert as parameter is required
- Use the 'payment_reference' field if filled in
- Add existing payment references to communication
  If some movements have been reconciled with the original invoice,
  their references should be added in communication too.
  e.g.: Manual credit notes
- Don't duplicate communication reference
2024-02-26 22:06:44 +01:00
Pedro M. Baeza
6da1bb5040 [FIX] account_payment_order: Proper indentation for test + make it work
The test introduced in 7bdb286aa1 is not
valid, as its indentation made it to not be executed. Anyways, the
content and the tested things are also not correct.
2024-02-26 22:06:44 +01:00
Carlos Lopez
f7166e96e0 [IMP] account_payment_order: outbound inheritable + SavepointCase
This commit split the tests for outbound payment in a base inheritable class that
can be reused in other dependant modules, and the test of this module.

similar to 86bd1a2525
2024-02-26 22:06:44 +01:00