Merge lp:~vauxoo/openerp-mexico-localization/7.0_l10n_mx_field_to_xpath_dev_giovanni into lp:openerp-mexico-localization/7.0
- 7.0_l10n_mx_field_to_xpath_dev_giovanni
- Merge into 7.0
Proposed by
Mario Giovanni Guerrero Flores
Status: | Merged |
---|---|
Merged at revision: | 248 |
Proposed branch: | lp:~vauxoo/openerp-mexico-localization/7.0_l10n_mx_field_to_xpath_dev_giovanni |
Merge into: | lp:openerp-mexico-localization/7.0 |
Diff against target: |
537 lines (+116/-129) 12 files modified
city/partner_address_view.xml (+1/-4) email_template_multicompany/email_server_view.xml (+0/-2) l10n_mx_company_multi_address/res_company_view.xml (+2/-2) l10n_mx_diot_report/partner_view.xml (+2/-6) l10n_mx_facturae_cer/res_company_view.xml (+26/-26) l10n_mx_facturae_seq/ir_sequence_view.xml (+34/-34) l10n_mx_import_info/invoice_view.xml (+2/-2) l10n_mx_import_info/stock_view.xml (+18/-20) l10n_mx_invoice_discount/invoice_view.xml (+14/-16) l10n_mx_invoice_wkf_security/invoice_wkf_security_view.xml (+11/-11) l10n_mx_payment_method/invoice_view.xml (+4/-4) l10n_mx_payment_method/partner_view.xml (+2/-2) |
To merge this branch: | bzr merge lp:~vauxoo/openerp-mexico-localization/7.0_l10n_mx_field_to_xpath_dev_giovanni |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodolfo Lopez (community) | Needs Fixing | ||
Mario Giovanni Guerrero Flores | Pending | ||
Review via email: mp+179074@code.launchpad.net |
Commit message
Description of the change
Cambiar de Field a Xpath(Vistas)
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'city/partner_address_view.xml' |
2 | --- city/partner_address_view.xml 2013-05-26 02:34:03 +0000 |
3 | +++ city/partner_address_view.xml 2013-08-08 00:10:39 +0000 |
4 | @@ -5,8 +5,7 @@ |
5 | <field name="name">res.partner.form_city_01</field> |
6 | <field name="model">res.partner</field> |
7 | <field name="inherit_id" ref="base.view_partner_form"/> |
8 | - <field name="arch" type="xml"> |
9 | - |
10 | + <field name="arch" type="xml"> |
11 | <xpath expr="//field[@name='country_id']" position="after"> |
12 | <field name="city_id" on_change="onchange_city(city_id)" placeholder="Ciudad"/> |
13 | </xpath> |
14 | @@ -15,7 +14,5 @@ |
15 | </xpath> |
16 | </field> |
17 | </record> |
18 | - |
19 | </data> |
20 | </openerp> |
21 | - |
22 | |
23 | === modified file 'email_template_multicompany/email_server_view.xml' |
24 | --- email_template_multicompany/email_server_view.xml 2013-06-06 22:04:05 +0000 |
25 | +++ email_template_multicompany/email_server_view.xml 2013-08-08 00:10:39 +0000 |
26 | @@ -1,7 +1,6 @@ |
27 | <?xml version="1.0" encoding="UTF-8"?> |
28 | <openerp> |
29 | <data> |
30 | - |
31 | <record id="view_mail_server_form_inherit" model="ir.ui.view"> |
32 | <field name="name">mail.server.form.inherit</field> |
33 | <field name="model">ir.mail_server</field> |
34 | @@ -12,6 +11,5 @@ |
35 | </xpath> |
36 | </field> |
37 | </record> |
38 | - |
39 | </data> |
40 | </openerp> |
41 | |
42 | === modified file 'l10n_mx_company_multi_address/res_company_view.xml' |
43 | --- l10n_mx_company_multi_address/res_company_view.xml 2013-04-20 00:14:08 +0000 |
44 | +++ l10n_mx_company_multi_address/res_company_view.xml 2013-08-08 00:10:39 +0000 |
45 | @@ -7,9 +7,9 @@ |
46 | <field name="inherit_id" ref="base.view_company_form"/> |
47 | <field name="model">res.company</field> |
48 | <field name="arch" type="xml"> |
49 | - <field name="parent_id" position="after"> |
50 | + <xpath expr="//field[@name='parent_id']" position="after"> |
51 | <field name="address_invoice_parent_company_id"/> |
52 | - </field> |
53 | + </xpath> |
54 | </field> |
55 | </record> |
56 | |
57 | |
58 | === modified file 'l10n_mx_diot_report/partner_view.xml' |
59 | --- l10n_mx_diot_report/partner_view.xml 2013-06-02 22:58:03 +0000 |
60 | +++ l10n_mx_diot_report/partner_view.xml 2013-08-08 00:10:39 +0000 |
61 | @@ -1,14 +1,12 @@ |
62 | <?xml version="1.0"?> |
63 | <openerp> |
64 | <data> |
65 | - |
66 | - |
67 | <record id="view_partner_diot_form" model="ir.ui.view"> |
68 | <field name="name">res.partner.form.diot</field> |
69 | <field name="model">res.partner</field> |
70 | <field name="inherit_id" ref="base.view_partner_form"/> |
71 | <field name="arch" type="xml"> |
72 | - <field name="bank_ids" position="before"> |
73 | + <xpath expr="//field[@name='bank_ids']" position="before"> |
74 | <group colspan="4" col="4" attrs="{'invisible':[('supplier','=', False)]}"> |
75 | <separator string="DIOT Information" colspan="4"/> |
76 | <newline/> |
77 | @@ -20,10 +18,8 @@ |
78 | <field name="diot_country" attrs="{'invisible':[('type_of_third','=', '04')]}"/> |
79 | <field name="nacionality_diot" attrs="{'invisible':[('type_of_third','=', '04')]}"/> |
80 | </group> |
81 | - </field> |
82 | + </xpath> |
83 | </field> |
84 | </record> |
85 | - |
86 | - |
87 | </data> |
88 | </openerp> |
89 | |
90 | === modified file 'l10n_mx_facturae_cer/res_company_view.xml' |
91 | --- l10n_mx_facturae_cer/res_company_view.xml 2013-06-28 22:52:28 +0000 |
92 | +++ l10n_mx_facturae_cer/res_company_view.xml 2013-08-08 00:10:39 +0000 |
93 | @@ -57,9 +57,9 @@ |
94 | </record> |
95 | |
96 | <menuitem action="action_res_company_facturae_certificate_tree" |
97 | - id="menu_res_company_facturae_certificate" sequence="50" |
98 | - parent="base.menu_res_company_global" |
99 | - groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_manager" |
100 | + id="menu_res_company_facturae_certificate" sequence="50" |
101 | + parent="base.menu_res_company_global" |
102 | + groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_manager" |
103 | /> |
104 | |
105 | |
106 | @@ -81,7 +81,7 @@ |
107 | </field> |
108 | </record> |
109 | |
110 | - <!--<field colspan="4" name="order_line" nolabel="1" widget="one2many_list">--> |
111 | + <!--<field colspan="4" name="order_line" nolabel="1" widget="one2many_list">--> |
112 | |
113 | <!--Version OpenERP--> |
114 | <record model="ir.ui.view" id="view_res_company_form_inh_l10n_mx_facturae"> |
115 | @@ -89,7 +89,7 @@ |
116 | <field name="inherit_id" ref="base.view_company_form"/> |
117 | <field name="model">res.company</field> |
118 | <field name="arch" type="xml"> |
119 | - <page string="Configuration" position="after"> |
120 | + <xpath expr="//page[@string='Configuration']" position="after"> |
121 | <page string="Certificados SAT" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_manager"> |
122 | <!--<field name="cif_file" widget='image'/>--> |
123 | <newline/> |
124 | @@ -104,27 +104,27 @@ |
125 | <field name="certificate_ids" nolabel="1" colspan="4" widget="one2many_list"> |
126 | <form string="Certificates"> |
127 | <separator string="Certificates DER FORMAT (Original)" colspan="4"/> |
128 | - <field name="certificate_file" colspan="4"/> |
129 | - <field name="certificate_key_file" colspan="4"/> |
130 | - <newline/> |
131 | - <field name="certificate_password" password="True" on_change="onchange_certificate_info(certificate_file, certificate_key_file, certificate_password)"/> |
132 | - <separator string="Certificates PEM FORMAT (Transformed)" colspan="4"/> |
133 | - <field name="certificate_file_pem" colspan="4"/> |
134 | - <field name="certificate_key_file_pem" colspan="4"/> |
135 | - <separator string="General Information of Certificate" colspan="4"/> |
136 | - <field name="serial_number"/> |
137 | - <newline/> |
138 | - <field name="date_start"/> |
139 | - <newline/> |
140 | - <field name="date_end"/> |
141 | - <separator string="Extra Information" colspan="4"/> |
142 | - <field name="fname_xslt"/> |
143 | - <newline/> |
144 | - <field name="active"/> |
145 | - <newline/> |
146 | - <button name="get_certificate_info" string="Get Certificate Info" type="object"/> |
147 | + <field name="certificate_file" colspan="4"/> |
148 | + <field name="certificate_key_file" colspan="4"/> |
149 | + <newline/> |
150 | + <field name="certificate_password" password="True" on_change="onchange_certificate_info(certificate_file, certificate_key_file, certificate_password)"/> |
151 | + <separator string="Certificates PEM FORMAT (Transformed)" colspan="4"/> |
152 | + <field name="certificate_file_pem" colspan="4"/> |
153 | + <field name="certificate_key_file_pem" colspan="4"/> |
154 | + <separator string="General Information of Certificate" colspan="4"/> |
155 | + <field name="serial_number"/> |
156 | + <newline/> |
157 | + <field name="date_start"/> |
158 | + <newline/> |
159 | + <field name="date_end"/> |
160 | + <separator string="Extra Information" colspan="4"/> |
161 | + <field name="fname_xslt"/> |
162 | + <newline/> |
163 | + <field name="active"/> |
164 | + <newline/> |
165 | + <button name="get_certificate_info" string="Get Certificate Info" type="object"/> |
166 | </form> |
167 | - <tree string="Certificates"> |
168 | + <tree string="Certificates"> |
169 | <field name="serial_number"/> |
170 | <field name="date_start"/> |
171 | <field name="date_end"/> |
172 | @@ -133,7 +133,7 @@ |
173 | </tree> |
174 | </field> |
175 | </page> |
176 | - </page> |
177 | + </xpath> |
178 | </field> |
179 | </record> |
180 | |
181 | |
182 | === modified file 'l10n_mx_facturae_seq/ir_sequence_view.xml' |
183 | --- l10n_mx_facturae_seq/ir_sequence_view.xml 2013-07-09 23:46:51 +0000 |
184 | +++ l10n_mx_facturae_seq/ir_sequence_view.xml 2013-08-08 00:10:39 +0000 |
185 | @@ -19,7 +19,7 @@ |
186 | </field> |
187 | </record> |
188 | |
189 | - <record id="view_facturae_ir_sequence_approval_tree" model="ir.ui.view"> |
190 | + <record id="view_facturae_ir_sequence_approval_tree" model="ir.ui.view"> |
191 | <field name="name">view.facturae.ir.sequence.approval.tree</field> |
192 | <field name="model">ir.sequence.approval</field> |
193 | <field name="arch" type="xml"> |
194 | @@ -32,11 +32,11 @@ |
195 | <field name="number_end"/> |
196 | <field name="type"/> |
197 | <field name="company_id"/> |
198 | - </tree> |
199 | - </field> |
200 | + </tree> |
201 | + </field> |
202 | </record> |
203 | |
204 | - <record id="action_facturae_sequence_tree" model="ir.actions.act_window"> |
205 | + <record id="action_facturae_sequence_tree" model="ir.actions.act_window"> |
206 | <field name="name">FacturaE MX Sequence Approval</field> |
207 | <field name="res_model">ir.sequence.approval</field> |
208 | <field name="type">ir.actions.act_window</field> |
209 | @@ -45,9 +45,9 @@ |
210 | </record> |
211 | |
212 | <menuitem action="action_facturae_sequence_tree" |
213 | - id="menu_facturae_sequence" sequence="50" |
214 | - parent="base.next_id_5" |
215 | - groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user" |
216 | + id="menu_facturae_sequence" sequence="50" |
217 | + parent="base.next_id_5" |
218 | + groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user" |
219 | /> |
220 | |
221 | <record id="view_facturae_sequence_search" model="ir.ui.view"> |
222 | @@ -77,7 +77,7 @@ |
223 | <field name="model">ir.sequence</field> |
224 | <field name="inherit_id" ref="base.sequence_view"/> |
225 | <field name="arch" type="xml"> |
226 | - <page string="Sequence" position="after"> |
227 | + <xpath expr="//page[@string='Sequence']" position="after"> |
228 | <page string="Aprobaciones SAT" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_manager"> |
229 | <field name="approval_id"/> |
230 | <field name="approval_ids" nolabel="1" colspan="4" widget="one2many_list"> |
231 | @@ -99,37 +99,37 @@ |
232 | </form> |
233 | </field> |
234 | </page> |
235 | - </page> |
236 | + </xpath> |
237 | </field> |
238 | </record> |
239 | |
240 | <!--TinyERP Compatibility |
241 | - <record id="ir_sequence_form_inh_l10n_mx_facturae" model="ir.ui.view"> |
242 | - <field name="name">ir.sequence.form.inh.l10n_mx_facturae</field> |
243 | - <field name="model">ir.sequence</field> |
244 | - <field name="inherit_id" ref="base.sequence_view"/> |
245 | - <field name="arch" type="xml"> |
246 | - <field name="name" position="after"> |
247 | - <field name="approval_id"/> |
248 | - <field name="approval_ids" nolabel="1" colspan="4"> |
249 | - <tree string="Aprobaciones"> |
250 | - <field name="approval_number"/> |
251 | - <field name="serie"/> |
252 | - <field name="approval_year"/> |
253 | - <field name="number_start"/> |
254 | - <field name="number_end"/> |
255 | - </tree> |
256 | - <form string="Aprobaciones"> |
257 | - <field name="approval_number"/> |
258 | - <field name="serie"/> |
259 | - <field name="approval_year"/> |
260 | - <field name="number_start"/> |
261 | - <field name="number_end"/> |
262 | - </form> |
263 | + <record id="ir_sequence_form_inh_l10n_mx_facturae" model="ir.ui.view"> |
264 | + <field name="name">ir.sequence.form.inh.l10n_mx_facturae</field> |
265 | + <field name="model">ir.sequence</field> |
266 | + <field name="inherit_id" ref="base.sequence_view"/> |
267 | + <field name="arch" type="xml"> |
268 | + <field name="name" position="after"> |
269 | + <field name="approval_id"/> |
270 | + <field name="approval_ids" nolabel="1" colspan="4"> |
271 | + <tree string="Aprobaciones"> |
272 | + <field name="approval_number"/> |
273 | + <field name="serie"/> |
274 | + <field name="approval_year"/> |
275 | + <field name="number_start"/> |
276 | + <field name="number_end"/> |
277 | + </tree> |
278 | + <form string="Aprobaciones"> |
279 | + <field name="approval_number"/> |
280 | + <field name="serie"/> |
281 | + <field name="approval_year"/> |
282 | + <field name="number_start"/> |
283 | + <field name="number_end"/> |
284 | + </form> |
285 | + </field> |
286 | </field> |
287 | </field> |
288 | - </field> |
289 | - </record> |
290 | - --> |
291 | + </record> |
292 | + --> |
293 | </data> |
294 | </openerp> |
295 | |
296 | === modified file 'l10n_mx_import_info/invoice_view.xml' |
297 | --- l10n_mx_import_info/invoice_view.xml 2013-04-20 00:14:08 +0000 |
298 | +++ l10n_mx_import_info/invoice_view.xml 2013-08-08 00:10:39 +0000 |
299 | @@ -7,9 +7,9 @@ |
300 | <field name="model">account.invoice.line</field> |
301 | <field name="inherit_id" ref="account.view_invoice_line_form"/> |
302 | <field name="arch" type="xml"> |
303 | - <field name="product_id" position="after"> |
304 | + <xpath expr="//field[@name='product_id']" position="after"> |
305 | <field name="tracking_id"/> |
306 | - </field> |
307 | + </xpath> |
308 | </field> |
309 | </record> |
310 | |
311 | |
312 | === modified file 'l10n_mx_import_info/stock_view.xml' |
313 | --- l10n_mx_import_info/stock_view.xml 2013-04-20 00:14:08 +0000 |
314 | +++ l10n_mx_import_info/stock_view.xml 2013-08-08 00:10:39 +0000 |
315 | @@ -6,12 +6,12 @@ |
316 | <field name="model">stock.tracking</field> |
317 | <field name="inherit_id" ref="stock.view_tracking_form"/> |
318 | <field name="arch" type="xml"> |
319 | - <field name="date" position="after"> |
320 | + <xpath expr="//field[@name='date']" position="after"> |
321 | <field name="import_id" domain="[]"/> |
322 | - </field> |
323 | -<!-- <field name="date" position="after">--> |
324 | -<!-- <field name="import_product_id"/>--> |
325 | -<!-- </field>--> |
326 | + </xpath> |
327 | + <!-- <field name="date" position="after">--> |
328 | + <!-- <field name="import_product_id"/>--> |
329 | + <!-- </field>--> |
330 | </field> |
331 | </record> |
332 | <record model="ir.ui.view" id="stock_tracking_form"> |
333 | @@ -34,10 +34,10 @@ |
334 | <field name="model">stock.report.tracklots</field> |
335 | <field name="arch" type="xml"> |
336 | <form string="Stock Tracking"> |
337 | - <field name="product_id"/> |
338 | - <field name="location_id"/> |
339 | - <field name="name"/> |
340 | - <field name="tracking_id"/> |
341 | + <field name="product_id"/> |
342 | + <field name="location_id"/> |
343 | + <field name="name"/> |
344 | + <field name="tracking_id"/> |
345 | </form> |
346 | </field> |
347 | </record> |
348 | @@ -46,10 +46,10 @@ |
349 | <field name="model">stock.report.tracklots</field> |
350 | <field name="arch" type="xml"> |
351 | <tree string="Stock Tracking"> |
352 | - <field name="product_id"/> |
353 | - <field name="location_id"/> |
354 | - <field name="name"/> |
355 | - <field name="tracking_id"/> |
356 | + <field name="product_id"/> |
357 | + <field name="location_id"/> |
358 | + <field name="name"/> |
359 | + <field name="tracking_id"/> |
360 | </tree> |
361 | </field> |
362 | </record> |
363 | @@ -60,9 +60,9 @@ |
364 | <search string="Stock Tracking"> |
365 | <group col="6" colspan="4"> |
366 | <filter string="Without Customers and Suppliers" icon="terp-partner" |
367 | - name="wo_cands" |
368 | - domain="[('location_id','!=','Suppliers'),('location_id','!=','Customers')]" |
369 | - help="Just Internal, with this filter you will not inventory on Suppliers and Customers location" /> |
370 | + name="wo_cands" |
371 | + domain="[('location_id','!=','Suppliers'),('location_id','!=','Customers')]" |
372 | + help="Just Internal, with this filter you will not inventory on Suppliers and Customers location" /> |
373 | <field name="product_id"/> |
374 | <field name="location_id"/> |
375 | <field name="name"/> |
376 | @@ -71,7 +71,7 @@ |
377 | <newline/> |
378 | <group expand="1" string="Group By..." colspan="4" col="4" groups="base.group_extended"> |
379 | <filter string="Tracking" icon="terp-stock_effects-object-colorize" |
380 | - context="{'group_by':'tracking_id'}"/> |
381 | + context="{'group_by':'tracking_id'}"/> |
382 | </group> |
383 | </search> |
384 | </field> |
385 | @@ -83,8 +83,6 @@ |
386 | name="Stock per tracking" |
387 | res_model="stock.report.tracklots" |
388 | src_model="product.product" |
389 | - /> |
390 | + /> |
391 | </data> |
392 | </openerp> |
393 | - |
394 | - |
395 | |
396 | === modified file 'l10n_mx_invoice_discount/invoice_view.xml' |
397 | --- l10n_mx_invoice_discount/invoice_view.xml 2013-04-20 00:14:08 +0000 |
398 | +++ l10n_mx_invoice_discount/invoice_view.xml 2013-08-08 00:10:39 +0000 |
399 | @@ -1,41 +1,39 @@ |
400 | <?xml version="1.0" encoding="utf-8"?> |
401 | <openerp> |
402 | <data> |
403 | - |
404 | <record model="ir.ui.view" id="view_account_invoice_form_inh_xml22"> |
405 | <field name="name">view.account.invoice.form.inh.xml22</field> |
406 | <field name="model">account.invoice</field> |
407 | <field name="inherit_id" ref="account.invoice_form"/> |
408 | <field name="arch" type="xml"> |
409 | - <field name="fiscal_position" position="after"> |
410 | - <newline/> |
411 | - |
412 | - <field name="global_discount_percent" colspan="2"/> |
413 | - <field name="motive_discount" colspan="2"/> |
414 | - <field name="global_discount_amount" colspan="2"/> |
415 | - </field> |
416 | + <xpath expr="//field[@name='fiscal_position']" position="after"> |
417 | + <newline/> |
418 | + <field name="global_discount_percent" colspan="2"/> |
419 | + <field name="motive_discount" colspan="2"/> |
420 | + <field name="global_discount_amount" colspan="2"/> |
421 | + </xpath> |
422 | </field> |
423 | </record> |
424 | - |
425 | + |
426 | <record model="ir.ui.view" id="view_invoice_line_tree_inh_discount"> |
427 | <field name="name">view.invoice.line.tree.inh.discount</field> |
428 | <field name="model">account.invoice.line</field> |
429 | <field name="inherit_id" ref="account.view_invoice_line_tree"/> |
430 | <field name="arch" type="xml"> |
431 | - <field name="discount" position="replace"> |
432 | - <field name="discount" groups="base.group_extended" readonly="1"/> |
433 | - </field> |
434 | + <xpath expr="//field[@name='discount']" position="replace"> |
435 | + <field name="discount" groups="base.group_extended" readonly="1"/> |
436 | + </xpath> |
437 | </field> |
438 | </record> |
439 | - |
440 | + |
441 | <record model="ir.ui.view" id="view_invoice_line_form_inh_discount"> |
442 | <field name="name">view.invoice.line.form.inh.discount</field> |
443 | <field name="model">account.invoice.line</field> |
444 | <field name="inherit_id" ref="account.view_invoice_line_form"/> |
445 | <field name="arch" type="xml"> |
446 | - <field name="discount" position="replace"> |
447 | - <field name="discount" groups="base.group_extended" readonly="1"/> |
448 | - </field> |
449 | + <xpath expr="//field[@name='discount']" position="replace"> |
450 | + <field name="discount" groups="base.group_extended" readonly="1"/> |
451 | + </xpath> |
452 | </field> |
453 | </record> |
454 | </data> |
455 | |
456 | === modified file 'l10n_mx_invoice_wkf_security/invoice_wkf_security_view.xml' |
457 | --- l10n_mx_invoice_wkf_security/invoice_wkf_security_view.xml 2013-06-28 22:52:28 +0000 |
458 | +++ l10n_mx_invoice_wkf_security/invoice_wkf_security_view.xml 2013-08-08 00:10:39 +0000 |
459 | @@ -3,19 +3,19 @@ |
460 | <data> |
461 | |
462 | <record id="view_account_invoice_form_inherit" model="ir.ui.view"> |
463 | - <field name="name">view.account.invoice.form.inherit</field> |
464 | - <field name="model">account.invoice</field> |
465 | - <field name="inherit_id" ref="account.invoice_form"/> |
466 | - <field name="arch" type="xml"> |
467 | - <button name="invoice_cancel" position="replace"> |
468 | - <button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" |
469 | + <field name="name">view.account.invoice.form.inherit</field> |
470 | + <field name="model">account.invoice</field> |
471 | + <field name="inherit_id" ref="account.invoice_form"/> |
472 | + <field name="arch" type="xml"> |
473 | + <xpath expr="//button[@name='invoice_cancel']" position="replace"> |
474 | + <button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" |
475 | icon="gtk-cancel" groups="invoice_wkf_security.group_invoice_cancel,l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
476 | - </button> |
477 | - <button name="action_cancel_draft" position="replace"> |
478 | - <button name="action_cancel_draft" states="cancel" string="Reset to Draft" |
479 | + </xpath> |
480 | + <xpath expr="//button[@name='action_cancel_draft']" position="replace"> |
481 | + <button name="action_cancel_draft" states="cancel" string="Reset to Draft" |
482 | type="object" icon="terp-stock_effects-object-colorize" groups="invoice_wkf_security.group_invoice_reset_draft, l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
483 | - </button> |
484 | - </field> |
485 | + </xpath> |
486 | + </field> |
487 | </record> |
488 | |
489 | </data> |
490 | |
491 | === modified file 'l10n_mx_payment_method/invoice_view.xml' |
492 | --- l10n_mx_payment_method/invoice_view.xml 2013-08-05 23:11:03 +0000 |
493 | +++ l10n_mx_payment_method/invoice_view.xml 2013-08-08 00:10:39 +0000 |
494 | @@ -7,11 +7,11 @@ |
495 | <field name="model">account.invoice</field> |
496 | <field name="inherit_id" ref="account.invoice_form"/> |
497 | <field name="arch" type="xml"> |
498 | - <field name="fiscal_position" position="after"> |
499 | + <xpath expr="//field[@name='fiscal_position']" position="after"> |
500 | <newline/> |
501 | <field name="pay_method_id" colspan="2" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
502 | <field name="acc_payment" colspan="2" domain = "[('partner_id', '=', partner_id)]" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
503 | - </field> |
504 | + </xpath> |
505 | </field> |
506 | </record> |
507 | |
508 | @@ -21,11 +21,11 @@ |
509 | <field name="model">account.invoice</field> |
510 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
511 | <field name="arch" type="xml"> |
512 | - <field name="fiscal_position" position="after"> |
513 | + <xpath expr="//field[@name='fiscal_position']" position="after"> |
514 | <newline/> |
515 | <field name="pay_method_id" colspan="2" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
516 | <field name="acc_payment" colspan="2" domain = "[('partner_id', '=', partner_id)]" groups="l10n_mx_facturae_groups.group_l10n_mx_facturae_user"/> |
517 | - </field> |
518 | + </xpath> |
519 | </field> |
520 | </record> |
521 | |
522 | |
523 | === modified file 'l10n_mx_payment_method/partner_view.xml' |
524 | --- l10n_mx_payment_method/partner_view.xml 2013-06-04 00:26:18 +0000 |
525 | +++ l10n_mx_payment_method/partner_view.xml 2013-08-08 00:10:39 +0000 |
526 | @@ -7,9 +7,9 @@ |
527 | <field name="model">res.partner</field> |
528 | <field name="inherit_id" ref="base.view_partner_form"/> |
529 | <field name="arch" type="xml"> |
530 | - <field name="property_payment_term" position="before"> |
531 | + <xpath expr="//field[@name='property_payment_term']" position="before"> |
532 | <field name="pay_method_id" colspan="2"/> |
533 | - </field> |
534 | + </xpath> |
535 | </field> |
536 | </record> |
537 | </data> |
Giovanni la propuesta la puedes dividir en dos:
* una que cambie las vistas de field a xpath.
* y la otra que modifique la indentación.
Así minimizamos el la detección de errores y control de cambios.