1
# -*- coding: utf-8 -*-
2
##############################################################################
4
# Author: Guewen Baconnier
5
# Copyright 2012 Camptocamp SA
7
# This program is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU Affero General Public License as
9
# published by the Free Software Foundation, either version 3 of the
10
# License, or (at your option) any later version.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU Affero General Public License for more details.
17
# You should have received a copy of the GNU Affero General Public License
18
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
##############################################################################
23
{'name': 'Magentoerpconnect Payment',
25
'category': 'Generic Modules',
26
'author': "Camptocamp",
28
'description': """Module to extend the module magentoerpconnect.
30
It aims to ease the workflow of the payments for the sale orders done on Magento.
31
Actually, there is mainly, without deep into details, 2 workflows:
32
1. (Pre)-Payments done on Magento (credit card, paypal, ...) with a "need to update" flag.
33
2. Payments by cheque or bank, for which we wait a payment, before treat the order with a standard / manual workflow (bank statement / voucher, ...).
35
With Magentoerpconnect, the pre-payments are fully automatic, OpenERP wait until the payment is done on Magento, then manage its sale order workflow
36
(prepaid, postpaid, ...), create and auto-reconcile the payment with the invoice.
38
It's a mess that the payment done by cheque or other "unsure" payment does not benefit from a so advanced workflow,
39
because we also have all the data to automatically create payments and reconcile them.
41
So, this module adds a button "Magento Payment" to create the payment on Magento once you've received your payment.
42
This button also update your order ("need to update") and let it continues its workflow as defined in its Base Sale Payment Type
43
exactly as it was a pre-payment.
45
This allow to have one and only one Magento -> OpenERP payment worlflow.
48
'images': ['images/magentocoreeditors.png',
49
'images/magentoerpconnect.png', ],
50
'website': "https://launchpad.net/magentoerpconnect",
51
'depends': ['magentoerpconnect',
55
'update_xml': ['sale_view.xml',
57
'payment_type_view.xml'],