mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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
This commit is contained in:
committed by
Enric Tobella
parent
cb77ae9450
commit
f61c03e91a
@@ -47,19 +47,26 @@ You can create a Debit Order via the menu Accounting > Payments > Debit Orders a
|
||||
|
||||
This module also adds a button *Add to Payment Order* on supplier invoices and a button *Add to Debit Order* on customer invoices.
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/173/9.0
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
* no known issues
|
||||
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
|
||||
`here <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_banking_payment_export%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed `feedback
|
||||
<https://github.com/OCA/
|
||||
bank-payment/issues/new?body=module:%20
|
||||
account_payment_order%0Aversion:%20
|
||||
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Credits
|
||||
=======
|
||||
@@ -68,8 +75,8 @@ Contributors
|
||||
------------
|
||||
|
||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
* Alexis de Lattre
|
||||
* Pedro M. Baeza
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Pedro M. Baeza
|
||||
* Adrien Peiffer <adrien.peiffer@acsone.eu>
|
||||
* Stefan Rijnhart
|
||||
* Laurent Mignon <laurent.mignon@acsone.eu>
|
||||
|
||||
@@ -34,7 +34,7 @@ class AccountPaymentOrder(models.Model):
|
||||
bank_account_link = fields.Selection(
|
||||
related='payment_mode_id.bank_account_link', readonly=True)
|
||||
journal_id = fields.Many2one(
|
||||
'account.journal', string='Bank Journal',
|
||||
'account.journal', string='Bank Journal', ondelete='restrict',
|
||||
readonly=True, states={'draft': [('readonly', False)]})
|
||||
allowed_journal_ids = fields.Many2many(
|
||||
'account.journal', compute='_compute_allowed_journals', readonly=True,
|
||||
|
||||
@@ -20,6 +20,8 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
('posted', 'All Posted Entries'),
|
||||
('all', 'All Entries'),
|
||||
], string='Target Moves')
|
||||
allow_blocked = fields.Boolean(
|
||||
string='Allow Litigation Move Lines')
|
||||
invoice = fields.Boolean(
|
||||
string='Linked to an Invoice or Refund')
|
||||
date_type = fields.Selection([
|
||||
@@ -65,6 +67,8 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
('journal_id', 'in', journals.ids)]
|
||||
if self.target_move == 'posted':
|
||||
domain += [('move_id.state', '=', 'posted')]
|
||||
if not self.allow_blocked:
|
||||
domain += [('blocked', '!=', True)]
|
||||
if self.date_type == 'due':
|
||||
domain += [
|
||||
'|',
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<field name="payment_mode"/>
|
||||
<field name="target_move" widget="radio"/>
|
||||
<field name="invoice"/>
|
||||
<field name="allow_blocked"/>
|
||||
<label string="Click on Add All Move Lines to auto-select the move lines matching the above criteria or click on Add an item to manually select the move lines filtered by the above criteria." colspan="2"/>
|
||||
<button name="populate" type="object" string="Add All Move Lines"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user