Discussion:
[Erp5-dev] quantity_unit magic
Łukasz Nowak
2006-12-20 15:44:33 UTC
Permalink
Hello,

For sometime I'm trying to hunt magic behind quantity_unit setter on
Sale Order Line. Well - if you have Resource with quantity_unit set to
'A' it will be copied to Sale Order Line after choosing this resource.

I've greped portal_skins and Products with quantity_?unit and ignore
case and nothing what would set it show to me. I thought that it is made
by predicate, but no - after usual predicate magic
(context.portal_domains.generateMappedValue(context).getProperty('quantity_unit'),
where context is sale order line) None is returned.

So my question is: where is that magic with quantity_unit? Am I blind? :)

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the Source, Luke...''
Jérôme Perrin
2006-12-20 16:52:31 UTC
Permalink
Post by Łukasz Nowak
Hello,
For sometime I'm trying to hunt magic behind quantity_unit setter on
Sale Order Line. Well - if you have Resource with quantity_unit set to
'A' it will be copied to Sale Order Line after choosing this resource.
it is not copied, quantity_unit is simply acquired from the resource (set by
'Acquisition Base Categories' in Base Category view )

J?rome

Loading...