Changeset 42 for addons/isp/isp.py
- Timestamp:
- Sep 13, 2011, 2:10:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/isp/isp.py
r41 r42 81 81 _columns = { 82 82 'name': fields.char('Name', size=32, required=True, translate=True), 83 'type_id': fields.many2one('network.interface.type', 'Type' , required=True),83 'type_id': fields.many2one('network.interface.type', 'Type'), 84 84 'interface_ids': fields.one2many('network.interface', 'link_id', 'Interfaces'), 85 85 'points_ids': fields.many2many('network.point', 'network_link_point_rel', 'link_id', 'point_id', 'Points'), … … 106 106 _columns = { 107 107 'name': fields.char('Name', size=32, required=True), 108 'parent ': fields.many2one('network.domain', 'Parent'),108 'parent_id': fields.many2one('network.domain', 'Parent'), 109 109 'alias': fields.char('Alias', size=32), 110 110 } … … 142 142 network_service_type() 143 143 144 class network_service_internet(osv.osv): 145 _name = "network.service.internet" 146 _columns = { 147 'name': fields.char('Name', size=32, required=True, translate=True), 148 'download_min_speed': fields.integer('Download min. speed', required=True), 149 'download_max_speed': fields.integer('Download max. speed', required=True), 150 'upload_min_speed': fields.integer('Upload min. speed', required=True), 151 'upload_max_speed': fields.integer('Upload max. speed', required=True), 152 } 153 network_service_internet() 154 155 class network_service_hosting_vps(osv.osv): 156 _name = "network.service.hosting.vps" 157 _columns = { 158 'name': fields.char('Name', size=32, required=True, translate=True), 159 'memory_capacity': fields.integer('Memory capacity', required=True, help='Total memory capacity of virtual machine in MB'), 160 'storage_capacity': fields.integer('Storage capacity', required=True, help='Total storage capacity of virtual machine in GB'), 161 } 162 network_service_hosting_vps() 163 144 164 class network_service(osv.osv): 145 165 _name = "network.service" … … 150 170 'price_period_id': fields.many2one('network.billing.period', 'Price period'), 151 171 'available': fields.boolean('Available', help='Define if service is available for customers'), 172 'standard': fields.boolean('Standard', help='Define if service is standard offer for customers'), 173 'partner_ids': fields.many2many('res_partner', 'network_service_partner_rel', 'service_id', 'partner_id', 'Partners'), 152 174 } 153 175 network_service() 154 176 155 177 class network_service_instance(osv.osv): 178 _name = "network.service" 179 _columns = { 180 'name': fields.char('Name', size=32, required=True, translate=True), 181 'type_id': fields.many2one('network.service.type', 'Type'), 182 'price': fields.integer('Price', help='Price per period'), 183 'price_period_id': fields.many2one('network.billing.period', 'Price period'), 184 'available': fields.boolean('Available', help='Define if service is available for customers'), 185 'standard': fields.boolean('Standard', help='Define if service is standard offer for customers'), 186 } 187 network_service()
Note:
See TracChangeset
for help on using the changeset viewer.