@gisce/react-ooui 2.0.0-alpha.61 → 2.0.0-alpha.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/react-ooui.es.js +5 -2
  2. package/dist/react-ooui.es.js.map +1 -1
  3. package/dist/widgets/views/Tree/treeComponents.d.ts.map +1 -1
  4. package/package.json +6 -8
  5. package/src/ConnectionProvider.ts +0 -16
  6. package/src/__tests__/iconMapper.test.ts +0 -30
  7. package/src/__tests__/searchFilterHelper.spec.ts +0 -386
  8. package/src/actionbar/ActionButton.tsx +0 -40
  9. package/src/actionbar/AttachmentsButton.tsx +0 -132
  10. package/src/actionbar/AttachmentsButtonWrapper.tsx +0 -157
  11. package/src/actionbar/ButtonWithBadge.tsx +0 -44
  12. package/src/actionbar/ChangeViewButton.tsx +0 -137
  13. package/src/actionbar/DashboardActionBar.tsx +0 -63
  14. package/src/actionbar/DropdownButton.tsx +0 -124
  15. package/src/actionbar/FormActionBar.tsx +0 -491
  16. package/src/actionbar/GraphActionBar.tsx +0 -67
  17. package/src/actionbar/NewButton.tsx +0 -46
  18. package/src/actionbar/SearchBar.tsx +0 -73
  19. package/src/actionbar/TreeActionBar.tsx +0 -383
  20. package/src/common/ButtonWithTooltip.tsx +0 -18
  21. package/src/common/DatePicker.tsx +0 -98
  22. package/src/common/Field.tsx +0 -93
  23. package/src/common/SelectAllRecordsRow.tsx +0 -94
  24. package/src/common/TimePicker.tsx +0 -38
  25. package/src/context/ActionViewContext.tsx +0 -213
  26. package/src/context/ConfigContext.tsx +0 -28
  27. package/src/context/ContentRootContext.tsx +0 -461
  28. package/src/context/DashboardActionContext.tsx +0 -44
  29. package/src/context/FormContext.tsx +0 -79
  30. package/src/context/FormModalContext.tsx +0 -28
  31. package/src/context/LocaleContext.tsx +0 -50
  32. package/src/context/One2manyContext.tsx +0 -45
  33. package/src/context/TabManagerContext.tsx +0 -117
  34. package/src/helpers/containerHelper.ts +0 -145
  35. package/src/helpers/dayjs.ts +0 -21
  36. package/src/helpers/dynamicColumnsHelper.ts +0 -73
  37. package/src/helpers/errorHelper.ts +0 -27
  38. package/src/helpers/filesHelper.ts +0 -41
  39. package/src/helpers/formHelper.ts +0 -301
  40. package/src/helpers/iconMapper.ts +0 -164
  41. package/src/helpers/logInfoHelper.tsx +0 -30
  42. package/src/helpers/one2manyHelper.ts +0 -194
  43. package/src/helpers/searchHelper.ts +0 -196
  44. package/src/helpers/timeHelper.ts +0 -58
  45. package/src/helpers/treeHelper.tsx +0 -226
  46. package/src/helpers/viewHelper.ts +0 -23
  47. package/src/hooks/useEffectDebugger.ts +0 -43
  48. package/src/hooks/useExport.ts +0 -439
  49. package/src/hooks/useFetchViews.ts +0 -0
  50. package/src/hooks/useSearch.ts +0 -434
  51. package/src/hooks/useWindowDimensions.ts +0 -33
  52. package/src/index.ts +0 -168
  53. package/src/locales/ca_ES.tsx +0 -99
  54. package/src/locales/en_US.tsx +0 -96
  55. package/src/locales/es_ES.tsx +0 -101
  56. package/src/stories/Binary.stories.tsx +0 -23
  57. package/src/stories/Boolean.stories.tsx +0 -22
  58. package/src/stories/Button.stories.tsx +0 -130
  59. package/src/stories/Char.stories.tsx +0 -76
  60. package/src/stories/FiberGrid.stories.tsx +0 -109
  61. package/src/stories/Float.stories.tsx +0 -22
  62. package/src/stories/FloatTime.stories.tsx +0 -32
  63. package/src/stories/Image.stories.tsx +0 -25
  64. package/src/stories/Integer.stories.tsx +0 -22
  65. package/src/stories/Label.stories.tsx +0 -100
  66. package/src/stories/Many2one.stories.tsx +0 -31
  67. package/src/stories/One2many.stories.tsx +0 -288
  68. package/src/stories/ProgressBar.stories.tsx +0 -22
  69. package/src/stories/Reference.stories.tsx +0 -43
  70. package/src/stories/Selection.stories.tsx +0 -34
  71. package/src/stories/Separator.stories.tsx +0 -53
  72. package/src/stories/Text.stories.tsx +0 -35
  73. package/src/stories/Time.stories.tsx +0 -31
  74. package/src/stories/Utils.stories.tsx +0 -14
  75. package/src/stories/containers/Group.stories.tsx +0 -84
  76. package/src/stories/containers/NewLine.stories.tsx +0 -52
  77. package/src/stories/containers/Notebook.stories.tsx +0 -188
  78. package/src/stories/custom/Avatar.stories.tsx +0 -22
  79. package/src/stories/custom/ButtonGroup.stories.tsx +0 -74
  80. package/src/stories/custom/CodeEditor.stories.tsx +0 -25
  81. package/src/stories/custom/Comments.stories.tsx +0 -197
  82. package/src/stories/custom/Indicator.stories.tsx +0 -36
  83. package/src/stories/custom/Markdown.stories.tsx +0 -38
  84. package/src/stories/custom/MultiCheckbox.stories.tsx +0 -60
  85. package/src/stories/custom/Radio.stories.tsx +0 -68
  86. package/src/stories/custom/Steps.stories.tsx +0 -43
  87. package/src/stories/custom/Switch.stories.tsx +0 -23
  88. package/src/stories/custom/Tag.stories.tsx +0 -66
  89. package/src/stories/custom/Tags.stories.tsx +0 -74
  90. package/src/stories/dashboard/Dashboard.stories.tsx +0 -23
  91. package/src/stories/dashboard/DashboardGrid.stories.tsx +0 -43
  92. package/src/stories/forms/ActivacioContracteForm.stories.tsx +0 -25
  93. package/src/stories/forms/Attachment.stories.tsx +0 -24
  94. package/src/stories/forms/CUPSForm.stories.tsx +0 -25
  95. package/src/stories/forms/Company.stories.tsx +0 -25
  96. package/src/stories/forms/CrmCaseForm.stories.tsx +0 -25
  97. package/src/stories/forms/Documents.stories.tsx +0 -25
  98. package/src/stories/forms/FormWithGridFiber.stories.tsx +0 -25
  99. package/src/stories/forms/FormWithLinks.stories.tsx +0 -30
  100. package/src/stories/forms/Lead.stories.tsx +0 -25
  101. package/src/stories/forms/ModContractForm.stories.tsx +0 -26
  102. package/src/stories/forms/PartnersForm.stories.tsx +0 -25
  103. package/src/stories/forms/PolissaForm.stories.tsx +0 -25
  104. package/src/stories/forms/PreferencesForm.stories.tsx +0 -691
  105. package/src/stories/forms/Signatures.stories.tsx +0 -25
  106. package/src/stories/forms/Switching.stories.tsx +0 -25
  107. package/src/stories/graphs/GraphIndicator.stories.tsx +0 -20
  108. package/src/stories/graphs/PieGraph.stories.tsx +0 -78
  109. package/src/stories/mocks/index.ts +0 -46
  110. package/src/stories/mocks/mockProvider.ts +0 -189
  111. package/src/stories/mocks/models/activacioContracte.ts +0 -112
  112. package/src/stories/mocks/models/attachment.ts +0 -1326
  113. package/src/stories/mocks/models/butlleti.ts +0 -296
  114. package/src/stories/mocks/models/company.ts +0 -135
  115. package/src/stories/mocks/models/crm_case.ts +0 -595
  116. package/src/stories/mocks/models/cups.ts +0 -937
  117. package/src/stories/mocks/models/document.ts +0 -223
  118. package/src/stories/mocks/models/factura.ts +0 -2713
  119. package/src/stories/mocks/models/form_with_gridfiber.ts +0 -141
  120. package/src/stories/mocks/models/hist_autoconsum.ts +0 -146
  121. package/src/stories/mocks/models/lead.ts +0 -2101
  122. package/src/stories/mocks/models/modcontractual.ts +0 -952
  123. package/src/stories/mocks/models/partner.ts +0 -1340
  124. package/src/stories/mocks/models/polissa.ts +0 -3127
  125. package/src/stories/mocks/models/res_partner_category.ts +0 -15
  126. package/src/stories/mocks/models/signatura.ts +0 -558
  127. package/src/stories/mocks/models/switching.ts +0 -767
  128. package/src/stories/modals/FormModal.stories.tsx +0 -36
  129. package/src/stories/modals/SearchModal.stories.tsx +0 -37
  130. package/src/stories/trees/FacturesTree.stories.tsx +0 -16
  131. package/src/stories/ui/ActionBar.stories.tsx +0 -21
  132. package/src/stories/ui/FavouriteButton.stories.tsx +0 -16
  133. package/src/stories/ui/GoToResourceModal.stories.tsx +0 -25
  134. package/src/stories/views/ActionView.stories.tsx +0 -28
  135. package/src/stories/views/SearchTree.stories.tsx +0 -1064
  136. package/src/stories/views/Tab.stories.tsx +0 -93
  137. package/src/stories/views/TabsAndContent.stories.tsx +0 -88
  138. package/src/stories/views/Tree.stories.jsx +0 -178
  139. package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +0 -22
  140. package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +0 -23
  141. package/src/stories/views/searchFilter/PairFields.stories.tsx +0 -23
  142. package/src/stories/views/searchFilter/SearchFilter.stories.tsx +0 -165
  143. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +0 -409
  144. package/src/types/index.ts +0 -392
  145. package/src/ui/ActionErrorDialog.tsx +0 -24
  146. package/src/ui/ConfirmDialog.tsx +0 -28
  147. package/src/ui/ErrorAlert.tsx +0 -37
  148. package/src/ui/FavouriteButton.tsx +0 -271
  149. package/src/ui/FormErrorsDialog.tsx +0 -17
  150. package/src/ui/GenericErrorDialog.tsx +0 -16
  151. package/src/ui/GoToResourceModal.tsx +0 -76
  152. package/src/ui/InfoDialog.tsx +0 -13
  153. package/src/ui/RefreshItemDialog.tsx +0 -29
  154. package/src/ui/RemoveItemDialog.tsx +0 -20
  155. package/src/ui/TitleHeader.tsx +0 -117
  156. package/src/ui/UnlinkItemDialog.tsx +0 -20
  157. package/src/ui/UnsavedChangesDialog.tsx +0 -29
  158. package/src/ui/WarningDialog.tsx +0 -17
  159. package/src/views/ActionView.tsx +0 -526
  160. package/src/views/CurrentTabContent.tsx +0 -21
  161. package/src/views/RootView.tsx +0 -509
  162. package/src/views/TabContent.tsx +0 -31
  163. package/src/views/TabSelector.tsx +0 -31
  164. package/src/views/Welcome.tsx +0 -18
  165. package/src/views/actionViews/DashboardActionView.tsx +0 -52
  166. package/src/views/actionViews/FormActionView.tsx +0 -70
  167. package/src/views/actionViews/GraphActionView.tsx +0 -152
  168. package/src/views/actionViews/TreeActionView.tsx +0 -87
  169. package/src/views/tabs/Tab.tsx +0 -82
  170. package/src/widgets/WidgetFactory.tsx +0 -142
  171. package/src/widgets/base/Binary.tsx +0 -145
  172. package/src/widgets/base/Boolean.tsx +0 -44
  173. package/src/widgets/base/Button.tsx +0 -77
  174. package/src/widgets/base/Char.tsx +0 -157
  175. package/src/widgets/base/Date.tsx +0 -12
  176. package/src/widgets/base/DateTime.tsx +0 -12
  177. package/src/widgets/base/Email.tsx +0 -27
  178. package/src/widgets/base/Float.tsx +0 -38
  179. package/src/widgets/base/FloatTime.tsx +0 -73
  180. package/src/widgets/base/Image.tsx +0 -120
  181. package/src/widgets/base/Integer.tsx +0 -55
  182. package/src/widgets/base/Label.tsx +0 -56
  183. package/src/widgets/base/LinkInput.tsx +0 -106
  184. package/src/widgets/base/MultiSelection.tsx +0 -90
  185. package/src/widgets/base/ProgressBar.tsx +0 -38
  186. package/src/widgets/base/Reference.tsx +0 -115
  187. package/src/widgets/base/ReferenceTree.tsx +0 -62
  188. package/src/widgets/base/Selection.tsx +0 -71
  189. package/src/widgets/base/Separator.tsx +0 -25
  190. package/src/widgets/base/Text.tsx +0 -162
  191. package/src/widgets/base/Time.tsx +0 -40
  192. package/src/widgets/base/Url.tsx +0 -26
  193. package/src/widgets/base/many2one/Many2one.tsx +0 -322
  194. package/src/widgets/base/many2one/Many2oneSuffix.tsx +0 -232
  195. package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +0 -42
  196. package/src/widgets/base/many2one/Many2oneTree.tsx +0 -18
  197. package/src/widgets/base/one2many/One2many.tsx +0 -100
  198. package/src/widgets/base/one2many/One2manyInput.tsx +0 -724
  199. package/src/widgets/base/one2many/One2manyTopBar.tsx +0 -158
  200. package/src/widgets/containers/Container.tsx +0 -99
  201. package/src/widgets/containers/Group.tsx +0 -37
  202. package/src/widgets/containers/Notebook.tsx +0 -52
  203. package/src/widgets/custom/Avatar.tsx +0 -40
  204. package/src/widgets/custom/ButtonGroup.tsx +0 -169
  205. package/src/widgets/custom/CodeEditor.tsx +0 -32
  206. package/src/widgets/custom/Comments.tsx +0 -147
  207. package/src/widgets/custom/FiberGrid.tsx +0 -48
  208. package/src/widgets/custom/Indicator.tsx +0 -66
  209. package/src/widgets/custom/Markdown.tsx +0 -32
  210. package/src/widgets/custom/MultiCheckbox.tsx +0 -165
  211. package/src/widgets/custom/Radio.tsx +0 -47
  212. package/src/widgets/custom/Steps.tsx +0 -56
  213. package/src/widgets/custom/Switch.tsx +0 -26
  214. package/src/widgets/custom/Tag.tsx +0 -53
  215. package/src/widgets/custom/Tags.tsx +0 -164
  216. package/src/widgets/custom/Timeline.tsx +0 -196
  217. package/src/widgets/modals/ExportModal.tsx +0 -75
  218. package/src/widgets/modals/FormModal.tsx +0 -125
  219. package/src/widgets/modals/SearchModal.tsx +0 -130
  220. package/src/widgets/modals/TranslationModal.tsx +0 -202
  221. package/src/widgets/views/Dashboard/Dashboard.tsx +0 -381
  222. package/src/widgets/views/Dashboard/DashboardForm.tsx +0 -30
  223. package/src/widgets/views/Dashboard/DashboardTree.tsx +0 -238
  224. package/src/widgets/views/Dashboard/dashboardHelper.ts +0 -79
  225. package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +0 -53
  226. package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +0 -4
  227. package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +0 -62
  228. package/src/widgets/views/DashboardGrid/DashboardGridItem.types.ts +0 -10
  229. package/src/widgets/views/DashboardGrid/index.ts +0 -4
  230. package/src/widgets/views/Form.tsx +0 -1152
  231. package/src/widgets/views/Graph/Graph.tsx +0 -145
  232. package/src/widgets/views/Graph/GraphChart.tsx +0 -113
  233. package/src/widgets/views/Graph/GraphDefaults.ts +0 -170
  234. package/src/widgets/views/Graph/GraphIndicator.tsx +0 -421
  235. package/src/widgets/views/Graph/useGraphData.tsx +0 -176
  236. package/src/widgets/views/SearchTree.tsx +0 -367
  237. package/src/widgets/views/Tree/Tree.tsx +0 -295
  238. package/src/widgets/views/Tree/index.ts +0 -1
  239. package/src/widgets/views/Tree/treeComponents.tsx +0 -276
  240. package/src/widgets/views/searchFilter/DateRangePicker.tsx +0 -16
  241. package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +0 -87
  242. package/src/widgets/views/searchFilter/PairFields.tsx +0 -56
  243. package/src/widgets/views/searchFilter/SearchBottomBar.tsx +0 -54
  244. package/src/widgets/views/searchFilter/SearchField.tsx +0 -63
  245. package/src/widgets/views/searchFilter/SearchFilter.tsx +0 -160
  246. package/src/widgets/views/searchFilter/SearchParams.tsx +0 -35
@@ -1,952 +0,0 @@
1
- export default {
2
- model: "giscedata.polissa.modcontractual",
3
- exampleValues: {
4
- active: true,
5
- agree_dh: "E3",
6
- agree_tarifa: "2T",
7
- agree_tensio: "E0",
8
- agree_tipus: "05",
9
- altre_p: false,
10
- autoconsumo: "00",
11
- bank: false,
12
- bono_social_disponible: false,
13
- cnae: [
14
- 3,
15
- "0111 - Cultivo de cereales (excepto arroz), leguminosas y semillas oleaginosas",
16
- ],
17
- codi_sollicitud_electrointensiu: false,
18
- comissio: false,
19
- comptador: "B63011077",
20
- condicions_generals_id: [1, "Condicions Generals"],
21
- contract_type: "01",
22
- create_date: "2021-06-22 19:33:37",
23
- cups: [1, "ES1234000000000001JN0F"],
24
- data_final: "2021-06-22",
25
- data_firma_contracte: "2016-01-01 00:00:00",
26
- data_inici: "2021-06-22",
27
- direccio_notificacio: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
28
- direccio_pagament: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
29
- distribuidora: [3, "Agrolait"],
30
- enviament: "postal",
31
- es_electrointensiu: false,
32
- expected_consumption: 0,
33
- facturacio: 1,
34
- facturacio_distri: false,
35
- facturacio_potencia: "max",
36
- id: 33,
37
- lectura_en_baja: false,
38
- llista_preu: [19, "TARIFAS ELECTRICIDAD (EUR)"],
39
- modcontractual_ant: [32, "2"],
40
- modcontractual_seg: false,
41
- mode_facturacio: "atr",
42
- mode_facturacio_generacio: "atr",
43
- name: "3",
44
- nocutoff: false,
45
- notificacio: "titular",
46
- notificacio_email: false,
47
- observacions:
48
- "\n----- 22/06/2021 19:33 - Administrator1 (admin) ------------------------------\nCanvis realitzats detectats automàticament:\n\n----- 22/06/2021 19:35 - Administrator1 (admin) ------------------------------\nCanvis realitzats detectats automàticament:\n• Codi DH: E3 → E1\n• Codi Tarifa: 2T → 2A\n",
49
- pagador: [3, "Agrolait"],
50
- pagador_email: false,
51
- payment_mode_id: [1, "No Domiciliat"],
52
- payment_term: false,
53
- peatge_directe: true,
54
- polissa_id: [1, "0001C"],
55
- potencia: 6,
56
- potencies_periode: "P1: 6.0",
57
- property_unitat_potencia: [85, "kW/dia"],
58
- ref_dist: "000D",
59
- representante_id: false,
60
- state: "actiu",
61
- tarifa: [1, "2.0A"],
62
- tensio: 127,
63
- tensio_normalitzada: [1, "127"],
64
- tg: "1",
65
- tipo_medida: false,
66
- tipo_pago: [1, "Demo payment type"],
67
- tipus: "mod",
68
- tipus_vivenda: "habitual",
69
- titular: [4, "Camptocamp"],
70
- trafo: 0,
71
- versio_sollicitud: false,
72
- active_id: 33,
73
- active_ids: [33],
74
- parent_id: 1,
75
- uid: 1,
76
- },
77
- tree: {
78
- arch: '<tree string="Modificacions contractuals" colors="red:active==0">\n <field name="distribuidora"/>\n <field name="ref_dist" select="1"/>\n <field name="name"/>\n <field name="tipus"/>\n <field name="data_inici"/>\n <field name="data_final"/>\n <field name="active"/>\n <field name="state"/>\n </tree>',
79
- field_parent: false,
80
- fields: {
81
- active: {
82
- readonly: true,
83
- required: true,
84
- string: "Activa",
85
- type: "boolean",
86
- views: {},
87
- },
88
- data_final: {
89
- select: true,
90
- string: "Data final",
91
- type: "date",
92
- views: {},
93
- },
94
- data_inici: {
95
- required: true,
96
- select: true,
97
- string: "Data inici",
98
- type: "date",
99
- views: {},
100
- },
101
- distribuidora: {
102
- context: "",
103
- domain: [["supplier", "=", 1]],
104
- relation: "res.partner",
105
- required: true,
106
- size: 64,
107
- string: "Distribuidora",
108
- type: "many2one",
109
- views: {},
110
- },
111
- name: {
112
- readonly: true,
113
- required: true,
114
- size: 64,
115
- string: "Codi modificació",
116
- type: "char",
117
- views: {},
118
- },
119
- ref_dist: {
120
- size: 60,
121
- string: "Referència distribuidora",
122
- type: "char",
123
- views: {},
124
- },
125
- state: {
126
- readonly: true,
127
- required: true,
128
- selection: [
129
- ["esborrany", "Esborrany"],
130
- ["actiu", "Actiu"],
131
- ["pendent", "Pendent d'activació"],
132
- ["baixa", "Baixa"],
133
- ["baixa2", "Baixa per modificació"],
134
- ["baixa3", "Baixa per renovació"],
135
- ["baixa4", "Baixa per nova pòlissa"],
136
- ],
137
- string: "Estat",
138
- type: "selection",
139
- views: {},
140
- },
141
- tipus: {
142
- required: true,
143
- selection: [
144
- ["alta", "Alta"],
145
- ["baixa", "Baixa"],
146
- ["mod", "Modificació"],
147
- ["reno", "Renovació"],
148
- ],
149
- string: "Tipus",
150
- type: "selection",
151
- views: {},
152
- },
153
- },
154
- model: "giscedata.polissa.modcontractual",
155
- name: "giscedata.polissa.modcontractual.tree",
156
- search_fields: {
157
- primary: ["ref_dist", "data_final", "data_inici"],
158
- secondary: [],
159
- },
160
- toolbar: {
161
- action: [],
162
- print: [],
163
- relate: [
164
- {
165
- auto_refresh: 0,
166
- context: "{}",
167
- domain: "[('id', '=', active_id)]",
168
- groups_id: [],
169
- id: -1,
170
- limit: 0,
171
- name: "giscedata.polissa.modcontractual",
172
- res_model: "giscedata.polissa.modcontractual",
173
- src_model: "giscedata.polissa.modcontractual",
174
- string: "giscedata.polissa.modcontractual",
175
- target: "current",
176
- type: "ir.actions.act_window",
177
- usage: "",
178
- view_id: false,
179
- view_ids: [],
180
- view_mode: "tree,form",
181
- view_type: "form",
182
- views: [
183
- [false, "tree"],
184
- [false, "form"],
185
- ],
186
- },
187
- ],
188
- },
189
- type: "tree",
190
- view_id: 482,
191
- },
192
- form: {
193
- arch: `<form string="Modificacions contractuals">\n <group colspan="4">\n <group colspan="2" col="2" rowspan="1">\n <field name="name"/>\n <field name="polissa_id" select="1" readonly="1"/>\n <field name="contract_type"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="create_date" select="1"/>\n <field name="data_inici" select="1"/>\n <field name="data_final" select="1"/>\n <field name="data_firma_contracte"/>\n </group>\n <group colspan="2" col="4" rowspan="1">\n <field name="state" select="1"/>\n <field name="active" select="1"/>\n <field name="tipus" select="1"/>\n </group>\n <group colspan="2" col="2" rowspan="1">\n <field name="modcontractual_ant"/>\n <field name="modcontractual_seg"/>\n </group>\n </group>\n <notebook>\n <page string="Dades del client">\n <field name="titular" colspan="4"/>\n <group col="4" colspan="4">\n <field name="bono_social_disponible" colspan="2"/>\n </group>\n <field name="cnae"/>\n <field name="pagador" colspan="4"/>\n <field name="direccio_pagament" colspan="4"/>\n <field name="enviament"/>\n <group colspan="2" col="2" attrs="{'invisible': [('enviament', '=', 'postal')]}">\n <field name="pagador_email"/>\n </group>\n <field name="notificacio" colspan="4"/>\n <group attrs="{'invisible': [('notificacio', '!=', 'altre_p')]}" colspan="4">\n <field name="altre_p" colspan="4"/>\n </group>\n <field name="direccio_notificacio" colspan="4"/>\n <group colspan="2" col="2" attrs="{'invisible': [('enviament', '=', 'postal')]}">\n <field name="notificacio_email"/>\n </group>\n <field name="tipus_vivenda" colspan="4"/>\n <newline/>\n </page>\n <page string="Facturació"><field name="comissio" select="2"/>\n <group col="4" colspan="4">\n <group colspan="2">\n <field name="facturacio_distri"/>\n </group>\n </group>\n <field name="facturacio" select="1"/>\n <group colspan="2" col="3" attrs="{'invisible':[('contract_type', '!=', '09')]}">\n <field name="expected_consumption"/>\n </group>\n <field name="facturacio_potencia"/>\n <field name="mode_facturacio_generacio" invisible="1"/>\n <field name="mode_facturacio" select="2" invisible="1"/>\n <field name="property_unitat_potencia"/>\n <field name="llista_preu" select="1"/>\n <field name="peatge_directe" select="2"/>\n <field name="payment_term" select="2"/>\n <field name="tipo_pago" colspan="4"/>\n <field name="bank" colspan="4" select="2"/>\n <field name="payment_mode_id" colspan="4"/>\n <field name="es_electrointensiu" select="2"/>\n <field name="codi_sollicitud_electrointensiu"/>\n <field name="versio_sollicitud"/>\n </page>\n <page string="CUPS">\n <field name="cups" select="1" colspan="4"/>\n </page>\n <page string="Dades tècniques">\n <field name="distribuidora" colspan="4" select="2"/>\n <field name="ref_dist" select="1"/>\n <field name="tarifa"/>\n <field name="potencia"/>\n <field name="tensio"/>\n <field name="lectura_en_baja" select="2"/>\n <field name="trafo"/>\n <field name="tensio_normalitzada"/>\n <field name="tipo_medida"/>\n <field name="potencies_periode" colspan="4"/>\n <field name="comptador" colspan="4"/>\n <field name="tg" select="2"/>\n <field name="condicions_generals_id" select="2"/>\n <field name="autoconsumo" select="2"/>\n <field name="nocutoff"/>\n <button type="action" name="420" colspan="4" string="Actualitzar Potències" icon="gtk-convert" readonly="0"/>\n </page>\n <page string="Contactes">\n <field name="representante_id" colspan="4"/>\n </page>\n <page string="Observacions">\n <field name="observacions" colspan="4" nolabel="1"/>\n </page>\n <page string="Agregació">\n <group colspan="2" col="4" string="Nivells d'agregació">\n <separator string="Tensió" colspan="1"/>\n <separator string="Tarifa" colspan="1"/>\n <separator string="DH" colspan="1"/>\n <separator string="Tipus" colspan="1"/>\n <field name="agree_tensio" nolabel="1" select="2"/>\n <field name="agree_tarifa" nolabel="1" select="2"/>\n <field name="agree_dh" nolabel="1" select="2"/>\n <field name="agree_tipus" nolabel="1" select="2"/>\n </group>\n </page>\n </notebook>\n <group string="Tests">\n <button type="action" name="417" string="readonly1" icon="gtk-print" readonly="0"/>\n <button type="action" name="417" string="readonly0" icon="gtk-print" readonly="0"/>\n <button type="action" name="417" string="readonlyVariable1" icon="gtk-print" attrs="{'readonly':[('state','!=','actiu')]}" readonly="0"/>\n <button type="action" name="417" string="readonlyVariable2" icon="gtk-print" attrs="{'readonly':[('state','==','actiu')]}" readonly="0"/>\n\n \n <button type="object" name="417" string="readonly1" icon="gtk-print" readonly="1"/>\n <button type="object" name="417" string="readonly0" icon="gtk-print" readonly="0"/>\n <button type="object" name="417" string="readonlyVariable3" icon="gtk-print" attrs="{'readonly':[('state','!=','actiu')]}"/>\n <button type="object" name="417" string="readonlyVariable4" icon="gtk-print" attrs="{'readonly':[('state','==','actiu')]}"/>\n </group>\n <group string="Accions" colspan="4" col="8">\n <button type="object" name="unlink" string="Cancel·lar" states="pendent" icon="gtk-delete"/>\n <button type="action" name="417" string="Imprimir" icon="gtk-print" readonly="0"/>\n <button type="action" name="414" string="Canviar dates" icon="gtk-edit" readonly="0"/>\n <button type="object" name="undo_last_modcontractual" string="Desfer mod. contractual" context="{'from_model': 'giscedata.polissa.modcontractual'}" attrs="{'invisible':[('state','!=','actiu')]}" confirm="Aquesta opció no es pot desfer. Vol continuar?"/>\n </group>\n </form>`,
194
- field_parent: false,
195
- fields: {
196
- active: {
197
- is_function: false,
198
- readonly: true,
199
- required: true,
200
- string: "Activa",
201
- type: "boolean",
202
- views: {},
203
- },
204
- agree_dh: {
205
- digits: [16, 2],
206
- is_function: true,
207
- readonly: 1,
208
- size: 2,
209
- string: "Codi DH",
210
- type: "char",
211
- views: {},
212
- },
213
- agree_tarifa: {
214
- digits: [16, 2],
215
- is_function: true,
216
- readonly: 1,
217
- size: 2,
218
- string: "Codi Tarifa",
219
- type: "char",
220
- views: {},
221
- },
222
- agree_tensio: {
223
- digits: [16, 2],
224
- is_function: true,
225
- readonly: 1,
226
- size: 2,
227
- string: "Codi Tensió",
228
- type: "char",
229
- views: {},
230
- },
231
- agree_tipus: {
232
- digits: [16, 2],
233
- is_function: true,
234
- readonly: 1,
235
- size: 2,
236
- string: "Tipus Punt",
237
- type: "char",
238
- views: {},
239
- },
240
- altre_p: {
241
- context: "",
242
- domain: [],
243
- is_function: false,
244
- relation: "res.partner",
245
- size: 64,
246
- string: "Contacte alternatiu",
247
- type: "many2one",
248
- views: {},
249
- },
250
- autoconsumo: {
251
- help: "Tipus de autoconsum del contracte segons RD. 900/2015",
252
- is_function: false,
253
- readonly: true,
254
- selection: [
255
- ["00", "[00] - Sin Autoconsumo"],
256
- ["01", "[01] - Autoconsumo Tipo 1"],
257
- [
258
- "2A",
259
- "[2A] - Autoconsumo tipo 2 (según el Art. 13. 2. a) RD 900/2015)",
260
- ],
261
- [
262
- "2B",
263
- "[2B] - Autoconsumo tipo 2 (según el Art. 13. 2. b) RD 900/2015)",
264
- ],
265
- [
266
- "2G",
267
- "[2G] - Servicios auxiliares de generación ligada a un autoconsumo tipo 2",
268
- ],
269
- ["31", "[31] - Sin Excedentes Individual – Consumo"],
270
- ["32", "[32] - Sin Excedentes Colectivo – Consumo"],
271
- [
272
- "33",
273
- "[33] - Sin Excedentes Colectivo con acuerdo de compensación – Consumo",
274
- ],
275
- ["41", "[41] - Con excedentes y compensación Individual - Consumo"],
276
- ["42", "[42] - Con excedentes y compensación Colectivo– Consumo"],
277
- [
278
- "43",
279
- "[43] - Con excedentes y compensación Colectivo a través de red– Consumo",
280
- ],
281
- [
282
- "51",
283
- "[51] - Con excedentes sin compensación Individual sin cto de SSAA en Red Interior– Consumo",
284
- ],
285
- [
286
- "52",
287
- "[52] - Con excedentes sin compensación Colectivo sin cto de SSAA en Red Interior– Consumo",
288
- ],
289
- [
290
- "53",
291
- "[53] - Con excedentes sin compensación Individual con cto SSAA en Red Interior– Consumo",
292
- ],
293
- [
294
- "54",
295
- "[54] - Con excedentes sin compensación individual con cto SSAA en Red Interior– SSAA",
296
- ],
297
- [
298
- "55",
299
- "[55] - Con excedentes sin compensación Colectivo/en Red Interior– Consumo",
300
- ],
301
- [
302
- "56",
303
- "[56] - Con excedentes sin compensación Colectivo/en Red Interior - SSAA",
304
- ],
305
- [
306
- "57",
307
- "[57] - Con excedentes sin compensación Colectivo sin cto de SSAA (despreciable) en red interior – Consumo",
308
- ],
309
- [
310
- "58",
311
- "[58] - Con excedentes sin compensación Colectivo sin cto de SSAA a través de red - Consumo",
312
- ],
313
- [
314
- "61",
315
- "[61] - Con excedentes sin compensación Individual con cto SSAA a través de red – Consumo",
316
- ],
317
- [
318
- "62",
319
- "[62] - Con excedentes sin compensación individual con cto SSAA a través de red – SSAA",
320
- ],
321
- [
322
- "63",
323
- "[63] - Con excedentes sin compensación Colectivo a través de red – Consumo",
324
- ],
325
- [
326
- "64",
327
- "[64] - Con excedentes sin compensación Colectivo a través de red - SSAA",
328
- ],
329
- [
330
- "71",
331
- "[71] - Con excedentes sin compensación Individual con cto SSAA a través de red y red interior – Consumo",
332
- ],
333
- [
334
- "72",
335
- "[72] - Con excedentes sin compensación individual con cto SSAA a través de red y red interior – SSAA",
336
- ],
337
- [
338
- "73",
339
- "[73] - Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior – Consumo",
340
- ],
341
- [
342
- "74",
343
- "[74] - Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior - SSAA",
344
- ],
345
- ],
346
- states: {
347
- esborrany: [["readonly", false]],
348
- modcontractual: [["readonly", false]],
349
- validar: [["readonly", false]],
350
- },
351
- string: "Autoconsum",
352
- type: "selection",
353
- views: {},
354
- },
355
- bank: {
356
- context: "",
357
- domain: [],
358
- is_function: false,
359
- relation: "res.partner.bank",
360
- size: 64,
361
- string: "Compte bancari",
362
- type: "many2one",
363
- views: {},
364
- },
365
- bono_social_disponible: {
366
- is_function: false,
367
- string: "Bo social disponible",
368
- type: "boolean",
369
- views: {},
370
- },
371
- cnae: {
372
- context: "",
373
- domain: [],
374
- is_function: false,
375
- relation: "giscemisc.cnae",
376
- size: 64,
377
- string: "CNAE",
378
- type: "many2one",
379
- views: {},
380
- },
381
- codi_sollicitud_electrointensiu: {
382
- is_function: false,
383
- size: 25,
384
- string: "Codi sol·licitud",
385
- type: "char",
386
- views: {},
387
- },
388
- comissio: {
389
- is_function: false,
390
- select: 2,
391
- selection: [
392
- ["giscedata.polissa.comissio.kw", "Comissió per Kw Facturats"],
393
- ["giscedata.polissa.comissio.unica", "Comissió Única"],
394
- ],
395
- size: 256,
396
- string: "Comissió Assignada",
397
- type: "reference",
398
- views: {},
399
- },
400
- comptador: {
401
- digits: [16, 2],
402
- is_function: true,
403
- readonly: 1,
404
- size: 64,
405
- string: "Comptador",
406
- type: "char",
407
- views: {},
408
- },
409
- condicions_generals_id: {
410
- context: "",
411
- domain: [],
412
- is_function: false,
413
- relation: "giscedata.polissa.condicions.generals",
414
- size: 64,
415
- string: "Condicions generals",
416
- type: "many2one",
417
- views: {},
418
- },
419
- contract_type: {
420
- help: "Distintos tipos de contratos. Ver REAL DECRETO 1164/2001",
421
- is_function: false,
422
- required: true,
423
- selection: [
424
- ["01", "Anual"],
425
- ["02", "Eventual medido"],
426
- ["03", "Temporada"],
427
- ["05", "RECORE"],
428
- ["07", "Suministro de Obras"],
429
- ["08", "Suministro de Socorro"],
430
- ["09", "Eventual a tanto alzado"],
431
- ["10", "Pruebas"],
432
- ["11", "Duplicado"],
433
- ["12", "De reserva"],
434
- ],
435
- string: "Tipus de contracte",
436
- type: "selection",
437
- views: {},
438
- },
439
- create_date: {
440
- is_function: false,
441
- readonly: true,
442
- string: "Date Created",
443
- type: "datetime",
444
- views: {},
445
- },
446
- cups: {
447
- context: "",
448
- domain: [],
449
- is_function: false,
450
- relation: "giscedata.cups.ps",
451
- required: true,
452
- size: 64,
453
- string: "CUPS",
454
- type: "many2one",
455
- views: {},
456
- },
457
- data_final: {
458
- is_function: false,
459
- select: true,
460
- string: "Data final",
461
- type: "date",
462
- views: {},
463
- },
464
- data_firma_contracte: {
465
- is_function: false,
466
- string: "Data firma contracte",
467
- type: "datetime",
468
- views: {},
469
- },
470
- data_inici: {
471
- is_function: false,
472
- required: true,
473
- select: true,
474
- string: "Data inici",
475
- type: "date",
476
- views: {},
477
- },
478
- direccio_notificacio: {
479
- context: "",
480
- domain: [],
481
- is_function: false,
482
- relation: "res.partner.address",
483
- size: 64,
484
- string: "Adreça notificació",
485
- type: "many2one",
486
- views: {},
487
- },
488
- direccio_pagament: {
489
- context: "",
490
- domain: [],
491
- is_function: false,
492
- relation: "res.partner.address",
493
- size: 64,
494
- string: "Adreça fiscal",
495
- type: "many2one",
496
- views: {},
497
- },
498
- distribuidora: {
499
- context: "",
500
- domain: [["supplier", "=", 1]],
501
- is_function: false,
502
- relation: "res.partner",
503
- required: true,
504
- size: 64,
505
- string: "Distribuidora",
506
- type: "many2one",
507
- views: {},
508
- },
509
- enviament: {
510
- is_function: false,
511
- selection: [
512
- ["postal", "Correu postal"],
513
- ["email", "E-mail"],
514
- ["postal+email", "Correu postal i e-mail"],
515
- ],
516
- string: "Enviar factura via",
517
- type: "selection",
518
- views: {},
519
- },
520
- es_electrointensiu: {
521
- is_function: false,
522
- string: "Consumidor electrointensiu",
523
- type: "boolean",
524
- views: {},
525
- },
526
- expected_consumption: {
527
- help: "Aquest camp calcula el consum total pactat per contractes eventuals sense comptador",
528
- is_function: false,
529
- readonly: true,
530
- string: "Consum pactat",
531
- type: "float",
532
- views: {},
533
- },
534
- facturacio: {
535
- is_function: false,
536
- required: true,
537
- selection: [
538
- [1, "Mensual"],
539
- [2, "Bimestral"],
540
- ],
541
- string: "Facturació",
542
- type: "selection",
543
- views: {},
544
- },
545
- facturacio_distri: {
546
- help: "Periodicitat de facturació de distribuidora",
547
- is_function: false,
548
- selection: [
549
- [1, "Mensual"],
550
- [2, "Bimestral"],
551
- ],
552
- string: "Facturació de distribuïdora",
553
- type: "selection",
554
- views: {},
555
- },
556
- facturacio_potencia: {
557
- is_function: false,
558
- required: true,
559
- selection: [
560
- ["max", "Maxímetro"],
561
- ["icp", "ICP"],
562
- ["recarrec", "Recàrrec ICP"],
563
- ],
564
- string: "Facturación Potencia",
565
- type: "selection",
566
- views: {},
567
- },
568
- lectura_en_baja: {
569
- is_function: false,
570
- required: true,
571
- string: "Lectura en baixa",
572
- type: "boolean",
573
- views: {},
574
- },
575
- llista_preu: {
576
- context: "",
577
- domain: [],
578
- is_function: false,
579
- relation: "product.pricelist",
580
- size: 64,
581
- string: "Tarifa Comercialitzadora",
582
- type: "many2one",
583
- views: {},
584
- },
585
- modcontractual_ant: {
586
- context: "",
587
- domain: [],
588
- is_function: false,
589
- relation: "giscedata.polissa.modcontractual",
590
- size: 64,
591
- string: "Modificació anterior",
592
- type: "many2one",
593
- views: {},
594
- },
595
- modcontractual_seg: {
596
- context: "",
597
- domain: [],
598
- is_function: false,
599
- relation: "giscedata.polissa.modcontractual",
600
- size: 64,
601
- string: "Modificació següent",
602
- type: "many2one",
603
- views: {},
604
- },
605
- mode_facturacio: {
606
- is_function: false,
607
- selection: [["atr", "ATR"]],
608
- string: "Mode facturació",
609
- type: "selection",
610
- views: {},
611
- },
612
- mode_facturacio_generacio: {
613
- is_function: false,
614
- selection: [["atr", "ATR"]],
615
- string: "Mode facturació generacio",
616
- type: "selection",
617
- views: {},
618
- },
619
- name: {
620
- is_function: false,
621
- readonly: true,
622
- required: true,
623
- size: 64,
624
- string: "Codi modificació",
625
- type: "char",
626
- views: {},
627
- },
628
- nocutoff: {
629
- context: "",
630
- domain: [],
631
- is_function: false,
632
- relation: "giscedata.polissa.nocutoff",
633
- size: 64,
634
- string: "Subministrament no tallable",
635
- type: "many2one",
636
- views: {},
637
- },
638
- notificacio: {
639
- is_function: false,
640
- required: true,
641
- selection: [
642
- ["titular", "Titular"],
643
- ["pagador", "Fiscal"],
644
- ["altre_p", "Altra"],
645
- ],
646
- string: "Persona notificació",
647
- type: "selection",
648
- views: {},
649
- },
650
- notificacio_email: {
651
- is_function: false,
652
- readonly: true,
653
- size: 240,
654
- string: "Email dir. notif.",
655
- type: "char",
656
- views: {},
657
- },
658
- observacions: {
659
- is_function: false,
660
- string: "Observacions",
661
- type: "text",
662
- views: {},
663
- },
664
- pagador: {
665
- context: "",
666
- domain: [],
667
- is_function: false,
668
- relation: "res.partner",
669
- required: true,
670
- size: 64,
671
- string: "Raó fiscal",
672
- type: "many2one",
673
- views: {},
674
- },
675
- pagador_email: {
676
- is_function: false,
677
- readonly: true,
678
- size: 240,
679
- string: "Email dir. fiscal",
680
- type: "char",
681
- views: {},
682
- },
683
- payment_mode_id: {
684
- context: "",
685
- domain: [],
686
- is_function: false,
687
- relation: "payment.mode",
688
- size: 64,
689
- string: "Grup de pagament",
690
- type: "many2one",
691
- views: {},
692
- },
693
- payment_term: {
694
- context: "",
695
- domain: [],
696
- is_function: false,
697
- relation: "account.payment.term",
698
- size: 64,
699
- string: "Plazo de pago",
700
- type: "many2one",
701
- views: {},
702
- },
703
- peatge_directe: {
704
- is_function: false,
705
- required: true,
706
- string: "Peatge directe",
707
- type: "boolean",
708
- views: {},
709
- },
710
- polissa_id: {
711
- context: "",
712
- domain: [],
713
- is_function: false,
714
- relation: "giscedata.polissa",
715
- required: true,
716
- select: true,
717
- size: 64,
718
- string: "Pòlissa",
719
- type: "many2one",
720
- views: {},
721
- },
722
- potencia: {
723
- digits: [16, 3],
724
- is_function: false,
725
- required: true,
726
- string: "Potència contractada (kW)",
727
- type: "float",
728
- views: {},
729
- },
730
- potencies_periode: {
731
- is_function: false,
732
- readonly: true,
733
- size: 256,
734
- string: "Potències contractades",
735
- type: "char",
736
- views: {},
737
- },
738
- property_unitat_potencia: {
739
- context: "",
740
- digits: [16, 2],
741
- domain: "[('category_id.name', '=', 'POT ELEC')]",
742
- help: "Amb quina unitat es vol facturar la potència",
743
- is_function: true,
744
- relation: "product.uom",
745
- required: true,
746
- string: "Unitat de facturació potència",
747
- type: "many2one",
748
- views: {},
749
- },
750
- ref_dist: {
751
- is_function: false,
752
- size: 60,
753
- string: "Referència distribuidora",
754
- type: "char",
755
- views: {},
756
- },
757
- representante_id: {
758
- context: "",
759
- domain: [],
760
- is_function: false,
761
- relation: "res.partner",
762
- size: 64,
763
- string: "Representante",
764
- type: "many2one",
765
- views: {},
766
- },
767
- state: {
768
- is_function: false,
769
- readonly: true,
770
- required: true,
771
- selection: [
772
- ["esborrany", "Borrador"],
773
- ["actiu", "Activo"],
774
- ["pendent", "Pendiente de activación"],
775
- ["baixa", "Baja"],
776
- ["baixa2", "Baja por modificación"],
777
- ["baixa3", "Baja por renovación"],
778
- ["baixa4", "Baja por nueva póliza"],
779
- ],
780
- string: "Estat",
781
- type: "selection",
782
- views: {},
783
- },
784
- tarifa: {
785
- context: "",
786
- domain: [],
787
- is_function: false,
788
- relation: "giscedata.polissa.tarifa",
789
- required: true,
790
- size: 64,
791
- string: "Tarifa",
792
- type: "many2one",
793
- views: {},
794
- },
795
- tensio: {
796
- is_function: false,
797
- required: true,
798
- string: "Tensió (V)",
799
- type: "integer",
800
- views: {},
801
- },
802
- tensio_normalitzada: {
803
- context: "",
804
- domain: [],
805
- is_function: false,
806
- relation: "giscedata.tensions.tensio",
807
- required: true,
808
- size: 64,
809
- string: "Tensió normalitzada",
810
- type: "many2one",
811
- views: {},
812
- },
813
- tg: {
814
- help: "Telegestió operativa amb o sense corba de càrrega (CCH)",
815
- is_function: false,
816
- selection: [
817
- ["1", "Operativa amb CCH"],
818
- ["2", "No operativa"],
819
- ["3", "Operativa Sense CCH"],
820
- ],
821
- string: "Telegestió",
822
- type: "selection",
823
- views: {},
824
- },
825
- tipo_medida: {
826
- is_function: false,
827
- readonly: true,
828
- size: 2,
829
- string: "Tipus de Punt de Mesura",
830
- type: "char",
831
- views: {},
832
- },
833
- tipo_pago: {
834
- context: "",
835
- domain: [],
836
- is_function: false,
837
- relation: "payment.type",
838
- required: true,
839
- size: 64,
840
- string: "Tipo de pago",
841
- type: "many2one",
842
- views: {},
843
- },
844
- tipus: {
845
- is_function: false,
846
- required: true,
847
- selection: [
848
- ["alta", "Alta"],
849
- ["baixa", "Baja"],
850
- ["mod", "Modificación"],
851
- ["reno", "Renovación"],
852
- ],
853
- string: "Tipus",
854
- type: "selection",
855
- views: {},
856
- },
857
- tipus_vivenda: {
858
- is_function: false,
859
- readonly: true,
860
- selection: [
861
- ["habitual", "Habitual"],
862
- ["no_habitual", "No habitual"],
863
- ],
864
- string: "Tipus vivenda",
865
- type: "selection",
866
- views: {},
867
- },
868
- titular: {
869
- context: "",
870
- domain: [],
871
- is_function: false,
872
- relation: "res.partner",
873
- size: 64,
874
- string: "Titular",
875
- type: "many2one",
876
- views: {},
877
- },
878
- trafo: {
879
- is_function: false,
880
- required: true,
881
- string: "Trafo KVA",
882
- type: "float",
883
- views: {},
884
- },
885
- versio_sollicitud: {
886
- is_function: false,
887
- size: 6,
888
- string: "Versió sol.licitud",
889
- type: "char",
890
- views: {},
891
- },
892
- },
893
- model: "giscedata.polissa.modcontractual",
894
- name: "giscedata.polissa.modcontractual.form",
895
- search_fields: {
896
- primary: [
897
- "polissa_id",
898
- "data_inici",
899
- "data_final",
900
- "state",
901
- "active",
902
- "tipus",
903
- "facturacio",
904
- "llista_preu",
905
- "ref_dist",
906
- ],
907
- secondary: [
908
- "condicions_generals_id",
909
- "agree_tensio",
910
- "distribuidora",
911
- "payment_term",
912
- "autoconsumo",
913
- "lectura_en_baja",
914
- "agree_dh",
915
- "agree_tipus",
916
- "agree_tarifa",
917
- "tg",
918
- ],
919
- },
920
- toolbar: {
921
- action: [],
922
- print: [],
923
- relate: [
924
- {
925
- auto_refresh: 0,
926
- context: "{}",
927
- domain: "[('id', '=', active_id)]",
928
- groups_id: [],
929
- id: -1,
930
- limit: 0,
931
- name: "giscedata.polissa.modcontractual",
932
- res_model: "giscedata.polissa.modcontractual",
933
- src_model: "giscedata.polissa.modcontractual",
934
- string: "giscedata.polissa.modcontractual",
935
- target: "current",
936
- type: "ir.actions.act_window",
937
- usage: "",
938
- view_id: false,
939
- view_ids: [],
940
- view_mode: "tree,form",
941
- view_type: "form",
942
- views: [
943
- [false, "tree"],
944
- [false, "form"],
945
- ],
946
- },
947
- ],
948
- },
949
- type: "form",
950
- view_id: 488,
951
- },
952
- };