Commit Graph

30 Commits

Author SHA1 Message Date
Pedro M. Baeza
06c1b564c1 [MIG] account_payment_partner: Adapt tests + code to latest version 2018-12-04 23:56:16 +01:00
cubells
c73f969865 [IMP] account_payment_partner: Add several tests 2018-12-04 20:30:33 +01:00
Carlos Dauden
95174eeaf1 [FIX+IMP] account_payment_partner: Fix invoice bank account assignation + show it on invoice report
* IMP: Add options to show partner bank account on invoice report
* FIX: Don't auto-assign partner bank account due to problems when you have a direct debit payment
  method with bank_account_link = 'fixed'. Bank account is shown through new mechanism.
2018-12-04 20:24:59 +01:00
Adrien Peiffer (ACSONE)
970959ae4f [CHG] account_payment_partner: Prevent to delete bank account linked on invoices. 2018-05-23 10:20:48 +02:00
Andrea
0f2c37acb1 [11.0][FIX] account_payment_partner: onchange if more than one bank 2018-02-21 13:56:26 +01:00
oihane
791e470a05 [FIX] account_payment_partner: impossible to define if there was no company in partner (#438) 2018-01-17 22:47:37 +01:00
Jordi Ballester
b95b767a5b add tests and small fixes 2017-11-07 15:12:12 +01:00
etobella
e322814034 [MIG] account_payment_partner 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
697d7cc08f [FIX] account_banking_mandate/account_payment_partner: Signature changed in convert_to_write 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
9d5589ed16 [IMP] account_payment_partner: Fill payment mode in invoices if none is provided
Using same method as in upstream, payment mode is filled on invoice creation if
no payment method is provided. This way, we don't need to install
account_payment_sale if we don't want to handle several payment modes at sales
level. Even more, if we install the module later and we have already existing
sales orders without payment mode filled, those orders will be invoiced with
the customer payment mode.
2017-11-07 14:04:07 +01:00
Alexis de Lattre
bede87269e 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-07 14:04:07 +01:00
Alexis de Lattre
aad52940a9 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-07 14:04:07 +01:00
Alexis de Lattre
d169c353a5 Better handling of partner_bank_id and mandate_id on invoice: invisible/required/onchange 2017-11-07 14:04:07 +01:00
Alexis de Lattre
e7f86a4206 Remove 'done' state on payment orders 2017-11-07 14:04:07 +01:00
Alexis de Lattre
cedc216e7b Add _id suffix on M2O fields customer_payment_mode and supplier_payment_mode (Odoo did the same on all the M2O property fields of res.partner) 2017-11-07 14:04:07 +01:00
Alexis de Lattre
21a0319f8e 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-07 14:04:07 +01:00
Alexis de Lattre
edf1034336 Copy payment mode and mandate from invoice to refund
Run dos2unix on the few files that had DOS carriage return
2017-11-07 14:04:07 +01:00
Alexis de Lattre
2a4390625b 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-07 14:04:07 +01:00
Pedro M. Baeza
b153654c8f [IMP] account_payment_partner: Remove label field
There's already a field in the payment mode called 'note' that is
printed on the invoices, so there's no need of another field for
that purpose. This field is added by account_banking_payment_export
2017-11-07 14:04:07 +01:00
Pedro M. Baeza
79f0dead55 [IMP] *: Short headers 2017-11-07 14:04:07 +01:00
Alexis de Lattre
d0464ac6a5 Add translatable 'label' field on payment.mode, designed to be used in invoice report 2017-11-07 14:04:07 +01:00
Alexis de Lattre
b0f413a1b7 Better filters on payment.order.create wizard
Add default values for those filters on payment.mode
2017-11-07 14:04:07 +01:00
Alexis de Lattre
19529293bd account_payment_partner : move unused file + cleanup code 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
32315dd39c Use sale_ok and purchase_ok instead of tweaking payment type 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
1019d61282 [FIX] account_payment_sale_stock: Split for removing stock dependency on sale
[DEL] Remove old translations templates
[IMP] More reorder on folder structure
2017-11-07 14:04:07 +01:00
Pedro M. Baeza
4d39ed5820 [FIX] Uncaught flake8 errors 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
6e9df4c33d [DEL] Remove unused files 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
2f38eb692f [IMP] Replace deprecated workflow calls 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
db8f504ea8 Clean files 2017-11-07 14:04:07 +01:00
Pedro M. Baeza
348371ae7a [MIG] Migration and enhancement of all modules involved in SEPA 2017-11-07 14:04:07 +01:00