Browse Source

Add demo data

pull/24/head
Alexis de Lattre 10 years ago
parent
commit
4c038279ab
  1. 1
      pos_no_bank_statement/__openerp__.py
  2. 27
      pos_no_bank_statement/demo.xml

1
pos_no_bank_statement/__openerp__.py

@ -20,6 +20,7 @@ issuing an Invoice without registering any payment.
'data': [
'view/account.xml',
],
'demo': ['demo.xml'],
'installable': True,
'application': False,
}

27
pos_no_bank_statement/demo.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="pos_no_bank_statement_account" model="account.account">
<field name="code">POSNOST</field>
<field name="name">POS no bank statement</field>
<field name="type">liquidity</field>
<field name="user_type" ref="account.data_account_type_asset"/>
</record>
<record id="pos_no_bank_statement_journal" model="account.journal">
<field name="name">Pay Invoice Later</field>
<field name="code">PINV</field>
<field name="type">bank</field>
<field name="default_debit_account_id" ref="pos_no_bank_statement_account"/>
<field name="default_credit_account_id" ref="pos_no_bank_statement_account"/>
<field name="no_bank_statement" eval="True"/>
<field name="journal_user" eval="True"/>
</record>
<record id="point_of_sale.pos_config_main" model="pos.config">
<field name="journal_ids" eval="[(4, ref('pos_no_bank_statement_journal'))]" />
</record>
</data>
</openerp>
Loading…
Cancel
Save