- Timestamp:
- Sep 9, 2011, 9:49:46 AM (13 years ago)
- Location:
- addons/isp_web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/isp_web/isp_web.py
r30 r31 76 76 _name = "isp.web.history" 77 77 _columns = { 78 'date': fields.char('Date', size=255, required=True), 78 'name': fields.char('Name', size=255, required=True), 79 'date': fields.date('Date', required=True), 79 80 'text': fields.text('Text', required=True), 80 81 } -
addons/isp_web/isp_web_view.xml
r30 r31 4 4 <menuitem name="Web" parent="isp.menu_isp" 5 5 id="menu_isp_web" sequence="1"/> 6 6 7 7 8 <record model="ir.actions.act_window" id="action_isp_web_news_category_form"> … … 10 11 </record> 11 12 12 <menuitem name="News categor y"13 <menuitem name="News categories" 13 14 parent="menu_isp_web" id="base.menu_isp_web_news_category" sequence="1" 14 15 action="action_isp_web_news_category_form"/> … … 20 21 <field name="priority" eval="2"/> 21 22 <field name="arch" type="xml"> 22 <tree string="News categor y">23 <tree string="News categories"> 23 24 <field name="name" select="1"/> 24 25 </tree> … … 37 38 </record> 38 39 40 41 <record model="ir.actions.act_window" id="action_isp_web_user_form"> 42 <field name="res_model">isp.web.user</field> 43 <field name="domain">[]</field> 44 </record> 45 46 <menuitem name="Users" 47 parent="menu_isp_web" id="base.menu_isp_web_user" sequence="1" 48 action="action_isp_web_user_form"/> 49 50 <record model="ir.ui.view" id="view_isp_web_user_tree"> 51 <field name="name">isp.web.user</field> 52 <field name="model">isp.web.user</field> 53 <field name="type">tree</field> 54 <field name="priority" eval="2"/> 55 <field name="arch" type="xml"> 56 <tree string="Users"> 57 <field name="name" select="1"/> 58 <field name="password" select="1"/> 59 <field name="contact" select="1"/> 60 <field name="last_login" select="1"/> 61 </tree> 62 </field> 63 </record> 64 <record model="ir.ui.view" id="view_isp_web_user_form"> 65 <field name="name">isp.web.user</field> 66 <field name="model">isp.web.user</field> 67 <field name="priority" eval="2"/> 68 <field name="type">form</field> 69 <field name="arch" type="xml"> 70 <form string="User"> 71 <field name="name" select="1"/> 72 <field name="password" select="1"/> 73 <field name="contact" select="1"/> 74 <field name="last_login" select="1"/> 75 </form> 76 </field> 77 </record> 78 79 80 <record model="ir.actions.act_window" id="action_isp_web_news_form"> 81 <field name="res_model">isp.web.news</field> 82 <field name="domain">[]</field> 83 </record> 84 85 <menuitem name="News" 86 parent="menu_isp_web" id="base.menu_isp_web_news" sequence="1" 87 action="action_isp_web_news_form"/> 88 89 <record model="ir.ui.view" id="view_isp_web_news_tree"> 90 <field name="name">isp.web.news</field> 91 <field name="model">isp.web.news</field> 92 <field name="type">tree</field> 93 <field name="priority" eval="2"/> 94 <field name="arch" type="xml"> 95 <tree string="News"> 96 <field name="name" select="1"/> 97 <field name="date" select="1"/> 98 <field name="author" select="1"/> 99 <field name="category_id" select="1"/> 100 <field name="user_id" select="1"/> 101 </tree> 102 </field> 103 </record> 104 <record model="ir.ui.view" id="view_isp_web_news_form"> 105 <field name="name">isp.web.news</field> 106 <field name="model">isp.web.news</field> 107 <field name="priority" eval="2"/> 108 <field name="type">form</field> 109 <field name="arch" type="xml"> 110 <form string="News"> 111 <field name="name" select="1"/> 112 <field name="date" select="1"/> 113 <field name="content" select="1"/> 114 <field name="enclosure_ids" select="1"/> 115 <field name="author" select="1"/> 116 <field name="ipv4" select="1"/> 117 <field name="category_id" select="1"/> 118 <field name="user_id" select="1"/> 119 <field name="link" select="1"/> 120 </form> 121 </field> 122 </record> 123 124 125 <record model="ir.actions.act_window" id="action_isp_web_phonebook_form"> 126 <field name="res_model">isp.web.phonebook</field> 127 <field name="domain">[]</field> 128 </record> 129 130 <menuitem name="Phonebook" 131 parent="menu_isp_web" id="base.menu_isp_web_phonebook" sequence="1" 132 action="action_isp_web_phonebook_form"/> 133 134 <record model="ir.ui.view" id="view_isp_web_phonebook_tree"> 135 <field name="name">isp.web.phonebook</field> 136 <field name="model">isp.web.phonebook</field> 137 <field name="type">tree</field> 138 <field name="priority" eval="2"/> 139 <field name="arch" type="xml"> 140 <tree string="Phonebook"> 141 <field name="name" select="1"/> 142 <field name="phone" select="1"/> 143 <field name="address" select="1"/> 144 <field name="operator" select="1"/> 145 </tree> 146 </field> 147 </record> 148 <record model="ir.ui.view" id="view_isp_web_phonebook_form"> 149 <field name="name">isp.web.phonebook</field> 150 <field name="model">isp.web.phonebook</field> 151 <field name="priority" eval="2"/> 152 <field name="type">form</field> 153 <field name="arch" type="xml"> 154 <form string="Phonebook record"> 155 <field name="name" select="1"/> 156 <field name="phone" select="1"/> 157 <field name="address" select="1"/> 158 <field name="operator" select="1"/> 159 </form> 160 </field> 161 </record> 162 163 164 <record model="ir.actions.act_window" id="action_isp_web_history_form"> 165 <field name="res_model">isp.web.history</field> 166 <field name="domain">[]</field> 167 </record> 168 169 <menuitem name="History" 170 parent="menu_isp_web" id="base.menu_isp_web_history" sequence="1" 171 action="action_isp_web_history_form"/> 172 173 <record model="ir.ui.view" id="view_isp_web_history_tree"> 174 <field name="name">isp.web.history</field> 175 <field name="model">isp.web.history</field> 176 <field name="type">tree</field> 177 <field name="priority" eval="2"/> 178 <field name="arch" type="xml"> 179 <tree string="History"> 180 <field name="name" select="1"/> 181 <field name="date" select="1"/> 182 </tree> 183 </field> 184 </record> 185 <record model="ir.ui.view" id="view_isp_web_history_form"> 186 <field name="name">isp.web.history</field> 187 <field name="model">isp.web.history</field> 188 <field name="priority" eval="2"/> 189 <field name="type">form</field> 190 <field name="arch" type="xml"> 191 <form string="History item"> 192 <field name="name" select="1"/> 193 <field name="date" select="1"/> 194 <field name="text" select="1"/> 195 </form> 196 </field> 197 </record> 39 198 </data> 40 199 </openerp>
Note:
See TracChangeset
for help on using the changeset viewer.