Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0] analytic default using partner_id not work from Purchase Order #22896

Closed
celm1990 opened this issue Feb 7, 2018 · 2 comments
Closed
Assignees

Comments

@celm1990
Copy link
Contributor

celm1990 commented Feb 7, 2018

Impacted versions:
V11 tested on runbot
Steps to reproduce:
This issue is related to #21401
1.- Create a default analytic for Vendor ASUSTeK:
image
2.- Create a Purchase Order for this Vendor and receive products
image
3.- Create Invoice for PO(directly from PO, or go to Menu Invoicing/Purchases/Documents/Vendor Bills)
a) Create invoice from PO(analityc Account is nothing)
image
b) Create invoice from Menu Invoicing/Purchases/Documents/Vendor Bills and select PO, invoice lines are create, but analityc Account is nothing
image

image

Current behavior:
Analytic Account is nothing, because is obtained from _set_additional_fields function and self.invoice_id.partner_id.id is nothing.
On this function first create invoice lines, after invoice lines are assigned to new invoice(before, at call function _set_additional_fields invoice_id is nothing)

Expected behavior:
When add lines manually, work fine because Analytic Account is get from onchange and self.invoice_id.partner_id is set
image

Video/Screenshot link (optional):

@Yenthe666
Copy link
Collaborator

@qdp-odoo this is one for you. Could you check?

@lap-odoo lap-odoo self-assigned this Feb 28, 2018
@lap-odoo
Copy link
Contributor

@celm1990 Thanks for the feedback. The module has not been built to work with purchase orders. However, I agree it would be interesting to have this feature. I've created a task in our backlog (60417) to improve this for future versions. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants