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

[FIX] calling name_get can cause tracebacks when printing reports #18

Merged
merged 2 commits into from
Nov 12, 2014

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Jul 15, 2014

@pedrobaeza
Copy link
Member

👍 (code review)

@StefanRijnhart
Copy link
Member

👍 Can you propose the same improvement into the original fix: https://code.launchpad.net/~therp-nl/openerp-web/7.0_lp1261322_better_report_name/+merge/220777 or better, propose the improved fix on Odoo on GitHub?

@hbrunn
Copy link
Member Author

hbrunn commented Sep 15, 2014

I just fixed a small annoyance with this patch: When reporting over multiple objects and depending on their names, we might get a very long file name, which causes at least chrome to refuse to save the file, giving the user extra hassle. So truncating to some sane length seems a good idea.

@pedrobaeza
Copy link
Member

Yeah, I have experimented this, so this little hack it's welcome.

@pedrobaeza
Copy link
Member

Do we proceed with the merge?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1a4d05f on hbrunn:7.0_lp1340813 into * on OCA:7.0*.

@moylop260
Copy link

If you run test purchase_requisition/test/purchase_requisition.yml with this PR
The result is:

I create the procurement order and run that procurement.
Creating !record {model: make.procurement, id: procurement_product_hdd3}
Creating !python {model: make.procurement}: |
I run the scheduler.
I check requisition details which created after run procurement.
I open another requisition.
Supplier send one RFQ so I create requisition request of that supplier.
Creating !record {model: purchase.requisition.partner, id: requisition_partner_0}
Creating !python {model: purchase.requisition.partner}:
I check that the RFQ details which created for supplier.
I confirmed RFQ which has best price.
I check status of requisition after confirmed best RFQ.
I print a Requisition report
I check that I cannot cancel the requisition:

ERROR AssertionError in Python code : tender_cancel should have failed

You can check log here:
runbot ocb
log.txt

@pedrobaeza
Copy link
Member

@moylop260, are you sure the error is due to this patch?

Regards.

@moylop260
Copy link

@pedrobaeza,
Maybe with a rebase will be fixed.
Last commit date (before of patch) is two month ago.

pedrobaeza added a commit that referenced this pull request Nov 12, 2014
[FIX] calling name_get can cause tracebacks when printing reports
@pedrobaeza pedrobaeza merged commit a16ddf2 into OCA:7.0 Nov 12, 2014
yibudak added a commit to altinkaya-opensource/OCBAltinkaya that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants