Update account_move_line_start_end_dates_xls
This commit is contained in:
@@ -1,23 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
##############################################################################
|
|
||||||
#
|
|
||||||
# Account Move Line Start End Dates XLS module for OpenERP
|
|
||||||
# Copyright (C) 2014 Akretion (http://www.akretion.com/)
|
|
||||||
# @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/>.
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
from . import account_move_line
|
from . import account_move_line
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Account Move Line Start End Dates XLS module for OpenERP
|
# Account Move Line Start End Dates XLS module for Odoo
|
||||||
# Copyright (C) 2014 Akretion (http://www.akretion.com/)
|
# Copyright (C) 2014-2016 Akretion (http://www.akretion.com/)
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -33,11 +33,12 @@ Account Move Line Start End Dates XLS
|
|||||||
|
|
||||||
This module adds *Start Date* and *End Date* in the XLS export of the account move lines.
|
This module adds *Start Date* and *End Date* in the XLS export of the account move lines.
|
||||||
|
|
||||||
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
|
This module has been written by Alexis de Lattre from Akretion
|
||||||
|
<alexis.delattre@akretion.com>.
|
||||||
""",
|
""",
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com/',
|
'website': 'http://www.akretion.com/',
|
||||||
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Account Move Line Start End Dates XLS module for OpenERP
|
# Account Move Line Start End Dates XLS module for Odoo
|
||||||
# Copyright (C) 2014 Akretion (http://www.akretion.com/)
|
# Copyright (C) 2014-2016 Akretion (http://www.akretion.com/)
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -21,17 +21,22 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import xlwt
|
import xlwt
|
||||||
from openerp.osv import orm
|
from openerp import models, api
|
||||||
from openerp.addons.report_xls.utils import _render
|
from openerp.addons.report_xls.utils import _render
|
||||||
from openerp.addons.report_xls.report_xls import report_xls
|
from openerp.addons.report_xls.report_xls import report_xls
|
||||||
|
|
||||||
|
|
||||||
class account_move_line(orm.Model):
|
class AccountMoveLine(models.Model):
|
||||||
_inherit = 'account.move.line'
|
_inherit = 'account.move.line'
|
||||||
|
|
||||||
def _report_xls_template(self, cr, uid, context=None):
|
@api.model
|
||||||
res = super(account_move_line, self)._report_xls_template(
|
def _report_xls_fields(self):
|
||||||
cr, uid, context=context)
|
res = super(AccountMoveLine, self)._report_xls_fields()
|
||||||
|
return res + ['start_date', 'end_date']
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def _report_xls_template(self):
|
||||||
|
res = super(AccountMoveLine, self)._report_xls_template()
|
||||||
bc = '22'
|
bc = '22'
|
||||||
aml_cell_style_date = xlwt.easyxf(
|
aml_cell_style_date = xlwt.easyxf(
|
||||||
'borders: left thin, right thin, top thin, bottom thin, '
|
'borders: left thin, right thin, top thin, bottom thin, '
|
||||||
|
|||||||
Reference in New Issue
Block a user