Skip to content

Commit

Permalink
[11.0][MIG] account_invoice_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin vinagre urteaga committed Nov 9, 2018
1 parent d736130 commit 90a9f2a
Show file tree
Hide file tree
Showing 89 changed files with 222 additions and 151 deletions.
60 changes: 0 additions & 60 deletions account_invoice_merge/README.rst

This file was deleted.

8 changes: 1 addition & 7 deletions account_invoice_merge/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import models
from . import wizard
5 changes: 2 additions & 3 deletions account_invoice_merge/__manifest__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# -*- coding: utf-8 -*-
# Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
'name': 'Account Invoice Merge',
'version': '11.0.1.0.0',
'category': 'Finance',
'summary': "Merge invoices in draft",
'author': "Elico Corp,Odoo Community Association (OCA)",
'website': 'http://www.openerp.net.cn',
'website': "https://github.com/OCA/<repo>" or "https://github.com/OCA/<repo>/tree/<branch>/<addon>",
'license': 'AGPL-3',
'depends': ['account'],
'data': [
Expand Down
Empty file modified account_invoice_merge/i18n/account_invoice_merge.pot
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/am.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ar.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/bg.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/bs.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ca.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ca_ES.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/cs.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/da.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/de.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/el_GR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/en_AU.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/en_GB.po
100644 → 100755
Empty file.
70 changes: 39 additions & 31 deletions account_invoice_merge/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_merge
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# * account_invoice_merge
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 13:51+0000\n"
"PO-Revision-Date: 2017-11-23 13:51+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"POT-Creation-Date: 2018-09-03 13:57+0000\n"
"PO-Revision-Date: 2018-09-03 16:03+0100\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"X-Generator: Poedit 1.7.4\n"

#. module: account_invoice_merge
#: model:ir.ui.view,arch_db:account_invoice_merge.view_invoice_merge
msgid "Are you sure you want to merge these invoices?"
msgstr ""
msgstr "¿Está seguro que desea combinar estas facturas?"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:34
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:33
#, python-format
msgid "At least one of the selected invoices is %s!"
msgstr "¡Al menos una de las facturas seleccionadas está %s!"
Expand Down Expand Up @@ -97,37 +96,37 @@ msgid "Merge Partner Invoice"
msgstr "Fusionar factura de empresa"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:41
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:40
#, python-format
msgid "Not all invoices are at the same company!"
msgstr "¡No todas las facturas son de la misma compañía!"
msgid "Not all invoices belong to the same company!"
msgstr "¡No todas las facturas pertenecen a la misma compañía!"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:50
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:49
#, python-format
msgid "Not all invoices are at the same currency!"
msgstr No todas las facturas son de la misma moneda!"
msgid "The currency in the invoices is different!"
msgstr La moneda en las facturas es diferente!"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:53
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:52
#, python-format
msgid "Not all invoices are at the same journal!"
msgstr No todas las facturas tienen el mismo diario!"
msgid "All invoices must belong to the same journal!"
msgstr Todas las facturas deben pertenecer al mismo diario!"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:44
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:43
#, python-format
msgid "Not all invoices are for the same partner!"
msgstr "¡No todas las facturas tienen la misma empresa!"
msgid "Not all invoices are from the same partner!"
msgstr "¡No todas las facturas pertenecen a la misma empresa!"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:47
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:46
#, python-format
msgid "Not all invoices are of the same type!"
msgstr "¡No todas las facturas son del mismo tipo!"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:38
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:37
#, python-format
msgid "Not all invoices use the same account!"
msgstr "¡No todas las facturas usan la misma cuenta!"
Expand All @@ -145,12 +144,21 @@ msgid ""
" * Invoice lines are exactly the same except for the\n"
" product, quantity and unit.<br/>"
msgstr ""

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:27
"Tenga en cuenta que:<br/><br/>\n"
" Las facturas solo se fusionarán si:<br/>\n"
" * Las facturas están en estado 'borrador'.<br/>\n"
" * Las facturas pertenecen al mismo cliente/socio.<br/>\n"
" * Las facturas tienen la misma compañía, cliente/socio, dirección,\n"
" moneda, diario, comercial, cuenta y tipo.<br/><br/>\n"
" Las lineas solamente se fusionaran si:<br/>\n"
" * Las lineas de factura son exactamente las mismas excepto por\n"
" el producto, cantidad y unidad.<br/>"

#. module: account_invoice_merge
#: code:addons/account_invoice_merge/wizard/invoice_merge.py:26
#, python-format
msgid "Please select multiple invoices to merge in the list view."
msgstr ""
msgstr "Por favor, seleccione múltiples facturas para fusionar en la vista lista."

#. module: account_invoice_merge
#: model:ir.ui.view,arch_db:account_invoice_merge.view_invoice_merge
Expand Down
Empty file modified account_invoice_merge/i18n/es_AR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_CL.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_CO.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_CR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_DO.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_EC.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_ES.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_MX.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_PE.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_PY.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/es_VE.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/et.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/eu.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fa.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fi.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fr.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fr_CA.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fr_CH.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/fr_FR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/gl.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/gl_ES.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/he.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/hi.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/hr.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/hr_HR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/hu.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/id.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/it.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ja.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ko.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/lo.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/lt.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/lt_LT.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/lv.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/mk.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/mn.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/nb.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/nb_NO.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/nl.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/nl_BE.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/nl_NL.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/pl.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/pt.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/pt_BR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/pt_PT.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ro.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/ru.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/sk.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/sk_SK.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/sl.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/sr.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/[email protected]
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/sv.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/th.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/tr.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/tr_TR.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/uk.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/vi.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/vi_VN.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/zh_CN.po
100644 → 100755
Empty file.
Empty file modified account_invoice_merge/i18n/zh_TW.po
100644 → 100755
Empty file.
8 changes: 1 addition & 7 deletions account_invoice_merge/models/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import account_invoice
3 changes: 1 addition & 2 deletions account_invoice_merge/models/account_invoice.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2004-2010 Tiny SPRL (http://tiny.be).
# Copyright 2010-2011 Elico Corp.
# Copyright 2016 Acsone (https://www.acsone.eu/)
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import api, models
from odoo.osv.orm import browse_record, browse_null
Expand Down
5 changes: 5 additions & 0 deletions account_invoice_merge/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Ian Li <[email protected]>
* Cédric Pigeon <[email protected]>
* Lois Rilo <[email protected]>
* Miquel Raïch <[email protected]>
* Valentin Vinagre <[email protected]>
16 changes: 16 additions & 0 deletions account_invoice_merge/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This module adds an action in the invoices list to merge invoices. Here are
the conditions to allow merging:

#. State should be 'draft'

#. Type should be the same (Customer Invoice, Supplier Invoice, Customer Refund or Supplier Refund)

#. Partner should be the same

#. Company should be the same

#. Currency should be the same

#. Journal should be the same

#. Account receivable account should be the same
2 changes: 2 additions & 0 deletions account_invoice_merge/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Go to a invoice tree view, select several invoices and click expand the
action button and click 'Merge Partner Invoice'.
Empty file modified account_invoice_merge/static/description/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions account_invoice_merge/tests/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import test_account_invoice_merge
Loading

0 comments on commit 90a9f2a

Please sign in to comment.