account_data.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record forcecreate="True" id="decimal_payment" model="decimal.precision">
  5. <field name="name">Payment Terms</field>
  6. <field name="digits">6</field>
  7. </record>
  8. <!-- Open Settings from Purchase Journal to configure mail servers -->
  9. <record id="action_open_settings" model="ir.actions.act_window">
  10. <field name="name">Settings</field>
  11. <field name="res_model">res.config.settings</field>
  12. <field name="view_mode">form</field>
  13. <field name="target">inline</field>
  14. <field name="context" eval="{'module': 'general_settings', 'bin_size': False}"/>
  15. </record>
  16. <!-- TAGS FOR CASH FLOW STATEMENT DIRECT METHOD -->
  17. <record id="account_tag_operating" model="account.account.tag">
  18. <field name="name">Operating Activities</field>
  19. <field name="applicability">accounts</field>
  20. </record>
  21. <record id="account_tag_financing" model="account.account.tag">
  22. <field name="name">Financing Activities</field>
  23. <field name="applicability">accounts</field>
  24. </record>
  25. <record id="account_tag_investing" model="account.account.tag">
  26. <field name="name">Investing &amp; Extraordinary Activities</field>
  27. <field name="applicability">accounts</field>
  28. </record>
  29. <!--
  30. Payment terms
  31. -->
  32. <record id="account_payment_term_immediate" model="account.payment.term">
  33. <field name="name">Immediate Payment</field>
  34. <field name="note">Payment terms: Immediate Payment</field>
  35. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0})]"/>
  36. </record>
  37. <record id="account_payment_term_15days" model="account.payment.term">
  38. <field name="name">15 Days</field>
  39. <field name="note">Payment terms: 15 Days</field>
  40. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 15})]"/>
  41. </record>
  42. <record id="account_payment_term_21days" model="account.payment.term">
  43. <field name="name">21 Days</field>
  44. <field name="note">Payment terms: 21 Days</field>
  45. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 21})]"/>
  46. </record>
  47. <record id="account_payment_term_30days" model="account.payment.term">
  48. <field name="name">30 Days</field>
  49. <field name="note">Payment terms: 30 Days</field>
  50. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 30})]"/>
  51. </record>
  52. <record id="account_payment_term_45days" model="account.payment.term">
  53. <field name="name">45 Days</field>
  54. <field name="note">Payment terms: 45 Days</field>
  55. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 45})]"/>
  56. </record>
  57. <record id="account_payment_term_2months" model="account.payment.term">
  58. <field name="name">2 Months</field>
  59. <field name="note">Payment terms: 2 Months</field>
  60. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 2})]"/>
  61. </record>
  62. <record id="account_payment_term_end_following_month" model="account.payment.term">
  63. <field name="name">End of Following Month</field>
  64. <field name="note">Payment terms: End of Following Month</field>
  65. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True})]"/>
  66. </record>
  67. <record id="account_payment_term_30_days_end_month_the_10" model="account.payment.term">
  68. <field name="name">30 days End of Month on the 10th</field>
  69. <field name="note">Payment terms: 30 days End of Month on the 10th</field>
  70. <field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True, 'days_after': 10})]"/>
  71. </record>
  72. <record id="account_payment_term_advance_60days" model="account.payment.term">
  73. <field name="name">30% Now, Balance 60 Days</field>
  74. <field name="note">Payment terms: 30% Now, Balance 60 Days</field>
  75. <field name="line_ids" eval="[
  76. Command.clear(),
  77. Command.create({'value': 'percent', 'value_amount': 30.0, 'days': 0}),
  78. Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 60})]"/>
  79. </record>
  80. <record id="account_payment_term_30days_early_discount" model="account.payment.term">
  81. <field name="name">2/7 Net 30</field>
  82. <field name="note">Payment terms: 30 Days, 2% Early Payment Discount under 7 days</field>
  83. <field name="display_on_invoice">True</field>
  84. <field name="line_ids" eval="[
  85. Command.clear(),
  86. Command.create({'value': 'balance', 'days': 30, 'discount_percentage': 2, 'discount_days': 7})]"/>
  87. </record>
  88. <!--
  89. Account Statement Sequences
  90. -->
  91. <record id="sequence_reconcile_seq" model="ir.sequence">
  92. <field name="name">Account reconcile sequence</field>
  93. <field name="code">account.reconcile</field>
  94. <field name="prefix">A</field>
  95. <field eval="1" name="number_next"/>
  96. <field eval="1" name="number_increment"/>
  97. <field eval="False" name="company_id"/>
  98. </record>
  99. <!-- Account-related subtypes for messaging / Chatter -->
  100. <record id="mt_invoice_validated" model="mail.message.subtype">
  101. <field name="name">Validated</field>
  102. <field name="res_model">account.move</field>
  103. <field name="default" eval="False"/>
  104. <field name="description">Invoice validated</field>
  105. </record>
  106. <record id="mt_invoice_paid" model="mail.message.subtype">
  107. <field name="name">Paid</field>
  108. <field name="res_model">account.move</field>
  109. <field name="default" eval="False"/>
  110. <field name="description">Invoice paid</field>
  111. </record>
  112. <record id="mt_invoice_created" model="mail.message.subtype">
  113. <field name="name">Invoice Created</field>
  114. <field name="res_model">account.move</field>
  115. <field name="default" eval="False"/>
  116. <field name="hidden" eval="True"/>
  117. <field name="description">Invoice Created</field>
  118. </record>
  119. <!-- Payment methods -->
  120. <record id="account_payment_method_manual_in" model="account.payment.method">
  121. <field name="name">Manual</field>
  122. <field name="code">manual</field>
  123. <field name="payment_type">inbound</field>
  124. </record>
  125. <record id="account_payment_method_manual_out" model="account.payment.method">
  126. <field name="name">Manual</field>
  127. <field name="code">manual</field>
  128. <field name="payment_type">outbound</field>
  129. </record>
  130. <!-- Account Tax Group -->
  131. <record id="tax_group_taxes" model="account.tax.group">
  132. <field name="name">Taxes</field>
  133. <field name="sequence">0</field>
  134. </record>
  135. <!-- Partner Trust Property -->
  136. <record forcecreate="True" id="default_followup_trust" model="ir.property">
  137. <field name="name">Followup Trust Property</field>
  138. <field name="fields_id" search="[('model', '=', 'res.partner'), ('name', '=', 'trust')]"/>
  139. <field name="value">normal</field>
  140. <field name="type">selection</field>
  141. </record>
  142. <!-- Share Button in action menu -->
  143. <record id="model_account_move_action_share" model="ir.actions.server">
  144. <field name="name">Share</field>
  145. <field name="model_id" ref="account.model_account_move"/>
  146. <field name="binding_model_id" ref="account.model_account_move"/>
  147. <field name="binding_view_types">form</field>
  148. <field name="state">code</field>
  149. <field name="code">action = records.action_share()</field>
  150. </record>
  151. </data>
  152. </odoo>