GoodERP
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.

75 lines
3.7KB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!--供应商 菜单放在采购模块下-->
  5. <record id="supplier_address_form_inherit" model="ir.ui.view">
  6. <field name="name">supplier.address.form.inherit</field>
  7. <field name="model">partner</field>
  8. <field name="inherit_id" ref="core.supplier_address_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr='//div' position='before'>
  11. <div class="oe_button_box" name="button_box">
  12. <button type="object"
  13. name="action_view_money_invoice"
  14. class="oe_stat_button"
  15. icon="fa-jpy">
  16. <field name="payable" widget="statinfo" help="应付余额"/>
  17. </button>
  18. <button type="object"
  19. string="采购记录(最近1年)"
  20. name="action_view_buy_history"
  21. class="oe_stat_button"
  22. icon="fa-list-alt">
  23. </button>
  24. </div>
  25. </xpath>
  26. </field>
  27. </record>
  28. <!--继承视图-->
  29. <record id="partner_address_supplier_address_form_inherit" model="ir.ui.view">
  30. <field name="name">partner.address.supplier.address.form.inherit</field>
  31. <field name="model">partner</field>
  32. <field name='inherit_id' ref='partner_address.supplier_address_form_inherit' />
  33. <field name="arch" type="xml">
  34. <page name='fin' position="before">
  35. <page name="goods" string="供货商品">
  36. <field name="goods_ids" colspan="2" nolabel="1" groups='goods.view_cost_groups'>
  37. <list string="goods" editable="bottom">
  38. <field name="goods_id" optional="show"/>
  39. <field name="price" optional="show"/>
  40. <field name="code" optional="show"/>
  41. <field name="name" optional="show"/>
  42. <field name="min_qty" optional="show"/>
  43. <field name="date" required='1' optional="show"/>
  44. <field name="note" optional="show"/>
  45. </list>
  46. </field>
  47. </page>
  48. </page>
  49. </field>
  50. </record>
  51. <record id="buy_goods_form" model="ir.ui.view">
  52. <field name="name">buy.goods.form</field>
  53. <field name="model">goods</field>
  54. <field name="inherit_id" ref="goods.goods_form"/>
  55. <field name="arch" type="xml">
  56. <field name="supplier_id" position="after">
  57. <field name="vendor_ids" colspan="2" nolabel="1" groups='goods.view_cost_groups'>
  58. <list string="goods" editable="bottom">
  59. <field name="vendor_id"
  60. context="{'form_view_ref': 'core.supplier_address_form'}" optional="show"/>
  61. <field name="price" optional="show"/>
  62. <field name="code" optional="show"/>
  63. <field name="name" optional="show"/>
  64. <field name="min_qty" optional="show"/>
  65. <field name="date" required='1' optional="show"/>
  66. <field name="note"/>
  67. </list>
  68. </field>
  69. </field>
  70. </field>
  71. </record>
  72. </data>
  73. </openerp>
上海开阖软件有限公司 沪ICP备12045867号-1