Files
odoo_source/addons/l10n_latam_check/models/account_payment_method.py
T
Katherine Zaoral a34e5d20c8 [ADD] l10n_latam_check: Checks Management
New features to manage checks and managed them Odoo in latam countries
where they are widely use.

Own Checks Management
---------------------

Extends 'Check Printing Base' module to manage own checks with more features:

* allow using own checks that are not printed but filled manually by the user
* allow to use deferred or electronic checks
  * printing is disabled
  * check number is set manually by the user
* add an optional "Check Cash-In Date" for post-dated checks (deferred payments)
* add a menu to track own checks

Third Party Checks Management
-----------------------------

Add new "Third party check Management" feature.

There are 2 main Payment Methods additions:

* New Third Party Checks:

   * allow the user create a check on the fly from a payment
   * create a third party check from a customer payment

* Existing Third party check:

   * allow the user to reuse a Third party check already created
   * pay a vendor bill using an existing Third party check
   * move an existing checks between journals (i.e. move to Rejected)
   * Send/Receive again a check already used in a Vendor Bill/Customer INV
   * allow the user to do mass check transfers

closes odoo/odoo#107163

X-original-commit: cbec68b414f5b87fe6e146487c532c9a174f40a3
Signed-off-by: William André (wan) <wan@odoo.com>
2022-12-04 23:41:53 +01:00

14 lines
529 B
Python

from odoo import models, api
class AccountPaymentMethod(models.Model):
_inherit = 'account.payment.method'
@api.model
def _get_payment_method_information(self):
res = super()._get_payment_method_information()
res['new_third_party_checks'] = {'mode': 'multi', 'domain': [('type', '=', 'cash')]}
res['in_third_party_checks'] = {'mode': 'multi', 'domain': [('type', '=', 'cash')]}
res['out_third_party_checks'] = {'mode': 'multi', 'domain': [('type', '=', 'cash')]}
return res