Comment 1 for bug 596940

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote : Re: [Bug 596940] Re: Sequence in product.packaging is not used for sort [5.0]

Niels?.

Don't you think "fix-commited" will be when your branch has been merged? I
think the state should be "in progress"

THX

2010/6/21 Niels Huylebroeck <email address hidden>

> ** Changed in: openobject-addons
> Status: New => Fix Committed
>
> --
> Sequence in product.packaging is not used for sort [5.0]
> https://bugs.launchpad.net/bugs/596940
> You received this bug notification because you are a member of OpenERP
> Drivers, which is subscribed to OpenObject Addons.
>
> Status in OpenObject Addons Modules: Fix Committed
>
> Bug description:
> The model does not define an _order = "sequence"
>
> So when in the code in product_id_change (in sale.order.line) is executed
> the the result of the call to:
>
> if not packaging and product_obj.packaging:
> packaging = product_obj.packaging[0].id
> result['product_packaging'] = packaging
>
> ... will yield the packaging to be the first inserted record instead of
> taking lowest sequenced packaging.
>
>
>

--
Saludos Cordiales

Nhomar G. Hernandez M.
+58-414-4110269
+58-212-6615932
+58-212-9536734 ext 124
+58-212-9512643
Skype: nhomar00
Web-Blog: http://geronimo.com.ve
Servicios IT: http://openerp.netquatro.com
Linux-Counter: 467724
Correos:
<email address hidden>
<email address hidden>