always return a non-opening period. Small API change:
date is always passed as argument, not in context.
[RFR] Override of _check_company_id (unrelated to the fix):
Don't call super, but integrate its check (while being tolerant when
there is no period).
Refresh statement so as not to overwrite the period for every line
[RFR] PEP8 in affected code and unrelated _get_period method on voucher
Remove obsolete class instantiations
Introduce _prepare_* functions in the function action_sent(), to make inheritance easier.
Add support for payment lines with move_line_id = False (for example, when you make an advance payment for a supplier order).
Result of a sprint with Akexis de Lattre in a corridor at Fosdem 2014.
In a nutshell, this MP moves the hooks that are necessary for account_direct_debit from account_banking_payment to account_banking_payment_export, resulting in a leaner dependency graph [1].
account_banking_payment (and thus account_banking core) is therefore not necessary anymore for doing direct debit.
account_banking_payment can now be seen as providing two essential functions:
1/ adding the notion of transfer account on payment modes (marking the invoices paid as soon as the payment order is sent)
2/ bridging with the bank statement reconciliation features of account_banking core
IMO, the next step in the refactoring process would be to move 1/ to a stand-alone module.
Other things in this branch:
- removing auto_install=True that we found unnecessary and potentially risky
- demo data by Alexis
- a trivial bug fix
- setting noupdate=1 for the SEPA payment mode types
- allow payment of customer refunds lp:1275478
- account_payment_partner
- account_payment_sale
- account_payment_sale_stock
- account_payment_purchase
Filter the selection of invoices per payment type.
Add active field on payment.mode and payment.mode.type.
Add menu entry for Payment Types.
In a nutshell, this commit
- moves payment_order_type (payment|debit) to account_banking_payment_export
- makes payment_order_type visible in account_direct_debit
- make direct_debit depend on account_banking_payment_export