Commit Graph

40 Commits

Author SHA1 Message Date
Pedro M. Baeza
4bec0018c4 [FIX] account_payment_order: Fix compute dependency chain
Detected doing a migration 8.0 > 9.0. The `amount_company_currency` field computation
was not depending on `currency_id` field, and thus that one was being computed before
populating the other one.

Also having both fields in the same compute method makes them less efficient, as they
don't depend on the same source fields.
2019-05-25 19:45:37 +02:00
Martronic SA
c229cec578 Fix structured communication
Adds 'structured' to the invoice_reference_type2communication_type ans the 'structured' type is added by the module itself in account_invoice but breaks the account_move_line.py as explained here: https://github.com/OCA/bank-payment/issues/495
2018-10-12 14:52:10 +02:00
Alexis de Lattre
57b3743cf9 [FIX] Bug #353 crash when selecting a payment mode that has a variable link to a bank account 2018-10-09 10:23:33 +02:00
Alexis de Lattre
d300de4823 Several small usability improvements
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
2018-05-23 09:59:52 +02:00
Akim Juillerat
6ddb442ab6 [IMP] account_payment_order: Restriction + tests
* Restrict the deletion of bank payment line
* Add test_cancel_payment_order
2017-08-02 10:08:02 +02:00
mdietrichc2c
481d49a714 Don't allow deletion of an uploaded payment order + allow to cancel an uploaded payment order 2017-07-26 15:40:14 +02:00
Alexis de Lattre
4521c0e4f4 Merge pull request #319 from acsone/9.0-bank-statement-unbind-sbi
[9.0][FIX] account_payment_order: unbind payment transfer moves without deleting them
2017-05-29 12:30:37 +02:00
vrenaville
737524a4ef [FIX]date instead off maturity date on account move line generate 2017-02-23 11:13:54 +01:00
Stéphane Bidoul (ACSONE)
1e77e8df3e ... 2016-12-03 09:37:23 +01:00
Stéphane Bidoul (ACSONE)
179585080e [FIX] account_payment_order: unbind payment moves without deleting them
When unreconciling a bank statement line that is matched with a bank
account move lines linked to a bank.payment.line, it must be unbound,
not deleted as the standard Odoo method would do.

Note the standard Odoo method has such protection for their native
payment lines.
2016-12-03 09:26:40 +01:00
Jose Maria Alzaga
946d72449b [IMP] account_payment_order: Remove internal_type=other restriction for transfer account (#312) 2016-11-15 09:20:44 +01:00
Stéphane Bidoul (ACSONE)
5bb1657a5a [IMP] set partner on offsetting account move line if possible
fixes #277
2016-08-24 11:49:17 +02:00
Alexis de Lattre
c127de027e For the communication field, if self.move_id.ref is False, fallback on self.move_id.name 2016-07-23 00:36:56 +02:00
Alexis de Lattre
f3f75437c2 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)
2016-07-23 00:21:07 +02:00
Stéphane Bidoul (ACSONE)
64773e32bc [IMP] account_payment_order: extensibility of _prepare_move
Pass the list of bank lines to _prepare_move so it is possible to customize the move (eg it's name) based on the lines being paid.
2016-07-19 13:56:36 +02:00
Alexis de Lattre
47c592e00d Add support for multi-currency in the generation of the account move.
Take into account all the remaining remarks of Frederic Clementi dated May 30:
- see multi-currency amounts in the wizard to add transaction lines
- add help msg on bank payment lines
2016-06-29 14:59:38 +02:00
Stéphane Bidoul
1d9832c27b [IMP] prevent deleting a move-line that is linked to a payment order line 2016-06-25 14:56:40 +02:00
Alexis de Lattre
6849beab0e Merge pull request #3 from sbidoul/patch-1
Avoid confusion between payment mode and payment method
2016-06-21 23:04:35 +02:00
Alexis de Lattre
0d311316ac Enable the payment methods by default on bank journals (including existing bank journals via post_install scripts)
Enable "Generate Accounting Entries On File Upload" by default
2016-06-16 16:51:03 +02:00
Alexis de Lattre
e5769e665e FIX manual payment method 2016-06-16 15:19:01 +02:00
Alexis de Lattre
0e64b0295a 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
2016-06-14 22:25:23 +02:00
Stéphane Bidoul (ACSONE)
0424587940 Avoid confusion between payment mode and payment method 2016-06-14 19:05:10 +02:00
Alexis de Lattre
4e548dacef Add wizard to select several invoices at once and add them to payment order
Fix bug in groupby on bank payment lines
2016-06-06 18:53:55 +02:00
Alexis de Lattre
020f9a4a0b Don't group payment lines that use structured communication 2016-06-06 11:21:52 +02:00
Alexis de Lattre
d4d6a301b7 Take into accounts the remarks of Eric Caudal 2016-05-23 10:42:28 +02:00
Alexis de Lattre
69264e5885 Add option no_debit_before_maturity on payment mode 2016-05-11 23:16:02 +02:00
Alexis de Lattre
4410acfb30 Add support for using bank account as offsetting account in journal entry 2016-05-11 22:48:48 +02:00
Alexis de Lattre
79e56499cd Avoid empty group in payment mode
Code cleanup in views
2016-05-10 23:28:38 +02:00
Alexis de Lattre
4e6261a9b1 Move fields mandate_required and export_ascii from payment mode to payment method
Display chatter on payment orders
Several small usability improvements
2016-05-10 23:16:31 +02:00
Alexis de Lattre
edc793f2c4 Payment date should never be in the past. 2016-05-09 22:06:55 +02:00
Alexis de Lattre
b48614cb71 Remove 'done' state on payment orders 2016-05-08 14:38:48 +02:00
Alexis de Lattre
ccb7e9f2a2 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
2016-05-07 23:55:46 +02:00
Alexis de Lattre
3b10598b36 Copy payment mode and mandate from invoice to refund
Run dos2unix on the few files that had DOS carriage return
2016-05-07 22:02:49 +02:00
Alexis de Lattre
882e0e5292 Add option 'target_move' (all or posted) in wizard to select move lines to pay
Remove module account_payment_include_draft_move
2016-05-07 20:13:22 +02:00
Alexis de Lattre
12a2076c1f Filter on allowed_journal_ids even if onchange of payment_mode_id is not played (for example when the payment line is pushed from the invoice) 2016-05-07 17:07:15 +02:00
Alexis de Lattre
aefdda2ae3 PEP8 compliant with the latest version of flake8 2016-05-07 01:39:35 +02:00
Alexis de Lattre
777159e19f Take into account the review of @yvaucher 2016-05-07 01:33:42 +02:00
Alexis de Lattre
51301645fa 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
2016-05-06 22:14:56 +02:00
Alexis de Lattre
abb052d894 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/...
2016-05-06 01:16:20 +02:00
Alexis de Lattre
bee3093841 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
2016-04-30 01:46:34 +02:00