[sale] incoterm field poorly implemented [direct sql / not translatable]
Bug #649029 reported by
Omar (Pexego)
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.
Related branches
lp:~openerp-commiter/openobject-addons/trunk-dev-addons3-ara
- OpenERP R&D Team: Pending requested
-
Diff: 19 lines (+2/-2)1 file modifiedaccount/partner_view.xml (+2/-2)
summary: |
- [sale] incoterm field poorly implemented + [sale] incoterm field poorly implemented [direct sql / not translatable] |
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 |
Changed in openobject-addons: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Another thing is that stock_incoterms name isn't translatable.