Selection of multi-company products account in invoices lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
version 6.0 on Ubuntu10.10 64bits
When you change the product in invoice line selects a view account not the subaccount where movements are registered. This problem is in multi-company, not in the default company installed with openerp. Position [0] in in_obj_acc has the view id of the company account, in position [1] the correct subaccount.
This code is in addons/
lines 1359 to 1364
Actual code:
if in_acc or ex_acc:
res.
res.
else:
res.
res.
Proposed code:
if in_acc or ex_acc:
res.
res.
else:
res.
res.
Related branches
- Purnendu Singh (OpenERP): Needs Resubmitting
- Mustufa Rangwala (Open ERP): Needs Fixing
-
Diff: 66 lines (+22/-2)4 files modifiedhr/security/hr_security.xml (+8/-0)
hr_evaluation/hr_evaluation_demo.xml (+7/-1)
hr_expense/security/ir_rule.xml (+1/-1)
hr_payroll/security/hr_security.xml (+6/-0)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
I forgot to mention that my accounting location is Spanish but I think It affects any location. When I say subaccount I mean the internal type is Regular and when I say view, I mean internal type of account is View.
Thanks.