<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <record id="analytic_journal_sale" model="account.analytic.journal">
            <field name="name">Sales</field>
            <field name="type">sale</field>
        </record>

        <!--
        Payment term
        -->
        <record id="account_payment_term_immediate" model="account.payment.term">
            <field name="name">Immediate Payment</field>
            <field name="note">Immediate Payment</field>
        </record>

        <record id="account_payment_term_line_immediate" model="account.payment.term.line">
            <field name="value">balance</field>
            <field eval="0" name="days"/>
            <field eval="0" name="days2"/>
            <field eval="account_payment_term_immediate" name="payment_id"/>
        </record>


        <record id="account_payment_term_15days" model="account.payment.term">
            <field name="name">15 Days</field>
            <field name="note">15 Days</field>
        </record>

        <record id="account_payment_term_line_15days" model="account.payment.term.line">
            <field name="value">balance</field>
            <field eval="15" name="days"/>
            <field eval="0" name="days2"/>
            <field eval="account_payment_term_15days" name="payment_id"/>
        </record>

        <record forcecreate="True" id="decimal_payment" model="decimal.precision">
            <field name="name">Payment Term</field>
            <field name="digits">6</field>
        </record>

        <record id="account_payment_term_net" model="account.payment.term">
            <field name="name">30 Net Days</field>
            <field name="note">30 Net Days</field>
        </record>

        <record id="account_payment_term_line_net" model="account.payment.term.line">
            <field name="value">balance</field>
            <field eval="30" name="days"/>
            <field eval="0" name="days2"/>
            <field eval="account_payment_term_net" name="payment_id"/>
        </record>
        
        <!--
        Account Journal Sequences
        -->

        <record id="sequence_sale_journal" model="ir.sequence">
            <field name="name">Account Default Sales Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">SAJ/%(year)s/</field>
        </record>
        <record id="sequence_refund_sales_journal" model="ir.sequence">
            <field name="name">Account Default Sales Credit Note Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">SCNJ/%(year)s/</field>
        </record>
        <record id="sequence_purchase_journal" model="ir.sequence">
            <field name="name">Account Default Expenses Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">EXJ/%(year)s/</field>
        </record>
        <record id="sequence_refund_purchase_journal" model="ir.sequence">
            <field name="name">Account Default Expenses Credit Notes Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">ECNJ/%(year)s/</field>
        </record>
        <record id="sequence_bank_journal" model="ir.sequence">
            <field name="name">Account Default Bank Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">BNK/%(year)s/</field>
        </record>
        <record id="sequence_check_journal" model="ir.sequence">
            <field name="name">Account Default Checks Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">CHK/%(year)s/</field>
        </record>
        <record id="sequence_cash_journal" model="ir.sequence">
            <field name="name">Account Default Cash Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">CSH/%(year)s/</field>
        </record>
        <record id="sequence_opening_journal" model="ir.sequence">
            <field name="name">Account Default Opening Entries Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">OPEJ/%(year)s/</field>
        </record>
        <record id="sequence_miscellaneous_journal" model="ir.sequence">
            <field name="name">Account Default Miscellaneous Journal</field>
            <field eval="3" name="padding"/>
            <field name="prefix">MISJ/%(year)s/</field>
        </record>

        <!--
        Account Statement Sequences
        -->
        <record id="sequence_reconcile" model="ir.sequence.type">
            <field name="name">Account Reconcile</field>
            <field name="code">account.reconcile</field>
        </record>
        <record id="sequence_reconcile_seq" model="ir.sequence">
            <field name="name">Account reconcile sequence</field>
            <field name="code">account.reconcile</field>
            <field name="prefix">A</field>
            <field eval="1" name="number_next"/>
            <field eval="1" name="number_increment"/>
        </record>

        <record id="sequence_statement_type" model="ir.sequence.type">
            <field name="name">Account Bank Statement</field>
            <field name="code">account.bank.statement</field>
        </record>
        <record id="sequence_statement" model="ir.sequence">
            <field name="name">Account Bank Statement</field>
            <field name="code">account.bank.statement</field>
            <field name="prefix">St. %(month)s/%(day)s/</field>
            <field eval="1" name="number_next"/>
            <field eval="1" name="number_increment"/>
        </record>

        <record id="cash_sequence_statement_type" model="ir.sequence.type">
            <field name="name">Account Cash Statement</field>
            <field name="code">account.cash.statement</field>
        </record>
        <record id="cash_sequence_statement" model="ir.sequence">
            <field name="name">Account Cash Statement</field>
            <field name="code">account.cash.statement</field>
            <field name="prefix">Cr. %(month)s/%(day)s/</field>
            <field eval="1" name="number_next"/>
            <field eval="1" name="number_increment"/>
        </record>
        <!--
        Invoice requests (deprecated)
        -->
        <record id="req_link_invoice" model="res.request.link">
            <field name="name">Invoice</field>
            <field name="object">account.invoice</field>
        </record>

        <!-- Account-related subtypes for messaging / Chatter -->
        <record id="mt_invoice_validated" model="mail.message.subtype">
            <field name="name">Validated</field>
            <field name="res_model">account.invoice</field>
            <field name="default" eval="False"/>
            <field name="description">Invoice validated</field>
        </record>
        <record id="mt_invoice_paid" model="mail.message.subtype">
            <field name="name">Paid</field>
            <field name="res_model">account.invoice</field>
            <field name="default" eval="False"/>
            <field name="description">Invoice paid</field>
        </record>
    </data>
</openerp>
