Commit Graph

8 Commits

Author SHA1 Message Date
Denis Ledoux adf6d0e557 [FIX] sale_layout: remove `categ_sequence` default value.
`categ_sequence` are stored related fields, to `sale_layout_cat_id.sequence`.
Setting a default value for them has as side effect to rewrite
the value on the related field.

To reproduce the issue:
 - Create a sale layout category, with 10 as sequence
 - Create an invoice with one line, with this sale layout category
 - Come back to the sale layout category,
   notice that the sequence has been changed to 0.

Besides, as the sequence was rewritten on the sale layout category,
the sequence was rewritten on all sale order lines and invoice lines
having this sale layout category.
If you have a bunch of them, this could take a while.

The `categ_sequence` default value is supposed
to come from the sale layout category.

opw-651937
2015-11-26 11:22:48 +01:00
Goffin Simon bd86392f1a [FIX] sale_layout: sale order lines not grouped by section
The sale order lines must be grouped by section when they are added
in a sale order.

opw:630557
2015-04-01 09:41:04 +02:00
Denis Ledoux 2b0a8363d9 [FIX] sale_layout: set 0 as default value for categ_sequence
Otherwise, in some cases, the categ_sequence can be set to null, which is not ordered the same way than 0, and you won't be able to sort lines with null and 0 as categ_sequence between each others
2014-11-26 17:03:42 +01:00
Raphael Collet c1be4a316e [FIX] sale_layout: store=True is causing trouble when generating invoices from a pos order 2014-08-19 11:49:03 +02:00
Simon Lejeune a17bb46b44 [FIX] Sale_layout: renamed 'layout category' as 'section', removed constraint
bzr revid: sle@openerp.com-20140423151546-rd8freqn1ljf141k
2014-04-23 17:15:46 +02:00
Simon Lejeune 97ffe7a5b9 [FIX] Keep the layout between sale order and invoice
bzr revid: sle@openerp.com-20140404155148-l8btjfhp640r0gew
2014-04-04 17:51:48 +02:00
Simon Lejeune be909a2dd4 [FIX] sale_layout: correct api method signature
bzr revid: sle@openerp.com-20140404145156-msppuq3sh7onggnn
2014-04-04 16:51:56 +02:00
Simon Lejeune dc8246eb03 [ADD] sale_layout module allowing to set categories and subtotals on invoice and sale order
bzr revid: sle@openerp.com-20140404112308-aopihnefnf55b4er
2014-04-04 13:23:08 +02:00