Show partner address instead of partner name

Asked by Thach Nguyen

Hi all,

Partner field of stock picking in openerp version 6 show contact name and address of partner. Then I installed base_contact module, the paernter field only show address of patner. But in Version 5, the Partner field on stock picking show partner name. I investigated in source code and find some information:
_ In version 6: The actions of stock picking to open three form (included Internal Moves, Incoming Shippments and Delivery Orders) that have context : {'contact_display':'partner_address'}
_ In version 5: The actions have context : {'contact_display':'partner'}

Link to this file : addons/stock/stock_view.xml

So, Anybody can explain to me why we change this context between Version 5 and Version 6

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Thach Nguyen
Solved:
Last query:
Last reply:

This question was originally filed as bug #894622.

Revision history for this message
Thach Nguyen (nguyencothach1989) said :
#1

Hi all,

Stock picking in openerp version 6 show contact name and address of partner. Then I installed base_contact module, the paernter field only show address of patner. But in Version 5, the Partner field on stock picking show partner name. I investigated in source code and find some information:
_ In version 6: The actions of stock picking to open three form (included Internal Moves, Incoming Shippments and Delivery Orders) that have context : {'contact_display':'partner_address'}
_ In version 5: The actions have context : {'contact_display':'partner'}

Link to this file : addons/stock/stock_view.xml

So, Anybody can explain to me why we change this context between Version 5 and Version 6

Thanks

Revision history for this message
Ferdinand (office-chricar) said :
#2

well it's very clear to me that any document / view needs
* Customer/Supplier Partner name
* Customer/Supplier Address

as well as
* Shipping Partner Name
* Shipping Partner Address.

and / or
* Invoice Partner Name
* Invoice Partner Address.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

Maybe the usability improvement by OpenERP.
If you need like version 5, Just inherit view and change the context so it will work as per v5.

Revision history for this message
Thach Nguyen (nguyencothach1989) said :
#4

I have fixed this problem. I remove "address" in actions

{'contact_display':'partner_address'} => {'contact_display':'partner'}