[sale] incoterm field poorly implemented [direct sql / not translatable]

Bug #649029 reported by Omar (Pexego)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

Hi,

Checking incoterm field in sales, I see that, it is a selection field with a get function, it should be a many2one field, directly to stock_incoterms, then in the view, if it wants, you write widget="selection".

Current implementation isn't good, because in the get function it uses a sql query. In addition, if you want work with this field it returns by default the code of incoterm (code isn't unique) instead of his Id.

I include my diff file. If my file is applied, you should delete the get function and incoterm line commented.

Tags: pexego

Related branches

Revision history for this message
Omar (Pexego) (omar7r) wrote :
summary: - [sale] incoterm field poorly implemented
+ [sale] incoterm field poorly implemented [direct sql / not translatable]
Revision history for this message
Omar (Pexego) (omar7r) wrote :

Another thing is that stock_incoterms name isn't translatable.

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Hello, also consider the values for incoterm computing, so here http://en.wikipedia.org/wiki/Incoterm#Summary_of_terms you can see 12 values depending from incoterm must be considered but can be as wishlist.

Regards,

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

@Omar can you propose to merge your patch?

qdp (OpenERP) (qdp)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
milestone: none → 6.0-rc2
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Omar (Pexego),

We have fixed the problem in lp:~openerp-dev/openobject-addons/trunk-dev-addons3-ara branch, It will be merged soon with Trunk addons.

Thank you,
ara

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.