Skip to Content
Menu
This question has been flagged
1 Odpoveď
4131 Zobrazenia

Hello there! I need help! At first, i must tell - i'm new to the OpenERP and sorry for my english.

The problem is: I must add two columns in a product.product.tree with:

  • first collumn counts prices from a pricelist called "Pricelist A"

  • second collumn counts prices from a pricelist called "Pricelist B"

Is this possible? If not, maybe can you give me a litte bit information (like for a noob) how to use function fields in that tree view

What i need?

base price * customer tax * margin A + cost of shipment = the final price for customers A

base price * customer tax * margin B + cost of shipment = the final price for customers B

where base price is the the cost of buying

customer tax is a tax what customer must pay

margin A and B is what I earn on product

cost of shipment is cost of shipment

Thanks for the help!

ps. i was trying to add <field name="pricelist_id"> on devlopper mode in editing treeview but far as get is only "undefined" in that collumn

Regards!

Open-ERP version 7.0-20130703-231023

Avatar
Zrušiť
Autor

i'm really need help folks!

Autor

can i use "context" for display diffrent prices? how i can do that?

Autor Best Answer

Can i use "contex" for my problem?

I just found some code to begin with

<field name="pricelist_id" context="{'pricelist': 3}"/>
<field name="price" context="get('pricelist')"/>

but column price returns "0", and coulmn pricelist is still "undefined" pls can somebody explain me what i'm doing wrong?

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
okt 22
1919
1
júl 22
2057
1
dec 20
2277
1
sep 19
4972
0
júl 18
2982