removed unicity constraint on unique code of account_report and added some demo data into l10n_be

bzr revid: qdp@tinyerp.com-20090115125506-hqvvwg71na6pgtmk
This commit is contained in:
qdp
2009-01-15 13:55:06 +01:00
parent 57717ac6e9
commit 2a73f40fa2
2 changed files with 16 additions and 9 deletions
+1 -5
View File
@@ -159,7 +159,6 @@ class account_report(osv.osv):
('other','Others')],
'Type', required=True),
'expression': fields.char('Expression', size=240, required=True),
# 'expression_status': fields.char('Status expression', size=240, required=True),
'badness_limit' :fields.float('Badness Indicator Limit', digits=(16,2),help='This Value depicts the limit of badness.'),
'goodness_limit' :fields.float('Goodness Indicator Limit', digits=(16,2),help='This Value depicts the limit of goodness.'),
'parent_id': fields.many2one('account.report.report', 'Parent'),
@@ -204,10 +203,7 @@ class account_report(osv.osv):
return self.name_get(cr, user, ids, context=context)
_constraints = [
#TODO Put an expression to valid expression and expression_status
]
_sql_constraints = [
('code_uniq', 'unique (code)', 'The code of the report entry must be unique !')
#TODO Put an expression to valid expression
]
account_report()
+15 -4
View File
@@ -40,12 +40,23 @@
""",
'author': 'Tiny',
'depends': ['account', 'account_report', 'base_vat', 'base_iban', 'account_chart'],
'depends': [
'account',
'account_report',
'base_vat',
'base_iban',
'account_chart'
],
'init_xml': [],
'update_xml': ['account_pcmn_belgium.xml', 'l10n_be_wizard.xml',
'l10n_be_sequence.xml', 'fiscal_templates.xml',
'update_xml': [
'account_pcmn_belgium.xml',
'l10n_be_wizard.xml',
'l10n_be_sequence.xml',
'fiscal_templates.xml',
],
'demo_xml': [],
'demo_xml': [
'account.report.report.csv'
],
'installable': True,
'certificate': '31977724637',
}