diff --git a/addons/account/wizard/wizard_account_chart.py b/addons/account/wizard/wizard_account_chart.py index 491dab89ed7..932f86ea54b 100644 --- a/addons/account/wizard/wizard_account_chart.py +++ b/addons/account/wizard/wizard_account_chart.py @@ -37,7 +37,7 @@ class wizard_account_chart(wizard.interface): ''' - + _account_chart_fields = { 'fiscalyear': { 'string': 'Fiscal year', @@ -46,10 +46,10 @@ class wizard_account_chart(wizard.interface): 'help': 'Keep empty for all open fiscal year', }, 'target_move': { - 'string': 'Target Moves', - 'type': 'selection', - 'selection': [('all','All Entries'),('posted_only','All Posted Entries')], - 'required': True, + 'string': 'Target Moves', + 'type': 'selection', + 'selection': [('all','All Entries'),('posted_only','All Posted Entries')], + 'required': True, 'default': lambda *a:"all", }, } @@ -68,6 +68,7 @@ class wizard_account_chart(wizard.interface): id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id'] result = act_obj.read(cr, uid, [id])[0] result['context'] = str({'fiscalyear': data['form']['fiscalyear'],'target_move':data['form']['target_move']}) + result['name']+=':'+pooler.get_pool(cr.dbname).get('account.fiscalyear').read(cr,uid,[data['form']['fiscalyear']])[0]['code'] return result states = { diff --git a/addons/auction/auction_demo.xml b/addons/auction/auction_demo.xml index 537d1da8e59..1d12fcef062 100644 --- a/addons/auction/auction_demo.xml +++ b/addons/auction/auction_demo.xml @@ -300,7 +300,7 @@ 2 1500.00 - | + @@ -317,7 +317,7 @@ 4 0.00 - | | + @@ -334,7 +334,7 @@ 4 375 - | | + @@ -782,11 +782,11 @@ - pritesh - 45 + Demo + - 25 - + diff --git a/addons/hr_holidays/__terp__.py b/addons/hr_holidays/__terp__.py index 1396ab5215a..8d33bcaddfa 100644 --- a/addons/hr_holidays/__terp__.py +++ b/addons/hr_holidays/__terp__.py @@ -7,7 +7,7 @@ "website" : "http://tinyerp.com/", "description": """Human Ressources: Holidays tracking and workflow - This module allows you to manage holidays and holidays requests. For each employee, you can also define a number of available holidays per holiday status. + This module allows you to manage holidays and holidays requests. For each employee, you can also define a number of available holidays per holiday status. Note that: - A synchronisation with an internal agenda (use of the crm module) is possible: in order to automaticly create a case when an holiday request is accepted, you have to link the holidays status to a case section. You can set up this info and your color preferencies in @@ -26,7 +26,8 @@ """, "depends" : ["hr","crm_configuration"], "init_xml" : [], - "demo_xml" : ["hr_bel_holidays_2008.xml",], +# "demo_xml" : ["hr_bel_holidays_2008.xml",], + "demo_xml" : [], "update_xml" : ["hr_workflow.xml","hr_view.xml","hr_holidays_report.xml","hr_holidays_wizard.xml",], "active": False, "installable": True diff --git a/addons/hr_holidays/hr.py b/addons/hr_holidays/hr.py index e541f69c3ce..5e15107209e 100644 --- a/addons/hr_holidays/hr.py +++ b/addons/hr_holidays/hr.py @@ -46,9 +46,23 @@ def strToDate(dt): dt_date=datetime.date(int(dt[0:4]),int(dt[5:7]),int(dt[8:10])) return dt_date +class hr_holidays_status(osv.osv): + _name = "hr.holidays.status" +# _inherit = 'hr.holidays.status' + _description = "Holidays Status" + _columns = { + 'name' : fields.char('Holiday Status', size=64, required=True, translate=True), + 'section_id': fields.many2one('crm.case.section', 'Section'), + 'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color of the status', required=True), + } + _defaults = { + 'color_name': lambda *args: 'red', + } +hr_holidays_status() + class hr_holidays(osv.osv): _name = "hr.holidays" - _inherit = 'hr.holidays' +# _inherit = 'hr.holidays' _description = "Holidays" _columns = { 'name' : fields.char('Description', required=True, readonly=True, size=64, states={'draft':[('readonly',False)]}), @@ -171,20 +185,6 @@ class hr_holidays(osv.osv): return True hr_holidays() -class hr_holidays_status(osv.osv): - _name = "hr.holidays.status" - _inherit = 'hr.holidays.status' - _description = "Holidays Status" - _columns = { - 'name' : fields.char('Holiday Status', size=64, required=True, translate=True), - 'section_id': fields.many2one('crm.case.section', 'Section'), - 'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color of the status', required=True), - } - _defaults = { - 'color_name': lambda *args: 'red', - } -hr_holidays_status() - class hr_holidays_per_user(osv.osv): _name = "hr.holidays.per.user" diff --git a/addons/hr_holidays/hr_view.xml b/addons/hr_holidays/hr_view.xml index b37ec0cebf1..410803c1c27 100644 --- a/addons/hr_holidays/hr_view.xml +++ b/addons/hr_holidays/hr_view.xml @@ -31,7 +31,6 @@ - @@ -54,7 +53,7 @@ hr.holidays.tree hr.holidays - + tree diff --git a/addons/report_intrastat/__terp__.py b/addons/report_intrastat/__terp__.py index e6bf6fb67ec..fe593571224 100644 --- a/addons/report_intrastat/__terp__.py +++ b/addons/report_intrastat/__terp__.py @@ -31,7 +31,7 @@ "version" : "1.0", "author" : "Tiny", "website" : "http://tinyerp.com", - "depends" : ["base", "product", "stock", "sale", "purchase"], + "depends" : ["base", "product", "stock", "sale", "purchase", "report_stock"], "category" : "Generic Modules/Inventory Control", "description": "A module that adds intrastat reports.", "init_xml" : ["report_intrastat_data.xml",],