Browse Source

[FIX] update manifest & imp code readability

pull/775/head
Mourad Elhadj Mimoune 8 years ago
parent
commit
671e704db5
  1. 2
      base_exception/README.rst
  2. 8
      base_exception/__manifest__.py
  3. 4
      base_exception/models/base_exception.py

2
base_exception/README.rst

@ -6,7 +6,7 @@
Base Exception Base Exception
============== ==============
This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...). It is not usefull for itself. You can see an exemple of implementation in the 'sale_exception' module. (sale-workflow repository).
This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...). It is not usefull for itself. You can see an example of implementation in the 'sale_exception' module. (sale-workflow repository).
Usage Usage
===== =====

8
base_exception/__manifest__.py

@ -4,10 +4,12 @@
{'name': 'Exception Rule', {'name': 'Exception Rule',
'version': '10.0.1.0.0', 'version': '10.0.1.0.0',
'category': 'Generic Modules/Sale',
'author': "Akretion, Sodexis, Odoo Community Association (OCA)",
'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', 'website': 'http://www.akretion.com',
'depends': ['sale'],
'depends': ['base'],
'license': 'AGPL-3', 'license': 'AGPL-3',
'data': [ 'data': [
'security/base_exception_security.xml', 'security/base_exception_security.xml',

4
base_exception/models/base_exception.py

@ -33,13 +33,13 @@ class ExceptionRule(models.Model):
string='Sequence', string='Sequence',
help="Gives the sequence order when applying the test") help="Gives the sequence order when applying the test")
rule_group = fields.Selection( rule_group = fields.Selection(
[],
selection=[],
help="Rule group is used to group the rules that must validated " help="Rule group is used to group the rules that must validated "
"at same time for a target object. Ex: " "at same time for a target object. Ex: "
"validate sale.order.line rules with sale order rules.", "validate sale.order.line rules with sale order rules.",
required=True) required=True)
model = fields.Selection( model = fields.Selection(
[],
selection=[],
string='Apply on', required=True) string='Apply on', required=True)
active = fields.Boolean('Active') active = fields.Boolean('Active')
code = fields.Text( code = fields.Text(

Loading…
Cancel
Save