X-Git-Url: http://git.cyclocoop.org/?p=burette%2Flhc.git;a=blobdiff_plain;f=lhc.py;h=420ce976d06bd233f0815037024a06ec18bf3b75;hp=697611bba60406804dcdd61f145cfd207eb560b7;hb=c001634a75207746b21dec9bd77a92c055e68898;hpb=53705c67acede289a2dee2a076fa9a8000cbb3b6 diff --git a/lhc.py b/lhc.py index 697611b..420ce97 100644 --- a/lhc.py +++ b/lhc.py @@ -2,7 +2,7 @@ ############################################################################## # # lhc module for OpenERP, Customize OpenERP for L'Heureux Cyclage Copyright -# (C) 2013-2017 L'Heureux Cyclage () +# (C) 2013-2020 L'Heureux Cyclage () # # This file is a part of lhc_custom_oe # @@ -24,9 +24,9 @@ from openerp.osv import osv from openerp.osv import orm from openerp.osv import fields - import openerp.addons.decimal_precision as dp + class res_partner(orm.Model): _inherit = 'res.partner' @@ -39,6 +39,7 @@ class res_partner(orm.Model): 'kit_sent': lambda *a: False, } + class product_template(orm.Model): _inherit = 'product.template' @@ -46,6 +47,7 @@ class product_template(orm.Model): 'standard_price': fields.float('Cost', digits_compute=dp.get_precision('Product Price'), help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", groups="base.group_user,lhc.group_volunteer"), } + class res_users(orm.Model): _inherit = 'res.users' @@ -62,4 +64,28 @@ class res_users(orm.Model): v = {} return {'value': v} + +class event_registration(orm.Model): + _inherit = 'event.registration' + + _columns = { + 'gender': fields.selection([ + ('female', 'Female'), + ('male', 'Male'), + ('other', 'Other')], + 'Gender'), + 'position': fields.selection([ + ('employee', 'Employee'), + ('individual', 'Invividual'), + ('volunteer', 'Volunteer')], + 'Position'), + 'funding_main': fields.selection([ + ('individual', 'Individual'), + ('opco', 'OPCO'), + ('company', 'Company'), + ('pole_emploi', 'Pole Emploi')], + 'Main funding', help='Main funding origin'), + 'fundings_others': fields.char('Others fundings origins', size=128), + } + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: