This question has been flagged
1 Reply
3115 Views

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
Discard
Author

i'm really need help folks!

Author

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

Author 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
Discard