bzr revid: hmo@tinyerp.com-20101028114019-5qkatqamaxhx6k0u
This commit is contained in:
Harry (OpenERP) 2010-10-28 17:10:19 +05:30
parent 214fddfc4c
commit 54f46060dc
6 changed files with 7 additions and 7 deletions

View File

@ -130,7 +130,7 @@ class account_payment_term_line(osv.osv):
return True
_constraints = [
(_check_percent,('Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2% '), ['value_amount']),
(_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2% ', ['value_amount']),
]
account_payment_term_line()

View File

@ -267,7 +267,7 @@ This is useful for CRM leads for example"),
}
_sql_constraints = [
('name', 'unique (name)',('The template name must be unique !'))
('name', 'unique (name)','The template name must be unique !')
]
def create_action(self, cr, uid, ids, context):

View File

@ -257,7 +257,7 @@ class marketing_campaign_segment(osv.osv):
return True
_constraints = [
(_check_model,('Model of filter must be same as resource model of Campaign '), ['ir_filter_id,campaign_id']),
(_check_model, 'Model of filter must be same as resource model of Campaign ', ['ir_filter_id,campaign_id']),
]
def onchange_campaign_id(self, cr, uid, ids, campaign_id):
@ -539,7 +539,7 @@ class marketing_campaign_transition(osv.osv):
return True
_constraints = [
(_check_campaign,('The To/From Activity of transition must be of the same Campaign '), ['activity_from_id,activity_to_id']),
(_check_campaign, 'The To/From Activity of transition must be of the same Campaign ', ['activity_from_id,activity_to_id']),
]
_sql_constraints = [

View File

@ -559,7 +559,7 @@ class product_pricelist_item(osv.osv):
}
_constraints = [
(_check_recursion,('Error ! You cannot assign the Main Pricelist as Other Pricelist in PriceList Item!'), ['base_pricelist_id'])
(_check_recursion, 'Error ! You cannot assign the Main Pricelist as Other Pricelist in PriceList Item!', ['base_pricelist_id'])
]
def product_id_change(self, cr, uid, ids, product_id, context={}):

View File

@ -475,7 +475,7 @@ class task(osv.osv):
return True
_constraints = [
(_check_recursion,('Error ! You cannot create recursive tasks.'), ['parent_ids'])
(_check_recursion, 'Error ! You cannot create recursive tasks.', ['parent_ids'])
]
#
# Override view according to the company definition

View File

@ -1368,7 +1368,7 @@ class stock_production_lot(osv.osv):
'product_id': lambda x, y, z, c: c.get('product_id', False),
}
_sql_constraints = [
('name_ref_uniq', 'unique (name, ref)',('The combination of serial number and internal reference must be unique !')),
('name_ref_uniq', 'unique (name, ref)', 'The combination of serial number and internal reference must be unique !'),
]
def action_traceability(self, cr, uid, ids, context={}):
""" It traces the information of a product