diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-06-03 16:19:07 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-06-28 13:23:41 +0200 |
| commit | 3e15b86428ac2cf3eca7d0a915e9a6647a92db19 (patch) | |
| tree | 8c008eeb89af3ba1432995e093804b7c4db9c8e7 /addons | |
| parent | 5d9e4b7858ae3b8241cb0de7aca3fce5127ceaa3 (diff) | |
[FIX] point_of_sale: do not insert related fields on one2many
fields ref, journal_id and date on account.move.line are all related fields on
the account.move.
Setting a value here is then useless and triggers write on the account.move
after the creation of the account.move.line (inverse values in write)
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/point_of_sale.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index de213986d9b..29bee71a778 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1271,15 +1271,10 @@ class pos_order(osv.osv): def insert_data(data_type, values): # if have_to_group_by: - sale_journal_id = order.sale_journal.id - # 'quantity': line.qty, # 'product_id': line.product_id.id, values.update({ - 'ref': order.name, 'partner_id': order.partner_id and self.pool.get("res.partner")._find_accounting_partner(order.partner_id).id or False, - 'journal_id' : sale_journal_id, - 'date' : fields.date.context_today(self, cr, uid, context=context), 'move_id' : move_id, }) |
