blob: 47a2dff65968e430647e6ff1341c66da376b6239 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="upload_ginee_tree" model="ir.ui.view">
<field name="name">upload.ginee.tree</field>
<field name="model">upload.ginee</field>
<field name="arch" type="xml">
<tree default_order="create_date desc">
<field name="number"/>
<field name="date_upload"/>
<field name="user_id"/>
<field name="upload_type"/>
</tree>
</field>
</record>
<record id="view_upload_ginee_form" model="ir.ui.view">
<field name="name">upload.ginee.form</field>
<field name="model">upload.ginee</field>
<field name="arch" type="xml">
<form string="Upload Ginee">
<header>
<button name="action_import_excel" string="Import Excel" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
<button name="action_get_order_id" string="Get Order ID" type="object" class="oe_highlight" invisible="1"/>
<button name="action_create_detail_order" string="Create Detail Order" type="object" class="oe_highlight" invisible="1"/>
<button name="action_get_order_id_and_create_detail_order" string="Get Order ID And Create Detail Order" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
<field name="number" widget="field_no_edit" options="{'no_open': True}"/>
<field name="date_upload"/>
<field name="user_id" widget="field_no_edit" options="{'no_open': True}"/>
</header>
<sheet>
<group>
<field name="excel_file" filename="filename"/>
<field name="filename" invisible="1"/>
<field name="upload_type" required="1"/>
</group>
<field name="ginee_lines">
<tree editable="bottom">
<field name="marketplace"/>
<field name="shop"/>
<field name="invoice_marketplace"/>
<field name="order_id"/>
<field name="detail_order_id"/>
<field name="message_error"/>
</tree>
</field>
</sheet>
</form>
</field>
</record>
<record id="upload_ginee_action" model="ir.actions.act_window">
<field name="name">Upload Ginee</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">upload.ginee</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="menu_upload_ginee"
name="Upload Ginee"
parent="sale.menu_sale_report"
sequence="4"
action="upload_ginee_action"
/>
</data>
</odoo>
|