Łukasz Nowak
2007-11-06 09:30:34 UTC
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>
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>