Skip to content

Commit

Permalink
Merge pull request #1025 from akretion/11.0-mig-base_exception
Browse files Browse the repository at this point in the history
[MIG] base_exception: Migration to 11.0
  • Loading branch information
pedrobaeza authored Dec 5, 2017
2 parents 336c9c7 + 4342d25 commit b5409b9
Show file tree
Hide file tree
Showing 86 changed files with 14,376 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ addons:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- unixodbc-dev
- python-mysqldb

env:
global:
- VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='[email protected]'
- secure: Z06mZCN+Hm3myqHSOZpOOk1pd4oq1epAWZv6m9OX2bTNHbhyOVOGK6JWWsnDm/3DUCN1ZeLtSGOl9bvQfMa8ahQHA80MkLL16YlTvQV59Lh+L2gAYmxX+ogJCJgeQSVAXlGLscgkADCu/HzDlmatrDeROMtULn5i23j2qcyUNyM=

This comment has been minimized.

Copy link
@simahawk

simahawk Dec 5, 2017

Contributor

@pedrobaeza here's the missing bit, indeed :)

This comment has been minimized.

Copy link
@pedrobaeza

pedrobaeza Dec 5, 2017

Author Member

Well, no problem with that. Restored!


matrix:
- LINT_CHECK="1"
Expand All @@ -30,7 +26,6 @@ env:
# - TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup"
# - TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup"


before_install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
Expand All @@ -47,4 +42,4 @@ script:
- travis_run_tests

after_success:
- travis_after_tests_success
- travis_after_tests_success
61 changes: 61 additions & 0 deletions base_exception/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

==============
Base Exception
==============

This module provide an abstract model to manage customizable
exceptions to be applied on different models (sale order, invoice, ...).

It is not useful for itself. You can see an example of implementation
in the 'sale_exception' module. (sale-workflow repository) or
'purchase_exception' module (purchase-workflow repository).

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/11.0


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Raphaël Valyi <[email protected]>
* Renato Lima <[email protected]>
* Sébastien BEAU <[email protected]>
* Guewen Baconnier <[email protected]>
* Yannick Vaucher <[email protected]>
* SodexisTeam <[email protected]>
* Mourad EL HADJ MIMOUNE <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
5 changes: 5 additions & 0 deletions base_exception/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import wizard, models
from .tests import test_tmp_model
26 changes: 26 additions & 0 deletions base_exception/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# Copyright 2017 Akretion (http://www.akretion.com)
# Mourad EL HADJ MIMOUNE <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
'name': 'Exception Rule',
'version': '11.0.1.0.0',
'category': 'Generic Modules',
'summary': """
This module provide an abstract model to manage customizable
exceptions to be applied on different models (sale order, invoice, ...)""",
'author':
"Akretion, Sodexis, Camptocamp, Odoo Community Association (OCA)",
'website': 'http://www.akretion.com',
'depends': ['base_setup'],
'license': 'AGPL-3',
'data': [
'security/base_exception_security.xml',
'security/ir.model.access.csv',
'security/tmp_test_model_access_rule.xml',
'wizard/base_exception_confirm_view.xml',
'views/base_exception_view.xml',
],
'installable': True,
}
198 changes: 198 additions & 0 deletions base_exception/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_exception
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_active
msgid "Active"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_model
msgid "Apply on"
msgstr ""

#. module: base_exception
#: model:ir.actions.act_window,name:base_exception.action_exception_rule_confirm
#: model:ir.ui.view,arch_db:base_exception.view_exception_rule_confirm
msgid "Blocked in draft due to exceptions"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_create_date
msgid "Created on"
msgstr "Creado en"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_description
msgid "Description"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_display_name
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm_display_name
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_display_name
msgid "Display Name"
msgstr ""

#. module: base_exception
#: code:addons/base_exception/models/base_exception.py:185
#, python-format
msgid ""
"Error when evaluating the exception.rule rule:\n"
" %s \n"
"(%s)"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_name
msgid "Exception Name"
msgstr ""

#. module: base_exception
#: model:ir.ui.view,arch_db:base_exception.view_exception_rule_tree
msgid "Exception Rule"
msgstr ""

#. module: base_exception
#: model:ir.ui.view,arch_db:base_exception.view_exception_rule_form
msgid "Exception Rule Setup"
msgstr ""

#. module: base_exception
#: model:ir.actions.act_window,name:base_exception.action_exception_rule_tree
#: model:ir.model,name:base_exception.model_exception_rule
#: model:ir.ui.menu,name:base_exception.menu_action_exception
msgid "Exception Rules"
msgstr ""

#. module: base_exception
#: model:res.groups,name:base_exception.group_exception_rule_manager
msgid "Exception manager"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_exception_ids
msgid "Exceptions"
msgstr ""

#. module: base_exception
#: model:ir.ui.view,arch_db:base_exception.view_exception_rule_confirm
msgid "Exceptions Rules"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm_exception_ids
msgid "Exceptions to resolve"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,help:base_exception.field_exception_rule_sequence
msgid "Gives the sequence order when applying the test"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_id
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm_id
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_id
msgid "ID"
msgstr "ID"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_ignore_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm_ignore
msgid "Ignore Exceptions"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception___last_update
#: model:ir.model.fields,field_description:base_exception.field_exception_rule___last_update
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm___last_update
msgid "Last Modified on"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_main_exception_id
msgid "Main Exception"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_code
msgid "Python Code"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,help:base_exception.field_exception_rule_code
msgid ""
"Python code executed to check if the exception apply or not. The code must "
"apply block = True to apply the exception."
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_confirm_related_model_id
msgid "Related model id"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_base_exception_rule_group
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_rule_group
msgid "Rule group"
msgstr ""

#. module: base_exception
#: model:ir.model.fields,help:base_exception.field_exception_rule_rule_group
msgid ""
"Rule group is used to group the rules that must validated at same time for a"
" target object. Ex: validate sale.order.line rules with sale order rules."
msgstr ""

#. module: base_exception
#: model:ir.model.fields,field_description:base_exception.field_exception_rule_sequence
msgid "Sequence"
msgstr ""

#. module: base_exception
#: model:ir.ui.view,arch_db:base_exception.view_exception_rule_confirm
msgid "_Close"
msgstr ""

#. module: base_exception
#: model:ir.model,name:base_exception.model_base_exception
msgid "base.exception"
msgstr ""

#. module: base_exception
#: model:ir.model,name:base_exception.model_exception_rule_confirm
msgid "exception.rule.confirm"
msgstr ""
Loading

0 comments on commit b5409b9

Please sign in to comment.