mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] move all unported addons into __unported__ folder instead of adding _unported suffix
This commit is contained in:
committed by
Jordi Ballester
parent
f01e2c0906
commit
4e935d0da9
@@ -1,25 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Account reversal module for OpenERP
|
||||
# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
|
||||
# @author Alexis de Lattre <alexis.delattre@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/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
import account_reversal
|
||||
import wizard
|
||||
@@ -1,54 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Account reversal module for OpenERP
|
||||
# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# Copyright 2012-2013 Camptocamp SA
|
||||
# @author Guewen Baconnier (Camptocamp)
|
||||
#
|
||||
# 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': 'Account Reversal',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Accounting',
|
||||
'license': 'AGPL-3',
|
||||
'description': """
|
||||
Account Reversal
|
||||
================
|
||||
|
||||
This module adds an action "Reversal" on account moves,
|
||||
to allow the accountant to create reversal account moves in 2 clicks.
|
||||
Also add on account entries:
|
||||
- a checkbox and filter "to be reversed"
|
||||
- a link between an entry and its reversal entry
|
||||
|
||||
Module originally developped by Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
during the Akretion-Camptocamp code sprint of June 2011.
|
||||
|
||||
""",
|
||||
'author': 'Akretion,Camptocamp',
|
||||
'website': 'http://www.akretion.com/',
|
||||
'depends': ['account'],
|
||||
'data': [
|
||||
'account_view.xml',
|
||||
'wizard/account_move_reverse_view.xml'
|
||||
],
|
||||
'installable': False,
|
||||
'active': False,
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Account reversal module for OpenERP
|
||||
# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# with the kind advice of Nicolas Bessi from Camptocamp
|
||||
# Copyright (C) 2012-2013 Camptocamp SA (http://www.camptocamp.com)
|
||||
# @author Guewen Baconnier <guewen.baconnier@camptocamp.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 openerp.osv import fields, orm
|
||||
|
||||
|
||||
class account_move(orm.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
_columns = {
|
||||
'to_be_reversed': fields.boolean(
|
||||
'To Be Reversed',
|
||||
help='Check this box if your entry has to be'
|
||||
'reversed at the end of period.'),
|
||||
'reversal_id': fields.many2one(
|
||||
'account.move',
|
||||
'Reversal Entry',
|
||||
ondelete='set null',
|
||||
readonly=True),
|
||||
}
|
||||
|
||||
def _move_reversal(self, cr, uid, move, reversal_date,
|
||||
reversal_period_id=False, reversal_journal_id=False,
|
||||
move_prefix=False, move_line_prefix=False,
|
||||
context=None):
|
||||
"""
|
||||
Create the reversal of a move
|
||||
|
||||
:param move: browse instance of the move to reverse
|
||||
:param reversal_date: when the reversal must be input
|
||||
:param reversal_period_id: facultative period to write on the move
|
||||
(use the period of the date if empty
|
||||
:param reversal_journal_id: facultative journal on which create
|
||||
the move
|
||||
:param move_prefix: prefix for the move's name
|
||||
:param move_line_prefix: prefix for the move line's names
|
||||
|
||||
:return: Returns the id of the created reversal move
|
||||
"""
|
||||
if context is None:
|
||||
context = {}
|
||||
move_line_obj = self.pool.get('account.move.line')
|
||||
period_obj = self.pool.get('account.period')
|
||||
period_ctx = context.copy()
|
||||
period_ctx['company_id'] = move.company_id.id
|
||||
period_ctx['account_period_prefer_normal'] = True
|
||||
|
||||
if not reversal_period_id:
|
||||
reversal_period_id = period_obj.find(
|
||||
cr, uid, reversal_date, context=period_ctx)[0]
|
||||
if not reversal_journal_id:
|
||||
reversal_journal_id = move.journal_id.id
|
||||
|
||||
reversal_ref = ''.join([x for x in [move_prefix, move.ref] if x])
|
||||
reversal_move_id = self.copy(cr, uid, move.id,
|
||||
default={
|
||||
'date': reversal_date,
|
||||
'period_id': reversal_period_id,
|
||||
'ref': reversal_ref,
|
||||
'journal_id': reversal_journal_id,
|
||||
'to_be_reversed': False,
|
||||
},
|
||||
context=context)
|
||||
|
||||
self.write(cr, uid, [move.id],
|
||||
{'reversal_id': reversal_move_id,
|
||||
# ensure to_be_reversed is true if ever it was not
|
||||
'to_be_reversed': True},
|
||||
context=context)
|
||||
|
||||
reversal_move = self.browse(cr, uid, reversal_move_id, context=context)
|
||||
for reversal_move_line in reversal_move.line_id:
|
||||
reversal_ml_name = ' '.join(
|
||||
[x for x
|
||||
in [move_line_prefix, reversal_move_line.name]
|
||||
if x])
|
||||
move_line_obj.write(
|
||||
cr,
|
||||
uid,
|
||||
[reversal_move_line.id],
|
||||
{'debit': reversal_move_line.credit,
|
||||
'credit': reversal_move_line.debit,
|
||||
'amount_currency': reversal_move_line.amount_currency * -1,
|
||||
'name': reversal_ml_name},
|
||||
context=context,
|
||||
check=True,
|
||||
update_check=True)
|
||||
|
||||
self.validate(cr, uid, [reversal_move_id], context=context)
|
||||
return reversal_move_id
|
||||
|
||||
def create_reversals(self, cr, uid, ids, reversal_date,
|
||||
reversal_period_id=False, reversal_journal_id=False,
|
||||
move_prefix=False, move_line_prefix=False,
|
||||
context=None):
|
||||
"""
|
||||
Create the reversal of one or multiple moves
|
||||
|
||||
:param reversal_date: when the reversal must be input
|
||||
:param reversal_period_id: facultative period to write on the move
|
||||
(use the period of the date if empty
|
||||
:param reversal_journal_id: facultative journal on which create
|
||||
the move
|
||||
:param move_prefix: prefix for the move's name
|
||||
:param move_line_prefix: prefix for the move line's names
|
||||
|
||||
:return: Returns a list of ids of the created reversal moves
|
||||
"""
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
|
||||
reversed_move_ids = []
|
||||
for src_move in self.browse(cr, uid, ids, context=context):
|
||||
if src_move.reversal_id:
|
||||
continue # skip the reversal creation if already done
|
||||
|
||||
reversal_move_id = self._move_reversal(
|
||||
cr, uid,
|
||||
src_move,
|
||||
reversal_date,
|
||||
reversal_period_id=reversal_period_id,
|
||||
reversal_journal_id=reversal_journal_id,
|
||||
move_prefix=move_prefix,
|
||||
move_line_prefix=move_line_prefix,
|
||||
context=context)
|
||||
|
||||
if reversal_move_id:
|
||||
reversed_move_ids.append(reversal_move_id)
|
||||
|
||||
return reversed_move_ids
|
||||
@@ -1,62 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Account reversal module for OpenERP
|
||||
Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
|
||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
The licence is in the file __openerp__.py
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_move_reversal_tree" model="ir.ui.view">
|
||||
<field name="name">account.move.reversal.tree</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="to_check" position="after">
|
||||
<field name="to_be_reversed"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_move_reversal_form" model="ir.ui.view">
|
||||
<field name="name">account.move.reversal.form</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_id']" position="after">
|
||||
<field name="to_be_reversed"/>
|
||||
<field name="reversal_id" attrs="{'invisible': [('to_be_reversed', '=', False)]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_move_reversal_filter" model="ir.ui.view">
|
||||
<field name="name">account.move.reversal.select</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_account_move_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/search/group[1]/filter[3]" position="after">
|
||||
<filter name="to_be_reversed"
|
||||
string="To Be Reversed"
|
||||
domain="[('to_be_reversed', '=', True), ('reversal_id', '=', False)]"
|
||||
help="Journal Entries to be Reversed"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<act_window
|
||||
context="{'search_default_to_be_reversed':1}"
|
||||
id="action_move_to_be_reversed" name="Journal Entries to be Reversed"
|
||||
res_model="account.move"
|
||||
view_id="account.view_move_tree"/>
|
||||
|
||||
<menuitem
|
||||
name="Journal Entries to be Reversed" icon="STOCK_EXECUTE"
|
||||
action="action_move_to_be_reversed"
|
||||
id="menu_move_to_be_reversed"
|
||||
parent="account.menu_account_end_year_treatments"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -1,132 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reversal
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-10-18 17:51+0000\n"
|
||||
"PO-Revision-Date: 2013-10-18 17:51+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_line_prefix:0
|
||||
msgid "Items Name Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,period_id:0
|
||||
msgid "Reversal Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.act_account_move_reverse
|
||||
msgid "Reverse Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_line_prefix:0
|
||||
msgid "Prefix that will be added to the name of the journal item to be reversed to create the name of the reversal journal item (a space is added after the prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,period_id:0
|
||||
msgid "If empty, take the period of the date."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move,to_be_reversed:0
|
||||
msgid "Check this box if your entry has to bereversed at the end of period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,journal_id:0
|
||||
msgid "Reversal Journal"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: field:account.move,to_be_reversed:0
|
||||
msgid "To Be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,journal_id:0
|
||||
msgid "If empty, uses the journal of the journal entry to be reversed."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "This will create reversal for all selected entries whether checked 'to be reversed' or not."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move_reverse
|
||||
msgid "Create reversal of account moves"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: code:addons/account_reversal/wizard/account_move_reverse.py:108
|
||||
#, python-format
|
||||
msgid "Reversal Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Create reversal journal entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move,reversal_id:0
|
||||
msgid "Reversal Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,date:0
|
||||
msgid "Enter the date of the reversal account entries. By default, OpenERP proposes the first day of the next period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_prefix:0
|
||||
msgid "Prefix that will be added to the 'Ref' of the journal entry to be reversed to create the 'Ref' of the reversal journal entry (no space added after the prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move
|
||||
msgid "Account Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
|
||||
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
|
||||
msgid "Journal Entries to be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,date:0
|
||||
msgid "Reversal Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_prefix:0
|
||||
msgid "Entries Ref. Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
|
||||
@@ -1,142 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reversal
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0.2\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2013-10-18 17:51+0000\n"
|
||||
"PO-Revision-Date: 2013-10-18 17:36+0000\n"
|
||||
"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2014-06-12 06:31+0000\n"
|
||||
"X-Generator: Launchpad (build 17041)\n"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_line_prefix:0
|
||||
msgid "Items Name Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,period_id:0
|
||||
msgid "Reversal Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.act_account_move_reverse
|
||||
msgid "Reverse Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_line_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the name of the journal item to be reversed to "
|
||||
"create the name of the reversal journal item (a space is added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,period_id:0
|
||||
msgid "If empty, take the period of the date."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move,to_be_reversed:0
|
||||
msgid "Check this box if your entry has to bereversed at the end of period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,journal_id:0
|
||||
msgid "Reversal Journal"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: field:account.move,to_be_reversed:0
|
||||
msgid "To Be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,journal_id:0
|
||||
msgid "If empty, uses the journal of the journal entry to be reversed."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid ""
|
||||
"This will create reversal for all selected entries whether checked 'to be "
|
||||
"reversed' or not."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move_reverse
|
||||
msgid "Create reversal of account moves"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: code:addons/account_reversal/wizard/account_move_reverse.py:108
|
||||
#, python-format
|
||||
msgid "Reversal Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Create reversal journal entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move,reversal_id:0
|
||||
msgid "Reversal Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,date:0
|
||||
msgid ""
|
||||
"Enter the date of the reversal account entries. By default, OpenERP proposes "
|
||||
"the first day of the next period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the 'Ref' of the journal entry to be reversed "
|
||||
"to create the 'Ref' of the reversal journal entry (no space added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move
|
||||
msgid "Account Entry"
|
||||
msgstr "Assentament comptable"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
|
||||
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
|
||||
msgid "Journal Entries to be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,date:0
|
||||
msgid "Reversal Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_prefix:0
|
||||
msgid "Entries Ref. Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Cancel"
|
||||
msgstr "Cancel·la"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
@@ -1,142 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reversal
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0.2\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2013-10-18 17:51+0000\n"
|
||||
"PO-Revision-Date: 2013-10-18 17:36+0000\n"
|
||||
"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2014-06-12 06:31+0000\n"
|
||||
"X-Generator: Launchpad (build 17041)\n"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_line_prefix:0
|
||||
msgid "Items Name Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,period_id:0
|
||||
msgid "Reversal Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.act_account_move_reverse
|
||||
msgid "Reverse Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_line_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the name of the journal item to be reversed to "
|
||||
"create the name of the reversal journal item (a space is added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,period_id:0
|
||||
msgid "If empty, take the period of the date."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move,to_be_reversed:0
|
||||
msgid "Check this box if your entry has to bereversed at the end of period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,journal_id:0
|
||||
msgid "Reversal Journal"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: field:account.move,to_be_reversed:0
|
||||
msgid "To Be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,journal_id:0
|
||||
msgid "If empty, uses the journal of the journal entry to be reversed."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid ""
|
||||
"This will create reversal for all selected entries whether checked 'to be "
|
||||
"reversed' or not."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move_reverse
|
||||
msgid "Create reversal of account moves"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: code:addons/account_reversal/wizard/account_move_reverse.py:108
|
||||
#, python-format
|
||||
msgid "Reversal Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Create reversal journal entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move,reversal_id:0
|
||||
msgid "Reversal Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,date:0
|
||||
msgid ""
|
||||
"Enter the date of the reversal account entries. By default, OpenERP proposes "
|
||||
"the first day of the next period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the 'Ref' of the journal entry to be reversed "
|
||||
"to create the 'Ref' of the reversal journal entry (no space added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move
|
||||
msgid "Account Entry"
|
||||
msgstr "Asiento contable"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
|
||||
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
|
||||
msgid "Journal Entries to be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,date:0
|
||||
msgid "Reversal Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_prefix:0
|
||||
msgid "Entries Ref. Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
@@ -1,171 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_reversal
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-10-18 17:51+0000\n"
|
||||
"PO-Revision-Date: 2013-10-18 17:39+0000\n"
|
||||
"Last-Translator: Guewen Baconnier @ Camptocamp <Unknown>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2014-06-12 06:31+0000\n"
|
||||
"X-Generator: Launchpad (build 17041)\n"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_line_prefix:0
|
||||
msgid "Items Name Prefix"
|
||||
msgstr "Préfixe pour les écritures comptables d'extourne"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,period_id:0
|
||||
msgid "Reversal Period"
|
||||
msgstr "Période des extournes"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.act_account_move_reverse
|
||||
msgid "Reverse Entries"
|
||||
msgstr "Créer les pièces comptables d'extourne"
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_line_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the name of the journal item to be reversed to "
|
||||
"create the name of the reversal journal item (a space is added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
"Préfixe qui sera ajouté au libellé des écritures comptables originales pour "
|
||||
"créer le libellé des écritures comptables d'extourne (un espace est ajouté "
|
||||
"après le préfixe)."
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,period_id:0
|
||||
msgid "If empty, take the period of the date."
|
||||
msgstr ""
|
||||
"Si laissé vide, utilise la période correspondant à la date de la pièce "
|
||||
"comptable"
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move,to_be_reversed:0
|
||||
msgid "Check this box if your entry has to bereversed at the end of period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,journal_id:0
|
||||
msgid "Reversal Journal"
|
||||
msgstr "Journal des extournes"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: field:account.move,to_be_reversed:0
|
||||
msgid "To Be Reversed"
|
||||
msgstr "Extourne nécessaire"
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,journal_id:0
|
||||
msgid "If empty, uses the journal of the journal entry to be reversed."
|
||||
msgstr ""
|
||||
"Si laissé vide, le journal de la pièce comptable à extourner sera conservé"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid ""
|
||||
"This will create reversal for all selected entries whether checked 'to be "
|
||||
"reversed' or not."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move_reverse
|
||||
msgid "Create reversal of account moves"
|
||||
msgstr "Créer des pièces comptables d'extourne"
|
||||
|
||||
#. module: account_reversal
|
||||
#: code:addons/account_reversal/wizard/account_move_reverse.py:108
|
||||
#, python-format
|
||||
msgid "Reversal Entries"
|
||||
msgstr "Extournes de pièces comptables"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Create reversal journal entries"
|
||||
msgstr "Créer des pièces comptables d'extourne"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move,reversal_id:0
|
||||
msgid "Reversal Entry"
|
||||
msgstr "Extourne de pièce comptable"
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,date:0
|
||||
msgid ""
|
||||
"Enter the date of the reversal account entries. By default, OpenERP proposes "
|
||||
"the first day of the next period."
|
||||
msgstr ""
|
||||
"Entrer la date des pièces comptables d'extourne. Par défaut, OpenERP propose "
|
||||
"le premier jour de la période comptable suivante."
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the 'Ref' of the journal entry to be reversed "
|
||||
"to create the 'Ref' of the reversal journal entry (no space added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
"Préfixe qui sera ajouté aux références des pièces comptables originales pour "
|
||||
"créer les références des pièces d'extourne (pas d'espace ajouté après le "
|
||||
"préfixe)."
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move
|
||||
msgid "Account Entry"
|
||||
msgstr "Pièce comptable"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
|
||||
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
|
||||
msgid "Journal Entries to be Reversed"
|
||||
msgstr "Pièces comptables à extourner"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,date:0
|
||||
msgid "Reversal Date"
|
||||
msgstr "Date des extournes"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_prefix:0
|
||||
msgid "Entries Ref. Prefix"
|
||||
msgstr "Préfixe pour les références des pièces comptables d'extourne"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "You can not create more than one move per period on centralized journal"
|
||||
#~ msgstr ""
|
||||
#~ "Vous ne pouvez pas créer plus d'une écriture par période sur un journal "
|
||||
#~ "centralisé"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "This will create reversal for all selected entries whether checked \"to be "
|
||||
#~ "reversed\" or not."
|
||||
#~ msgstr ""
|
||||
#~ "Ceci va créer les extournes de pièces comptables pour toutes les pièces "
|
||||
#~ "sélectionnées"
|
||||
|
||||
#~ msgid "Check this box if your entry has to be reversed at the end of period."
|
||||
#~ msgstr ""
|
||||
#~ "Cochez cette case si votre pièce comptable doit être extournée à la fin de "
|
||||
#~ "la période."
|
||||
@@ -1,143 +0,0 @@
|
||||
# Brazilian Portuguese translation for account-financial-tools
|
||||
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
|
||||
# This file is distributed under the same license as the account-financial-tools package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: account-financial-tools\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2013-10-18 17:51+0000\n"
|
||||
"PO-Revision-Date: 2014-01-10 11:29+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2014-06-12 06:31+0000\n"
|
||||
"X-Generator: Launchpad (build 17041)\n"
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_line_prefix:0
|
||||
msgid "Items Name Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,period_id:0
|
||||
msgid "Reversal Period"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.act_account_move_reverse
|
||||
msgid "Reverse Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_line_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the name of the journal item to be reversed to "
|
||||
"create the name of the reversal journal item (a space is added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,period_id:0
|
||||
msgid "If empty, take the period of the date."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move,to_be_reversed:0
|
||||
msgid "Check this box if your entry has to bereversed at the end of period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,journal_id:0
|
||||
msgid "Reversal Journal"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: field:account.move,to_be_reversed:0
|
||||
msgid "To Be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,journal_id:0
|
||||
msgid "If empty, uses the journal of the journal entry to be reversed."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid ""
|
||||
"This will create reversal for all selected entries whether checked 'to be "
|
||||
"reversed' or not."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move_reverse
|
||||
msgid "Create reversal of account moves"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: code:addons/account_reversal/wizard/account_move_reverse.py:108
|
||||
#, python-format
|
||||
msgid "Reversal Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Create reversal journal entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move,reversal_id:0
|
||||
msgid "Reversal Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,date:0
|
||||
msgid ""
|
||||
"Enter the date of the reversal account entries. By default, OpenERP proposes "
|
||||
"the first day of the next period."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: help:account.move.reverse,move_prefix:0
|
||||
msgid ""
|
||||
"Prefix that will be added to the 'Ref' of the journal entry to be reversed "
|
||||
"to create the 'Ref' of the reversal journal entry (no space added after the "
|
||||
"prefix)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: model:ir.model,name:account_reversal.model_account_move
|
||||
msgid "Account Entry"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move:0
|
||||
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
|
||||
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
|
||||
msgid "Journal Entries to be Reversed"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,date:0
|
||||
msgid "Reversal Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: field:account.move.reverse,move_prefix:0
|
||||
msgid "Entries Ref. Prefix"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_reversal
|
||||
#: view:account.move.reverse:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
@@ -1 +0,0 @@
|
||||
import account_move_reverse
|
||||
@@ -1,118 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Account reversal module for OpenERP
|
||||
# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# Copyright (c) 2012-2013 Camptocamp SA (http://www.camptocamp.com)
|
||||
# @author Guewen Baconnier
|
||||
#
|
||||
#
|
||||
# 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.osv import orm, fields
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
class account_move_reversal(orm.TransientModel):
|
||||
_name = "account.move.reverse"
|
||||
_description = "Create reversal of account moves"
|
||||
|
||||
_columns = {
|
||||
'date': fields.date(
|
||||
'Reversal Date',
|
||||
required=True,
|
||||
help="Enter the date of the reversal account entries. "
|
||||
"By default, OpenERP proposes the first day of "
|
||||
"the next period."),
|
||||
'period_id': fields.many2one(
|
||||
'account.period',
|
||||
'Reversal Period',
|
||||
help="If empty, take the period of the date."),
|
||||
'journal_id': fields.many2one(
|
||||
'account.journal',
|
||||
'Reversal Journal',
|
||||
help='If empty, uses the journal of the journal entry '
|
||||
'to be reversed.'),
|
||||
'move_prefix': fields.char(
|
||||
'Entries Ref. Prefix',
|
||||
size=32,
|
||||
help="Prefix that will be added to the 'Ref' of the journal "
|
||||
"entry to be reversed to create the 'Ref' of the "
|
||||
"reversal journal entry (no space added after the prefix)."),
|
||||
'move_line_prefix': fields.char(
|
||||
'Items Name Prefix',
|
||||
size=32,
|
||||
help="Prefix that will be added to the name of the journal "
|
||||
"item to be reversed to create the name of the reversal "
|
||||
"journal item (a space is added after the prefix)."),
|
||||
}
|
||||
|
||||
def _next_period_first_date(self, cr, uid, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
res = False
|
||||
period_ctx = context.copy()
|
||||
period_ctx['account_period_prefer_normal'] = True
|
||||
period_obj = self.pool.get('account.period')
|
||||
today_period_id = period_obj.find(cr, uid, context=period_ctx)
|
||||
if today_period_id:
|
||||
today_period = period_obj.browse(
|
||||
cr, uid, today_period_id[0], context=context)
|
||||
next_period_id = period_obj.next(
|
||||
cr, uid, today_period, 1, context=context)
|
||||
if next_period_id:
|
||||
next_period = period_obj.browse(
|
||||
cr, uid, next_period_id, context=context)
|
||||
res = next_period.date_start
|
||||
return res
|
||||
|
||||
_defaults = {
|
||||
'date': _next_period_first_date,
|
||||
'move_line_prefix': 'REV -',
|
||||
}
|
||||
|
||||
def action_reverse(self, cr, uid, ids, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
assert 'active_ids' in context, "active_ids missing in context"
|
||||
|
||||
form = self.read(cr, uid, ids, context=context)[0]
|
||||
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
act_obj = self.pool.get('ir.actions.act_window')
|
||||
move_obj = self.pool.get('account.move')
|
||||
move_ids = context['active_ids']
|
||||
|
||||
period_id = form['period_id'][0] if form.get('period_id') else False
|
||||
journal_id = form['journal_id'][0] if form.get('journal_id') else False
|
||||
reversed_move_ids = move_obj.create_reversals(
|
||||
cr, uid,
|
||||
move_ids,
|
||||
form['date'],
|
||||
reversal_period_id=period_id,
|
||||
reversal_journal_id=journal_id,
|
||||
move_prefix=form['move_prefix'],
|
||||
move_line_prefix=form['move_line_prefix'],
|
||||
context=context)
|
||||
|
||||
__, action_id = mod_obj.get_object_reference(
|
||||
cr, uid, 'account', 'action_move_journal_line')
|
||||
action = act_obj.read(cr, uid, [action_id], context=context)[0]
|
||||
action['domain'] = unicode([('id', 'in', reversed_move_ids)])
|
||||
action['name'] = _('Reversal Entries')
|
||||
action['context'] = unicode({'search_default_to_be_reversed': 0})
|
||||
return action
|
||||
@@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_account_move_reverse" model="ir.ui.view">
|
||||
<field name="name">account.move.reverse.form</field>
|
||||
<field name="model">account.move.reverse</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Create reversal journal entries" version="7.0">
|
||||
<label string="This will create reversal for all selected entries whether checked 'to be reversed' or not."/>
|
||||
<group>
|
||||
<field name="date"/>
|
||||
<field name="period_id"/>
|
||||
<field name="journal_id"/>
|
||||
<newline/>
|
||||
<field name="move_prefix" />
|
||||
<field name="move_line_prefix" />
|
||||
</group>
|
||||
|
||||
<footer>
|
||||
<button name="action_reverse" string="Reverse Entries"
|
||||
type="object" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="act_account_move_reverse" model="ir.actions.act_window">
|
||||
<field name="name">Reverse Entries</field>
|
||||
<field name="res_model">account.move.reverse</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_account_move_reverse"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_account_move_reverse" model="ir.values">
|
||||
<field name="name">Reverse Entries</field>
|
||||
<field name="key2">client_action_multi</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="value" eval="'ir.actions.act_window,%d'%act_account_move_reverse" />
|
||||
<field name="object" eval="True" />
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user