[Erp5-dev] Setting operation (or any other category) as resource on Invoice Line is a problem...?

Łukasz Nowak lukasz.nowak at ventis.com.pl
Tue Nov 6 10:30:34 CET 2007


Hello,

Invoice has resource set to price_currency (title: Polski Zloty).

If Product (title: product) is set as resource on Invoice Line then:

 - invoice_line.getResourceValue -> Product
 - invoice_line.getResource -> product_module/1
 - invoice_line.getResourceTitle -> product

But when category operation (title: operation_title) is set on resource:

 - invoice_line.getResourceValue -> operation
 - invoice_line.getResource -> operation/operation
 - invoice_line.getResourceTitlte -> Polski Zloty - which is wrong

Is it a bug/feature/configuration problem?

Attached unit test to prove above scenario, checked on clean revision
17405

Regards,
Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testBugResourceTitleOnSaleInvoiceLine.py
Type: text/x-python
Size: 8012 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20071106/5246cc89/attachment.py>


More information about the Erp5-dev mailing list