Skip to content

Commit

Permalink
Merge branch '8.0_move_sale_payment_method' into move_sale_payment_me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
bguillot committed Jun 24, 2015
2 parents 4dd0899 + 1fd0d19 commit c10a0bf
Show file tree
Hide file tree
Showing 14 changed files with 1,158 additions and 0 deletions.
61 changes: 61 additions & 0 deletions sale_payment_method/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Sale Payment Method
===================

It adds a payment method on the sales orders and allow to register
payments entries on sales orders.

This module is low level and works well with the following modules:
* **Sale Automatic Worflow** and **Sale Payment Method - Automatic Workflow**
the payments created with this module will be automatically reconciled
with the invoices of the sales orders.
* Sale Quick Payment: allows to create the payments with a button on the
sales orders.

Also, the e-commerce connectors such as the **Magento Connector** or
**Prestashop Connector** use it to create the external payments.

Installation
============

Nothing special is required.

Configuration
=============

The payment methods can be configured in **Sales > Configuration >
Sales > Payment Methods**.

Usage
=====

A new field on sales orders allow to select the payment method used on
this sales order.

Known issues / Roadmap
======================

* It accepts only one method per sale order.

Credits
=======

Contributors
------------

* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Sébastien Beau <sebastien.beau@akretion.com>
* Arthur Vuillard <arthur.vuillard@akretion.com>
* Jan-Philipp Fischer <jan-philipp.fischer@greencoding.de>

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
24 changes: 24 additions & 0 deletions sale_payment_method/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# sale_payment_method for OpenERP
# Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import sale
from . import payment_method
from . import account_move
37 changes: 37 additions & 0 deletions sale_payment_method/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# sale_payment_method for OpenERP
# Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

{'name': 'Sale Payment Method',
'version': '0.2.1',
'category': 'Generic Modules/Others',
'license': 'AGPL-3',
'author': "Akretion,Odoo Community Association (OCA)",
'website': 'http://www.akretion.com/',
'depends': ['sale',
],
'data': ['sale_view.xml',
'payment_method_view.xml',
'security/ir.model.access.csv',
'security/rules.xml',
],
'demo': [],
'installable': True,
}
28 changes: 28 additions & 0 deletions sale_payment_method/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Guewen Baconnier
# Copyright 2013 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp import models, fields


class AccountMoveLine(models.Model):
_inherit = 'account.move.line'

sale_ids = fields.Many2many(comodel_name='sale.order',
string='Sales Orders')
138 changes: 138 additions & 0 deletions sale_payment_method/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * sale_payment_method
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-05-02 07:06+0000\n"
"PO-Revision-Date: 2014-06-24 11:55+0100\n"
"Last-Translator: Alberto Garcia <alberto.garcia@factorlibre.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"

#. module: sale_payment_method
#: view:sale.order:0
msgid "Automation Information"
msgstr "Información Automática"

#. module: sale_payment_method
#: help:payment.method,journal_id:0
msgid "If a journal is selected, when a payment is recorded on a backend, payment entries will be created in this journal. "
msgstr "Si un diario es sleccionado, cuando un pago es registrado en el backend, las entradas de los pagos serán creadas en ese diario"

#. module: sale_payment_method
#: view:payment.method:0
msgid ""
"Even if the E-commerce backend receives a payment for a sale order,\n"
" no payment entries will be generated."
msgstr "Incluso si el E-commerce backend recibe un pago de un pedido de venta,"

#. module: sale_payment_method
#: view:payment.method:0
msgid "Default Values"
msgstr "Valores por defecto"

#. module: sale_payment_method
#: model:ir.model,name:sale_payment_method.model_payment_method
#: field:sale.order,payment_method_id:0
msgid "Payment Method"
msgstr "Método de pago"

#. module: sale_payment_method
#: view:sale.order:0
msgid "View Automatic Payment"
msgstr "Ver Pago Automático"

#. module: sale_payment_method
#: field:payment.method,journal_id:0
msgid "Journal"
msgstr "Diario"

#. module: sale_payment_method
#: model:ir.actions.act_window,name:sale_payment_method.act_payment_method_form
#: model:ir.ui.menu,name:sale_payment_method.menu_action_paymetn_method_form
msgid "Payment Methods "
msgstr "Métodos de Pago"

#. module: sale_payment_method
#: field:account.move,order_ids:0
msgid "Sales Orders"
msgstr "Pedidos de venta"

#. module: sale_payment_method
#: view:sale.order:0
msgid "Other Information"
msgstr "Otra información"

#. module: sale_payment_method
#: view:payment.method:0
msgid "Payment Methods"
msgstr "Métodos de pago"

#. module: sale_payment_method
#: field:payment.method,name:0
msgid "Name"
msgstr "Nombre"

#. module: sale_payment_method
#: field:sale.order,payment_ids:0
msgid "Payments Entries"
msgstr "Entradas de pagos"

#. module: sale_payment_method
#: view:payment.method:0
msgid ""
"When the E-commerce backend will receive a payment for a sale order,\n"
" payment entries will be generated in the selected journal."
msgstr "Cuando el E-commerce backend recibe un pago para un pedido de venta,"

#. module: sale_payment_method
#: view:payment.method:0
msgid "Journal for payment"
msgstr "Diario de pago"

#. module: sale_payment_method
#: field:sale.order,residual:0
msgid "Balance"
msgstr "Balance"

#. module: sale_payment_method
#: model:ir.model,name:sale_payment_method.model_account_move
msgid "Account Entry"
msgstr "Apunte Contable"

#. module: sale_payment_method
#: help:payment.method,payment_term_id:0
msgid "Default payment term of a sale order using this method."
msgstr "Forma de pago por defecto de un pedido de venta usado por este método."

#. module: sale_payment_method
#: field:payment.method,payment_term_id:0
msgid "Payment Term"
msgstr "Modo de pago"

#. module: sale_payment_method
#: view:sale.order:0
msgid "Create Invoice"
msgstr "Crear Factura"

#. module: sale_payment_method
#: help:payment.method,name:0
msgid "The name of the method on the backend"
msgstr "El nombre del método en el backend"

#. module: sale_payment_method
#: model:ir.model,name:sale_payment_method.model_sale_order
msgid "Sales Order"
msgstr "Pediso de Ventas"

#. module: sale_payment_method
#: field:sale.order,payment_exists:0
msgid "Has automatic payment"
msgstr "Tiene pago automático"

Loading

0 comments on commit c10a0bf

Please sign in to comment.