[FIX] point_of_sale: Removed demo data resulting into error and kept it in yaml instead.
bzr revid: uco@tinyerp.com-20100929055128-8ft419k4sos1w766
This commit is contained in:
parent
162cfe8a31
commit
18412c566a
|
@ -61,14 +61,5 @@
|
|||
<field name="notice">Discount Applied</field>
|
||||
</record>
|
||||
|
||||
<record id="account_bank_statement_st0" model="account.bank.statement">
|
||||
<field name="name">St. 05/19</field>
|
||||
<field name="balance_end_real">0.0</field>
|
||||
<field name="date">2010-05-19</field>
|
||||
<field name="journal_id" ref="account.bank_journal"/>
|
||||
<field name="period_id" ref="account.period_5"/>
|
||||
<field name="state">draft</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -67,6 +67,16 @@
|
|||
(data, format) = netsvc.LocalService('report.pos.details').create(cr, uid, [], {'model':'ir.ui.menu', 'form':{'date_start': time.strftime('%Y-%m-%d'), 'date_end': time.strftime('%Y-%m-%d') }}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'point_of_sale- pos details report'+format), 'wb+').write(data)
|
||||
-
|
||||
I create a record for Bank Statement.
|
||||
-
|
||||
!record {model: account.bank.statement, id: account_bank_statement_st0}:
|
||||
name: St.05/19
|
||||
balance_end_real: 0.0
|
||||
date: '2010-05-19'
|
||||
journal_id: account.bank_journal
|
||||
period_id: account.period_5
|
||||
state: 'draft'
|
||||
-
|
||||
In order to test the PDF reports defined on a Point Of Sale, we will print a Account Statement Report
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue