You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

583 lines
30KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!--在产品分类上增加税收分类编码-->
  5. <record id="view_product_tax_category_form" model="ir.ui.view">
  6. <field name="name">tax.product.category.form.inherit</field>
  7. <field name="model">product.category</field>
  8. <field name="inherit_id" ref="product.product_category_form_view"/>
  9. <field name="arch" type="xml">
  10. <group name="first" position="after">
  11. <group name="tax" >
  12. <group string="税收分类编码">
  13. <field name="tax_category_id"/>
  14. </group>
  15. </group>
  16. </group>
  17. </field>
  18. </record>
  19. <!--在产品上增加税收分类,增加税收分类编码与由系统增加-->
  20. <record id="tax_product_template_form_view" model="ir.ui.view">
  21. <field name="name">tax.product.template.form.inherit</field>
  22. <field name="model">product.template</field>
  23. <field name="priority">6</field>
  24. <field name="inherit_id" ref="product.product_template_form_view"/>
  25. <field name="arch" type="xml">
  26. <page name="inventory" position="after">
  27. <page string="涉税" name="tax" >
  28. <group name="是否由系统生成">
  29. <group string="由系统生成的产品">
  30. <field name="computer_import"/>
  31. </group>
  32. <group string="税收分类编码" >
  33. <field name="tax_category_id"/>
  34. </group>
  35. </group>
  36. </page>
  37. </page>
  38. </field>
  39. </record>
  40. <!--税收分类编码tree-->
  41. <record id="view_cn_tax_category_tree" model="ir.ui.view">
  42. <field name="name">tax.category.tree</field>
  43. <field name="model">tax.category</field>
  44. <field name="arch" type="xml">
  45. <tree string="税收分类编码">
  46. <field name="code"/>
  47. <field name="name"/>
  48. <field name="print_name"/>
  49. <field name="tax_rate"/>
  50. </tree>
  51. </field>
  52. </record>
  53. <record id="view_cn_tax_category_form" model="ir.ui.view">
  54. <field name="name">tax.category.form</field>
  55. <field name="model">tax.category</field>
  56. <field name="arch" type="xml">
  57. <form string="tax" class="o_invoice_form">
  58. <sheet>
  59. <group col="4">
  60. <field name="code"/>
  61. <field name="name"/>
  62. <field name="print_name"/>
  63. <field name="superior"/>
  64. <field name="note"/>
  65. <field name="tax_rate"/>
  66. </group>
  67. </sheet>
  68. </form>
  69. </field>
  70. </record>
  71. <!--发票FORM-->
  72. <record id="cn_account_invoice_form" model="ir.ui.view">
  73. <field name="name">cn.account.invoice.form</field>
  74. <field name="model">cn.account.invoice</field>
  75. <field name="arch" type="xml">
  76. <form string="发票">
  77. <sheet>
  78. <div class="oe_button_box" name="button_box">
  79. <button name="action_get_attachment_view"
  80. class="oe_stat_button"
  81. icon="fa-book"
  82. type="object">
  83. <field name="attachment_number" widget="statinfo" string="附件"/>
  84. </button>
  85. </div>
  86. <group>
  87. <group>
  88. <field name="type" required="1"/>
  89. </group>
  90. </group>
  91. <group>
  92. <group>
  93. <field name="partner_name_out" string ="客户名称" invisible="type == 'in'"/>
  94. <field name="partner_name_in" string ="供应商名称" invisible="type == 'out'"/>
  95. <field name="company_id_out" invisible="type == 'in'"/>
  96. <field name="company_id_in" invisible="type == 'out'"/>
  97. <field name="partner_code_out" string ="客户税号" invisible="type == 'in'"/>
  98. <field name="partner_code_in" string ="供应商税号" invisible="type == 'out'"/>
  99. <field name="partner_address_out" string ="客户地址电话" invisible="type == 'in'"/>
  100. <field name="partner_address_in" string ="供应商地址电话" invisible="type == 'out'"/>
  101. <field name="partner_bank_number_out" string ="客户银行及帐号" invisible="type == 'in'"/>
  102. <field name="partner_bank_number_in" string ="供应商银行及帐号" invisible="type == 'out'"/>
  103. </group>
  104. <group>
  105. <field name="invoice_type" required="1" options="{'no_create': True, 'no_open': True}"/>
  106. <field name="invoice_date" required="1"/>
  107. <field name="invoice_code"/>
  108. <field name="name" required="1"/>
  109. <field name="use_heck_code" invisible="1"/>
  110. <field name="invoice_heck_code" required="use_heck_code == True" invisible="use_heck_code == False"/>
  111. <field name="invoice_amount" required="1"/>
  112. <field name="invoice_tax"/>
  113. <field name="invoice_export_amount"/>
  114. </group>
  115. </group>
  116. <group>
  117. <field name="is_deductible" invisible="invoice_type != 'zy'"/>
  118. <field name="line_type" invisible="1"/>
  119. </group>
  120. <notebook>
  121. <page name="same_page" string="发票明细" invisible="line_type != 'same'">
  122. <field name="line_ids">
  123. <tree string="发票明细行" editable="bottom">
  124. <field name="product_name"/>
  125. <field name="product_type"/>
  126. <field name="product_unit"/>
  127. <field name="product_count"/>
  128. <field name="product_price"/>
  129. <field name="product_amount" sum="total"/>
  130. <field name="product_tax_rate"/>
  131. <field name="product_tax" sum="total"/>
  132. <field name="tax_type"/>
  133. </tree>
  134. </field>
  135. </page>
  136. <page name="transport_page" string="通行费明细" invisible="line_type != 'transport'">
  137. <field name="line_ids2">
  138. <tree string="发票明细行" editable="bottom">
  139. <field name="product_name"/>
  140. <field name="car_number"/>
  141. <field name="car_type"/>
  142. <field name="car_begin_date"/>
  143. <field name="car_end_date"/>
  144. <field name="product_amount" sum="total"/>
  145. <field name="product_tax_rate"/>
  146. <field name="product_tax" sum="total"/>
  147. <field name="tax_type"/>
  148. </tree>
  149. </field>
  150. </page>
  151. </notebook>
  152. <field name="note"/>
  153. </sheet>
  154. <div class="oe_chatter">
  155. <field name="message_follower_ids"/>
  156. <field name="message_ids"/>
  157. </div>
  158. </form>
  159. </field>
  160. </record>
  161. <record id="cn_account_invoice_form_in" model="ir.ui.view">
  162. <field name="name">cn.account.invoice.form.in</field>
  163. <field name="model">cn.account.invoice</field>
  164. <field name="arch" type="xml">
  165. <form string="发票">
  166. <sheet>
  167. <div class="oe_button_box" name="button_box">
  168. <button name="action_get_attachment_view"
  169. class="oe_stat_button"
  170. icon="fa-book"
  171. type="object">
  172. <field name="attachment_number" widget="statinfo" string="附件"/>
  173. </button>
  174. </div>
  175. <group>
  176. <group>
  177. <field name="type" readonly="1"/>
  178. </group>
  179. <group>
  180. <field name="company_id_in"/>
  181. </group>
  182. </group>
  183. <group>
  184. <group>
  185. <field name="partner_name_in" string ="供应商名称" invisible="type == 'out'"/>
  186. <field name="partner_code_in" string ="供应商税号" invisible="type == 'out'"/>
  187. <field name="partner_address_in" string ="供应商地址电话" invisible="type == 'out'"/>
  188. <field name="partner_bank_number_in" string ="供应商银行及帐号" invisible="type == 'out'"/>
  189. </group>
  190. <group>
  191. <field name="invoice_type" required="1" options="{'no_create': True, 'no_open': True}"/>
  192. <field name="invoice_date" required="1"/>
  193. <field name="invoice_code"/>
  194. <field name="name" required="1"/>
  195. <field name="invoice_heck_code" required="invoice_type == 'zy'" invisible="invoice_type != 'zy'"/>
  196. <field name="invoice_amount" required="invoice_type == 'zy'"/>
  197. <field name="invoice_tax"/>
  198. </group>
  199. </group>
  200. <group>
  201. <field name="is_deductible" invisible="invoice_type != 'zy'"/>
  202. </group>
  203. <notebook>
  204. <page string="发票明细">
  205. <field name="line_ids" >
  206. <tree string="发票明细行" editable="bottom">
  207. <field name="product_name"/>
  208. <field name="product_type"/>
  209. <field name="product_unit"/>
  210. <field name="product_count"/>
  211. <field name="product_price"/>
  212. <field name="product_amount" sum="total"/>
  213. <field name="product_tax_rate"/>
  214. <field name="product_tax" sum="total"/>
  215. <field name="tax_type"/>
  216. </tree>
  217. </field>
  218. </page>
  219. </notebook>
  220. <field name="note"/>
  221. </sheet>
  222. </form>
  223. </field>
  224. </record>
  225. <record id="cn_account_invoice_form_out" model="ir.ui.view">
  226. <field name="name">cn.account.invoice.form.out</field>
  227. <field name="model">cn.account.invoice</field>
  228. <field name="arch" type="xml">
  229. <form string="发票">
  230. <sheet>
  231. <div class="oe_button_box" name="button_box">
  232. <button name="action_get_attachment_view"
  233. class="oe_stat_button"
  234. icon="fa-book"
  235. type="object">
  236. <field name="attachment_number" widget="statinfo" string="附件"/>
  237. </button>
  238. </div>
  239. <group>
  240. <group>
  241. <field name="type" readonly="1"/>
  242. </group>
  243. <group>
  244. <field name="company_id_out"/>
  245. </group>
  246. </group>
  247. <group>
  248. <group>
  249. <field name="partner_name_out" string ="客户名称" invisible="type == 'in'"/>
  250. <field name="partner_code_out" string ="客户税号" invisible="type == 'in'"/>
  251. <field name="partner_address_out" string ="客户地址电话" invisible="type == 'in'"/>
  252. <field name="partner_bank_number_out" string ="客户银行及帐号" invisible="type == 'in'"/>
  253. </group>
  254. <group>
  255. <field name="invoice_type" required="1" options="{'no_create': True, 'no_open': True}"/>
  256. <field name="invoice_date" required="1"/>
  257. <field name="invoice_code"/>
  258. <field name="name" required="1"/>
  259. <field name="invoice_heck_code" required="invoice_type in ['pt','dz']" invisible="invoice_type == 'zy'"/>
  260. <field name="invoice_amount" required="invoice_type == 'zy'"/>
  261. <field name="invoice_tax"/>
  262. <field name="invoice_export_amount"/>
  263. </group>
  264. </group>
  265. <group>
  266. <field name="is_deductible" invisible="invoice_type != 'zy'"/>
  267. </group>
  268. <notebook>
  269. <page string="发票明细">
  270. <field name="line_ids" >
  271. <tree string="发票明细行" editable="bottom">
  272. <field name="product_name"/>
  273. <field name="product_type"/>
  274. <field name="product_unit"/>
  275. <field name="product_count"/>
  276. <field name="product_price"/>
  277. <field name="product_amount" sum="total"/>
  278. <field name="product_tax_rate"/>
  279. <field name="product_tax" sum="total"/>
  280. <field name="tax_type"/>
  281. </tree>
  282. </field>
  283. </page>
  284. </notebook>
  285. <field name="note"/>
  286. </sheet>
  287. </form>
  288. </field>
  289. </record>
  290. <!--发票tree-->
  291. <record id="cn_account_invoice_tree" model="ir.ui.view">
  292. <field name="name">cn.account.invoice.tree</field>
  293. <field name="model">cn.account.invoice</field>
  294. <field name="arch" type="xml">
  295. <tree string="发票">
  296. <field name="invoice_date"/>
  297. <field name="type"/>
  298. <field name="partner_name_out" />
  299. <field name="partner_name_in" />
  300. <field name="name"/>
  301. <field name="invoice_type"/>
  302. <field name="invoice_amount"/>
  303. <field name="invoice_tax"/>
  304. <field name="is_deductible"/>
  305. <!-- <field name="color"/>-->
  306. </tree>
  307. </field>
  308. </record>
  309. <record id="cn_account_invoice_tree_in" model="ir.ui.view">
  310. <field name="name">cn.account.invoice.tree.in</field>
  311. <field name="model">cn.account.invoice</field>
  312. <field name="arch" type="xml">
  313. <tree string="发票">
  314. <field name="invoice_date"/>
  315. <field name="type"/>
  316. <field name="partner_name_in" />
  317. <field name="name"/>
  318. <field name="invoice_type"/>
  319. <field name="invoice_amount" sum="amount_total"/>
  320. <field name="invoice_tax" sum="tax_total"/>
  321. <field name="is_deductible"/>
  322. </tree>
  323. </field>
  324. </record>
  325. <record id="cn_account_invoice_tree_out" model="ir.ui.view">
  326. <field name="name">cn.account.invoice.tree</field>
  327. <field name="model">cn.account.invoice</field>
  328. <field name="arch" type="xml">
  329. <tree string="发票">
  330. <field name="invoice_date"/>
  331. <field name="type"/>
  332. <field name="partner_name_out" />
  333. <field name="name"/>
  334. <field name="invoice_type"/>
  335. <field name="invoice_amount" sum="amount_total"/>
  336. <field name="invoice_tax" sum="tax_total"/>
  337. <field name="is_deductible"/>
  338. </tree>
  339. </field>
  340. </record>
  341. <record id="cn_account_invoice_search" model="ir.ui.view">
  342. <field name="name">cn.account.invoice.search</field>
  343. <field name="model">cn.account.invoice</field>
  344. <field name="arch" type="xml">
  345. <search string="选单策略">
  346. <field name='name'/>
  347. <field name='partner_name_out'/>
  348. <field name='partner_name_in'/>
  349. <field name='invoice_amount'/>
  350. <field name='invoice_type'/>
  351. <field name='note'/>
  352. <filter string="进项发票" domain="[('type','=', 'in')]" name="invoice_in"/>
  353. <filter string="销项发票" domain="[('type','=', 'out')]" name="invoice_out"/>
  354. <group expand="1" string="分组">
  355. <filter string="进/销项" name='type' context="{'group_by':'type'}"/>
  356. <separator orientation="vertical" />
  357. <filter string="客户" name='partner_name_out' context="{'group_by':'partner_name_out'}"/>
  358. <filter string="供应商" name="partner_name_in" context="{'group_by':'partner_name_in'}"/>
  359. <separator orientation="vertical" />
  360. <filter string="发票类型" name="invoice_type" context="{'group_by':'invoice_type'}"/>
  361. </group>
  362. </search>
  363. </field>
  364. </record>
  365. <record id="cn_account_invoice_action" model="ir.actions.act_window">
  366. <field name="name">过滤发票</field>
  367. <field name="res_model">cn.account.invoice</field>
  368. <field name="view_mode">tree,form</field>
  369. <field name="search_view_id" ref="cn_account_invoice_search"/>
  370. <field name="context">{'search_default_user_id':1}</field>
  371. </record>
  372. <record id="view_cn_invoice_type_tree" model="ir.ui.view">
  373. <field name="name">cn.invoice.type.tree</field>
  374. <field name="model">cn.invoice.type</field>
  375. <field name="arch" type="xml">
  376. <tree string="发票编码" create="1" delete="1" multi_edit="1">
  377. <field name="name"/>
  378. <field name="is_coming_tax"/>
  379. <field name="color" required="True" widget="color_picker"/>
  380. <field name="note"/>
  381. </tree>
  382. </field>
  383. </record>
  384. <record id="view_cn_invoice_type_form" model="ir.ui.view">
  385. <field name="name">cn.invoice.type.form</field>
  386. <field name="model">cn.invoice.type</field>
  387. <field name="arch" type="xml">
  388. <form string="tax" class="o_invoice_form">
  389. <sheet>
  390. <group col="4">
  391. <field name="name"/>
  392. <field name="is_coming_tax"/>
  393. <field name="code"/>
  394. <field name="color" required="True" widget="color_picker"/>
  395. </group>
  396. <field name="note"/>
  397. </sheet>
  398. </form>
  399. </field>
  400. </record>
  401. <record id="create_cn_invoice_wizard_form" model="ir.ui.view">
  402. <field name="name">create_cn_invoice_wizard_form</field>
  403. <field name="model">create.cn.invoice.wizard</field>
  404. <field name="arch" type="xml">
  405. <form>
  406. <group>
  407. <field name="type" required="1"/>
  408. <field name="company_id" required="1"/>
  409. <field name="excel"/>
  410. </group>
  411. <footer>
  412. <button name="create_tax_invoice" string="引入" type="object" class="oe_highlight"/>
  413. <button string="取消" class="oe_link" special="cancel"/>
  414. </footer>
  415. </form>
  416. </field>
  417. </record>
  418. <!--会计期间-->
  419. <record id="period_tree" model="ir.ui.view">
  420. <field name="name">finance.period.tree</field>
  421. <field name="model">finance.period</field>
  422. <field name="arch" type="xml">
  423. <tree editable="top" delete='false' string="会计期间">
  424. <field name="name"/>
  425. <field name="year" readonly="is_closed == True"/>
  426. <field name="month" readonly="is_closed == True"/>
  427. <field name="is_closed" readonly='1'/>
  428. </tree>
  429. </field>
  430. </record>
  431. <record id="period_form" model="ir.ui.view">
  432. <field name="name">finance.period.form</field>
  433. <field name="model">finance.period</field>
  434. <field name="arch" type="xml">
  435. <form string="会计期间" delete='false' create="false" edit="false">
  436. <group>
  437. <group>
  438. <field name="name" />
  439. <field name="year" />
  440. <field name="month" />
  441. </group>
  442. <group>
  443. <field name="company_id" />
  444. <field name="is_closed" />
  445. </group>
  446. </group>
  447. </form>
  448. </field>
  449. </record>
  450. <record id="finance_period_search" model="ir.ui.view">
  451. <field name="name">finance.period.search</field>
  452. <field name="model">finance.period</field>
  453. <field name="arch" type="xml">
  454. <search string="会计期间">
  455. <filter name='unclosed' string='未结账' domain="[('is_closed', '=', False)]"/>
  456. <filter name='closed' string='已结账' domain="[('is_closed', '=', True)]"/>
  457. <group expand="0" string="分组">
  458. <filter name="by_year" string="会计年度" domain="[]" context="{'group_by':'year'}"/>
  459. </group>
  460. </search>
  461. </field>
  462. </record>
  463. <record id="account_invoice_cn_invoice_form" model="ir.ui.view">
  464. <field name="name">account.invoice.form.inherit.cn.invoice</field>
  465. <field name="model">account.move</field>
  466. <field name="inherit_id" ref="account.view_move_form"/>
  467. <field name="arch" type="xml">
  468. <xpath expr="//button[@name='action_invoice_sent']" position="after">
  469. <button name="to_cn_invoice_xml"
  470. type="object"
  471. string="开纸质发票"
  472. invisible="move_type not in ('out_invoice', 'in_invoice') or cn_invoice_type_code not in ('zp', 'pp')"
  473. class="oe_highlight"
  474. data-hotkey="q"/>
  475. <button name="to_cn_invoice_dz_xml"
  476. type="object"
  477. string="开电子发票"
  478. invisible="move_type not in ('out_invoice', 'in_invoice') or cn_invoice_type_code not in ('dzzp', 'dzfp')"
  479. class="oe_highlight"
  480. data-hotkey="q"/>
  481. </xpath>
  482. <xpath expr="//page[@id='other_tab_entry']" position="after">
  483. <page id="cn_invoice_info" string="中国发票信息补充">
  484. <group>
  485. <group>
  486. <field name="cn_invoice_type"/>
  487. <field name="cn_invoice_type_code" invisible="1"/>
  488. </group>
  489. <group>
  490. <field name="specific_business_types"/>
  491. <field name="is_taxed"/>
  492. <field name="is_natural_person"/>
  493. <field name="id_type"/>
  494. <field name="is_show_buy_bank"/>
  495. <field name="is_show_sell_bank"/>
  496. <field name="abandoned_collection"/>
  497. <field name="payee"/>
  498. <field name="checker"/>
  499. </group>
  500. </group>
  501. </page>
  502. </xpath>
  503. </field>
  504. </record>
  505. <record id="account_invoice_cn_invoice_tree" model="ir.ui.view">
  506. <field name="name">account.invoice.tree.inherit.cn.invoice</field>
  507. <field name="model">account.move</field>
  508. <field name="inherit_id" ref="account.view_invoice_tree"/>
  509. <field name="arch" type="xml">
  510. <xpath expr="//button[@name='action_register_payment']" position="after">
  511. <button name="action_to_cn_invoice"
  512. type="object"
  513. string="开发票"
  514. invisible="move_type not in ('out_invoice', 'in_invoice')"
  515. class="oe_highlight"/>
  516. </xpath>
  517. </field>
  518. </record>
  519. <record id="wizard_cn_invoice_export" model="ir.ui.view">
  520. <field name="name">Export CN Invoice</field>
  521. <field name="model">account.to.cn.invoice</field>
  522. <field name="arch" type="xml">
  523. <form string="Export CN Invoice">
  524. <field invisible="1" name="name"/>
  525. <field invisible="1" name="state"/>
  526. <group domain="[('state', '=', 'draft')]" string="选择导出发票类型">
  527. <field name="is_new_type"/>
  528. <field name="cn_invoice_type" required="1"/>
  529. </group>
  530. <group domain="[('state', '=', 'done')]">
  531. <field name="is_updata"/>
  532. </group>
  533. <group domain="[('state', '=', 'end')]">
  534. <field name="img" readonly="1" widget='image'/>
  535. </group>
  536. <div invisible="state != 'end'">
  537. <h2>扫描二维码</h2>
  538. <p>用浙江税务app扫描二维码后点击同意上传则自动上传并批量开票</p>
  539. </div>
  540. <div invisible="is_new_type == True or state == 'draft'">
  541. <h2>导出数据</h2>
  542. <p>可用于导入的文件: <field name="data" readonly="1" filename="name"/></p>
  543. <p>zip文件解压后,在开票软件上使用批量导入选择解压文件夹。xlxs文件直接在全电系统中引入</p>
  544. </div>
  545. <footer domain="[('state', '=', 'draft')]">
  546. <button name="export_excel" string="导出excel" type="object" invisible="is_new_type == False" class="btn-primary" data-hotkey="q"/>
  547. <button name="act_getfile" string="导出" type="object" invisible="is_new_type == True" class="btn-primary" data-hotkey="q"/>
  548. <button special="cancel" data-hotkey="z" string="Cancel" type="object" class="btn-secondary"/>
  549. </footer>
  550. <footer domain="[('state', '=', 'done')]">
  551. <button name="invoice_updata" data-hotkey="u" string="上传" type="object" class="btn-primary" invisible="is_updata == False"/>
  552. <button special="cancel" data-hotkey="z" string="Close" type="object" class="btn-primary"/>
  553. </footer>
  554. <footer domain="[('state', '=', 'end')]">
  555. <button name="confirm_updata" data-hotkey="u" string="同意" type="object" class="btn-primary" invisible="is_updata == False"/>
  556. <button special="cancel" data-hotkey="z" string="Close" type="object" class="btn-primary"/>
  557. </footer>
  558. </form>
  559. </field>
  560. </record>
  561. </data>
  562. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1