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

[8.0] crm_rma_lot_mass_return gives javascript error on playAlert #69

Closed
RoelAdriaans opened this issue Dec 22, 2015 · 9 comments
Closed

Comments

@RoelAdriaans
Copy link

With crm_rma_lot_mass_return installed, adding products we get an error:

ReferenceError: playAlert is not defined

Linked to https://github.com/OCA/rma/blob/8.0/crm_rma_lot_mass_return/static/src/js/barcode_text.js#L67 and https://github.com/OCA/rma/blob/8.0/crm_rma_lot_mass_return/static/src/js/barcode_text.js#L84 ..

Tested with Firefox 43 on Linux, Chrome on Windows

@RoelAdriaans
Copy link
Author

Linked to https://github.com/OCA/rma/blob/8.0/crm_rma_lot_mass_return/templates/search_view.xml#L6

The file /crm_rma_lot_mass_return/static/lib/alert.js does not exist.

ping @osvalr , because you've committed this code, maybe left behind in a .gitignore?

@osvalr
Copy link

osvalr commented Jan 28, 2016

@RoelAdriaans-B-informed I'm checking this out

@osvalr
Copy link

osvalr commented Jan 28, 2016

@RoelAdriaans-B-informed as you pointed out alert.js was ignored by the .gitignore and it's necessary to allow this file allow ../static/lib but maintain the rule for generic /lib as it's currently listed

@RoelAdriaans
Copy link
Author

@osvalr True, but you can to an git add -f to add the file, ignoring the gitignore file

@osvalr
Copy link

osvalr commented Jan 28, 2016

@RoelAdriaans-B-informed but valid directories as static/lib/ need be added without any forcing IMHO, please see OCA/maintainer-tools#173 and let me know your comments

@gurneyalex
Copy link
Member

OCA/maintainer-tools#173 is now merged

@gurneyalex
Copy link
Member

The correct template gitignore file is https://github.com/OCA/maintainer-quality-tools/blob/master/sample_files/.gitignore though

@RoelAdriaans
Copy link
Author

Thanks for the merge @gurneyalex
.gitignore is now updated, and file can be added cleanly.

@RoelAdriaans
Copy link
Author

Fixed with the merging of #75

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

No branches or pull requests

3 participants