--- /dev/null
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Non-real time point of sale module for OpenERP, Permit user to record his
+# sales in point of sale interface in non-real time.
+# Copyright (C) 2016 L'Heureux Cyclage (<http://www.heureux-cyclage>)
+# Ludovic CHEVALIER
+#
+# This file is a part of Non-real time point of sale
+#
+# Non-real time point of sale is free software: you can redistribute it
+# and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# Non-real time point of sale 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 General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import pos_box
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
--- /dev/null
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Non-real time point of sale module for OpenERP, Permit user to record his
+# sales in point of sale interface in non-real time.
+# Copyright (C) 2016 L'Heureux Cyclage (<http://www.heureux-cyclage>)
+# Ludovic CHEVALIER
+#
+# This file is a part of Non-real time point of sale
+#
+# Non-real time point of sale is free software: you can redistribute it
+# and/or modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# Non-real time point of sale 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 General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import orm
+import pdb
+
+class CashBoxIn(orm.TransientModel):
+ _inherit = 'cash.box.in'
+
+ def _compute_values_for_statement_line(self, cr, uid, box, record, context=None):
+ """Add statement date as date for cash in move line"""
+ res = super(CashBoxIn, self)._compute_values_for_statement_line(cr, uid, box, record, context=context)
+ res['date'] = record.date
+ return res
+
+class CashBoxOut(orm.TransientModel):
+ _inherit = 'cash.box.out'
+
+ def _compute_values_for_statement_line(self, cr, uid, box, record, context=None):
+ """Add statement date as date for cash out move line"""
+ res = super(CashBoxOut, self)._compute_values_for_statement_line(cr, uid, box, record, context=context)
+ res['date'] = record.date
+ return res
+
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: