Skip to content

Commit

Permalink
[REL] some minor fixes for migration to v11
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed May 14, 2018
1 parent aaba66c commit dbe8dad
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ env:

install:
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- sed -i 's/manifest_required_author\=.*/manifest_required_author="ADHOC SA"/g' ${HOME}/maintainer-quality-tools/travis/cfg/travis_run_pylint_pr.cfg
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- pip install pycups==1.9.66
# - pip install pycups==1.9.66

script:
- travis_run_tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Runbot Status](http://runbot.adhoc.com.ar/runbot/badge/flat/25/11.0.svg)](http://runbot.adhoc.com.ar/runbot/repo/github-com-ingadhoc-reporting-engine-25)
[![Runbot Status](http://runbot.adhoc.com.ar/runbot/badge/flat/29/11.0.svg)](http://runbot.adhoc.com.ar/runbot/repo/github-com-ingadhoc-reporting-engine-29)
[![Build Status](https://travis-ci.org/ingadhoc/reporting-engine.svg?branch=11.0)](https://travis-ci.org/ingadhoc/reporting-engine)
[![Coverage Status](https://coveralls.io/repos/ingadhoc/reporting-engine/badge.png?branch=11.0)](https://coveralls.io/r/ingadhoc/reporting-engine?branch=11.0)
[![Code Climate](https://codeclimate.com/github/ingadhoc/reporting-engine/badges/gpa.svg)](https://codeclimate.com/github/ingadhoc/reporting-engine)
Expand Down
6 changes: 2 additions & 4 deletions google_cloud_print/gcp_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
<record id="config_google_cloudprint_client_id" model="ir.config_parameter">
<field name="key">google_cloudprint_client_id</field>
<field name="value">598905559630.apps.googleusercontent.com</field>
<field name="group_ids" eval="[(4, ref('base.group_system'))]" />
</record>

<record id="config_google_cloudprint_client_secret" model="ir.config_parameter">
<field name="key">google_cloudprint_client_secret</field>
<field name="value">vTmou73c-njP-1qCxm7qx7QE</field>
<field name="group_ids" eval="[(4, ref('base.group_system'))]" />
</record>

</data>
</odoo>
</odoo>
8 changes: 3 additions & 5 deletions google_cloud_print/res_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@ def _compute_cloudprint_uri(self):
@api.multi
def set_google_cloudprint_authorization_code(self):
self.ensure_one()
ICP = self.env['ir.config_parameter']
ICP = self.env['ir.config_parameter'].sudo()
authorization_code = self.google_cloudprint_authorization_code
if authorization_code and authorization_code != ICP.get_param(
'google_cloudprint_authorization_code'):
refresh_token = self.env['google.service'].generate_refresh_token(
'cloudprint', authorization_code)
ICP.set_param(
'google_cloudprint_refresh_token',
refresh_token,
groups=['base.group_system'])
refresh_token)
ICP.set_param(
'google_cloudprint_authorization_code',
authorization_code,
groups=['base.group_system'])
authorization_code)
11 changes: 5 additions & 6 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# report-print-send TODO we still need to adapt to it, for now we use the one on ingadhoc/patches
ingadhoc-patches https://github.com/ingadhoc/patches.git
ingadhoc-stock https://github.com/ingadhoc/stock.git
ingadhoc-account-financial-tools https://github.com/ingadhoc/account-financial-tools.git
ingadhoc-payment https://github.com/ingadhoc/account-payment.git
odoo-support https://github.com/ingadhoc/odoo-support.git
# ingadhoc-patches https://github.com/ingadhoc/patches.git
# ingadhoc-stock https://github.com/ingadhoc/stock.git
# ingadhoc-account-financial-tools https://github.com/ingadhoc/account-financial-tools.git
# ingadhoc-payment https://github.com/ingadhoc/account-payment.git
# odoo-support https://github.com/ingadhoc/odoo-support.git

0 comments on commit dbe8dad

Please sign in to comment.