1 <?xml version="1.0" encoding="UTF-8"?>
4 <menuitem id="menu_res_company_global" parent="base.menu_administration" name="Companies" sequence="2"
5 groups="base.group_no_one"/>
7 <menuitem id="menu_custom_multicompany" parent="base.menu_custom" name="Multi-Companies" sequence="50"/>
9 <report id="preview_report" model="res.company" name="preview.report" multi="True" rml="base/report/preview_report.rml" string="Preview Report"/>
10 <record id="bank_account_update" model="ir.actions.act_window">
11 <field name="name">Company Bank Accounts</field>
12 <field name="res_model">res.partner.bank</field>
13 <field name="view_type">form</field>
14 <field name="view_mode">tree,form</field>
15 <field name="context" eval="{'default_partner_id':ref('base.main_partner'), 'company_hide':False, 'default_company_id':ref('base.main_company'), 'search_default_my_bank':1}"/>
17 <record id="view_company_form" model="ir.ui.view">
18 <field name="name">res.company.form</field>
19 <field name="model">res.company</field>
20 <field name="arch" type="xml">
21 <form string="Company" version="7.0">
24 <field name="logo" widget="image" class="oe_avatar oe_left"/>
26 <div class="oe_right oe_button_box" name="button_box">
27 <button name="%(preview_report)d" string="Preview Header/Footer" type="action"/>
29 <div class="oe_title">
30 <label for="name" class="oe_edit_only"/>
32 <field name="name" class="oe_inline"/>
35 <div attrs="{'invisible' : [('logo','!=',False)]}" class="oe_view_nocontent oe_clear">
36 <p class="oe_view_nocontent_create">
37 Click to set your company logo.
41 <field name="parent_id" groups="base.group_multi_company"/>
43 <notebook colspan="4">
44 <page string="General Information">
47 <field name="partner_id" readonly="1" required="0" groups="base.group_no_one"/>
48 <label for="street" string="Address"/>
50 <field name="street" placeholder="Street..."/>
51 <field name="street2"/>
53 <field name="city" placeholder="City" style="width: 40%%"/>
54 <field name="state_id" class="oe_no_button" placeholder="State" style="width: 24%%" options='{"no_open": True}'/>
55 <field name="zip" placeholder="ZIP" style="width: 34%%"/>
57 <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}' on_change="on_change_country(country_id)"/>
59 <label for="rml_header1"/>
61 <field name="rml_header1" placeholder="e.g. Global Business Solutions"/>
63 <field name="website" widget="url" placeholder="e.g. www.openerp.com"
64 on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
67 <field name="phone" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
68 <field name="fax" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
69 <field name="email" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
70 <field name="vat" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
71 <field name="company_registry" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
74 <group string="Bank Accounts">
75 <field name="bank_ids" nolabel="1" context="{'default_company_id': active_id, 'footer_hide': False}"
76 on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
78 <group string="Report Footer Configuration">
79 <field name="paper_format" on_change="onchange_paper_format(paper_format)"/>
80 <field name="custom_footer" on_change="onchange_footer(custom_footer, phone, fax, email, website, vat, company_registry, bank_ids)"/>
81 <field name="rml_footer" attrs="{'invisible': [('custom_footer','=',False)]}"/>
82 <field name="rml_footer_readonly" attrs="{'invisible': [('custom_footer','=',True)]}"/>
85 <page string="Header/Footer" groups="base.group_no_one">
86 <label for="rml_header"/>
87 <field name="rml_header"/>
88 <label for="rml_header2"/>
89 <field name="rml_header2"/>
90 <label for="rml_header3"/>
91 <field name="rml_header3"/>
93 <page string="Configuration">
95 <group name="account_grp" string="Accounting">
96 <field name="currency_id"/>
105 <record id="view_company_tree" model="ir.ui.view">
106 <field name="name">res.company.tree</field>
107 <field name="model">res.company</field>
108 <field name="field_parent">child_ids</field>
109 <field name="arch" type="xml">
110 <tree string="Companies">
112 <field name="partner_id"/>
116 <record id="company_normal_action_tree" model="ir.actions.act_window">
117 <field name="name">Companies</field>
118 <field name="type">ir.actions.act_window</field>
119 <field name="res_model">res.company</field>
120 <field name="view_type">form</field>
121 <field name="view_mode">tree,form</field>
122 <field name="domain">[('id','=',active_id)]</field>
124 <record id="action_res_company_form" model="ir.actions.act_window">
125 <field name="name">Companies</field>
126 <field name="type">ir.actions.act_window</field>
127 <field name="res_model">res.company</field>
128 <field name="view_type">form</field>
129 <field name="help">Create and manage the companies that will be managed by OpenERP from here. Shops or subsidiaries can be created and maintained from here.</field>
131 <menuitem action="action_res_company_form" id="menu_action_res_company_form" parent="base.menu_res_company_global"/>
132 <record id="action_res_company_tree" model="ir.actions.act_window">
133 <field name="name">Company's Structure</field>
134 <field name="type">ir.actions.act_window</field>
135 <field name="res_model">res.company</field>
136 <field name="domain">[('parent_id','=',False)]</field>
137 <field name="view_type">tree</field>
139 <menuitem action="action_res_company_tree" groups="base.group_multi_company" id="menu_action_res_company_tree" parent="base.menu_res_company_global" sequence="16"/>
141 <record id="ir_open_company" model="ir.values">
142 <field eval="'tree_but_open'" name="key2"/>
143 <field eval="'res.company'" name="model"/>
144 <field name="name">Companies</field>
145 <field eval="'ir.actions.act_window,%d'%company_normal_action_tree" name="value"/>
148 <record id="view_inventory_tree" model="ir.ui.view">
149 <field name="name">multi_company.default.tree</field>
150 <field name="model">multi_company.default</field>
151 <field name="priority" eval="8"/>
152 <field name="arch" type="xml">
153 <tree string="Multi Company">
154 <field name="company_id"/>
155 <field name="object_id"/>
156 <field name="field_id"/>
157 <field name="expression" />
158 <field name="sequence"/>
159 <field name="company_dest_id"/>
164 <record id="view_inventory_form" model="ir.ui.view">
165 <field name="name">multi_company.default.form</field>
166 <field name="model">multi_company.default</field>
167 <field name="priority" eval="8"/>
168 <field name="arch" type="xml">
169 <form string="Multi Company" version="7.0">
174 <field name="company_id"/>
175 <field name="company_dest_id"/>
178 <field name="object_id"/>
179 <field name="field_id" domain="[('model_id','=',object_id)]"/>
180 <field name="expression"/>
181 <field name="sequence"/>
188 <record id="view_inventory_search" model="ir.ui.view">
189 <field name="name">multi_company.default.search</field>
190 <field name="model">multi_company.default</field>
191 <field name="priority" eval="8"/>
192 <field name="arch" type="xml">
193 <search string="Multi Company">
194 <field name="name" string="Name"/>
195 <field name="company_id"/>
196 <field name="company_dest_id"/>
197 <field name="object_id"/>
201 <record id="action_inventory_form" model="ir.actions.act_window">
202 <field name="name">Default Company per Object</field>
203 <field name="type">ir.actions.act_window</field>
204 <field name="res_model">multi_company.default</field>
205 <field name="view_type">form</field>
206 <field name="search_view_id" ref="view_inventory_search"/>
208 <menuitem id="menu_action_inventory_form" parent="menu_custom_multicompany" action="action_inventory_form"/>