~magentoerpconnect-core-editors/magentoerpconnect/oerp6.1-stable

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>


        <record model="ir.ui.view" id="magerp_view_shop_form">
            <field name="name">magerp_view_shop_form</field>
            <field name="model">sale.shop</field>
            <field name="inherit_id"
                ref="base_sale_multichannels.base_sale_multichannels_view_shop_form" />
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="referential_id" position="replace">
                    <field name="referential_id" attrs="{'readonly': [('type_name', '=', 'Magento')]}"/>
                </field>
                <page string="External Shop Settings" position="before">
                    <page string="Magento Actions" attrs="{'invisible': [('type_name', '!=', 'Magento')]}">
                        <group col="6" colspan="4">
                            <group col="3" colspan="3">
                                <separator string="Catalog" colspan="3"/>
                                <group col="1" colspan="1">
                                <button name="export_catalog" string="Export Catalog" colspan="1" type="object"/>
                                <button name="export_inventory" string="Export Stock Levels Only" colspan="1" type="object"/>
                                <button name="export_images" string="Export Images"    colspan="2" type="object" />
                            </group>
                            <group col="2" colspan="2">
                                <field name="last_products_export_date" colspan="2"/>
                                <field name="last_special_products_export_date" colspan="2"/>
                                <field name="last_category_export_date" colspan="2"/>
                                <field name="last_inventory_export_date" colspan="2"/>
                                <field name="last_images_export_date" />
                            </group>
                        </group>
                        <group col="3" colspan="3">
                            <separator string="Orders" colspan="3"/>
                            <group col="4" colspan="3">
                                <button name="import_orders" string="Import Orders" colspan="1" type="object"/>
                                <button name="check_need_to_update" string="Check Payments from Channel" colspan="1" type="object"/>
                                <field name="import_orders_from_date" colspan="2"/>
                            </group>
                            <button name="update_orders" string="Update Orders State on Channel" colspan="1" type="object"/>
                            <field name="last_update_order_export_date" colspan="2"/>
                            <button name="export_invoices" string="Export Invoices" colspan="1" type="object"/>
                            <button name="export_shipping" string="Export Shippings" colspan="1" type="object"/>
                            </group>
                            <separator string="Partners" colspan="3"/>
                            <newline/>
                            <button name="export_shop_partners" string="Export Partners" colspan="1" type="object"/>
                            <newline/>
                        </group>
                    </page>
                </page>
                <field name="shop_group_id" position="replace">
                    <field name="shop_group_id" readonly="True"/>
                    <field name="magento_root_category"/>
                    <field name="storeview_ids" nolabel="1" colspan="4"/>
                    <separator string="Magento Option" colspan="4"/>
                    <field name="magento_shop" />
                    <field name="allow_magento_order_status_push" />
                    <field name="allow_magento_notification"/>
                </field>
            </field>
        </record>

        <record id="act_magerp_shop_form" model="ir.actions.act_window">
            <field name="name">Magento Shops</field>
            <field name="res_model">sale.shop</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[['type_name', '=', 'Magento']]</field>
        </record>

        <record id="base_sale_multichannel_view_order_form_magento" model="ir.ui.view">
            <field name="name">base_sale_multichannel_view_order_form.magento</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="base_sale_multichannels.base_sale_multichannel_view_order_form"/>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <field name="need_to_update" position="after">
                        <group colspan="4" attrs="{'invisible': [('is_magento', '=', False)]}">
                            <field name="is_magento" invisible="True"/>
                            <separator string="Magento History" colspan="4"/>
                            <field name="magento_incrementid" readonly="True"/>
                            <field name="magento_storeview_id" readonly="True"/>
                        </group>
                    </field>
                </data>
            </field>
        </record>

    </data>
</openerp>