跳至内容
菜单
此问题已终结
1 回复
4135 查看

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

形象
丢弃
编写者

i'm really need help folks!

编写者

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

编写者 最佳答案

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?

形象
丢弃
相关帖文 回复 查看 活动
1
10月 22
1919
1
7月 22
2057
1
12月 20
2277
1
9月 19
4972
0
7月 18
2982