mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
When a contrat had no payment token but the corresponding partner had one, the transaction was created without an acquirer, leading to an integrity error in postgres. This change makes sure the token used to test the ability to pay an invoice is passed along to the transaction creation call. Tests were also added to check the ability to use the contract token if present, but the partner's in the opposite case. This change fixes #165.
28 lines
778 B
Python
28 lines
778 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 LasLabs Inc.
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
{
|
|
"name": "Contract - Auto Payment",
|
|
"summary": "Adds automatic payments to contracts.",
|
|
"version": "10.0.1.0.1",
|
|
"category": "Contract Management",
|
|
"license": "AGPL-3",
|
|
"author": "LasLabs, "
|
|
"Odoo Community Association (OCA)",
|
|
"website": "https://laslabs.com",
|
|
"depends": [
|
|
"contract",
|
|
"payment",
|
|
],
|
|
"data": [
|
|
"data/mail_template_data.xml",
|
|
"data/ir_cron_data.xml",
|
|
"views/account_analytic_account_view.xml",
|
|
"views/account_analytic_contract_view.xml",
|
|
"views/res_partner_view.xml",
|
|
],
|
|
"installable": True,
|
|
"application": False,
|
|
}
|