Commit Graph

446 Commits

Author SHA1 Message Date
etobella
e7f520e410 [MIG] account_payment_mandate: Migration to 11.0 2023-03-13 08:58:32 +01:00
Cédric Pigeon
15eb8d72e6 [UPD] if a mandate is linked to the bank account used, put it automatically on the payment line' 2023-03-13 08:58:32 +01:00
Andrea Stirpe
cc6dcc231f [FIX][10.0] account_banking_mandate: onchange return value missing (#382) 2023-03-13 08:58:32 +01:00
OCA Transbot
c742889106 OCA Transbot updated translations from Transifex 2023-03-13 08:58:32 +01:00
Pedro M. Baeza
1e50143246 [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.
2023-03-13 08:58:32 +01:00
Alexis de Lattre
85e99b716a 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)
2023-03-13 08:58:32 +01:00
OCA Transbot
8fa9b98deb OCA Transbot updated translations from Transifex 2023-03-13 08:58:32 +01:00
Alexis de Lattre
fa4c820db1 [MIG] account_banking_mandate: Migration to v9 2023-03-13 08:58:32 +01:00
Sergio Incaser
fc8cab3b60 [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
2023-03-13 08:58:32 +01:00
Pedro M. Baeza
5943556fa4 [IMP] account_banking_mandate: Cleanup
* Short headers
* Bump version numbers
* es translations
2023-03-13 08:58:32 +01:00
Alexis de Lattre
b74125e848 Add bank.payment.lines object to allow grouping in the payments 2023-03-13 08:58:32 +01:00
Darío Lodeiros
979b0f7fca 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.
2023-03-13 08:58:32 +01:00
Pedro M. Baeza
ce876978f7 [FIX] account_banking_mandate: es translation 2023-03-13 08:58:32 +01:00
Antonio Espinosa
3742d4a750 [FIX] Allow to select bank account when creating a mandate 2023-03-13 08:58:32 +01:00
Pedro M. Baeza
ec73fba185 [FIX] account_banking_mandate: Fix name_get call 2023-03-13 08:58:32 +01:00
sergio-incaser
8550321ecc [IMP] account_banking_mandate: Add report SEPA mandate. 2023-03-13 08:58:32 +01:00
Alexis de Lattre
3ec6ae4fb9 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
2023-03-13 08:58:32 +01:00
Philippe Schmidt
3b54456d44 Add requested descriptions in an OCA README.rst file 2023-03-13 08:58:32 +01:00
Alexis de Lattre
fa94ed19ba [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
2023-03-13 08:58:32 +01:00
Pedro M. Baeza
c6917f4d9f [ADD] account_banking_mandate, spliting functionality in two modules 2023-03-13 08:58:32 +01:00
oca-git-bot
bd9f173587 [IMP] update dotfiles [ci skip] 2023-03-12 19:00:32 +01:00
OCA-git-bot
7602b119a5 [ADD] setup.py 2023-03-07 08:59:39 +00:00
OCA-git-bot
3bb1c0b1d7 [UPD] README.rst 2023-03-07 08:59:39 +00:00
OCA-git-bot
8dd1254cd5 [UPD] addons table in README.md 2023-03-07 08:59:37 +00:00
oca-ci
7a189aa174 [UPD] Update account_payment_order_grouped_output.pot 2023-03-07 08:55:45 +00:00
OCA-git-bot
35eb6fede0 Merge PR #1044 into 16.0
Signed-off-by pedrobaeza
2023-03-07 08:52:15 +00:00
ferran-73
fed4b4490d [MIG] account_payment_order_grouped_output: 16.0 2023-03-07 08:11:19 +01:00
ferran-73
b14ff0a164 [IMP] account_payment_order_grouped_output: black, isort, prettier 2023-03-07 08:11:19 +01:00
Pedro M. Baeza
93991fd60e [MIG] account_payment_order_grouped_output: Migration to 15.0 2023-03-07 08:11:19 +01:00
Pedro M. Baeza
344153b7e8 [ADD] account_payment_order_grouped_output: Generate grouped entries from payment orders
This module adds an option to generate extra grouped moves for the payment
orders since the refactoring done to use native Odoo payments.

This serves for easing the reconciliation on bank statements of large payment
orders, handling them as one or several journal entries according payment date.
2023-03-06 10:13:05 +01:00
Weblate
73bf401b31 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_order/
2023-03-05 08:57:47 +00:00
OCA-git-bot
2fabbf9bdf [ADD] setup.py 2023-03-04 20:24:56 +00:00
OCA-git-bot
eae61b85eb [UPD] README.rst 2023-03-04 20:24:55 +00:00
OCA-git-bot
7ec3686d43 [UPD] addons table in README.md 2023-03-04 20:24:54 +00:00
oca-ci
c152526206 [UPD] Update account_payment_order.pot 2023-03-04 20:22:12 +00:00
OCA-git-bot
f3683bb85e Merge PR #1056 into 16.0
Signed-off-by pedrobaeza
2023-03-04 20:19:26 +00:00
Wolfgang Pichler
0c98de15fa [MIG] account_payment_order: Migration to 16.0 2023-03-04 20:54:01 +01:00
Wolfgang Pichler
170117c1e9 [I18N] account_payment_order: Better translations for de_DE 2023-03-04 20:54:01 +01:00
Pedro M. Baeza
0466d31c3e [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.
2023-03-04 19:44:00 +01:00
Pedro M. Baeza
05c6c0111f [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
2023-03-04 19:44:00 +01:00
Alexis de Lattre
6eb7ad01e3 [IMP] account_payment_order: add link to payment order in chatter 2023-03-04 19:44:00 +01:00
Bert Driehuis
021cd1e1aa [FIX] account_payment_order: Fallback to payment_ref if ref is undefined 2023-03-04 19:44:00 +01:00
Denis Roussel
f3eca92554 [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
2023-03-04 19:44:00 +01:00
Pedro M. Baeza
6a2621694b [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.
2023-03-04 19:44:00 +01:00
Carlos Lopez
ab739d0e62 [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
2023-03-04 19:44:00 +01:00
Danny W. Adair
60a7abac56 Add pre_init_hook to add computed column
Add partner_bank_id column to avoid MemoryError on an existing Odoo
instance with lots of data.

partner_bank_id on account.move.line requires payment_order_ok to be True
which it won't be as it's newly introduced - again nothing to compute.
(see AccountMoveLine._compute_partner_bank_id() in models/account_move_line.py)
2023-03-04 19:44:00 +01:00
Antony Herrera
610cd5e4f7 [FIX] account_payment_order: Error in Batch Payments when deleting a Batch Content line 2023-03-04 19:44:00 +01:00
manu
8dd5a31124 [IMP]account_payment_order: Add activities to account.payment.order model 2023-03-04 19:44:00 +01:00
Adrien Peiffer
38c56c5c61 [FIX] Restore payment order number in account move line label. 2023-03-04 19:44:00 +01:00
Alexis de Lattre
b0b48a204d [FIX] account_payment_order: fix action returned by create_account_payment_line()
create_account_payment_line() is supposed to returned a form view for a
single payment order and a tree view for multiple payment orders. Before
this fix, it would return a tree view if you were payment more than 1
invoices while generating a single payment order, because the list
result_payorder_ids would contain several time the same ID.
2023-03-04 19:44:00 +01:00