- Timestamp:
- Mar 23, 2012, 7:39:17 AM (13 years ago)
- Location:
- addons/isp_web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/isp_web/isp_web.py
r61 r63 68 68 'name': fields.char('Name', size=255, required=True), 69 69 'phone': fields.char('Phone number', size=255, required=True), 70 'address': fields. text('Address', size=255),70 'address': fields.char('Address', size=255), 71 71 'operator': fields.char('Operator', size=255), 72 72 } … … 96 96 isp_web_tv_sourcetype() 97 97 98 class isp_web_tv_normtype(osv.osv): 99 _name = "isp.web.tv.normtype" 100 _columns = { 101 'name': fields.char('Name', size=255, required=True), 102 } 103 isp_web_tv_normtype() 104 98 105 class isp_web_tv(osv.osv): 99 106 _name = "isp.web.tv" … … 102 109 'short_name': fields.char('Short name', size=16, required=True), 103 110 'frequency': fields.integer('Frequency'), 104 'norm': fields. char('Norm', size=255),111 'norm': fields.many2one('isp.web.tv.normtype', 'Norm'), 105 112 'homepage': fields.char('Homepage', size=255), 106 113 'language_id': fields.many2one('res.lang', 'Language'), -
addons/isp_web/isp_web_demo.xml
r60 r63 27 27 <field name="name">Internet</field> 28 28 </record> 29 30 <record model="isp.web.tv.normtype" id="isp_web_normtype_palbg"> 31 <field name="name">PAL-BG</field> 32 </record> 33 <record model="isp.web.tv.normtype" id="isp_web_normtype_paldk"> 34 <field name="name">PAL-DK</field> 35 </record> 29 36 </data> 30 37 </openerp> -
addons/isp_web/isp_web_view.xml
r61 r63 236 236 <field name="frequency" select="1"/> 237 237 <field name="norm" select="1"/> 238 <field name="homepage" select="1" />238 <field name="homepage" select="1" widget="url"/> 239 239 <field name="language_id" select="1"/> 240 <field name="stream" select="1" />241 <field name="stream_web" select="1" />240 <field name="stream" select="1" widget="url"/> 241 <field name="stream_web" select="1" widget="url"/> 242 242 <field name="source_type_id" select="1"/> 243 243 <field name="category_id" select="1"/>
Note:
See TracChangeset
for help on using the changeset viewer.