Browse Source

Merge pull request #211 from gurneyalex/7.0-fix_runbot_server_environment

[7.0] fix warnings on runbot
pull/221/head
Holger Brunn 9 years ago
parent
commit
525256949e
  1. 7
      .travis.yml
  2. 2
      base_external_dbsource/base_external_dbsource_view.xml
  3. 3
      import_odbc/import_odbc_view.xml
  4. 8
      sentry_logger/__init__.py
  5. 1
      tree_view_record_id/__openerp__.py
  6. 2
      tree_view_record_id/security/ir.model.access.csv

7
.travis.yml

@ -10,9 +10,10 @@ python:
- "2.7"
env:
- VERSION="7.0" ODOO_REPO="odoo/odoo"
- VERSION="7.0" ODOO_REPO="OCA/OCB"
- VERSION="7.0" UNIT_TEST="1"
- VERSION="7.0" LINT_CHECK=1
- VERSION="7.0" ODOO_REPO="odoo/odoo" LINT_CHECK=0
- VERSION="7.0" ODOO_REPO="OCA/OCB" LINT_CHECK=0
- VERSION="7.0" UNIT_TEST="1" LINT_CHECK=0
virtualenv:
system_site_packages: true

2
base_external_dbsource/base_external_dbsource_view.xml

@ -7,7 +7,6 @@
<record model="ir.ui.view" id="view_dbsource_tree">
<field name="name">base.external.dbsource.tree</field>
<field name="model">base.external.dbsource</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="External DB Sources">
<field name="name"/>
@ -20,7 +19,6 @@
<record model="ir.ui.view" id="view_dbsource_form">
<field name="name">base.external.dbsource.form</field>
<field name="model">base.external.dbsource</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="External DB Source">
<field name="name"/>

3
import_odbc/import_odbc_view.xml

@ -7,7 +7,6 @@
<record model="ir.ui.view" id="view_import_dbtable_form">
<field name="name">import.odbc.dbtable.form</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Table">
<field name="name" search="1"/>
@ -40,7 +39,6 @@
<record id="view_import_dbtable_tree" model="ir.ui.view">
<field name="name">import.odbc.dbtable.tree</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Tables" colors="grey: enabled==False; red:last_error_count&gt;0; blue:last_warn_count&gt;0">
<field name="exec_order"/>
@ -61,7 +59,6 @@
<record id="view_import_dbtable_filter" model="ir.ui.view">
<field name="name">import.odbc.dbtable.filter</field>
<field name="model">import.odbc.dbtable</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search ODBC Imports">
<field name="name"/>

8
sentry_logger/__init__.py

@ -20,6 +20,7 @@
#
###############################################################################
import os
import logging
import cgitb
@ -54,7 +55,12 @@ try:
handler = OdooSentryHandler(client, level=level)
root_logger.addHandler(handler)
else:
root_logger.warn(u"Sentry DSN not defined in config file")
msg = u"Sentry DSN not defined in config file"
if os.environ.get('OCA_CI'):
# don't fail the build on runbot for this
root_logger.info(msg)
else:
root_logger.warn(msg)
client = None
# Inject sentry_activated to session to display error message or not

1
tree_view_record_id/__openerp__.py

@ -41,6 +41,7 @@ defined by the orm (Odoo model).
'base',
],
'data': [
'security/ir.model.access.csv',
],
'demo': [
],

2
tree_view_record_id/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_module_tree_view_record_id_installed,access_module_tree_view_record_id_installed,model_module_tree_view_record_id_installed,,1,0,0,0
Loading…
Cancel
Save