|
11 | 11 | <field name="arch" type="xml"> |
12 | 12 | <data> |
13 | 13 | <xpath expr="//field[@name='code']" position="replace"/> |
| 14 | + <xpath expr="//form//label[@for='name']" position="replace"/> |
14 | 15 | <xpath expr="//field[@name='name']" position="attributes"> |
15 | 16 | <attribute name="placeholder">e.g. Apartment A0</attribute> |
16 | 17 | </xpath> |
|
19 | 20 | <field string="Vendor Bills" name="vendor_bill_count" widget="statinfo"/> |
20 | 21 | </button> |
21 | 22 | </xpath> |
22 | | - <xpath expr="//form[1]/sheet[1]/div[not(@name)][1]/label[1]" position="replace"/> |
23 | 23 | <xpath expr="//button[@name='action_view_projects']" position="replace"/> |
24 | 24 | <xpath expr="//field[@name='active']" position="after"> |
25 | | - <xpath expr="//form[1]/sheet[1]/group[@name='main']/group[2]/field[@name='company_id']" position="move"/> |
| 25 | + <xpath expr="//group[@name='main']/group[2]/field[@name='company_id']" position="move"/> |
26 | 26 | <field name="x_condominium"/> |
27 | 27 | </xpath> |
28 | 28 | <xpath expr="//field[@name='currency_id']" position="replace"> |
|
38 | 38 | <xpath expr="//field[@name='plan_id']" position="attributes"> |
39 | 39 | <attribute name="invisible">True</attribute> |
40 | 40 | </xpath> |
41 | | - <xpath expr="//form[1]/sheet[1]/group[@name='main']/group[1]/field[@name='company_id']" position="attributes"> |
| 41 | + <xpath expr="//group[@name='main']/group/field[@name='company_id']" position="attributes"> |
42 | 42 | <attribute name="force_save">1</attribute> |
43 | 43 | <attribute name="groups">base.group_no_one</attribute> |
44 | 44 | <attribute name="readonly">True</attribute> |
|
56 | 56 | <field name="type">form</field> |
57 | 57 | <field name="arch" type="xml"> |
58 | 58 | <xpath expr="//header" position="inside"> |
59 | | - <button name="%(ir_act_server_split_per_property)d" string="Split per Owner" type="action" invisible="not x_company_partner_id or state != 'draft'"/> |
| 59 | + <button name="%(ir_act_server_split_so_per_owner)d" string="Split per Owner" type="action" invisible="not x_company_partner_id or state != 'draft'"/> |
60 | 60 | </xpath> |
61 | 61 | <xpath expr="//button[@name='action_sale_order_log']" position="after"> |
62 | 62 | <button name="%(sale_order_button_action)d" class="oe_stat_button" icon="fa-dollar" type="action" invisible="x_source_sales_order_sale_order_count == 0"> |
|
336 | 336 | <field name="priority">99</field> |
337 | 337 | <field name="type">list</field> |
338 | 338 | <field name="arch" type="xml"> |
339 | | - <xpath expr="//list[1]/field[@name='name']" position="attributes"> |
| 339 | + <xpath expr="//field[@name='name']" position="attributes"> |
340 | 340 | <attribute name="string">Distribution Key</attribute> |
341 | 341 | </xpath> |
342 | 342 | <xpath expr="//field[@name='country_group_ids']" position="attributes"> |
|
369 | 369 | <xpath expr="//field[@name='property_product_pricelist']" position="after"> |
370 | 370 | <field name="x_condominium_properties" widget="many2many_tags" force_save="1" readonly="True" /> |
371 | 371 | </xpath> |
372 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]" position="inside"> |
| 372 | + <xpath expr="//sheet/notebook" position="inside"> |
373 | 373 | <page string="Vendors" invisible="not ref_company_ids"> |
374 | 374 | <field name="x_vendors"> |
375 | 375 | <list string="Contacts" sample="1" multi_edit="1" editable="bottom"> |
|
422 | 422 | <xpath expr="//field[@name='sale_order_template_id']" position="after"> |
423 | 423 | <field name="x_distribution_key" options="{'create_name_field': 'x_name'}"/> |
424 | 424 | </xpath> |
425 | | - <xpath expr="//form[1]/sheet[1]/group[@name='sale_header']/group[@name='order_details']/label[not(@name)][1]" position="attributes"> |
| 425 | + <xpath expr="//label[@for='pricelist_id']" position="attributes"> |
426 | 426 | <attribute name="string">Pricelist</attribute> |
427 | 427 | </xpath> |
428 | | - <xpath expr="//form[1]/sheet[1]/group[@name='sale_header']/group[@name='order_details']/div[not(@name)][3]/field[@name='pricelist_id']" position="attributes"> |
| 428 | + <xpath expr="//field[@name='pricelist_id']" position="attributes"> |
429 | 429 | <attribute name="placeholder"/> |
430 | 430 | </xpath> |
431 | 431 | <xpath expr="//group[@name='sale_header']" position="after"> |
432 | 432 | <group name="sale_header_group"/> |
433 | 433 | </xpath> |
434 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/list[1]" position="attributes"> |
| 434 | + <xpath expr="//page[@name='order_lines']/field[@name='order_line']/list" position="attributes"> |
435 | 435 | <attribute name="open_form_view">true</attribute> |
436 | 436 | </xpath> |
437 | 437 | </data> |
|
727 | 727 | <record id="analytic_account_custom_list_view" model="ir.ui.view"> |
728 | 728 | <field name="arch" type="xml"> |
729 | 729 | <data> |
730 | | - <xpath expr="//list[1]/field[@name='company_id'][2]" position="replace"/> |
| 730 | + <xpath expr="//field[@name='company_id' and @groups='base.group_multi_company']" position="replace"/> |
731 | 731 | <xpath expr="//field[@name='plan_id']" position="replace"/> |
732 | 732 | <xpath expr="//field[@name='code']" position="replace"> |
733 | 733 | <field name="x_start_date" optional="show"/> |
|
770 | 770 | <record id="view_account_analytic_line_form_inherit" model="ir.ui.view"> |
771 | 771 | <field name="arch" type="xml"> |
772 | 772 | <data> |
773 | | - <xpath expr="//form[1]/field[@name='company_id']" position="before"> |
| 773 | + <xpath expr="//field[@name='company_id']" position="before"> |
774 | 774 | <header> |
775 | 775 | <button string="Split" name="%(split_analytic_item_action)d" type="action" class="btn-primary"/> |
776 | 776 | </header> |
777 | 777 | </xpath> |
778 | | - <xpath expr="//form[1]/sheet[1]/group[1]/group[@name='analytic_item']/field[@name='company_id']" position="after"> |
| 778 | + <xpath expr="//group[@name='analytic_item']/field[@name='company_id']" position="after"> |
779 | 779 | <field name="x_notes"/> |
780 | 780 | </xpath> |
781 | 781 | <xpath expr="//field[@name='product_id']" position="after"> |
|
1006 | 1006 | <xpath expr="//page[@name='page_invitations']" position="attributes"> |
1007 | 1007 | <attribute name="groups"/> |
1008 | 1008 | </xpath> |
1009 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/list[1]/field[@name='partner_id']" position="attributes"> |
1010 | | - <attribute name="readonly">True</attribute> |
1011 | | - </xpath> |
1012 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/list[1]/field[@name='email']" position="attributes"> |
1013 | | - <attribute name="readonly">True</attribute> |
1014 | | - </xpath> |
1015 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/list[1]/field[@name='phone']" position="attributes"> |
1016 | | - <attribute name="readonly">True</attribute> |
1017 | | - </xpath> |
1018 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/list[1]/field[@name='state']" position="attributes"> |
| 1009 | + <xpath expr="//field[@name='attendee_ids']" position="attributes"> |
1019 | 1010 | <attribute name="readonly">True</attribute> |
1020 | 1011 | </xpath> |
1021 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/list[1]/button[@name='do_decline']" position="after"> |
| 1012 | + <xpath expr="//field[@name='attendee_ids']/list/button[@name='do_decline']" position="after"> |
1022 | 1013 | <field name="x_attending" invisible="not x_condominium"/> |
1023 | 1014 | <field optional="show" name="x_delegating" invisible="not x_condominium"/> |
1024 | 1015 | <field name="x_ratio" optional="show"/> |
1025 | 1016 | </xpath> |
1026 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='page_invitations']/field[@name='attendee_ids']/kanban[1]" position="after"> |
| 1017 | + <xpath expr="//field[@name='attendee_ids']/kanban" position="after"> |
1027 | 1018 | <form> |
1028 | 1019 | <sheet string="Calendar Attendee Information" name="calendar_attendee_information_sheet"> |
1029 | 1020 | <group name="calendar_attendee_information_group"> |
|
1056 | 1047 | </sheet> |
1057 | 1048 | </form> |
1058 | 1049 | </xpath> |
1059 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]" position="inside"> |
| 1050 | + <xpath expr="//form/sheet/notebook" position="inside"> |
1060 | 1051 | <page string="Motions" name="motions_page" invisible="not x_condominium"> |
1061 | 1052 | <group name="motions_group_main"> |
1062 | 1053 | <group name="motions_group_left"> |
|
1216 | 1207 | <record id="view_invoice_tree_inherit" model="ir.ui.view"> |
1217 | 1208 | <field name="arch" type="xml"> |
1218 | 1209 | <data> |
1219 | | - <xpath expr="//list[1]" position="attributes"> |
| 1210 | + <xpath expr="//list" position="attributes"> |
1220 | 1211 | <attribute name="create">false</attribute> |
1221 | 1212 | <attribute name="default_order">invoice_date desc</attribute> |
1222 | 1213 | <attribute name="delete">false</attribute> |
1223 | 1214 | <attribute name="multi_edit">true</attribute> |
1224 | 1215 | <attribute name="open_form_view">true</attribute> |
1225 | 1216 | </xpath> |
1226 | | - <xpath expr="//list[1]/field[@name='name']" position="attributes"> |
| 1217 | + <xpath expr="//list/field[@name='name']" position="attributes"> |
1227 | 1218 | <attribute name="readonly">True</attribute> |
1228 | 1219 | </xpath> |
1229 | 1220 | <xpath expr="//field[@name='name']" position="after"> |
|
1237 | 1228 | <attribute name="string">Total</attribute> |
1238 | 1229 | </xpath> |
1239 | 1230 | <xpath expr="//field[@name='invoice_partner_display_name']" position="after"> |
1240 | | - <xpath expr="//list[1]/field[@name='amount_total_in_currency_signed']" position="move"/> |
| 1231 | + <xpath expr="//list/field[@name='amount_total_in_currency_signed']" position="move"/> |
1241 | 1232 | <field name="x_distribution_key" optional="show"/> |
1242 | 1233 | <field name="x_period_start" optional="show"/> |
1243 | 1234 | <field name="x_period_end" optional="show"/> |
|
1273 | 1264 | <xpath expr="//filter[@name='not_sent']" position="replace"/> |
1274 | 1265 | <xpath expr="//field[@name='line_ids']" position="replace"/> |
1275 | 1266 | <xpath expr="//field[@name='next_payment_date']" position="replace"/> |
1276 | | - <xpath expr="//search[1]/field[@name='date']" position="replace"/> |
| 1267 | + <xpath expr="//search/field[@name='date']" position="replace"/> |
1277 | 1268 | <xpath expr="//field[@name='invoice_user_id']" position="replace"/> |
1278 | 1269 | <xpath expr="//field[@name='journal_group_id']" position="replace"/> |
1279 | 1270 | <xpath expr="//field[@name='journal_id']" position="replace"/> |
|
1284 | 1275 | <filter domain="[('x_distribution_key', '=', False)]" name="undistributed" help="Without distribution"/> |
1285 | 1276 | <separator/> |
1286 | 1277 | </xpath> |
| 1278 | + <xpath expr="//filter[@name='draft']" position="replace"/> |
| 1279 | + <xpath expr="//filter[@name='partner']" position="replace"/> |
1287 | 1280 | </data> |
1288 | 1281 | </field> |
1289 | 1282 | <field name="inherit_id" ref="account.view_account_invoice_filter"/> |
|
1470 | 1463 | </form> |
1471 | 1464 | </field> |
1472 | 1465 | </record> |
1473 | | - |
1474 | 1466 | <record id="properties_act_window_account" model="ir.actions.act_window"> |
1475 | 1467 | <field name="view_ids" eval="[ |
1476 | 1468 | (5, 0, 0), |
|
0 commit comments