~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to invoice_datetime/invoice.py

[MERGE] modified function write to validated field invoice_date_tz and validate round in debit/credit field

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
            datetime_inv = invoice.invoice_datetime and \
120
120
                datetime.datetime.strptime(invoice.invoice_datetime,
121
121
                                           "%Y-%m-%d %H:%M:%S") or False
122
 
            if datetime_inv:
 
122
            if datetime_inv and not invoice.date_invoice_tz:
123
123
                vals.update(
124
124
                    {'date_invoice_tz': self._get_datetime_with_user_tz(
125
125
                        cr, uid, datetime_inv)})