GoodERP
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

575 行
21KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <data>
  4. <!--原生应用的 应用 和 设置 菜单调到后面,让gooderp菜单集中在一起-->
  5. <menuitem id='base.menu_management' name='Apps' sequence='9997'/>
  6. <menuitem id='base.menu_administration' name='Settings' sequence='9998'/>
  7. <!--根菜单-->
  8. <menuitem id='setting_menu' name='配置' groups="core.master_groups" web_icon="core,static/description/icon.png" sequence='9999'/>
  9. <menuitem id='config_data_menu' name='基本配置' parent='base.menu_administration' sequence='20'/>
  10. <menuitem id='system_menu' name='地址配置' parent='base.menu_administration' sequence='30'/>
  11. <!--类别-->
  12. <record id="core_category_list" model="ir.ui.view">
  13. <field name="name">core.category.list</field>
  14. <field name="model">core.category</field>
  15. <field name="arch" type="xml">
  16. <list editable="top" string="类别">
  17. <field name="name"/>
  18. <field name="type"/>
  19. <field name="active"/>
  20. </list>
  21. </field>
  22. </record>
  23. <record id="core_category_form" model="ir.ui.view">
  24. <field name="name">core.category.form</field>
  25. <field name="model">core.category</field>
  26. <field name="arch" type="xml">
  27. <form string="类别">
  28. <group>
  29. <group>
  30. <field name="name"/>
  31. <field name="type" invisible="context.get('default_type', 0)"/>
  32. </group>
  33. <group>
  34. <field name="note"/>
  35. </group>
  36. </group>
  37. </form>
  38. </field>
  39. </record>
  40. <record id="core_category_search" model="ir.ui.view">
  41. <field name="name">core.category.search</field>
  42. <field name="model">core.category</field>
  43. <field name="arch" type="xml">
  44. <search string="类别">
  45. <field name="name"/>
  46. <field name="type"/>
  47. <searchpanel>
  48. <field name='type'/>
  49. </searchpanel>
  50. <separator/>
  51. <group expand="0" string="分组">
  52. <filter name="by_type" string="类型" domain="[]" context="{'group_by':'type'}"/>
  53. </group>
  54. </search>
  55. </field>
  56. </record>
  57. <record id="core_category_action" model="ir.actions.act_window">
  58. <field name="name">类别</field>
  59. <field name="res_model">core.category</field>
  60. <field name="type">ir.actions.act_window</field>
  61. <field name="view_mode">list</field>
  62. <field name="search_view_id" ref="core_category_search"/>
  63. </record>
  64. <menuitem id='core_category_menu' name='类别' action='core_category_action' parent='config_data_menu' sequence='2'/>
  65. <!--可选值-->
  66. <record id="core_value_list" model="ir.ui.view">
  67. <field name="name">core.value.list</field>
  68. <field name="model">core.value</field>
  69. <field name="arch" type="xml">
  70. <list editable="top" string="可选值">
  71. <field name="name"/>
  72. <field name="type"/>
  73. <field name="parent_id"/>
  74. <field name="note" groups="base.group_no_one"/>
  75. <field name='active' column_invisible='1'/>
  76. </list>
  77. </field>
  78. </record>
  79. <record id="core_value_form" model="ir.ui.view">
  80. <field name="name">core.value.form</field>
  81. <field name="model">core.value</field>
  82. <field name="arch" type="xml">
  83. <form string="可选值">
  84. <group>
  85. <field name="name"/>
  86. <field name="note"/>
  87. <field name="type" invisible="1"/>
  88. </group>
  89. </form>
  90. </field>
  91. </record>
  92. <record id="core_value_search" model="ir.ui.view">
  93. <field name="name">core.value.search</field>
  94. <field name="model">core.value</field>
  95. <field name="arch" type="xml">
  96. <search string="可选值">
  97. <field name="name"/>
  98. <field name="type"/>
  99. <separator/>
  100. <group expand="0" string="分组">
  101. <filter name="by_type" string="类型" domain="[]" context="{'group_by':'type'}"/>
  102. </group>
  103. </search>
  104. </field>
  105. </record>
  106. <record id="core_value_action" model="ir.actions.act_window">
  107. <field name="name">可选值</field>
  108. <field name="res_model">core.value</field>
  109. <field name="type">ir.actions.act_window</field>
  110. <field name="view_mode">list</field>
  111. <field name="search_view_id" ref="core_value_search"/>
  112. </record>
  113. <menuitem id='core_value_menu' name='可选值' action='core_value_action' parent='config_data_menu' sequence='3'/>
  114. <!--公司-->
  115. <record id="company_form" model="ir.ui.view">
  116. <field name="name">company.form</field>
  117. <field name="model">res.company</field>
  118. <field name="inherit_id" ref="base.view_company_form" />
  119. <field name="arch" type="xml">
  120. <xpath expr="//form" position="attributes">
  121. <attribute name="create">0</attribute>
  122. </xpath>
  123. <xpath expr="//notebook" position="inside">
  124. <page name="account" string="会计属性">
  125. <group>
  126. <group>
  127. <field name="start_date" groups="base.group_no_one" />
  128. <field name="cost_method"/>
  129. <field name="draft_invoice"/>
  130. <field name="bank_account_id"/>
  131. </group>
  132. <group>
  133. <field name="import_tax_rate"/>
  134. <field name="output_tax_rate"/>
  135. <field name='sign' widget="image" class="oe_avatar oe_left"/>
  136. </group>
  137. </group>
  138. </page>
  139. </xpath>
  140. </field>
  141. </record>
  142. <!--单位,菜单放在仓库模块下-->
  143. <record id="uom_list" model="ir.ui.view">
  144. <field name="name">uom.list</field>
  145. <field name="model">uom</field>
  146. <field name="arch" type="xml">
  147. <list editable="top" string="单位">
  148. <field name="name"/>
  149. </list>
  150. </field>
  151. </record>
  152. <record id="uom_search" model="ir.ui.view">
  153. <field name="name">uom.search</field>
  154. <field name="model">uom</field>
  155. <field name="arch" type="xml">
  156. <search string="单位">
  157. <field name="name"/>
  158. </search>
  159. </field>
  160. </record>
  161. <record id="uom_action" model="ir.actions.act_window">
  162. <field name="name">单位</field>
  163. <field name="res_model">uom</field>
  164. <field name="type">ir.actions.act_window</field>
  165. <field name="view_mode">list</field>
  166. </record>
  167. <!--结算方式,菜单放在资金模块下-->
  168. <record id="settle_mode_list" model="ir.ui.view">
  169. <field name="name">settle.mode.list</field>
  170. <field name="model">settle.mode</field>
  171. <field name="arch" type="xml">
  172. <list editable="top" string="结算方式">
  173. <field name="name"/>
  174. <field name='active' column_invisible='1'/>
  175. </list>
  176. </field>
  177. </record>
  178. <record id="settle_mode_search" model="ir.ui.view">
  179. <field name="name">settle.mode.search</field>
  180. <field name="model">settle.mode</field>
  181. <field name="arch" type="xml">
  182. <search string="结算方式">
  183. <field name="name"/>
  184. </search>
  185. </field>
  186. </record>
  187. <record id="settle_mode_action" model="ir.actions.act_window">
  188. <field name="name">结算方式</field>
  189. <field name="res_model">settle.mode</field>
  190. <field name="type">ir.actions.act_window</field>
  191. <field name="view_mode">list</field>
  192. </record>
  193. <!--客户, 菜单放在资金和销售模块下-->
  194. <record id="customer_address_form" model="ir.ui.view">
  195. <field name="name">customer.address.form</field>
  196. <field name="model">partner</field>
  197. <field name="arch" type="xml">
  198. <form string="客户">
  199. <sheet>
  200. <div class="oe_title">
  201. <h1>
  202. <field name="name" placeholder="客户名称" required="1"/>
  203. </h1>
  204. </div>
  205. <group>
  206. <group>
  207. <field name="code"/>
  208. <field name="main_mobile"/>
  209. <field name="main_contact"/>
  210. <field name="date_qualify" invisible='1'/>
  211. <field name="days_qualify" invisible='1'/>
  212. </group>
  213. <group>
  214. <field name="priority" widget="priority"/>
  215. <field name="c_category_id" required="1" context="{'default_type': 'customer'}" options="{'no_quick_create': True}"/>
  216. <field name="responsible_id"/>
  217. <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" context="{'default_type': 'partner_tag'}"/>
  218. </group>
  219. </group>
  220. <notebook>
  221. <page name='fin' string="财务信息">
  222. <group>
  223. <group string="开票信息">
  224. <field name="tax_rate"/>
  225. <field name="bank_name"/>
  226. <field name="bic"/>
  227. <field name="bank_num"/>
  228. <field name="main_address"/>
  229. <field name="tax_num"/>
  230. </group>
  231. <group string="往来信息">
  232. <field name="pay_method" required="1" options="{'no_open': True, 'no_create': True}"/>
  233. <field name="receivable"/>
  234. <field name="credit_limit"/>
  235. <field name="recon_day"/>
  236. </group>
  237. </group>
  238. </page>
  239. <page name="other" string='其他信息'>
  240. <group>
  241. <group string="备注">
  242. <field name="note" placeholder="暂无备注信息"/>
  243. <field name="s_category_id" placeholder="转为供应商"/>
  244. </group>
  245. <group string="其他">
  246. <field name="share_id"/>
  247. <field name="channel_id" placeholder="来源渠道"/>
  248. <field name="source" placeholder="具体来源"/>
  249. </group>
  250. </group>
  251. </page>
  252. </notebook>
  253. </sheet>
  254. <chatter/>
  255. </form>
  256. </field>
  257. </record>
  258. <record id="customer_list" model="ir.ui.view">
  259. <field name="name">客户列表</field>
  260. <field name="model">partner</field>
  261. <field name="arch" type="xml">
  262. <list string="客户">
  263. <field name="code"/>
  264. <field name="name"/>
  265. <field name="c_category_id"/>
  266. <field name="priority"/>
  267. <field name="main_mobile"/>
  268. <field name="receivable" sum='sum'/>
  269. </list>
  270. </field>
  271. </record>
  272. <record id="customer_search" model="ir.ui.view">
  273. <field name="name">customer.search</field>
  274. <field name="model">partner</field>
  275. <field name="arch" type="xml">
  276. <search string="客户">
  277. <field name="name"/>
  278. <field name="code"/>
  279. <field name="c_category_id"/>
  280. <field name="main_mobile"/>
  281. <field name="receivable"/>
  282. <searchpanel>
  283. <field name="company_id" expand="1" groups="base.group_multi_company" icon="fa-building" enable_counters="1"/>
  284. <field name="priority" hierarchize="1" select="multi" limit="2000" expand="1" icon="fa-users" enable_counters="1"/>
  285. </searchpanel>
  286. <group expand="0" string="分组">
  287. <filter name="by_category" string="客户类别" domain="[]" context="{'group_by':'c_category_id'}"/>
  288. </group>
  289. </search>
  290. </field>
  291. </record>
  292. <record id="customer_action" model="ir.actions.act_window">
  293. <field name="name">客户</field>
  294. <field name="res_model">partner</field>
  295. <field name="type">ir.actions.act_window</field>
  296. <field name="view_mode">list,form</field>
  297. <field name="search_view_id" ref="customer_search"/>
  298. <field name="domain">[('c_category_id','!=',False)]</field>
  299. </record>
  300. <record id="customer_address_action_list" model="ir.actions.act_window.view">
  301. <field eval="1" name="sequence"/>
  302. <field name="view_mode">list</field>
  303. <field name="view_id" ref="customer_list"/>
  304. <field name="act_window_id" ref="customer_action"/>
  305. </record>
  306. <record id="customer_address_action_form" model="ir.actions.act_window.view">
  307. <field eval="2" name="sequence"/>
  308. <field name="view_mode">form</field>
  309. <field name="view_id" ref="customer_address_form"/>
  310. <field name="act_window_id" ref="customer_action"/>
  311. </record>
  312. <!--供应商 菜单放在采购模块下-->
  313. <record id="supplier_address_form" model="ir.ui.view">
  314. <field name="name">supplier.address.form</field>
  315. <field name="model">partner</field>
  316. <field name="arch" type="xml">
  317. <form string="供应商">
  318. <sheet>
  319. <div class="oe_title">
  320. <h1>
  321. <field name="name" placeholder="供应商名称" required="1"/>
  322. </h1>
  323. </div>
  324. <group>
  325. <group>
  326. <field name="code"/>
  327. <field name="main_mobile"/>
  328. <field name="main_contact"/>
  329. </group>
  330. <group>
  331. <field name='supp_priority' widget='priority'/>
  332. <field name="s_category_id" required="1" context="{'default_type': 'supplier'}" options="{'no_quick_create': True}"/>
  333. <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" context="{'default_type': 'partner_tag'}"/>
  334. </group>
  335. </group>
  336. <notebook>
  337. <page name='fin' string="财务信息">
  338. <group>
  339. <group string="开票信息">
  340. <field name="tax_rate"/>
  341. <field name="bank_name"/>
  342. <field name="bic"/>
  343. <field name="bank_num"/>
  344. <field name="main_address"/>
  345. <field name="tax_num"/>
  346. </group>
  347. <group string="往来信息">
  348. <field name="pay_method" options="{'no_open': True, 'no_create': True}"/>
  349. <field name="payable"/>
  350. <field name="recon_day"/>
  351. </group>
  352. </group>
  353. </page>
  354. <page string='其他信息'>
  355. <group>
  356. <group string="备注">
  357. <field name="note" placeholder="暂无备注信息"/>
  358. <field name="c_category_id" placeholder="转为客户"/>
  359. </group>
  360. <group string="其他">
  361. </group>
  362. </group>
  363. </page>
  364. </notebook>
  365. </sheet>
  366. <chatter/>
  367. </form>
  368. </field>
  369. </record>
  370. <record id="vendor_list" model="ir.ui.view">
  371. <field name="name">供应商列表</field>
  372. <field name="model">partner</field>
  373. <field name="arch" type="xml">
  374. <list string="供应商">
  375. <field name="code"/>
  376. <field name="name"/>
  377. <field name="s_category_id" required="1"/>
  378. <field name="main_mobile"/>
  379. <field name="payable" sum='sum'/>
  380. </list>
  381. </field>
  382. </record>
  383. <record id="vendor_search" model="ir.ui.view">
  384. <field name="name">vendor.search</field>
  385. <field name="model">partner</field>
  386. <field name="arch" type="xml">
  387. <search string="供应商">
  388. <field name="name"/>
  389. <field name="code"/>
  390. <field name="s_category_id"/>
  391. <field name="main_mobile"/>
  392. <field name="payable"/>
  393. <searchpanel>
  394. <field name='supp_priority'/>
  395. </searchpanel>
  396. <group expand="0" string="分组">
  397. <filter name="by_category" string="供应商类别" domain="[]" context="{'group_by':'s_category_id'}"/>
  398. </group>
  399. </search>
  400. </field>
  401. </record>
  402. <record id="vendor_action" model="ir.actions.act_window">
  403. <field name="name">供应商</field>
  404. <field name="res_model">partner</field>
  405. <field name="type">ir.actions.act_window</field>
  406. <field name="view_mode">list,form</field>
  407. <field name="search_view_id" ref="vendor_search"/>
  408. <field name="domain">[('s_category_id','!=',False)]</field>
  409. </record>
  410. <record id="supplier_address_action_list" model="ir.actions.act_window.view">
  411. <field eval="1" name="sequence"/>
  412. <field name="view_mode">list</field>
  413. <field name="view_id" ref="vendor_list"/>
  414. <field name="act_window_id" ref="vendor_action"/>
  415. </record>
  416. <record id="supplier_address_action_form" model="ir.actions.act_window.view">
  417. <field eval="2" name="sequence"/>
  418. <field name="view_mode">form</field>
  419. <field name="view_id" ref="supplier_address_form"/>
  420. <field name="act_window_id" ref="vendor_action"/>
  421. </record>
  422. <!--账户,菜单放在资金模块下-->
  423. <record id="bank_account_list" model="ir.ui.view">
  424. <field name="name">bank.account.list</field>
  425. <field name="model">bank.account</field>
  426. <field name="arch" type="xml">
  427. <list editable="top" string="账户">
  428. <field name="name"/>
  429. <field name="bank_name"/>
  430. <field name="bic"/>
  431. <field name="num"/>
  432. <field name="balance" sum='sum'/>
  433. </list>
  434. </field>
  435. </record>
  436. <record id="bank_account_search" model="ir.ui.view">
  437. <field name="name">bank.account.search</field>
  438. <field name="model">bank.account</field>
  439. <field name="arch" type="xml">
  440. <search string="账户">
  441. <field name="name"/>
  442. <field name="num"/>
  443. </search>
  444. </field>
  445. </record>
  446. <record id="bank_account_action" model="ir.actions.act_window">
  447. <field name="name">账户</field>
  448. <field name="res_model">bank.account</field>
  449. <field name="type">ir.actions.act_window</field>
  450. <field name="view_mode">list</field>
  451. </record>
  452. <!--收支项,菜单放在资金模块下-->
  453. <record id="service_list" model="ir.ui.view">
  454. <field name="name">收支项列表</field>
  455. <field name="model">service</field>
  456. <field name="arch" type="xml">
  457. <list string="收支项">
  458. <field name="name"/>
  459. <field name="get_categ_id"/>
  460. <field name="pay_categ_id"/>
  461. <field name="price"/>
  462. <field name='active' column_invisible='1'/>
  463. </list>
  464. </field>
  465. </record>
  466. <record id="service_form" model="ir.ui.view">
  467. <field name="name">收支项</field>
  468. <field name="model">service</field>
  469. <field name="arch" type="xml">
  470. <form string="Service">
  471. <group>
  472. <group>
  473. <field name="name"/>
  474. <field name="price"/>
  475. <field name="tax_rate"/>
  476. </group>
  477. <group>
  478. <field name="get_categ_id"/>
  479. <field name="pay_categ_id"/>
  480. </group>
  481. </group>
  482. </form>
  483. </field>
  484. </record>
  485. <record id="service_search" model="ir.ui.view">
  486. <field name="name">service.search</field>
  487. <field name="model">service</field>
  488. <field name="arch" type="xml">
  489. <search string="收支项">
  490. <field name="name"/>
  491. <field name="get_categ_id"/>
  492. <field name="pay_categ_id"/>
  493. <group expand="0" string="分组">
  494. <filter name="by_get_category" string="收入类别" domain="[]" context="{'group_by':'get_categ_id'}"/>
  495. <filter name="by_pay_category" string="支出类别" domain="[]" context="{'group_by':'pay_categ_id'}"/>
  496. </group>
  497. </search>
  498. </field>
  499. </record>
  500. <record id="service_action" model="ir.actions.act_window">
  501. <field name="name">收支项</field>
  502. <field name="res_model">service</field>
  503. <field name="view_mode">list,form</field>
  504. <field name="search_view_id" ref="service_search"/>
  505. </record>
  506. <!-- 继承 res.users form -->
  507. <record id='res_users_form_inherit' model='ir.ui.view'>
  508. <field name='name'>res users form inherit</field>
  509. <field name='model'>res.users</field>
  510. <field name="inherit_id" ref="base.view_users_form"/>
  511. <field name='arch' type='xml'>
  512. <xpath expr="//label[@for='login']" position='attributes'>
  513. <attribute name='string'>用户</attribute>
  514. </xpath>
  515. <field name='action_id' position='after'>
  516. <field name="team_id"/>
  517. </field>
  518. </field>
  519. </record>
  520. <!-- 继承res.users list -->
  521. <record id='res_users_list_inherit' model='ir.ui.view'>
  522. <field name='name'>res users list inherit</field>
  523. <field name='model'>res.users</field>
  524. <field name="inherit_id" ref="base.view_users_tree"/>
  525. <field name='arch' type='xml'>
  526. <field name='login' position='attributes'>
  527. <attribute name='string'>用户</attribute>
  528. </field>
  529. </field>
  530. </record>
  531. <!-- 应用窗体默认显示GoodeRP的模块 -->
  532. <record id="view_module_filter_inherit" model="ir.ui.view">
  533. <field name="name">view_module_filter.inherit</field>
  534. <field name="model">ir.module.module</field>
  535. <field name="inherit_id" ref="base.view_module_filter"/>
  536. <field name="arch" type="xml">
  537. <filter name="app" position="attributes">
  538. <attribute name="domain">[('category_id.name','=','gooderp')]</attribute>
  539. </filter>
  540. <!-- <searchpanel position="replace"/>-->
  541. </field>
  542. </record>
  543. <!-- 用权限组来隐藏系统自带的根菜单 -->
  544. <record model="ir.ui.menu" id="base.menu_administration">
  545. <field name="groups_id" eval="[(3, ref('base.group_erp_manager'))]"/>
  546. </record>
  547. <record id="base.menu_theme_store" model="ir.ui.menu">
  548. <field name="groups_id" eval="[(4, ref('core.nobody_can_see'))]"/>
  549. </record>
  550. <record id="base.menu_third_party" model="ir.ui.menu">
  551. <field name="groups_id" eval="[(4, ref('core.nobody_can_see'))]"/>
  552. </record>
  553. <menuitem id="mail.menu_root_discuss" name="消息" groups="-base.group_user,core.group_mail" />
  554. <menuitem id="base.menu_view_base_module_update" name="Update Apps List" groups="-base.group_no_one" parent="base.menu_management" />
  555. <menuitem id="base.menu_view_base_module_upgrade" name="Apply Schedule Upgrade" groups="base.group_no_one" parent="base.menu_management" />
  556. </data>
  557. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1