İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4126 Görünümler

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
Vazgeç
Üretici

i'm really need help folks!

Üretici

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

Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eki 22
1918
1
Tem 22
2056
1
Ara 20
2276
1
Eyl 19
4971
0
Tem 18
2978