account_analytic_default not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
gpa(OpenERP) |
Bug Description
OpenERP 5.0.6 stable
account_
Windows XPSP3
I'm trying to use this module. As far as I understand it makes a connection (relation) with one
analytic account and one of products, partners, users.
I'm registering a sale order, deliver goods, invoicing, but at the invoice line of my related product with an analytic account,
there is no mention of that analytic account, the user must enter it manually.
Isn't this what it's supposed to do?
I found out from the code that the def responsible for filling the analytic account field is product_id_change.
When you are starting from a sale and delivery order the invoice created is already filled with lines so there is no
product_id_change event to trigger the action.
If you enter a new invoice with new lines it works.
But not so well.
I have two products one related with an analytic, the other not.
New invoice, new line with the first product analytic field filled.
Before pressing OK I changed my mind, it's not this product I want, it's the other.
Pressing magnifying glass, changing to second product, the analytic account field stays filled with the previous data.
Also, the declaration of argument "type='
Omitting it would make it usable at purchasing too.
Best regards
Andreas
Related branches
summary: |
- account_analytic_default not working? + account_analytic_default not working |
Changed in openobject-addons: | |
status: | New → Confirmed |
Changed in openobject-addons: | |
assignee: | nobody → gpa(Open ERP) (gpa-openerp) |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Fix Committed |
I would like to add another thought of mine.
At purchase order there is the possibility of the user to add an analytic account at every line of the order.
This is not available at a sale order.
By adding an analytic_account_id field to sale.order.line we solve the product_id_change event problem,
and we make sale and purchase procedures more alike to each other, something which is more easy for an average user.