Commit Graph

42 Commits

Author SHA1 Message Date
Pedro M. Baeza
24dd4eaef5 [FIX] account_banking_mandate: Condition is reversed
So multi-company environment won't work correctly.
2018-11-26 13:55:06 +01:00
lembregtse
5d847f804b [FIX] account_banking_mandate: Add signature_date for _check_valid_state constraint (#445) 2018-05-23 10:16:00 +02:00
Pedro M. Baeza
33d1c4884f [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
2018-03-08 18:27:03 +01:00
Pedro M. Baeza
09b26bd351 Merge pull request #447 from Eficent/11.0-fix-bank-mandate
[11.0][FIX] account_banking_mandate: Allow to create mandates from bank accounts
2018-03-08 10:15:51 +01:00
Francisco Iván Antón Prieto
8887825397 [FIX] account_banking_mandate: _onchange_partner_id missing return (#451) 2018-02-20 19:31:43 +01:00
rgarnau
f85682972a [FIX] minor fix 2018-02-13 11:51:06 +01:00
Jordi Ballester
0f75e914f0 add rests. Add better multicompany support
add tests and constrains
2017-11-16 15:14:49 +01:00
Carlos Dauden
09041f1ab7 [IMP] account_banking_mandate: Changes suggested
(cherry picked from commit 45c1cc2)
2017-11-16 15:13:45 +01:00
Carlos Dauden
f668e8c4c8 [IMP] account_banking_mandate: Add valid_mandate field and fix onchange
(cherry picked from commit 25d2e4d)
2017-11-16 15:13:45 +01:00
Carlos Dauden
04e876192d [IMP] account_banking_mandate: Fill payment line with first valid mandate 2017-11-16 15:13:45 +01:00
etobella
5adeb942c5 [MIG] account_payment_mandate 2017-11-16 15:13:45 +01:00
Cédric Pigeon
c75ea33492 [UPD] if a mandate is linked to the bank account used, put it automatically on the payment line' 2017-11-16 15:13:45 +01:00
Andrea Stirpe
9702c7495a [FIX][10.0] account_banking_mandate: onchange return value missing (#382) 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
9b42bad702 [FIX] account_banking_mandate/account_payment_partner: Signature changed in convert_to_write 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
386429a948 [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.
2017-11-16 15:13:45 +01:00
Alexis de Lattre
83a98ca2d7 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)
2017-11-16 15:13:45 +01:00
Alexis de Lattre
480d49ef79 FIX crash when selecting a customer that has a direct debit payment mode but no mandate
Hide many fields when payment_order_ok is False on a payment_mode
Fix payment line communication when the move line is not linked to an invoice (problem found when porting donation_debit_debit to v9)
2017-11-16 15:13:45 +01:00
Alexis de Lattre
e158ddf7ce Move field bank_account_required from module account_payment_partner to account_payment_mode
Make the mandate a required field on payment line when the payment method has mandate_required=True
Make the bank account a required field on payment line when the payment method has bank_account_required=True
Minor code cleanup
PEP8
2017-11-16 15:13:45 +01:00
Alexis de Lattre
fa7d3e9169 Better handling of partner_bank_id and mandate_id on invoice: invisible/required/onchange 2017-11-16 15:13:45 +01:00
Alexis de Lattre
b9c9d10dad Take into accounts the remarks of Eric Caudal 2017-11-16 15:13:45 +01:00
Alexis de Lattre
e561b49fcd Add number of mandates in partner form (similar to number of bank accounts) 2017-11-16 15:13:45 +01:00
Alexis de Lattre
9f1347a517 Move fields mandate_required and export_ascii from payment mode to payment method
Display chatter on payment orders
Several small usability improvements
2017-11-16 15:13:45 +01:00
Alexis de Lattre
7c34e39123 Add module account_banking_mandate_sale
Add option 'mandate_required' on payment orders
Autoselect first valid mandate on customer invoice that have a payment mode 'mandate_required' = True
Add option on select move lines to pay wizard to allow selection of litigation moves (unchecked by default), in order to integrate the feature of the module account_payment_blocking
2017-11-16 15:13:45 +01:00
Alexis de Lattre
a7b565a612 Copy payment mode and mandate from invoice to refund
Run dos2unix on the few files that had DOS carriage return
2017-11-16 15:13:45 +01:00
Alexis de Lattre
53a52bf043 PEP8 compliant with the latest version of flake8 2017-11-16 15:13:45 +01:00
Alexis de Lattre
75b3c0d0e9 Finalise merge of account_banking_payment_transfer into account_payment_order
Add support for transfer moves
Display transfer moves in a dedicated tab in payment order view
Code cleanup
2017-11-16 15:13:45 +01:00
Alexis de Lattre
e5fc812f6a Finalise the wizard of selection of move lines to pay
Add button "Add to payment/debit order" on invoice form view
Started to integrate payment transfer in account_payment_order (not finished at all though)
Various fixes/changes/improvements/...
2017-11-16 15:13:45 +01:00
Alexis de Lattre
0fa08b14c4 Start to port bank-payment to v9 (with a lot of improvements) during the Sorrento Code sprint 2016
Improvements include:
- full re-organisation of modules and big re-organisation of the code
- simplification of the code related to the fact that support for direct debit is now in t
he base module, not added by an optional module account_direct_debit (module was removed)
- new design of the wizard to select move lines to pay
- support for non-SEPA file transfer-
- support for German direct debit SEPA files (fixes bug #129)
- remove workflow of payment.order

This port to v9 is not finished... there is still a lot of work:
- finish the code of account_payment_order/wizard/account_payment_line_create.py
- port account_banking_payment_transfer and integrate it inside account_payment_order
- fix bugs
- clean-up code, remove dead code
- test in several complex scenarios
2017-11-16 15:13:45 +01:00
Sergio Incaser
1fc85d105c [IMP][8.0] account_banking_mandate: Pep8 fixes 2017-11-16 15:13:45 +01:00
Sergio Incaser
f2719b327d [IMP][8.0] account_banking_mandate: Make format field required 2017-11-16 15:13:45 +01:00
sergio-incaser
c06d5151c4 [IMP][8.0] account_banking_mandate: Use api.multi instead 2017-11-16 15:13:45 +01:00
Sergio Incaser
4bc1bf08b4 [IMP][8.0] sepa_direct_debit_mandate: Split basic and sepa mandate 2017-11-16 15:13:45 +01:00
Sergio Incaser
cd93b5e60c [FIX][8.0] account_banking_mandate: Slipt basic mandate and sepa. 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
46e1890721 [IMP] *: Short headers 2017-11-16 15:13:45 +01:00
Alexis de Lattre
ac33798cbc Add bank.payment.lines object to allow grouping in the payments 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
fb8241a8d7 [FIX] account_banking_mandate: Fix name_get call 2017-11-16 15:13:45 +01:00
Stéphane Bidoul
a690d018e7 [FIX] flake8 W503 2017-11-16 15:13:45 +01:00
Alexis de Lattre
e04f9e407f [FIX] Bug #96 bad use of new API 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
f6d38aa2f4 [FIX] account_banking_mandate: partner_id field correctly related 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
3ca61d0e0a [FIX] account_banking_mandate: Fix id get from Recordset 2017-11-16 15:13:45 +01:00
Alexis de Lattre
6eff1433e6 [FIX] replace old sdd.mandate referencess 2017-11-16 15:13:45 +01:00
Pedro M. Baeza
01d801897d [ADD] account_banking_mandate, spliting functionality in two modules 2017-11-16 15:13:45 +01:00