1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="form_stock_wizardImportMoveLine" model="ir.ui.view">
<field name="name">Import Move Line</field>
<field name="model">account.wizard_import_move_line</field>
<field name="arch" type="xml">
<form string="Import Move Line" version="7.0">
<field name="move_line_ids" nolabel="1" colspan="4" mode="tree">
<tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" version="7.0">
<field name="journal_id" options="{"no_open":True}" invisible="context.get('journal_id',False)"/>
<field name="period_id" options="{"no_open":True}" invisible="context.get('period_id',False)"/>
<field name="date"/>
<field name="name"/>
<field name="ref"/>
<field name="statement_id" invisible="1"/>
<field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
<field name="account_id" options="{"no_open":True}" domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]" on_change="onchange_account_id(account_id)"/>
<field name="account_tax_id" options="{"no_open":True}" invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund','general']"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('type','not in',['view','template'])]" invisible="not context.get('analytic_journal_id',False)"/>
<field name="move_id" required="0"/>
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>
<field name="date_maturity" invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund']"/>
<field name="reconcile"/>
<field name="invoice" invisible="1"/>
<field name="amount_currency" readonly="True" invisible="not context.get('currency',False)"/>
<field name="currency_id" readonly="True" invisible="not context.get('currency',False)"/>
<field name="state" invisible="1"/>
<field name="company_id" invisible="1"/>
</tree>
</field>
<footer>
<button name="import_move_lines" string="Import" type="object" class="oe_highlight"/>
Or
<button special="cancel" string="_Cancel" class="oe_link"/>
</footer>
</form>
</field>
</record>
<record id="waction_stock_wizardImportMoveLine" model="ir.actions.act_window">
<field name="name">Import Move Line</field>
<field name="res_model">account.wizard_import_move_line</field>
<field name="view_type">form</field>
<field name="view_id" ref="form_stock_wizardImportMoveLine"/>
<field name="target">new</field>
</record>
</data>
</openerp>
|