@gisce/react-ooui 2.0.0-alpha.62 → 2.0.0-alpha.64

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 (245) hide show
  1. package/dist/react-ooui.es.js +1 -1
  2. package/dist/react-ooui.es.js.map +1 -1
  3. package/package.json +7 -9
  4. package/src/ConnectionProvider.ts +0 -16
  5. package/src/__tests__/iconMapper.test.ts +0 -30
  6. package/src/__tests__/searchFilterHelper.spec.ts +0 -386
  7. package/src/actionbar/ActionButton.tsx +0 -40
  8. package/src/actionbar/AttachmentsButton.tsx +0 -132
  9. package/src/actionbar/AttachmentsButtonWrapper.tsx +0 -157
  10. package/src/actionbar/ButtonWithBadge.tsx +0 -44
  11. package/src/actionbar/ChangeViewButton.tsx +0 -137
  12. package/src/actionbar/DashboardActionBar.tsx +0 -63
  13. package/src/actionbar/DropdownButton.tsx +0 -124
  14. package/src/actionbar/FormActionBar.tsx +0 -491
  15. package/src/actionbar/GraphActionBar.tsx +0 -67
  16. package/src/actionbar/NewButton.tsx +0 -46
  17. package/src/actionbar/SearchBar.tsx +0 -73
  18. package/src/actionbar/TreeActionBar.tsx +0 -383
  19. package/src/common/ButtonWithTooltip.tsx +0 -18
  20. package/src/common/DatePicker.tsx +0 -98
  21. package/src/common/Field.tsx +0 -93
  22. package/src/common/SelectAllRecordsRow.tsx +0 -94
  23. package/src/common/TimePicker.tsx +0 -38
  24. package/src/context/ActionViewContext.tsx +0 -213
  25. package/src/context/ConfigContext.tsx +0 -28
  26. package/src/context/ContentRootContext.tsx +0 -461
  27. package/src/context/DashboardActionContext.tsx +0 -44
  28. package/src/context/FormContext.tsx +0 -79
  29. package/src/context/FormModalContext.tsx +0 -28
  30. package/src/context/LocaleContext.tsx +0 -50
  31. package/src/context/One2manyContext.tsx +0 -45
  32. package/src/context/TabManagerContext.tsx +0 -117
  33. package/src/helpers/containerHelper.ts +0 -145
  34. package/src/helpers/dayjs.ts +0 -21
  35. package/src/helpers/dynamicColumnsHelper.ts +0 -73
  36. package/src/helpers/errorHelper.ts +0 -27
  37. package/src/helpers/filesHelper.ts +0 -41
  38. package/src/helpers/formHelper.ts +0 -301
  39. package/src/helpers/iconMapper.ts +0 -164
  40. package/src/helpers/logInfoHelper.tsx +0 -30
  41. package/src/helpers/one2manyHelper.ts +0 -194
  42. package/src/helpers/searchHelper.ts +0 -196
  43. package/src/helpers/timeHelper.ts +0 -58
  44. package/src/helpers/treeHelper.tsx +0 -226
  45. package/src/helpers/viewHelper.ts +0 -23
  46. package/src/hooks/useEffectDebugger.ts +0 -43
  47. package/src/hooks/useExport.ts +0 -439
  48. package/src/hooks/useFetchViews.ts +0 -0
  49. package/src/hooks/useSearch.ts +0 -434
  50. package/src/hooks/useWindowDimensions.ts +0 -33
  51. package/src/index.ts +0 -168
  52. package/src/locales/ca_ES.tsx +0 -99
  53. package/src/locales/en_US.tsx +0 -96
  54. package/src/locales/es_ES.tsx +0 -101
  55. package/src/stories/Binary.stories.tsx +0 -23
  56. package/src/stories/Boolean.stories.tsx +0 -22
  57. package/src/stories/Button.stories.tsx +0 -130
  58. package/src/stories/Char.stories.tsx +0 -76
  59. package/src/stories/FiberGrid.stories.tsx +0 -109
  60. package/src/stories/Float.stories.tsx +0 -22
  61. package/src/stories/FloatTime.stories.tsx +0 -32
  62. package/src/stories/Image.stories.tsx +0 -25
  63. package/src/stories/Integer.stories.tsx +0 -22
  64. package/src/stories/Label.stories.tsx +0 -100
  65. package/src/stories/Many2one.stories.tsx +0 -31
  66. package/src/stories/One2many.stories.tsx +0 -288
  67. package/src/stories/ProgressBar.stories.tsx +0 -22
  68. package/src/stories/Reference.stories.tsx +0 -43
  69. package/src/stories/Selection.stories.tsx +0 -34
  70. package/src/stories/Separator.stories.tsx +0 -53
  71. package/src/stories/Text.stories.tsx +0 -35
  72. package/src/stories/Time.stories.tsx +0 -31
  73. package/src/stories/Utils.stories.tsx +0 -14
  74. package/src/stories/containers/Group.stories.tsx +0 -84
  75. package/src/stories/containers/NewLine.stories.tsx +0 -52
  76. package/src/stories/containers/Notebook.stories.tsx +0 -188
  77. package/src/stories/custom/Avatar.stories.tsx +0 -22
  78. package/src/stories/custom/ButtonGroup.stories.tsx +0 -74
  79. package/src/stories/custom/CodeEditor.stories.tsx +0 -25
  80. package/src/stories/custom/Comments.stories.tsx +0 -197
  81. package/src/stories/custom/Indicator.stories.tsx +0 -36
  82. package/src/stories/custom/Markdown.stories.tsx +0 -38
  83. package/src/stories/custom/MultiCheckbox.stories.tsx +0 -60
  84. package/src/stories/custom/Radio.stories.tsx +0 -68
  85. package/src/stories/custom/Steps.stories.tsx +0 -43
  86. package/src/stories/custom/Switch.stories.tsx +0 -23
  87. package/src/stories/custom/Tag.stories.tsx +0 -66
  88. package/src/stories/custom/Tags.stories.tsx +0 -74
  89. package/src/stories/dashboard/Dashboard.stories.tsx +0 -23
  90. package/src/stories/dashboard/DashboardGrid.stories.tsx +0 -43
  91. package/src/stories/forms/ActivacioContracteForm.stories.tsx +0 -25
  92. package/src/stories/forms/Attachment.stories.tsx +0 -24
  93. package/src/stories/forms/CUPSForm.stories.tsx +0 -25
  94. package/src/stories/forms/Company.stories.tsx +0 -25
  95. package/src/stories/forms/CrmCaseForm.stories.tsx +0 -25
  96. package/src/stories/forms/Documents.stories.tsx +0 -25
  97. package/src/stories/forms/FormWithGridFiber.stories.tsx +0 -25
  98. package/src/stories/forms/FormWithLinks.stories.tsx +0 -30
  99. package/src/stories/forms/Lead.stories.tsx +0 -25
  100. package/src/stories/forms/ModContractForm.stories.tsx +0 -26
  101. package/src/stories/forms/PartnersForm.stories.tsx +0 -25
  102. package/src/stories/forms/PolissaForm.stories.tsx +0 -25
  103. package/src/stories/forms/PreferencesForm.stories.tsx +0 -691
  104. package/src/stories/forms/Signatures.stories.tsx +0 -25
  105. package/src/stories/forms/Switching.stories.tsx +0 -25
  106. package/src/stories/graphs/GraphIndicator.stories.tsx +0 -20
  107. package/src/stories/graphs/PieGraph.stories.tsx +0 -78
  108. package/src/stories/mocks/index.ts +0 -46
  109. package/src/stories/mocks/mockProvider.ts +0 -189
  110. package/src/stories/mocks/models/activacioContracte.ts +0 -112
  111. package/src/stories/mocks/models/attachment.ts +0 -1326
  112. package/src/stories/mocks/models/butlleti.ts +0 -296
  113. package/src/stories/mocks/models/company.ts +0 -135
  114. package/src/stories/mocks/models/crm_case.ts +0 -595
  115. package/src/stories/mocks/models/cups.ts +0 -937
  116. package/src/stories/mocks/models/document.ts +0 -223
  117. package/src/stories/mocks/models/factura.ts +0 -2713
  118. package/src/stories/mocks/models/form_with_gridfiber.ts +0 -141
  119. package/src/stories/mocks/models/hist_autoconsum.ts +0 -146
  120. package/src/stories/mocks/models/lead.ts +0 -2101
  121. package/src/stories/mocks/models/modcontractual.ts +0 -952
  122. package/src/stories/mocks/models/partner.ts +0 -1340
  123. package/src/stories/mocks/models/polissa.ts +0 -3127
  124. package/src/stories/mocks/models/res_partner_category.ts +0 -15
  125. package/src/stories/mocks/models/signatura.ts +0 -558
  126. package/src/stories/mocks/models/switching.ts +0 -767
  127. package/src/stories/modals/FormModal.stories.tsx +0 -36
  128. package/src/stories/modals/SearchModal.stories.tsx +0 -37
  129. package/src/stories/trees/FacturesTree.stories.tsx +0 -16
  130. package/src/stories/ui/ActionBar.stories.tsx +0 -21
  131. package/src/stories/ui/FavouriteButton.stories.tsx +0 -16
  132. package/src/stories/ui/GoToResourceModal.stories.tsx +0 -25
  133. package/src/stories/views/ActionView.stories.tsx +0 -28
  134. package/src/stories/views/SearchTree.stories.tsx +0 -1064
  135. package/src/stories/views/Tab.stories.tsx +0 -93
  136. package/src/stories/views/TabsAndContent.stories.tsx +0 -88
  137. package/src/stories/views/Tree.stories.jsx +0 -178
  138. package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +0 -22
  139. package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +0 -23
  140. package/src/stories/views/searchFilter/PairFields.stories.tsx +0 -23
  141. package/src/stories/views/searchFilter/SearchFilter.stories.tsx +0 -165
  142. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +0 -409
  143. package/src/types/index.ts +0 -392
  144. package/src/ui/ActionErrorDialog.tsx +0 -24
  145. package/src/ui/ConfirmDialog.tsx +0 -28
  146. package/src/ui/ErrorAlert.tsx +0 -37
  147. package/src/ui/FavouriteButton.tsx +0 -271
  148. package/src/ui/FormErrorsDialog.tsx +0 -17
  149. package/src/ui/GenericErrorDialog.tsx +0 -16
  150. package/src/ui/GoToResourceModal.tsx +0 -76
  151. package/src/ui/InfoDialog.tsx +0 -13
  152. package/src/ui/RefreshItemDialog.tsx +0 -29
  153. package/src/ui/RemoveItemDialog.tsx +0 -20
  154. package/src/ui/TitleHeader.tsx +0 -117
  155. package/src/ui/UnlinkItemDialog.tsx +0 -20
  156. package/src/ui/UnsavedChangesDialog.tsx +0 -29
  157. package/src/ui/WarningDialog.tsx +0 -17
  158. package/src/views/ActionView.tsx +0 -526
  159. package/src/views/CurrentTabContent.tsx +0 -21
  160. package/src/views/RootView.tsx +0 -509
  161. package/src/views/TabContent.tsx +0 -31
  162. package/src/views/TabSelector.tsx +0 -31
  163. package/src/views/Welcome.tsx +0 -18
  164. package/src/views/actionViews/DashboardActionView.tsx +0 -52
  165. package/src/views/actionViews/FormActionView.tsx +0 -70
  166. package/src/views/actionViews/GraphActionView.tsx +0 -152
  167. package/src/views/actionViews/TreeActionView.tsx +0 -87
  168. package/src/views/tabs/Tab.tsx +0 -82
  169. package/src/widgets/WidgetFactory.tsx +0 -142
  170. package/src/widgets/base/Binary.tsx +0 -145
  171. package/src/widgets/base/Boolean.tsx +0 -44
  172. package/src/widgets/base/Button.tsx +0 -77
  173. package/src/widgets/base/Char.tsx +0 -157
  174. package/src/widgets/base/Date.tsx +0 -12
  175. package/src/widgets/base/DateTime.tsx +0 -12
  176. package/src/widgets/base/Email.tsx +0 -27
  177. package/src/widgets/base/Float.tsx +0 -38
  178. package/src/widgets/base/FloatTime.tsx +0 -73
  179. package/src/widgets/base/Image.tsx +0 -120
  180. package/src/widgets/base/Integer.tsx +0 -55
  181. package/src/widgets/base/Label.tsx +0 -56
  182. package/src/widgets/base/LinkInput.tsx +0 -106
  183. package/src/widgets/base/MultiSelection.tsx +0 -90
  184. package/src/widgets/base/ProgressBar.tsx +0 -38
  185. package/src/widgets/base/Reference.tsx +0 -115
  186. package/src/widgets/base/ReferenceTree.tsx +0 -62
  187. package/src/widgets/base/Selection.tsx +0 -71
  188. package/src/widgets/base/Separator.tsx +0 -25
  189. package/src/widgets/base/Text.tsx +0 -162
  190. package/src/widgets/base/Time.tsx +0 -40
  191. package/src/widgets/base/Url.tsx +0 -26
  192. package/src/widgets/base/many2one/Many2one.tsx +0 -322
  193. package/src/widgets/base/many2one/Many2oneSuffix.tsx +0 -232
  194. package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +0 -42
  195. package/src/widgets/base/many2one/Many2oneTree.tsx +0 -18
  196. package/src/widgets/base/one2many/One2many.tsx +0 -100
  197. package/src/widgets/base/one2many/One2manyInput.tsx +0 -724
  198. package/src/widgets/base/one2many/One2manyTopBar.tsx +0 -158
  199. package/src/widgets/containers/Container.tsx +0 -99
  200. package/src/widgets/containers/Group.tsx +0 -37
  201. package/src/widgets/containers/Notebook.tsx +0 -52
  202. package/src/widgets/custom/Avatar.tsx +0 -40
  203. package/src/widgets/custom/ButtonGroup.tsx +0 -169
  204. package/src/widgets/custom/CodeEditor.tsx +0 -32
  205. package/src/widgets/custom/Comments.tsx +0 -147
  206. package/src/widgets/custom/FiberGrid.tsx +0 -48
  207. package/src/widgets/custom/Indicator.tsx +0 -66
  208. package/src/widgets/custom/Markdown.tsx +0 -32
  209. package/src/widgets/custom/MultiCheckbox.tsx +0 -165
  210. package/src/widgets/custom/Radio.tsx +0 -47
  211. package/src/widgets/custom/Steps.tsx +0 -56
  212. package/src/widgets/custom/Switch.tsx +0 -26
  213. package/src/widgets/custom/Tag.tsx +0 -53
  214. package/src/widgets/custom/Tags.tsx +0 -164
  215. package/src/widgets/custom/Timeline.tsx +0 -196
  216. package/src/widgets/modals/ExportModal.tsx +0 -75
  217. package/src/widgets/modals/FormModal.tsx +0 -125
  218. package/src/widgets/modals/SearchModal.tsx +0 -130
  219. package/src/widgets/modals/TranslationModal.tsx +0 -202
  220. package/src/widgets/views/Dashboard/Dashboard.tsx +0 -381
  221. package/src/widgets/views/Dashboard/DashboardForm.tsx +0 -30
  222. package/src/widgets/views/Dashboard/DashboardTree.tsx +0 -238
  223. package/src/widgets/views/Dashboard/dashboardHelper.ts +0 -79
  224. package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +0 -53
  225. package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +0 -4
  226. package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +0 -62
  227. package/src/widgets/views/DashboardGrid/DashboardGridItem.types.ts +0 -10
  228. package/src/widgets/views/DashboardGrid/index.ts +0 -4
  229. package/src/widgets/views/Form.tsx +0 -1152
  230. package/src/widgets/views/Graph/Graph.tsx +0 -145
  231. package/src/widgets/views/Graph/GraphChart.tsx +0 -113
  232. package/src/widgets/views/Graph/GraphDefaults.ts +0 -170
  233. package/src/widgets/views/Graph/GraphIndicator.tsx +0 -421
  234. package/src/widgets/views/Graph/useGraphData.tsx +0 -176
  235. package/src/widgets/views/SearchTree.tsx +0 -367
  236. package/src/widgets/views/Tree/Tree.tsx +0 -295
  237. package/src/widgets/views/Tree/index.ts +0 -1
  238. package/src/widgets/views/Tree/treeComponents.tsx +0 -283
  239. package/src/widgets/views/searchFilter/DateRangePicker.tsx +0 -16
  240. package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +0 -87
  241. package/src/widgets/views/searchFilter/PairFields.tsx +0 -56
  242. package/src/widgets/views/searchFilter/SearchBottomBar.tsx +0 -54
  243. package/src/widgets/views/searchFilter/SearchField.tsx +0 -63
  244. package/src/widgets/views/searchFilter/SearchFilter.tsx +0 -160
  245. package/src/widgets/views/searchFilter/SearchParams.tsx +0 -35
@@ -1,3127 +0,0 @@
1
- export default {
2
- model: "giscedata.polissa",
3
- exampleValues: {
4
- ac_state: false,
5
- active: true,
6
- agree_dh: "E1",
7
- agree_tarifa: "2A",
8
- agree_tensio: "E0",
9
- agree_tipus: "05",
10
- altre_p: false,
11
- autoconsum_id: false,
12
- autoconsumo: "00",
13
- bank: false,
14
- bono_social_disponible: false,
15
- butlletins: [],
16
- cnae: [
17
- 3,
18
- "0111 - Cultivo de cereales (excepto arroz), leguminosas y semillas oleaginosas",
19
- ],
20
- codigo_promocional: false,
21
- coef_repartiment: 0.0,
22
- comercial_id: false,
23
- comercialitzadora: [3, "Agrolait"],
24
- comissio: false,
25
- comptador: "2222222",
26
- comptadors: [2],
27
- condicions_generals_id: false,
28
- contract_type: "01",
29
- cups: [2, "ES1234000000000002JJ0F"],
30
- cups_cp: [],
31
- cups_direccio: "carrer inventat 1 1 1 2 aclaridor 00001 (Poble de Prova)",
32
- cups_poblacio: [],
33
- data_alta: "2016-01-01",
34
- data_baixa: "2017-01-01",
35
- data_firma_contracte: "2016-01-01 00:00:00",
36
- data_ultima_lectura: false,
37
- data_ultima_lectura_estimada: false,
38
- debt_amount: 0.0,
39
- deposit: false,
40
- direccio_notificacio: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
41
- direccio_pagament: [10, "Sylvie Lelitre, 69 rue de Chimay 5478 Wavre"],
42
- distri_phone: "",
43
- distribuidora: [2, "ASUStek"],
44
- enviament: "postal",
45
- expected_consumption: false,
46
- facturacio: 1,
47
- facturacio_distri: false,
48
- facturacio_endarrerida: true,
49
- facturacio_potencia: "max",
50
- facturacio_suspesa: false,
51
- firmat: true,
52
- id: 2,
53
- is_autoconsum_collectiu: false,
54
- lectura_en_baja: false,
55
- llista_preu: false,
56
- log_ids: [2],
57
- lot_facturacio: [3, "01/2016"],
58
- modcontractual_activa: false,
59
- modcontractuals_ids: [],
60
- mode_facturacio: "atr",
61
- name: "0002",
62
- name_auto: true,
63
- no_cessio_sips: "unactive",
64
- no_cessio_sips_data: false,
65
- nocutoff: false,
66
- notificacio: "titular",
67
- notificacio_email: false,
68
- observacions: "Observacio 1.",
69
- pagador: [3, "Agrolait"],
70
- pagador_email: false,
71
- pagador_nif: "ESB83677229",
72
- pagador_sel: "titular",
73
- payment_mode_id: false,
74
- payment_term: false,
75
- pending_amount: 150.23,
76
- pending_state: "Correct",
77
- persona_fisica: "CI",
78
- potencia: 6.0,
79
- potencies_periode: [],
80
- print_observations: false,
81
- process_id: [1, "Default Process"],
82
- property_unitat_potencia: [85, "kW/dia"],
83
- propietari_bank: false,
84
- proxima_facturacio: "2016-01-31",
85
- ref_dist: false,
86
- refacturacio_pendent: false,
87
- related_attachments: [],
88
- renovacio_auto: false,
89
- representante_id: false,
90
- state: "esborrany",
91
- state_post_facturacio: false,
92
- tarifa: [1, "2.0A"],
93
- tarifa_codi: "2.0A",
94
- tensio: 127,
95
- tensio_normalitzada: [1, "127"],
96
- tg: "1",
97
- tipo_pago: [1, "Demo payment type"],
98
- tipus_vivenda: "habitual",
99
- titular: [4, "Camptocamp"],
100
- titular_nif: "ESB82420654",
101
- trafo: false,
102
- unpaid_invoices: false,
103
- user_id: [1, "Administrator1"],
104
- versio_primera_factura: false,
105
- },
106
- tree: {
107
- arch: '<tree string="polisses" colors="red:state in [\'tall\', \'baixa\', \'cancelada\']">\n <field name="distribuidora"/>\n <field name="name"/>\n <field name="cups"/>\n <field name="state"/>\n <field name="pending_state"/>\n <field name="titular"/>\n <field name="cups_direccio"/>\n <field name="tarifa"/>\n <field name="llista_preu"/>\n <field name="potencia"/>\n <field name="pending_amount"/>\n <field name="debt_amount"/>\n <field name="unpaid_invoices"/>\n <field name="data_ultima_lectura" string="Última lectura facturada"/>\n <field name="refacturacio_pendent" select="1"/>\n <field name="data_alta"/>\n <field name="lot_facturacio"/>\n <field name="facturacio_suspesa"/>\n <field name="lectura_en_baja"/>\n <field name="direccio_pagament"/>\n <field name="firmat" invisible="1" select="1"/>\n </tree>',
108
- field_parent: false,
109
- fields: {
110
- cups: {
111
- context: "",
112
- domain: [],
113
- readonly: true,
114
- relation: "giscedata.cups.ps",
115
- size: 64,
116
- states: {
117
- esborrany: [["readonly", false]],
118
- validar: [
119
- ["readonly", false],
120
- ["required", true],
121
- ],
122
- },
123
- string: "CUPS",
124
- type: "many2one",
125
- views: {},
126
- },
127
- cups_direccio: {
128
- digits: [16, 2],
129
- readonly: true,
130
- size: 256,
131
- string: "Direcció CUPS",
132
- type: "char",
133
- views: {},
134
- },
135
- data_alta: {
136
- readonly: true,
137
- states: {
138
- esborrany: [["readonly", false]],
139
- validar: [
140
- ["readonly", false],
141
- ["required", true],
142
- ],
143
- },
144
- string: "Data alta",
145
- type: "date",
146
- views: {},
147
- },
148
- data_ultima_lectura: {
149
- digits: [16, 2],
150
- string: "Data última real facturada",
151
- type: "date",
152
- views: {},
153
- },
154
- debt_amount: {
155
- digits: [16, 2],
156
- readonly: 1,
157
- string: "Debt amount",
158
- type: "float",
159
- views: {},
160
- },
161
- direccio_pagament: {
162
- context: "",
163
- domain: [],
164
- readonly: true,
165
- relation: "res.partner.address",
166
- size: 64,
167
- states: {
168
- esborrany: [["readonly", false]],
169
- modcontractual: [
170
- ["readonly", false],
171
- ["required", true],
172
- ],
173
- validar: [
174
- ["readonly", false],
175
- ["required", true],
176
- ],
177
- },
178
- string: "Adreça fiscal",
179
- type: "many2one",
180
- views: {},
181
- },
182
- distribuidora: {
183
- context: "",
184
- domain: [["supplier", "=", 1]],
185
- readonly: true,
186
- relation: "res.partner",
187
- size: 64,
188
- states: {
189
- esborrany: [["readonly", false]],
190
- modcontractual: [
191
- ["readonly", false],
192
- ["required", true],
193
- ],
194
- validar: [
195
- ["readonly", false],
196
- ["required", true],
197
- ],
198
- },
199
- string: "Distribuidora",
200
- type: "many2one",
201
- views: {},
202
- },
203
- facturacio_suspesa: {
204
- string: "Facturació Suspesa",
205
- type: "boolean",
206
- views: {},
207
- },
208
- firmat: {
209
- digits: [16, 2],
210
- readonly: 1,
211
- string: "Contracte Firmat",
212
- type: "boolean",
213
- views: {},
214
- },
215
- lectura_en_baja: {
216
- readonly: true,
217
- states: {
218
- esborrany: [["readonly", false]],
219
- modcontractual: [
220
- ["readonly", false],
221
- ["required", true],
222
- ],
223
- validar: [["readonly", false]],
224
- },
225
- string: "Lectura en baixa",
226
- type: "boolean",
227
- views: {},
228
- },
229
- llista_preu: {
230
- context: "",
231
- domain: [["type", "=", "sale"]],
232
- readonly: true,
233
- relation: "product.pricelist",
234
- size: 64,
235
- states: {
236
- esborrany: [["readonly", false]],
237
- modcontractual: [
238
- ["readonly", false],
239
- ["required", true],
240
- ],
241
- validar: [
242
- ["readonly", false],
243
- ["required", true],
244
- ],
245
- },
246
- string: "Tarifa Comercialitzadora",
247
- type: "many2one",
248
- views: {},
249
- },
250
- lot_facturacio: {
251
- context: "",
252
- domain: [],
253
- relation: "giscedata.facturacio.lot",
254
- size: 64,
255
- string: "Lot de facturació",
256
- type: "many2one",
257
- views: {},
258
- },
259
- name: {
260
- readonly: true,
261
- select: true,
262
- size: 60,
263
- states: {
264
- esborrany: [["readonly", false]],
265
- },
266
- string: "Contracte",
267
- type: "char",
268
- views: {},
269
- },
270
- pending_amount: {
271
- digits: [16, 2],
272
- readonly: 1,
273
- string: "Pending amount",
274
- type: "float",
275
- views: {},
276
- },
277
- pending_state: {
278
- digits: [16, 2],
279
- readonly: 1,
280
- size: 64,
281
- string: "Pending State",
282
- type: "char",
283
- views: {},
284
- },
285
- potencia: {
286
- digits: [16, 3],
287
- readonly: true,
288
- states: {
289
- esborrany: [["readonly", false]],
290
- modcontractual: [
291
- ["readonly", false],
292
- ["required", true],
293
- ],
294
- validar: [
295
- ["readonly", false],
296
- ["required", true],
297
- ],
298
- },
299
- string: "Potència contractada (kW)",
300
- type: "float",
301
- views: {},
302
- },
303
- refacturacio_pendent: {
304
- string: "Refacturació Pendent",
305
- type: "boolean",
306
- views: {},
307
- },
308
- state: {
309
- readonly: true,
310
- required: true,
311
- selection: [
312
- ["esborrany", "Esborrany"],
313
- ["validar", "Validar"],
314
- ["pendent", "Pendent"],
315
- ["activa", "Activa"],
316
- ["cancelada", "Cancel·lada"],
317
- ["contracte", "Activació Contracte"],
318
- ["novapolissa", "Creació nova pòlissa"],
319
- ["modcontractual", "Modificació Contractual"],
320
- ["impagament", "Impagament"],
321
- ["tall", "Tall"],
322
- ["baixa", "Baixa"],
323
- ["facturacio", "Facturació"],
324
- ],
325
- string: "Estat",
326
- type: "selection",
327
- views: {},
328
- },
329
- tarifa: {
330
- context: "",
331
- domain: [],
332
- readonly: true,
333
- relation: "giscedata.polissa.tarifa",
334
- size: 64,
335
- states: {
336
- esborrany: [["readonly", false]],
337
- modcontractual: [
338
- ["readonly", false],
339
- ["required", true],
340
- ],
341
- validar: [
342
- ["readonly", false],
343
- ["required", true],
344
- ],
345
- },
346
- string: "Tarifa d'accés",
347
- type: "many2one",
348
- views: {},
349
- },
350
- titular: {
351
- context: "",
352
- domain: [],
353
- readonly: true,
354
- relation: "res.partner",
355
- size: 40,
356
- states: {
357
- esborrany: [["readonly", false]],
358
- validar: [
359
- ["readonly", false],
360
- ["required", true],
361
- ],
362
- },
363
- string: "Titular",
364
- type: "many2one",
365
- views: {},
366
- },
367
- unpaid_invoices: {
368
- digits: [16, 2],
369
- readonly: 1,
370
- string: "Unpaid invoices",
371
- type: "integer",
372
- views: {},
373
- },
374
- },
375
- model: "giscedata.polissa",
376
- name: "giscedata.polissa.tree",
377
- search_fields: {
378
- primary: ["refacturacio_pendent", "firmat", "name"],
379
- secondary: [],
380
- },
381
- toolbar: {
382
- action: [
383
- {
384
- auto_refresh: 0,
385
- context: "{}",
386
- domain: false,
387
- groups_id: [],
388
- id: 1704,
389
- limit: 80,
390
- name: "Facturar comissions comercial",
391
- res_model: "wizard.facturar.comissio.from.polissa",
392
- src_model: false,
393
- string: "Facturar comissions comercial",
394
- target: "new",
395
- type: "ir.actions.act_window",
396
- usage: false,
397
- view_id: [1953, "wizard.facturar.comissio.from.polissa.form"],
398
- view_ids: [],
399
- view_mode: "form",
400
- view_type: "form",
401
- views: [[1953, "form"]],
402
- },
403
- {
404
- auto_refresh: 0,
405
- context: "{}",
406
- domain: false,
407
- groups_id: [],
408
- id: 1509,
409
- limit: 80,
410
- name: "Generar cas Gestió ATR",
411
- res_model: "giscedata.switching.polissa.c101.wizard",
412
- src_model: false,
413
- string: "Generar cas Gestió ATR",
414
- target: "new",
415
- type: "ir.actions.act_window",
416
- usage: false,
417
- view_id: [1661, "wizard.switching.polissa.c101.form"],
418
- view_ids: [],
419
- view_mode: "form",
420
- view_type: "form",
421
- views: [[1661, "form"]],
422
- },
423
- {
424
- auto_refresh: 0,
425
- context: "{}",
426
- domain: false,
427
- groups_id: [],
428
- id: 1505,
429
- limit: 80,
430
- name: "Update contract SIPS data",
431
- res_model: "wizard.update.contract.sips.data",
432
- src_model: false,
433
- string: "Update contract SIPS data",
434
- target: "new",
435
- type: "ir.actions.act_window",
436
- usage: false,
437
- view_id: [1655, "wizard.update.contract.sips.data.form"],
438
- view_ids: [],
439
- view_mode: "form",
440
- view_type: "form",
441
- views: [[1655, "form"]],
442
- },
443
- {
444
- auto_refresh: 0,
445
- context: "{'model': 'giscedata.polissa'}",
446
- domain: false,
447
- groups_id: [],
448
- id: 1616,
449
- limit: 80,
450
- name: "Càrrega de lectures de Pool",
451
- res_model: "giscedata.lectures.pool.wizard",
452
- src_model: false,
453
- string: "Càrrega de lectures de Pool",
454
- target: "new",
455
- type: "ir.actions.act_window",
456
- usage: false,
457
- view_id: false,
458
- view_ids: [],
459
- view_mode: "form",
460
- view_type: "form",
461
- views: [[1830, "form"]],
462
- },
463
- {
464
- auto_refresh: 0,
465
- context: "{}",
466
- domain: false,
467
- groups_id: [],
468
- id: 1469,
469
- limit: 80,
470
- name: "Canvi de compte",
471
- res_model: "wizard.bank.account.change",
472
- src_model: false,
473
- string: "Canvi de compte",
474
- target: "new",
475
- type: "ir.actions.act_window",
476
- usage: false,
477
- view_id: false,
478
- view_ids: [],
479
- view_mode: "form",
480
- view_type: "form",
481
- views: [[1609, "form"]],
482
- },
483
- {
484
- auto_refresh: 0,
485
- context: "{}",
486
- domain: false,
487
- groups_id: [],
488
- id: 1464,
489
- limit: 80,
490
- name: "Avançar facturació",
491
- res_model: "wizard.avancar.facturacio",
492
- src_model: false,
493
- string: "Avançar facturació",
494
- target: "new",
495
- type: "ir.actions.act_window",
496
- usage: false,
497
- view_id: false,
498
- view_ids: [],
499
- view_mode: "form",
500
- view_type: "form",
501
- views: [[1600, "form"]],
502
- },
503
- {
504
- auto_refresh: 0,
505
- context: "{}",
506
- domain: false,
507
- groups_id: [],
508
- id: 1463,
509
- limit: 80,
510
- name: "Canvi de dades fiscals i compte",
511
- res_model: "wizard.payer.change",
512
- src_model: false,
513
- string: "Canvi de dades fiscals i compte",
514
- target: "new",
515
- type: "ir.actions.act_window",
516
- usage: false,
517
- view_id: false,
518
- view_ids: [],
519
- view_mode: "form",
520
- view_type: "form",
521
- views: [[1599, "form"]],
522
- },
523
- {
524
- auto_refresh: 0,
525
- context: "{'model': 'giscedata.polissa'}",
526
- domain: false,
527
- groups_id: [],
528
- id: 1431,
529
- limit: 80,
530
- name: "Devolució diposit",
531
- res_model: "wizard.refund.deposit",
532
- src_model: false,
533
- string: "Devolució diposit",
534
- target: "new",
535
- type: "ir.actions.act_window",
536
- usage: false,
537
- view_id: false,
538
- view_ids: [],
539
- view_mode: "form",
540
- view_type: "form",
541
- views: [[1554, "form"]],
542
- },
543
- {
544
- auto_refresh: 0,
545
- context: "{}",
546
- domain: false,
547
- groups_id: [],
548
- id: 1367,
549
- limit: 80,
550
- name: "Afegir polisses a un lot",
551
- res_model: "wizard.afegir.polisses.lot",
552
- src_model: false,
553
- string: "Afegir polisses a un lot",
554
- target: "new",
555
- type: "ir.actions.act_window",
556
- usage: false,
557
- view_id: false,
558
- view_ids: [],
559
- view_mode: "form",
560
- view_type: "form",
561
- views: [[1490, "form"]],
562
- },
563
- {
564
- auto_refresh: 0,
565
- context: "{}",
566
- domain: false,
567
- groups_id: [],
568
- id: 434,
569
- limit: 80,
570
- name: "Actualitzar data firma contracte",
571
- res_model: "wizard.update.data.firma.contracte",
572
- src_model: false,
573
- string: "Actualitzar data firma contracte",
574
- target: "new",
575
- type: "ir.actions.act_window",
576
- usage: false,
577
- view_id: false,
578
- view_ids: [],
579
- view_mode: "form",
580
- view_type: "form",
581
- views: [[496, "form"]],
582
- },
583
- {
584
- auto_refresh: 0,
585
- context: "{'default_polissa_id': active_id}",
586
- domain: false,
587
- groups_id: [],
588
- id: 433,
589
- limit: 80,
590
- name: "Actualitzar data d'alta",
591
- res_model: "wizard.update.data.alta",
592
- src_model: false,
593
- string: "Actualitzar data d'alta",
594
- target: "new",
595
- type: "ir.actions.act_window",
596
- usage: false,
597
- view_id: false,
598
- view_ids: [],
599
- view_mode: "form",
600
- view_type: "form",
601
- views: [[495, "form"]],
602
- },
603
- {
604
- auto_refresh: 0,
605
- context: "{'model_name': 'giscedata.polissa'}",
606
- domain: false,
607
- groups_id: [],
608
- id: 1658,
609
- limit: 80,
610
- name: "Buscar Procesos de Firma",
611
- res_model: "wizard.signature.model",
612
- src_model: false,
613
- string: "Buscar Procesos de Firma",
614
- target: "new",
615
- type: "ir.actions.act_window",
616
- usage: false,
617
- view_id: false,
618
- view_ids: [],
619
- view_mode: "form",
620
- view_type: "form",
621
- views: [[1837, "form"]],
622
- },
623
- {
624
- auto_refresh: 0,
625
- context: "{}",
626
- domain: false,
627
- groups_id: [],
628
- id: 1657,
629
- limit: 80,
630
- name: "Signar contracte digitalment",
631
- res_model: "wizard.signar.contracte.esborrany",
632
- src_model: false,
633
- string: "Signar contracte digitalment",
634
- target: "new",
635
- type: "ir.actions.act_window",
636
- usage: false,
637
- view_id: false,
638
- view_ids: [],
639
- view_mode: "form",
640
- view_type: "form",
641
- views: [[1915, "form"]],
642
- },
643
- {
644
- auto_refresh: 0,
645
- context: "{'model':'giscedata.polissa'}",
646
- domain: false,
647
- groups_id: [],
648
- id: 1650,
649
- limit: 80,
650
- name: "Generar Casos",
651
- res_model: "wizard.create.case",
652
- src_model: false,
653
- string: "Generar Casos",
654
- target: "new",
655
- type: "ir.actions.act_window",
656
- usage: false,
657
- view_id: false,
658
- view_ids: [],
659
- view_mode: "form",
660
- view_type: "form",
661
- views: [[1852, "form"]],
662
- },
663
- ],
664
- print: [
665
- {
666
- attachment: false,
667
- attachment_use: false,
668
- auto: true,
669
- context: "{}",
670
- groups_id: [],
671
- header: false,
672
- id: 956,
673
- jasper_file_ids: [],
674
- jasper_model_id: false,
675
- jasper_output: false,
676
- jasper_report: false,
677
- model: "giscedata.polissa",
678
- multi: false,
679
- name: "Fitxa contracte",
680
- report_name: "fitxa_contracte",
681
- report_type: "pdf",
682
- report_webkit: false,
683
- report_webkit_data: false,
684
- report_xml: false,
685
- report_xsl: false,
686
- signature_in_coordinates: false,
687
- string: "Fitxa contracte",
688
- type: "ir.actions.report.xml",
689
- usage: false,
690
- webkit_debug: false,
691
- webkit_flags: false,
692
- webkit_header: [1, "Base Sample"],
693
- webkit_sign: false,
694
- },
695
- {
696
- attachment: false,
697
- attachment_use: false,
698
- auto: false,
699
- context: "{}",
700
- groups_id: [],
701
- header: false,
702
- id: 436,
703
- jasper_file_ids: [],
704
- jasper_model_id: false,
705
- jasper_output: false,
706
- jasper_report: false,
707
- model: "giscedata.polissa",
708
- multi: false,
709
- name: "Informe mod. contractuales",
710
- report_name: "modcon",
711
- report_type: "webkit",
712
- report_webkit: "giscedata_polissa/report/modcon_report.mako",
713
- report_webkit_data: false,
714
- report_xml: false,
715
- report_xsl: false,
716
- signature_in_coordinates: false,
717
- string: "Informe mod. contractuales",
718
- type: "ir.actions.report.xml",
719
- usage: false,
720
- webkit_debug: false,
721
- webkit_flags: false,
722
- webkit_header: [2, "Sense fons header"],
723
- webkit_sign: false,
724
- },
725
- {
726
- attachment: false,
727
- attachment_use: false,
728
- auto: false,
729
- context: "{}",
730
- groups_id: [],
731
- header: false,
732
- id: 435,
733
- jasper_file_ids: [],
734
- jasper_model_id: false,
735
- jasper_output: false,
736
- jasper_report: false,
737
- model: "giscedata.polissa",
738
- multi: false,
739
- name: "Contracte",
740
- report_name: "giscedata.polissa",
741
- report_type: "webkit",
742
- report_webkit: "giscedata_polissa_comer/report/contracte.mako",
743
- report_webkit_data: false,
744
- report_xml: false,
745
- report_xsl: false,
746
- signature_in_coordinates:
747
- '[{"top": 81, "left": 17, "height": 10, "width": 22}]',
748
- string: "Contracte",
749
- type: "ir.actions.report.xml",
750
- usage: false,
751
- webkit_debug: false,
752
- webkit_flags: false,
753
- webkit_header: [3, "Generic contract"],
754
- webkit_sign: false,
755
- },
756
- ],
757
- relate: [
758
- {
759
- auto_refresh: 0,
760
- context: "{}",
761
- domain: "[('cups_polissa_id', '=', active_id)]",
762
- groups_id: [],
763
- id: 1591,
764
- limit: 0,
765
- name: "Casos ATR",
766
- res_model: "giscedata.switching",
767
- src_model: "giscedata.polissa",
768
- string: "Casos ATR",
769
- target: "current",
770
- type: "ir.actions.act_window",
771
- usage: "",
772
- view_id: false,
773
- view_ids: [],
774
- view_mode: "tree,form",
775
- view_type: "form",
776
- views: [
777
- [1667, "tree"],
778
- [1666, "form"],
779
- ],
780
- },
781
- {
782
- auto_refresh: 0,
783
- context: "{}",
784
- domain:
785
- "[('ref', '=', name), ('product_id.default_code', '=', 'CON06')]",
786
- groups_id: [],
787
- id: 1441,
788
- limit: 80,
789
- name: "Moviments de fiances",
790
- res_model: "account.move.line",
791
- src_model: "res.partner",
792
- string: "Moviments de fiances",
793
- target: "current",
794
- type: "ir.actions.act_window",
795
- usage: false,
796
- view_id: [184, "account.move.line.tree"],
797
- view_ids: [],
798
- view_mode: "tree,form",
799
- view_type: "form",
800
- views: [
801
- [184, "tree"],
802
- [185, "form"],
803
- ],
804
- },
805
- {
806
- auto_refresh: 0,
807
- context: "{}",
808
- domain: "[('polissa_id', '=', active_id)]",
809
- groups_id: [],
810
- id: 1411,
811
- limit: 80,
812
- name: "Factura manual",
813
- res_model: "wizard.manual.invoice",
814
- src_model: false,
815
- string: "Factura manual",
816
- target: "new",
817
- type: "ir.actions.act_window",
818
- usage: false,
819
- view_id: false,
820
- view_ids: [],
821
- view_mode: "form",
822
- view_type: "form",
823
- views: [[1532, "form"]],
824
- },
825
- {
826
- auto_refresh: 0,
827
- context: "{}",
828
- domain: "[('reference','=','giscedata.polissa,%d'%active_id)]",
829
- groups_id: [],
830
- id: 1405,
831
- limit: 80,
832
- name: "Mandatos",
833
- res_model: "payment.mandate",
834
- src_model: "giscedata.polissa",
835
- string: "Mandatos",
836
- target: "current",
837
- type: "ir.actions.act_window",
838
- usage: false,
839
- view_id: false,
840
- view_ids: [],
841
- view_mode: "tree,form",
842
- view_type: "form",
843
- views: [
844
- [1086, "tree"],
845
- [1087, "form"],
846
- ],
847
- },
848
- {
849
- auto_refresh: 0,
850
- context: "{'active_test': False}",
851
- domain: "[('polissa_id','=', active_id)]",
852
- groups_id: [],
853
- id: 1394,
854
- limit: 80,
855
- name: "Extra lines",
856
- res_model: "giscedata.facturacio.extra",
857
- src_model: "giscedata.polissa",
858
- string: "Extra lines",
859
- target: "current",
860
- type: "ir.actions.act_window",
861
- usage: false,
862
- view_id: false,
863
- view_ids: [],
864
- view_mode: "tree,form",
865
- view_type: "form",
866
- views: [
867
- [1514, "tree"],
868
- [1515, "form"],
869
- ],
870
- },
871
- {
872
- auto_refresh: 0,
873
- context: "{}",
874
- domain: "[('polissa_id', '=', active_id)]",
875
- groups_id: [],
876
- id: 1388,
877
- limit: 80,
878
- name: "Contractes Lot",
879
- res_model: "giscedata.facturacio.contracte_lot",
880
- src_model: "giscedata.polissa",
881
- string: "Contractes Lot",
882
- target: "current",
883
- type: "ir.actions.act_window",
884
- usage: false,
885
- view_id: [1510, "giscedata.facturacio.contracte_lot.tree"],
886
- view_ids: [],
887
- view_mode: "tree,form",
888
- view_type: "form",
889
- views: [
890
- [1510, "tree"],
891
- [1511, "form"],
892
- ],
893
- },
894
- {
895
- auto_refresh: 0,
896
- context: "{}",
897
- domain: "[('polissa_id', '=', active_id), ('state', '=', 'open')]",
898
- groups_id: [],
899
- id: 1381,
900
- limit: 80,
901
- name: "Factures obertes",
902
- res_model: "giscedata.facturacio.factura",
903
- src_model: "giscedata.polissa",
904
- string: "Factures obertes",
905
- target: "current",
906
- type: "ir.actions.act_window",
907
- usage: false,
908
- view_id: [1495, "giscedata.facturacio.factura.tree"],
909
- view_ids: [],
910
- view_mode: "tree,form",
911
- view_type: "form",
912
- views: [
913
- [1495, "tree"],
914
- [false, "form"],
915
- ],
916
- },
917
- {
918
- auto_refresh: 0,
919
- context: "{}",
920
- domain:
921
- "[('polissa_id', '=', active_id),('type','in',('in_refund', 'in_invoice'))]",
922
- groups_id: [],
923
- id: 1380,
924
- limit: 80,
925
- name: "Factures Proveïdor",
926
- res_model: "giscedata.facturacio.factura",
927
- src_model: "giscedata.polissa",
928
- string: "Factures Proveïdor",
929
- target: "current",
930
- type: "ir.actions.act_window",
931
- usage: false,
932
- view_id: [1495, "giscedata.facturacio.factura.tree"],
933
- view_ids: [],
934
- view_mode: "tree,form",
935
- view_type: "form",
936
- views: [
937
- [1495, "tree"],
938
- [false, "form"],
939
- ],
940
- },
941
- {
942
- auto_refresh: 0,
943
- context: "{}",
944
- domain:
945
- "[('polissa_id', '=', active_id),('type','in',('out_refund', 'out_invoice'))]",
946
- groups_id: [],
947
- id: 1379,
948
- limit: 80,
949
- name: "Factures Client",
950
- res_model: "giscedata.facturacio.factura",
951
- src_model: "giscedata.polissa",
952
- string: "Factures Client",
953
- target: "current",
954
- type: "ir.actions.act_window",
955
- usage: false,
956
- view_id: [1495, "giscedata.facturacio.factura.tree"],
957
- view_ids: [],
958
- view_mode: "tree,form",
959
- view_type: "form",
960
- views: [
961
- [1495, "tree"],
962
- [false, "form"],
963
- ],
964
- },
965
- {
966
- auto_refresh: 0,
967
- context: "{}",
968
- domain: "[('polissa_id', '=', active_id)]",
969
- groups_id: [],
970
- id: 1378,
971
- limit: 80,
972
- name: "Factures",
973
- res_model: "giscedata.facturacio.factura",
974
- src_model: "giscedata.polissa",
975
- string: "Factures",
976
- target: "current",
977
- type: "ir.actions.act_window",
978
- usage: false,
979
- view_id: [1495, "giscedata.facturacio.factura.tree"],
980
- view_ids: [],
981
- view_mode: "tree,form",
982
- view_type: "form",
983
- views: [
984
- [1495, "tree"],
985
- [false, "form"],
986
- ],
987
- },
988
- {
989
- auto_refresh: 0,
990
- context: "{}",
991
- domain: "[('polissa', '=', active_id)]",
992
- groups_id: [],
993
- id: 940,
994
- limit: 80,
995
- name: "Comptadors",
996
- res_model: "giscedata.lectures.comptador",
997
- src_model: "giscedata.polissa",
998
- string: "Comptadors",
999
- target: "current",
1000
- type: "ir.actions.act_window",
1001
- usage: false,
1002
- view_id: false,
1003
- view_ids: [],
1004
- view_mode: "tree,form",
1005
- view_type: "form",
1006
- views: [
1007
- [1033, "tree"],
1008
- [1032, "form"],
1009
- ],
1010
- },
1011
- {
1012
- auto_refresh: 0,
1013
- context: "{}",
1014
- domain: "[('cups_id', '=', cups)]",
1015
- groups_id: [],
1016
- id: 1500,
1017
- limit: 80,
1018
- name: "Bulletins",
1019
- res_model: "giscedata.butlleti",
1020
- src_model: "giscedata.polissa",
1021
- string: "Bulletins",
1022
- target: "current",
1023
- type: "ir.actions.act_window",
1024
- usage: false,
1025
- view_id: false,
1026
- view_ids: [],
1027
- view_mode: "tree,form",
1028
- view_type: "form",
1029
- views: [
1030
- [1645, "tree"],
1031
- [1646, "form"],
1032
- ],
1033
- },
1034
- {
1035
- auto_refresh: 0,
1036
- context: "{'active_test': False}",
1037
- domain: "[('polissa_id', '=', active_id)]",
1038
- groups_id: [],
1039
- id: 424,
1040
- limit: 80,
1041
- name: "Modificacions Contractuals",
1042
- res_model: "giscedata.polissa.modcontractual",
1043
- src_model: "giscedata.polissa",
1044
- string: "Modificacions Contractuals",
1045
- target: "current",
1046
- type: "ir.actions.act_window",
1047
- usage: false,
1048
- view_id: [485, "giscedata.polissa.modcontractual.tree.llistat"],
1049
- view_ids: [],
1050
- view_mode: "tree,form",
1051
- view_type: "form",
1052
- views: [
1053
- [485, "tree"],
1054
- [488, "form"],
1055
- ],
1056
- },
1057
- {
1058
- auto_refresh: 0,
1059
- context: "{}",
1060
- domain: "[('polissa_id','=',active_id)]",
1061
- groups_id: [],
1062
- id: 1651,
1063
- limit: 80,
1064
- name: "Casos",
1065
- res_model: "crm.case",
1066
- src_model: "giscedata.polissa",
1067
- string: "Casos",
1068
- target: "current",
1069
- type: "ir.actions.act_window",
1070
- usage: false,
1071
- view_id: false,
1072
- view_ids: [],
1073
- view_mode: "tree,form",
1074
- view_type: "form",
1075
- views: [
1076
- [1623, "tree"],
1077
- [1624, "form"],
1078
- ],
1079
- },
1080
- {
1081
- auto_refresh: 0,
1082
- context: "{}",
1083
- domain: "[('id', '=', active_id)]",
1084
- groups_id: [],
1085
- id: -1,
1086
- limit: 0,
1087
- name: "Polissa d'un Client",
1088
- res_model: "giscedata.polissa",
1089
- src_model: "giscedata.polissa",
1090
- string: "Polissa d'un Client",
1091
- target: "current",
1092
- type: "ir.actions.act_window",
1093
- usage: "",
1094
- view_id: false,
1095
- view_ids: [],
1096
- view_mode: "tree,form",
1097
- view_type: "form",
1098
- views: [
1099
- [false, "tree"],
1100
- [false, "form"],
1101
- ],
1102
- },
1103
- ],
1104
- },
1105
- type: "tree",
1106
- view_id: 480,
1107
- },
1108
- form: {
1109
- arch: '<form string="polisses">\n <group attrs="{\'invisible\': [(\'state\', \'!=\', \'tall\')]}" col="14">\n <group colspan="6"/>\n <group colspan="2" attrs="{\'invisible\': [(\'state\', \'!=\',\'tall\')]}" name="group_state_tall">\n <image name="gtk-cut"/>\n <label fill="1" string="&lt;b&gt;Atenció!&lt;/b&gt; aquest contracte està en estat Tall"/>\n </group>\n <group colspan="6"/>\n </group>\n <group attrs="{\'invisible\': [(\'state\', \'!=\', \'baixa\')]}" col="14">\n <group colspan="4"/>\n <group colspan="2" attrs="{\'invisible\': [(\'state\', \'!=\',\'baixa\')]}">\n <image name="gtk-stop"/>\n <label fill="1" string="&lt;b&gt;Atenció!&lt;/b&gt; aquest contracte està en estat Baixa"/>\n </group>\n <group colspan="8"/>\n </group>\n <group attrs="{\'invisible\': [(\'state\', \'!=\', \'facturacio\')]}" col="14">\n <group colspan="2"/>\n <group colspan="2"/>\n <group colspan="2"/>\n <group colspan="2">\n <image name="gtk-dialog-warning"/>\n <label fill="1" string="&lt;b&gt;Atenció!&lt;/b&gt; en aquests moments s\'està facturant. Actualitzi d\'aquí uns minuts."/>\n </group>\n <group colspan="2"/>\n <group colspan="2"/>\n <group colspan="2"/>\n </group>\n <group colspan="8" col="8">\n <field name="pending_state" select="2" widget="indicator" widget_props="{\'card\': true, \'icon\': \'audit\'}" />\n <field name="pending_amount" select="2" widget="indicator" widget_props="{\'card\': true, \'icon\': \'wallet\', \'suffix\': \'€\'}"/>\n <field name="debt_amount" select="2" widget="indicator" widget_props="{\'card\': true, \'icon\': \'wallet\', \'suffix\': \'€\'}"/>\n <field name="unpaid_invoices" select="2" widget="indicator" widget_props="{\'card\': true, \'icon\': \'file-text\'}"/>\n </group>\n <group colspan="6" col="6">\n <field name="process_id" select="2" attrs="{\'readonly\': [(\'bono_social_disponible\',\'=\', True)]}"/>\n </group>\n <group string="General" colspan="6" col="6">\n <field name="name" attrs="{\'readonly\': [(\'name_auto\', \'=\', 1)], \'required\': [(\'name_auto\', \'!=\', 1)]}"/>\n <group colspan="2">\n <field name="name_auto" attrs="{\'readonly\': [(\'name\', \'!=\', False)]}"/>\n <field name="data_firma_contracte" select="2"/>\n </group>\n <group col="2" rowspan="4" name="renovacio">\n <field name="active" select="1"/>\n <field name="renovacio_auto" select="2" attrs="{\'readonly\': [(\'data_baixa\', \'!=\', False)]}"/>\n <field name="data_alta" select="2"/>\n <field name="data_baixa" select="2" on_change="onchange_data_baixa(data_baixa, context)" attrs="{\'required\': [(\'renovacio_auto\', \'=\', 0)], \'readonly\': [(\'renovacio_auto\', \'=\', 1)]}"/>\n </group>\n <field name="distribuidora" select="1"/>\n <field name="ref_dist" select="1"/>\n <field name="titular" colspan="2" domain="[(\'customer\', \'=\', 1)]" on_change="onchange_titular(titular, pagador_sel, pagador, tipo_pago, notificacio, context)" select="1"/>\n <field name="cnae" select="2"/>\n </group>\n <notebook colspan="6">\n <page string="General">\n <separator string="Cups" colspan="4"/>\n <field name="cups" select="1" size="25"/>\n <field name="cups_direccio" colspan="4" select="1"/>\n <field name="cups_cp" invisible="1" select="2"/>\n <field name="cups_poblacio" invisible="1" select="2"/>\n <separator string="Dades tècniques" colspan="4"/>\n <group col="2" colspan="2">\n <field name="contract_type" select="2"/>\n <group colspan="2" col="4" attrs="{\'invisible\':[(\'contract_type\', \'!=\', \'09\')]}">\n <field name="expected_consumption"/>\n <button string="Calcular" name="1366" states="esborrany,validar,modcontractual" type="action" readonly="0"/>\n </group>\n <field name="tarifa" on_change="onchange_potencia(potencia, tarifa, context)" select="1"/>\n <group colspan="2" col="4">\n <field name="potencia" select="1" on_change="onchange_potencia(potencia, tarifa, context)"/>\n <button name="416" type="action" string="Normalitzar" context="{\'power\': potencia, \'tarifa_id\': tarifa, \'tensio_id\': tensio_normalitzada, \'model\': \'giscedata.polissa\', \'field\': \'potencia\'}" states="esborrany,validar,modcontractual" readonly="0"/>\n </group>\n <field name="tensio_normalitzada" select="2" on_change="onchange_tensio(tensio_normalitzada, tarifa, context)"/>\n <field name="tarifa_codi" invisible="1"/>\n <group colspan="4" attrs="{\'invisible\': [(\'tarifa_codi\',\'not in\',[\'3.1A\', \'3.1A LB\', \'6.1A\', \'6.1B\'])]}">\n <field name="lectura_en_baja" select="2"/>\n <group colspan="2" col="2" attrs="{\'invisible\': [(\'tarifa_codi\', \'!=\', \'3.1A LB\'),(\'lectura_en_baja\',\'=\',False)]}">\n <field name="trafo"/>\n </group>\n </group>\n <field name="tensio"/>\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 </group>\n <group col="2" colspan="2">\n <field name="potencies_periode" colspan="4" nolabel="1">\n </field>\n <button name="generar_periodes_potencia" states="esborrany,validar,modcontractual" string="Generar periodes" type="object" context="{\'force_genpot\': True}"/>\n </group>\n <group col="4" colspan="4" attrs="{\'invisible\':[(\'persona_fisica\', \'=\', \'CI\')]}">\n <separator string="Altres dades" colspan="4"/>\n </group>\n <group col="4" colspan="2" attrs="{\'invisible\':[(\'persona_fisica\', \'=\', \'CI\')]}">\n <field name="tipus_vivenda" select="1"/>\n <field name="persona_fisica" invisible="1"/>\n </group>\n </page>\n <page string="Autoconsum" attrs="{\'invisible\':[(\'autoconsumo\',\'=\',\'00\')]}">\n <separator string="Informacio de l\'autoconsumo del CUPS associat" colspan="6"/>\n <group>\n <field name="autoconsum_id" attrs="{\'required\':[(\'autoconsumo\',\'!=\',\'00\'), (\'state\',\'in\',[\'validar\',\'modcontractual\'])]}" on_change="onchange_autoconsum_id(autoconsum_id)"/>\n <field name="ac_state"/>\n <group attrs="{\'invisible\':[(\'is_autoconsum_collectiu\',\'=\',False)]}">\n <field name="coef_repartiment" attrs="{\'required\':[(\'autoconsumo\',\'!=\',\'00\'), (\'is_autoconsum_collectiu\',\'=\',True), (\'state\',\'in\',[\'validar\',\'modcontractual\'])]}"/>\n </group>\n <field name="is_autoconsum_collectiu"/>\n <group attrs="{\'invisible\':[(\'is_autoconsum_collectiu\',\'!=\', True)]}">\n <field name="coef_repartiment" attrs="{\'required\':[(\'autoconsumo\',\'!=\',\'00\'), (\'is_autoconsum_collectiu\',\'=\',True), (\'state\',\'in\',[\'validar\',\'modcontractual\'])]}"/>\n </group>\n </group>\n </page>\n <page string="Facturació"><separator string="Facturació" colspan="4"/>\n <field name="facturacio" select="1" widget="radio"/>\n <group col="2" colspan="2" string="Lot Facturació">\n <field name="lot_facturacio" select="1"/><field name="facturacio_suspesa" select="2" colspan="1"/>\n \n </group>\n <group col="2" colspan="2">\n <field name="facturacio_potencia" select="2"/>\n <field name="property_unitat_potencia"/>\n <field name="deposit"/>\n </group>\n <group string="Dates últimes lectures facturades" col="2" colspan="2" rowspan="1">\n <field string="Real" name="data_ultima_lectura" select="2"/>\n <field string="Estimada" name="data_ultima_lectura_estimada"/><field name="refacturacio_pendent"/>\n \n </group>\n <newline/>\n <separator string="Tarificació" colspan="4"/>\n <field name="llista_preu" select="1" domain="[(\'tarifes_atr_compatibles\', \'=\', tarifa), (\'type\', \'=\', \'sale\')]"/>\n <!-- Dos dominis, la llista de preus que tingui i que la data_end sigui > now() -->\n <field name="versio_primera_factura" domain="[(\'pricelist_id\', \'=\', llista_preu), \'|\', (\'date_end\', \'&gt;\', data_alta), (\'date_end\', \'=\', False),]"/>\n <separator string="Pagament" colspan="4"/>\n <field name="payment_term" select="2"/>\n <field name="tipo_pago" on_change="onchange_tipo_pago(tipo_pago, pagador, context)" invisible="1"/>\n <field name="payment_mode_id" select="2" on_change="onchange_modo_pago(payment_mode_id, pagador, context)"/>\n <newline/>\n <field name="bank" on_change="onchange_bank(propietari_bank, bank)" attrs="{\'readonly\': [(\'tipo_pago.code\', \'=\', \'RECIBO_CSB\')]}" domain="[(\'partner_id\', \'=\', pagador)]"/>\n <field name="propietari_bank"/>\n <group col="4" colspan="4">\n <separator string="Facturació de distribuidora" colspan="4"/>\n <group colspan="2">\n <field name="facturacio_distri"/>\n </group>\n </group>\n </page>\n <page string="Contactes">\n <separator string="Titular" colspan="4"/>\n <field name="titular_nif" select="1"/>\n <field name="representante_id" colspan="4"/>\n <group colspan="4" col="6">\n <separator string="Privacitat" colspan="6"/>\n <field name="no_cessio_sips"/>\n <field name="no_cessio_sips_data"/><button string="Solicitar no cesión" type="action" icon="gtk-no" name="1622" colspan="1" readonly="0"/>\n </group>\n <field name="user_id" invisible="1"/>\n <newline/>\n <separator colspan="4" string="Dades fiscals"/>\n <field name="pagador_sel" colspan="4" domain="[(\'customer\', \'=\', 1)]" on_change="onchange_pagador_sel(pagador_sel, titular, pagador, direccio_pagament, tipo_pago, notificacio, context)"/>\n <group colspan="4" col="4">\n <field name="pagador" on_change="onchange_altre_pagador(pagador, notificacio, context)" select="1"/>\n <field name="pagador_nif"/>\n </group>\n <field name="direccio_pagament" colspan="4" domain="[(\'partner_id\', \'=\', pagador), (\'type\', \'=\', \'invoice\')]" select="1" on_change="onchange_direccio_fiscal(direccio_pagament)"/>\n <field name="enviament"/>\n <group colspan="2" col="2" attrs="{\'invisible\': [(\'enviament\', \'=\', \'postal\')]}">\n <field name="pagador_email"/>\n </group>\n <separator colspan="4" string="Notificació"/>\n <field name="notificacio" on_change="onchange_notificacio(notificacio, titular, pagador, altre_p, context)"/>\n <group attrs="{\'invisible\': [(\'notificacio\', \'!=\', \'altre_p\')]}" colspan="4">\n <field name="altre_p" colspan="4" on_change="onchange_altre_p(altre_p, context)"/>\n </group>\n <field name="direccio_notificacio" colspan="4" domain="[(\'partner_id\', \'=\', titular)]" select="2"/>\n <group colspan="2" col="2" attrs="{\'invisible\': [(\'enviament\', \'=\', \'postal\')]}">\n <field name="notificacio_email"/>\n </group>\n <group colspan="2">\n <field name="bono_social_disponible"/>\n </group>\n </page>\n <page string="Comercial">\n <separator string="Dades Comercials" colspan="8"/>\n <group colspan="8" col="8" string="Comercial">\n <field name="comercial_id" colspan="4" select="1"/>\n <field name="comissio" domain="[(\'id\', \'in\', [])]" colspan="8"/>\n <button name="action_asignar_comissio_from_comercial" type="object" string="Asignar comissio del comercial" colspan="1"/>\n <field name="codigo_promocional" select="2" colspan="8"/>\n </group>\n </page>\n <page string="Modificacions contr.">\n <field name="modcontractual_activa" search="1"/>\n <field name="modcontractuals_ids" colspan="4" nolabel="1"/>\n </page>\n <page string="Observacions">\n <label colspan="4" string="Les observacions que s\'escriguin aquí queden historitzades en les modificacions contractuals. Cada modificació contractual fa una còpia de les observacions actuals."/>\n <separator string="Observacions" colspan="4"/>\n <field name="observacions" nolabel="1" colspan="4" select="1"/>\n <separator string="Observacions impresses" colspan="4"/>\n <field name="print_observations" nolabel="1" colspan="4"/>\n </page>\n <page string="Perfils">\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"/>\n <field name="agree_tarifa" nolabel="1"/>\n <field name="agree_dh" nolabel="1"/>\n <field name="agree_tipus" nolabel="1"/>\n </group>\n </page>\n <page string="Històric">\n <field name="log_ids" colspan="4" nolabel="1"/>\n </page>\n <page string="Documents rel.">\n <field name="related_attachments" colspan="4" nolabel="1"/>\n </page>\n <page string="Comptadors">\n <field name="comptador" invisible="1" select="1"/>\n <field name="comptadors" nolabel="1" colspan="4" context="{\'polissa_id\':active_id}"/>\n </page>\n <page string="Butlletins">\n <field name="butlletins" colspan="4" nolabel="1" context="{\'polissa_id\': active_id, \'default_cups_id\': cups}"/>\n </page>\n </notebook>\n <group colspan="2" col="4">\n <field name="state" select="1"/>\n <group col="15" colspan="2">\n <button name="esborrany" string="Esborrany" states="validar,pendent" readonly="0"/>\n <button name="cancelar" string="Cancel·lar" states="esborrany,activa" confirm="Està segur que vol cancel·lar aquesta pòlissa?" readonly="0"/>\n <button name="baixa" string="Baixa" states="activa,impagament,tall" readonly="0"/>\n <button name="impagament" string="Impagament" states="activa" confirm="Està segur que vol passar a estat d\'impagament aquesta pòlissa?" readonly="0"/>\n <button name="validar" string="Validar" states="esborrany" readonly="0"/>\n <button name="activar" string="Activar" states="impagament,tall,cancelada" readonly="0"/>\n <button name="to_draft" string="Passar a Esborrany" states="cancelada" readonly="0"/>\n <button name="contracte" string="Activar" states="validar" readonly="0"/>\n <button name="reactivar" string="Reactivar" states="baixa" confirm="Està segur que vol reactivar?" readonly="0"/>\n <button name="tallar" string="Tallar" states="impagament" confirm="Està segur que vol passar a estat de tall aquesta pòlissa?" readonly="0"/>\n <button name="modcontractual" string="Modificació contractual" states="activa" readonly="0"/>\n <button name="undo_modcontractual" string="Desfer mod. contractual" states="modcontractual" readonly="0"/>\n <button type="action" name="418" string="Crear nova modificació contractual" states="modcontractual" readonly="0"/>\n </group>\n </group>\n </form>',
1110
- field_parent: false,
1111
- fields: {
1112
- ac_state: {
1113
- digits: [16, 2],
1114
- readonly: true,
1115
- string: "Estat de l'AC",
1116
- type: "char",
1117
- views: {},
1118
- },
1119
- active: {
1120
- readonly: true,
1121
- required: true,
1122
- string: "Activa",
1123
- type: "boolean",
1124
- views: {},
1125
- },
1126
- agree_dh: {
1127
- digits: [16, 2],
1128
- readonly: 1,
1129
- size: 2,
1130
- string: "Codi DH",
1131
- type: "char",
1132
- views: {},
1133
- },
1134
- agree_tarifa: {
1135
- digits: [16, 2],
1136
- readonly: 1,
1137
- size: 2,
1138
- string: "Codi Tarifa",
1139
- type: "char",
1140
- views: {},
1141
- },
1142
- agree_tensio: {
1143
- digits: [16, 2],
1144
- readonly: 1,
1145
- size: 2,
1146
- string: "Codi Tensió",
1147
- type: "char",
1148
- views: {},
1149
- },
1150
- agree_tipus: {
1151
- digits: [16, 2],
1152
- readonly: 1,
1153
- size: 2,
1154
- string: "Tipus Punt",
1155
- type: "char",
1156
- views: {},
1157
- },
1158
- altre_p: {
1159
- context: "",
1160
- domain: [],
1161
- readonly: true,
1162
- relation: "res.partner",
1163
- size: 40,
1164
- states: {
1165
- esborrany: [["readonly", false]],
1166
- modcontractual: [["readonly", false]],
1167
- validar: [["readonly", false]],
1168
- },
1169
- string: "Contacte alternatiu",
1170
- type: "many2one",
1171
- views: {},
1172
- },
1173
- autoconsum_id: {
1174
- context: "",
1175
- digits: [16, 2],
1176
- domain: [],
1177
- readonly: true,
1178
- relation: "giscedata.autoconsum",
1179
- string: "Autoconsum",
1180
- type: "many2one",
1181
- views: {},
1182
- },
1183
- autoconsumo: {
1184
- help: "Tipus de autoconsum del contracte segons RD. 900/2015",
1185
- readonly: true,
1186
- selection: [
1187
- ["00", "Sin Autoconsumo"],
1188
- ["01", "Autoconsumo Tipo 1"],
1189
- ["2A", "Autoconsumo tipo 2 (según el Art. 13. 2. a) RD 900/2015)"],
1190
- ["2B", "Autoconsumo tipo 2 (según el Art. 13. 2. b) RD 900/2015)"],
1191
- [
1192
- "2G",
1193
- "Servicios auxiliares de generación ligada a un autoconsumo tipo 2",
1194
- ],
1195
- ["31", "Sin Excedentes Individual – Consumo"],
1196
- ["32", "Sin Excedentes Colectivo – Consumo"],
1197
- [
1198
- "33",
1199
- "Sin Excedentes Colectivo con acuerdo de compensación – Consumo",
1200
- ],
1201
- ["41", "Con excedentes y compensación Individual - Consumo "],
1202
- ["42", "Con excedentes y compensación Colectivo– Consumo"],
1203
- [
1204
- "51",
1205
- "Con excedentes sin compensación Individual sin cto de SSAA en Red Interior– Consumo",
1206
- ],
1207
- [
1208
- "52",
1209
- "Con excedentes sin compensación Colectivo sin cto de SSAA en Red Interior– Consumo",
1210
- ],
1211
- [
1212
- "53",
1213
- "Con excedentes sin compensación Individual con cto SSAA en Red Interior– Consumo",
1214
- ],
1215
- [
1216
- "54",
1217
- "Con excedentes sin compensación individual con cto SSAA en Red Interior– SSAA",
1218
- ],
1219
- [
1220
- "55",
1221
- "Con excedentes sin compensación Colectivo/en Red Interior– Consumo",
1222
- ],
1223
- [
1224
- "56",
1225
- "Con excedentes sin compensación Colectivo/en Red Interior - SSAA",
1226
- ],
1227
- [
1228
- "61",
1229
- "Con excedentes sin compensación Individual con cto SSAA a través de red – Consumo",
1230
- ],
1231
- [
1232
- "62",
1233
- "Con excedentes sin compensación individual con cto SSAA a través de red – SSAA",
1234
- ],
1235
- [
1236
- "63",
1237
- "Con excedentes sin compensación Colectivo a través de red – Consumo",
1238
- ],
1239
- [
1240
- "64",
1241
- "Con excedentes sin compensación Colectivo a través de red - SSAA",
1242
- ],
1243
- [
1244
- "71",
1245
- "Con excedentes sin compensación Individual con cto SSAA a través de red y red interior – Consumo",
1246
- ],
1247
- [
1248
- "72",
1249
- "Con excedentes sin compensación individual con cto SSAA a través de red y red interior – SSAA",
1250
- ],
1251
- [
1252
- "73",
1253
- "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior – Consumo",
1254
- ],
1255
- [
1256
- "74",
1257
- "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior - SSAA",
1258
- ],
1259
- ],
1260
- states: {
1261
- esborrany: [["readonly", false]],
1262
- modcontractual: [["readonly", false]],
1263
- validar: [["readonly", false]],
1264
- },
1265
- string: "Autoconsum",
1266
- type: "selection",
1267
- views: {},
1268
- },
1269
- bank: {
1270
- context: "",
1271
- domain: [],
1272
- readonly: true,
1273
- relation: "res.partner.bank",
1274
- size: 64,
1275
- states: {
1276
- esborrany: [["readonly", false]],
1277
- modcontractual: [["readonly", false]],
1278
- validar: [["readonly", false]],
1279
- },
1280
- string: "Compte bancari",
1281
- type: "many2one",
1282
- views: {},
1283
- },
1284
- bono_social_disponible: {
1285
- digits: [16, 2],
1286
- readonly: 1,
1287
- string: "Bo social disponible",
1288
- type: "boolean",
1289
- views: {},
1290
- },
1291
- butlletins: {
1292
- context: "",
1293
- digits: [16, 2],
1294
- domain: [],
1295
- relation: "giscedata.butlleti",
1296
- string: "Bulletins",
1297
- type: "one2many",
1298
- views: {},
1299
- },
1300
- cnae: {
1301
- context: "",
1302
- domain: [],
1303
- readonly: true,
1304
- relation: "giscemisc.cnae",
1305
- size: 64,
1306
- states: {
1307
- esborrany: [["readonly", false]],
1308
- modcontractual: [
1309
- ["readonly", false],
1310
- ["required", true],
1311
- ],
1312
- validar: [
1313
- ["readonly", false],
1314
- ["required", true],
1315
- ],
1316
- },
1317
- string: "CNAE",
1318
- type: "many2one",
1319
- views: {},
1320
- },
1321
- codigo_promocional: {
1322
- size: 20,
1323
- string: "Codi promocional",
1324
- type: "char",
1325
- views: {},
1326
- },
1327
- coef_repartiment: {
1328
- digits: [12, 2],
1329
- readonly: true,
1330
- states: {
1331
- esborrany: [["readonly", false]],
1332
- modcontractual: [["readonly", false]],
1333
- validar: [["readonly", false]],
1334
- },
1335
- string: "Coeficient de repartiment [%]",
1336
- type: "float",
1337
- views: {},
1338
- },
1339
- comercial_id: {
1340
- context: "",
1341
- domain: [],
1342
- relation: "hr.employee",
1343
- size: 64,
1344
- string: "Comercial",
1345
- type: "many2one",
1346
- views: {},
1347
- },
1348
- comissio: {
1349
- selection: [["giscedata.polissa.comissio.unica", "Comissió Única"]],
1350
- size: 256,
1351
- string: "Comissió Asignada",
1352
- type: "reference",
1353
- views: {},
1354
- },
1355
- comptador: {
1356
- digits: [16, 2],
1357
- readonly: 1,
1358
- select: true,
1359
- size: 64,
1360
- string: "Comptador",
1361
- type: "char",
1362
- views: {},
1363
- },
1364
- comptadors: {
1365
- context: {
1366
- active_test: false,
1367
- },
1368
- domain: [],
1369
- inv_field: "polissa",
1370
- relation: "giscedata.lectures.comptador",
1371
- states: {
1372
- esborrany: [["readonly", false]],
1373
- modcontractual: [
1374
- ["readonly", false],
1375
- ["required", true],
1376
- ],
1377
- validar: [["readonly", false]],
1378
- },
1379
- string: "Comptadors",
1380
- type: "one2many",
1381
- views: {},
1382
- },
1383
- condicions_generals_id: {
1384
- context: "",
1385
- domain: [],
1386
- relation: "giscedata.polissa.condicions.generals",
1387
- size: 64,
1388
- string: "Condicions generals",
1389
- type: "many2one",
1390
- views: {},
1391
- },
1392
- contract_type: {
1393
- help: "Distintos tipos de contratos. Ver REAL DECRETO 1164/2001",
1394
- readonly: true,
1395
- selection: [
1396
- ["01", "Anual"],
1397
- ["02", "Eventual medido"],
1398
- ["03", "Temporada"],
1399
- ["05", "Suministro Régimen especial"],
1400
- ["07", "Suministro de Obras"],
1401
- ["08", "Suministro de Socorro"],
1402
- ["09", "Eventual a tanto alzado"],
1403
- ["10", "Pruebas"],
1404
- ["11", "Duplicado"],
1405
- ["12", "De reserva"],
1406
- ],
1407
- states: {
1408
- esborrany: [["readonly", false]],
1409
- modcontractual: [
1410
- ["readonly", false],
1411
- ["required", true],
1412
- ],
1413
- validar: [
1414
- ["readonly", false],
1415
- ["required", true],
1416
- ],
1417
- },
1418
- string: "Tipus de contracte",
1419
- type: "selection",
1420
- views: {},
1421
- },
1422
- cups: {
1423
- context: "",
1424
- domain: [],
1425
- readonly: true,
1426
- relation: "giscedata.cups.ps",
1427
- size: 64,
1428
- states: {
1429
- esborrany: [["readonly", false]],
1430
- validar: [
1431
- ["readonly", false],
1432
- ["required", true],
1433
- ],
1434
- },
1435
- string: "CUPS",
1436
- type: "many2one",
1437
- views: {},
1438
- },
1439
- cups_cp: {
1440
- digits: [16, 2],
1441
- readonly: 1,
1442
- string: "Codi Postal",
1443
- type: "char",
1444
- views: {},
1445
- },
1446
- cups_direccio: {
1447
- digits: [16, 2],
1448
- readonly: true,
1449
- size: 256,
1450
- string: "Direcció CUPS",
1451
- type: "char",
1452
- views: {},
1453
- },
1454
- cups_poblacio: {
1455
- digits: [16, 2],
1456
- readonly: 1,
1457
- string: "Població",
1458
- type: "char",
1459
- views: {},
1460
- },
1461
- data_alta: {
1462
- readonly: true,
1463
- states: {
1464
- esborrany: [["readonly", false]],
1465
- validar: [
1466
- ["readonly", false],
1467
- ["required", true],
1468
- ],
1469
- },
1470
- string: "Data alta",
1471
- type: "date",
1472
- views: {},
1473
- },
1474
- data_baixa: {
1475
- string: "Data baixa",
1476
- type: "date",
1477
- views: {},
1478
- },
1479
- data_firma_contracte: {
1480
- readonly: true,
1481
- states: {
1482
- esborrany: [["readonly", false]],
1483
- validar: [
1484
- ["readonly", false],
1485
- ["required", true],
1486
- ],
1487
- },
1488
- string: "Data firma contracte",
1489
- type: "datetime",
1490
- views: {},
1491
- },
1492
- data_ultima_lectura: {
1493
- digits: [16, 2],
1494
- string: "Data última real facturada",
1495
- type: "date",
1496
- views: {},
1497
- },
1498
- data_ultima_lectura_estimada: {
1499
- string: "Data última estimada facturada",
1500
- type: "date",
1501
- views: {},
1502
- },
1503
- debt_amount: {
1504
- digits: [16, 2],
1505
- readonly: 1,
1506
- string: "Debt amount",
1507
- type: "float",
1508
- views: {},
1509
- },
1510
- deposit: {
1511
- digits: [16, 2],
1512
- readonly: 1,
1513
- string: "Dipòsit",
1514
- type: "float",
1515
- views: {},
1516
- },
1517
- direccio_notificacio: {
1518
- context: "",
1519
- domain: [],
1520
- readonly: true,
1521
- relation: "res.partner.address",
1522
- size: 64,
1523
- states: {
1524
- esborrany: [["readonly", false]],
1525
- modcontractual: [
1526
- ["readonly", false],
1527
- ["required", true],
1528
- ],
1529
- validar: [
1530
- ["readonly", false],
1531
- ["required", true],
1532
- ],
1533
- },
1534
- string: "Adreça notificació",
1535
- type: "many2one",
1536
- views: {},
1537
- },
1538
- direccio_pagament: {
1539
- context: "",
1540
- domain: [],
1541
- readonly: true,
1542
- relation: "res.partner.address",
1543
- size: 64,
1544
- states: {
1545
- esborrany: [["readonly", false]],
1546
- modcontractual: [
1547
- ["readonly", false],
1548
- ["required", true],
1549
- ],
1550
- validar: [
1551
- ["readonly", false],
1552
- ["required", true],
1553
- ],
1554
- },
1555
- string: "Adreça fiscal",
1556
- type: "many2one",
1557
- views: {},
1558
- },
1559
- distribuidora: {
1560
- context: "",
1561
- domain: [["supplier", "=", 1]],
1562
- readonly: true,
1563
- relation: "res.partner",
1564
- size: 64,
1565
- states: {
1566
- esborrany: [["readonly", false]],
1567
- modcontractual: [
1568
- ["readonly", false],
1569
- ["required", true],
1570
- ],
1571
- validar: [
1572
- ["readonly", false],
1573
- ["required", true],
1574
- ],
1575
- },
1576
- string: "Distribuidora",
1577
- type: "many2one",
1578
- views: {},
1579
- },
1580
- enviament: {
1581
- readonly: true,
1582
- selection: [
1583
- ["postal", "Correu postal"],
1584
- ["email", "E-mail"],
1585
- ["postal+email", "Correu postal i e-mail"],
1586
- ],
1587
- states: {
1588
- esborrany: [["readonly", false]],
1589
- modcontractual: [
1590
- ["readonly", false],
1591
- ["required", true],
1592
- ],
1593
- validar: [["readonly", false]],
1594
- },
1595
- string: "Enviar factura via",
1596
- type: "selection",
1597
- views: {},
1598
- },
1599
- expected_consumption: {
1600
- help: "Aquest camp calcula el consum total pactat per contractes eventuals sense comptador",
1601
- readonly: true,
1602
- string: "Consum pactat",
1603
- type: "float",
1604
- views: {},
1605
- },
1606
- facturacio: {
1607
- readonly: true,
1608
- selection: [
1609
- [1, "Mensual"],
1610
- [2, "Bimestral"],
1611
- ],
1612
- states: {
1613
- esborrany: [["readonly", false]],
1614
- modcontractual: [
1615
- ["readonly", false],
1616
- ["required", true],
1617
- ],
1618
- validar: [
1619
- ["readonly", false],
1620
- ["required", true],
1621
- ],
1622
- },
1623
- string: "Facturació",
1624
- type: "selection",
1625
- views: {},
1626
- },
1627
- facturacio_distri: {
1628
- help: "Periodicitat de facturació dedistribuidora",
1629
- readonly: true,
1630
- selection: [
1631
- [1, "Mensual"],
1632
- [2, "Bimestral"],
1633
- ],
1634
- states: {
1635
- esborrany: [["readonly", false]],
1636
- modcontractual: [["readonly", false]],
1637
- validar: [["readonly", false]],
1638
- },
1639
- string: "Facturació de distribuïdora",
1640
- type: "selection",
1641
- views: {},
1642
- },
1643
- facturacio_potencia: {
1644
- readonly: true,
1645
- selection: [
1646
- ["max", "Maxímetro"],
1647
- ["icp", "ICP"],
1648
- ["recarrec", "Recàrrec ICP"],
1649
- ],
1650
- states: {
1651
- esborrany: [["readonly", false]],
1652
- modcontractual: [
1653
- ["readonly", false],
1654
- ["required", true],
1655
- ],
1656
- validar: [
1657
- ["readonly", false],
1658
- ["required", true],
1659
- ],
1660
- },
1661
- string: "Facturación Potencia",
1662
- type: "selection",
1663
- views: {},
1664
- },
1665
- facturacio_suspesa: {
1666
- string: "Facturació Suspesa",
1667
- type: "boolean",
1668
- views: {},
1669
- },
1670
- is_autoconsum_collectiu: {
1671
- digits: [16, 2],
1672
- readonly: 1,
1673
- string: "Es col·lectiu",
1674
- type: "boolean",
1675
- views: {},
1676
- },
1677
- lectura_en_baja: {
1678
- readonly: true,
1679
- states: {
1680
- esborrany: [["readonly", false]],
1681
- modcontractual: [
1682
- ["readonly", false],
1683
- ["required", true],
1684
- ],
1685
- validar: [["readonly", false]],
1686
- },
1687
- string: "Lectura en baixa",
1688
- type: "boolean",
1689
- views: {},
1690
- },
1691
- llista_preu: {
1692
- context: "",
1693
- domain: [["type", "=", "sale"]],
1694
- readonly: true,
1695
- relation: "product.pricelist",
1696
- size: 64,
1697
- states: {
1698
- esborrany: [["readonly", false]],
1699
- modcontractual: [
1700
- ["readonly", false],
1701
- ["required", true],
1702
- ],
1703
- validar: [
1704
- ["readonly", false],
1705
- ["required", true],
1706
- ],
1707
- },
1708
- string: "Tarifa Comercialitzadora",
1709
- type: "many2one",
1710
- views: {},
1711
- },
1712
- log_ids: {
1713
- context: "",
1714
- domain: [],
1715
- inv_field: "polissa_id",
1716
- readonly: true,
1717
- relation: "giscedata.polissa.log",
1718
- string: "Històric",
1719
- type: "one2many",
1720
- views: {},
1721
- },
1722
- lot_facturacio: {
1723
- context: "",
1724
- domain: [],
1725
- relation: "giscedata.facturacio.lot",
1726
- size: 64,
1727
- string: "Lot de facturació",
1728
- type: "many2one",
1729
- views: {},
1730
- },
1731
- modcontractual_activa: {
1732
- context: "",
1733
- domain: [],
1734
- readonly: true,
1735
- relation: "giscedata.polissa.modcontractual",
1736
- size: 64,
1737
- string: "Modificació contractual actual",
1738
- type: "many2one",
1739
- views: {},
1740
- },
1741
- modcontractuals_ids: {
1742
- context: {
1743
- active_test: false,
1744
- },
1745
- domain: [],
1746
- inv_field: "polissa_id",
1747
- readonly: true,
1748
- relation: "giscedata.polissa.modcontractual",
1749
- string: "Modificacions contractuals",
1750
- type: "one2many",
1751
- views: {},
1752
- },
1753
- name: {
1754
- readonly: true,
1755
- select: true,
1756
- size: 60,
1757
- states: {
1758
- esborrany: [["readonly", false]],
1759
- },
1760
- string: "Contracte",
1761
- type: "char",
1762
- views: {},
1763
- },
1764
- name_auto: {
1765
- string: "Auto",
1766
- type: "boolean",
1767
- views: {},
1768
- },
1769
- no_cessio_sips: {
1770
- readonly: true,
1771
- selection: [
1772
- ["unactive", "Desactivat"],
1773
- ["requested", "Sol·licitat"],
1774
- ["active", "Activat"],
1775
- ],
1776
- states: {
1777
- esborrany: [["readonly", false]],
1778
- modcontractual: [["readonly", false]],
1779
- validar: [["readonly", false]],
1780
- },
1781
- string: "No cessió de SIPS",
1782
- type: "selection",
1783
- views: {},
1784
- },
1785
- no_cessio_sips_data: {
1786
- readonly: true,
1787
- states: {
1788
- esborrany: [["readonly", false]],
1789
- modcontractual: [["readonly", false]],
1790
- validar: [["readonly", false]],
1791
- },
1792
- string: "Data sol·licitud",
1793
- type: "date",
1794
- views: {},
1795
- },
1796
- nocutoff: {
1797
- context: "",
1798
- domain: [],
1799
- readonly: true,
1800
- relation: "giscedata.polissa.nocutoff",
1801
- size: 64,
1802
- states: {
1803
- esborrany: [["readonly", false]],
1804
- modcontractual: [["readonly", false]],
1805
- validar: [["readonly", false]],
1806
- },
1807
- string: "Subministrament no tallable",
1808
- type: "many2one",
1809
- views: {},
1810
- },
1811
- notificacio: {
1812
- readonly: true,
1813
- selection: [
1814
- ["titular", "Titular"],
1815
- ["pagador", "Fiscal"],
1816
- ["altre_p", "Altra"],
1817
- ],
1818
- states: {
1819
- esborrany: [["readonly", false]],
1820
- modcontractual: [
1821
- ["readonly", false],
1822
- ["required", true],
1823
- ],
1824
- validar: [
1825
- ["readonly", false],
1826
- ["required", true],
1827
- ],
1828
- },
1829
- string: "Persona notificació",
1830
- type: "selection",
1831
- views: {},
1832
- },
1833
- notificacio_email: {
1834
- digits: [16, 2],
1835
- readonly: 1,
1836
- size: 240,
1837
- string: "Email dir. notif.",
1838
- type: "char",
1839
- views: {},
1840
- },
1841
- observacions: {
1842
- string: "Observacions",
1843
- type: "text",
1844
- views: {},
1845
- },
1846
- pagador: {
1847
- context: "",
1848
- domain: [],
1849
- readonly: true,
1850
- relation: "res.partner",
1851
- select: true,
1852
- size: 40,
1853
- states: {
1854
- esborrany: [["readonly", false]],
1855
- modcontractual: [
1856
- ["readonly", false],
1857
- ["required", true],
1858
- ],
1859
- validar: [
1860
- ["readonly", false],
1861
- ["required", true],
1862
- ],
1863
- },
1864
- string: "Raó fiscal",
1865
- type: "many2one",
1866
- views: {},
1867
- },
1868
- pagador_email: {
1869
- digits: [16, 2],
1870
- readonly: 1,
1871
- size: 240,
1872
- string: "Email dir. fiscal",
1873
- type: "char",
1874
- views: {},
1875
- },
1876
- pagador_nif: {
1877
- digits: [16, 2],
1878
- readonly: true,
1879
- string: "NIF fiscal",
1880
- type: "char",
1881
- views: {},
1882
- },
1883
- pagador_sel: {
1884
- readonly: true,
1885
- selection: [
1886
- ["titular", "Titular"],
1887
- ["altre_p", "Altre"],
1888
- ],
1889
- size: 64,
1890
- states: {
1891
- esborrany: [["readonly", false]],
1892
- modcontractual: [
1893
- ["readonly", false],
1894
- ["required", true],
1895
- ],
1896
- validar: [
1897
- ["readonly", false],
1898
- ["required", true],
1899
- ],
1900
- },
1901
- string: "Persona fiscal",
1902
- type: "selection",
1903
- views: {},
1904
- },
1905
- payment_mode_id: {
1906
- context: "",
1907
- domain: [],
1908
- readonly: true,
1909
- relation: "payment.mode",
1910
- size: 64,
1911
- states: {
1912
- esborrany: [["readonly", false]],
1913
- modcontractual: [
1914
- ["readonly", false],
1915
- ["required", true],
1916
- ],
1917
- validar: [
1918
- ["readonly", false],
1919
- ["required", true],
1920
- ],
1921
- },
1922
- string: "Grup de pagament",
1923
- type: "many2one",
1924
- views: {},
1925
- },
1926
- payment_term: {
1927
- context: "",
1928
- domain: [],
1929
- readonly: true,
1930
- relation: "account.payment.term",
1931
- size: 64,
1932
- states: {
1933
- esborrany: [["readonly", false]],
1934
- modcontractual: [
1935
- ["readonly", false],
1936
- ["required", false],
1937
- ],
1938
- validar: [
1939
- ["readonly", false],
1940
- ["required", false],
1941
- ],
1942
- },
1943
- string: "Plazo de pago",
1944
- type: "many2one",
1945
- views: {},
1946
- },
1947
- pending_amount: {
1948
- digits: [16, 2],
1949
- readonly: 1,
1950
- string: "Pending amount",
1951
- type: "float",
1952
- views: {},
1953
- },
1954
- pending_state: {
1955
- digits: [16, 2],
1956
- readonly: 1,
1957
- size: 64,
1958
- string: "Pending State",
1959
- type: "char",
1960
- views: {},
1961
- },
1962
- persona_fisica: {
1963
- digits: [16, 2],
1964
- size: 2,
1965
- string: "unknown",
1966
- type: "char",
1967
- views: {},
1968
- },
1969
- potencia: {
1970
- digits: [16, 3],
1971
- readonly: true,
1972
- states: {
1973
- esborrany: [["readonly", false]],
1974
- modcontractual: [
1975
- ["readonly", false],
1976
- ["required", true],
1977
- ],
1978
- validar: [
1979
- ["readonly", false],
1980
- ["required", true],
1981
- ],
1982
- },
1983
- string: "Potència contractada (kW)",
1984
- type: "float",
1985
- views: {},
1986
- },
1987
- potencies_periode: {
1988
- context: "",
1989
- domain: [],
1990
- inv_field: "polissa_id",
1991
- readonly: true,
1992
- relation: "giscedata.polissa.potencia.contractada.periode",
1993
- states: {
1994
- esborrany: [["readonly", false]],
1995
- modcontractual: [["readonly", false]],
1996
- validar: [["readonly", false]],
1997
- },
1998
- string: "Potencies contractades per periode",
1999
- type: "one2many",
2000
- views: {
2001
- form: {
2002
- arch: '<form string="Pot&#xE8;ncia">\n <field name="periode_id" readonly="1"/>\n <field name="potencia"/>\n </form>\n ',
2003
- fields: {
2004
- periode_id: {
2005
- context: "",
2006
- domain: [],
2007
- readonly: true,
2008
- relation: "giscedata.polissa.tarifa.periodes",
2009
- required: true,
2010
- size: 64,
2011
- string: "Periode",
2012
- type: "many2one",
2013
- views: {},
2014
- },
2015
- potencia: {
2016
- digits: [15, 3],
2017
- required: true,
2018
- string: "Potencia contractada",
2019
- type: "float",
2020
- views: {},
2021
- },
2022
- },
2023
- },
2024
- tree: {
2025
- arch: '<tree string="Pot&#xE8;ncies">\n <field name="periode_id"/>\n <field name="potencia"/>\n </tree>\n ',
2026
- fields: {
2027
- periode_id: {
2028
- context: "",
2029
- domain: [],
2030
- readonly: true,
2031
- relation: "giscedata.polissa.tarifa.periodes",
2032
- required: true,
2033
- size: 64,
2034
- string: "Periode",
2035
- type: "many2one",
2036
- views: {},
2037
- },
2038
- potencia: {
2039
- digits: [15, 3],
2040
- required: true,
2041
- string: "Potencia contractada",
2042
- type: "float",
2043
- views: {},
2044
- },
2045
- },
2046
- },
2047
- },
2048
- },
2049
- print_observations: {
2050
- string: "Observacions impresses",
2051
- type: "text",
2052
- views: {},
2053
- },
2054
- process_id: {
2055
- context: "",
2056
- digits: [16, 2],
2057
- domain: [],
2058
- readonly: true,
2059
- relation: "account.invoice.pending.state.process",
2060
- required: true,
2061
- states: {
2062
- esborrany: [["readonly", false]],
2063
- modcontractual: [["readonly", false]],
2064
- validar: [["readonly", false]],
2065
- },
2066
- string: "Procés de tall",
2067
- type: "many2one",
2068
- views: {},
2069
- },
2070
- property_unitat_potencia: {
2071
- context: "",
2072
- digits: [16, 2],
2073
- domain: "[('category_id.name', '=', 'POT ELEC')]",
2074
- help: "Amb quina unitat es vol facturar la potència",
2075
- readonly: true,
2076
- relation: "product.uom",
2077
- states: {
2078
- esborrany: [["readonly", false]],
2079
- modcontractual: [
2080
- ["readonly", false],
2081
- ["required", true],
2082
- ],
2083
- validar: [
2084
- ["readonly", false],
2085
- ["required", true],
2086
- ],
2087
- },
2088
- string: "Unitat de facturació potència",
2089
- type: "many2one",
2090
- views: {},
2091
- },
2092
- propietari_bank: {
2093
- digits: [16, 2],
2094
- readonly: true,
2095
- size: 128,
2096
- string: "Propietari compte bancari",
2097
- type: "char",
2098
- views: {},
2099
- },
2100
- ref_dist: {
2101
- size: 60,
2102
- string: "Referència distribuidora",
2103
- type: "char",
2104
- views: {},
2105
- },
2106
- refacturacio_pendent: {
2107
- string: "Refacturació Pendent",
2108
- type: "boolean",
2109
- views: {},
2110
- },
2111
- related_attachments: {
2112
- context: "",
2113
- digits: [16, 2],
2114
- domain: [],
2115
- readonly: 1,
2116
- relation: "ir.attachment",
2117
- string: "Adjunts relacionats",
2118
- type: "one2many",
2119
- views: {},
2120
- },
2121
- renovacio_auto: {
2122
- string: "Renovació Automàtica",
2123
- type: "boolean",
2124
- views: {},
2125
- },
2126
- representante_id: {
2127
- context: "",
2128
- domain: [],
2129
- readonly: true,
2130
- relation: "res.partner",
2131
- size: 64,
2132
- states: {
2133
- esborrany: [["readonly", false]],
2134
- modcontractual: [["readonly", false]],
2135
- validar: [["readonly", false]],
2136
- },
2137
- string: "Representante",
2138
- type: "many2one",
2139
- views: {},
2140
- },
2141
- state: {
2142
- readonly: true,
2143
- required: true,
2144
- selection: [
2145
- ["esborrany", "Esborrany"],
2146
- ["validar", "Validar"],
2147
- ["pendent", "Pendent"],
2148
- ["activa", "Activa"],
2149
- ["cancelada", "Cancel·lada"],
2150
- ["contracte", "Activació Contracte"],
2151
- ["novapolissa", "Creació nova pòlissa"],
2152
- ["modcontractual", "Modificació Contractual"],
2153
- ["impagament", "Impagament"],
2154
- ["tall", "Tall"],
2155
- ["baixa", "Baixa"],
2156
- ["facturacio", "Facturació"],
2157
- ],
2158
- string: "Estat",
2159
- type: "selection",
2160
- views: {},
2161
- },
2162
- tarifa: {
2163
- context: "",
2164
- domain: [],
2165
- readonly: true,
2166
- relation: "giscedata.polissa.tarifa",
2167
- size: 64,
2168
- states: {
2169
- esborrany: [["readonly", false]],
2170
- modcontractual: [
2171
- ["readonly", false],
2172
- ["required", true],
2173
- ],
2174
- validar: [
2175
- ["readonly", false],
2176
- ["required", true],
2177
- ],
2178
- },
2179
- string: "Tarifa d'accés",
2180
- type: "many2one",
2181
- views: {},
2182
- },
2183
- tarifa_codi: {
2184
- digits: [16, 2],
2185
- string: "Codi Tarifa",
2186
- type: "char",
2187
- views: {},
2188
- },
2189
- tensio: {
2190
- digits: [16, 2],
2191
- readonly: 1,
2192
- string: "Tensió (v)",
2193
- type: "integer",
2194
- views: {},
2195
- },
2196
- tensio_normalitzada: {
2197
- context: "",
2198
- domain: [],
2199
- readonly: true,
2200
- relation: "giscedata.tensions.tensio",
2201
- size: 64,
2202
- states: {
2203
- esborrany: [["readonly", false]],
2204
- modcontractual: [
2205
- ["readonly", false],
2206
- ["required", true],
2207
- ],
2208
- validar: [
2209
- ["readonly", false],
2210
- ["required", true],
2211
- ],
2212
- },
2213
- string: "Tensió normalitzada",
2214
- type: "many2one",
2215
- views: {},
2216
- },
2217
- tg: {
2218
- help: "Telegestió operativa amb o sense corba de càrrega (CCH)",
2219
- readonly: true,
2220
- selection: [
2221
- ["1", "Operativa amb CCH"],
2222
- ["2", "No operativa"],
2223
- ["3", "Operativa Sense CCH"],
2224
- ],
2225
- states: {
2226
- esborrany: [["readonly", false]],
2227
- modcontractual: [["readonly", false]],
2228
- validar: [["readonly", false]],
2229
- },
2230
- string: "Telegestió",
2231
- type: "selection",
2232
- views: {},
2233
- },
2234
- tipo_pago: {
2235
- context: "",
2236
- domain: [],
2237
- readonly: true,
2238
- relation: "payment.type",
2239
- size: 64,
2240
- states: {
2241
- esborrany: [["readonly", false]],
2242
- modcontractual: [
2243
- ["readonly", false],
2244
- ["required", true],
2245
- ],
2246
- validar: [
2247
- ["readonly", false],
2248
- ["required", true],
2249
- ],
2250
- },
2251
- string: "Tipo de pago",
2252
- type: "many2one",
2253
- views: {},
2254
- },
2255
- tipus_vivenda: {
2256
- readonly: true,
2257
- selection: [
2258
- ["habitual", "Habitual"],
2259
- ["no_habitual", "No habitual"],
2260
- ],
2261
- states: {
2262
- esborrany: [["readonly", false]],
2263
- modcontractual: [["readonly", false]],
2264
- validar: [["readonly", false]],
2265
- },
2266
- string: "Tipus vivenda",
2267
- type: "selection",
2268
- views: {},
2269
- },
2270
- titular: {
2271
- context: "",
2272
- domain: [],
2273
- readonly: true,
2274
- relation: "res.partner",
2275
- size: 40,
2276
- states: {
2277
- esborrany: [["readonly", false]],
2278
- validar: [
2279
- ["readonly", false],
2280
- ["required", true],
2281
- ],
2282
- },
2283
- string: "Titular",
2284
- type: "many2one",
2285
- views: {},
2286
- },
2287
- titular_nif: {
2288
- digits: [16, 2],
2289
- readonly: true,
2290
- string: "NIF titular",
2291
- type: "char",
2292
- views: {},
2293
- },
2294
- trafo: {
2295
- readonly: true,
2296
- states: {
2297
- esborrany: [["readonly", false]],
2298
- modcontractual: [
2299
- ["readonly", false],
2300
- ["required", true],
2301
- ],
2302
- validar: [["readonly", false]],
2303
- },
2304
- string: "Trafo KVA",
2305
- type: "float",
2306
- views: {},
2307
- },
2308
- unpaid_invoices: {
2309
- digits: [16, 2],
2310
- readonly: 1,
2311
- string: "Unpaid invoices",
2312
- type: "integer",
2313
- views: {},
2314
- },
2315
- user_id: {
2316
- context: "",
2317
- domain: [],
2318
- relation: "res.users",
2319
- size: 64,
2320
- string: "Comercial",
2321
- type: "many2one",
2322
- views: {},
2323
- },
2324
- versio_primera_factura: {
2325
- context: "",
2326
- domain: [],
2327
- help: "Estableix la versió de la llista de preus que s'utilitzarà per la primera facturació.",
2328
- readonly: true,
2329
- relation: "product.pricelist.version",
2330
- size: 64,
2331
- states: {
2332
- esborrany: [["readonly", false]],
2333
- modcontractual: [
2334
- ["readonly", false],
2335
- ["required", false],
2336
- ],
2337
- validar: [
2338
- ["readonly", false],
2339
- ["required", false],
2340
- ],
2341
- },
2342
- string: "Versió primera facturació",
2343
- type: "many2one",
2344
- views: {},
2345
- },
2346
- },
2347
- model: "giscedata.polissa",
2348
- name: "giscedata.polissa.form",
2349
- search_fields: {
2350
- primary: [
2351
- "active",
2352
- "distribuidora",
2353
- "ref_dist",
2354
- "titular",
2355
- "cups",
2356
- "cups_direccio",
2357
- "tarifa",
2358
- "potencia",
2359
- "tipus_vivenda",
2360
- "facturacio",
2361
- "lot_facturacio",
2362
- "llista_preu",
2363
- "titular_nif",
2364
- "pagador",
2365
- "direccio_pagament",
2366
- "comercial_id",
2367
- "observacions",
2368
- "comptador",
2369
- "state",
2370
- "name",
2371
- ],
2372
- secondary: [
2373
- "payment_term",
2374
- "autoconsumo",
2375
- "data_ultima_lectura",
2376
- "pending_state",
2377
- "contract_type",
2378
- "direccio_notificacio",
2379
- "condicions_generals_id",
2380
- "codigo_promocional",
2381
- "tensio_normalitzada",
2382
- "unpaid_invoices",
2383
- "payment_mode_id",
2384
- "data_alta",
2385
- "tg",
2386
- "data_firma_contracte",
2387
- "data_baixa",
2388
- "facturacio_suspesa",
2389
- "lectura_en_baja",
2390
- "process_id",
2391
- "cups_cp",
2392
- "renovacio_auto",
2393
- "cups_poblacio",
2394
- "facturacio_potencia",
2395
- "debt_amount",
2396
- "cnae",
2397
- "pending_amount",
2398
- ],
2399
- },
2400
- toolbar: {
2401
- action: [
2402
- {
2403
- auto_refresh: 0,
2404
- context: "{}",
2405
- domain: false,
2406
- groups_id: [],
2407
- id: 1704,
2408
- limit: 80,
2409
- name: "Facturar comissions comercial",
2410
- res_model: "wizard.facturar.comissio.from.polissa",
2411
- src_model: false,
2412
- string: "Facturar comissions comercial",
2413
- target: "new",
2414
- type: "ir.actions.act_window",
2415
- usage: false,
2416
- view_id: [1953, "wizard.facturar.comissio.from.polissa.form"],
2417
- view_ids: [],
2418
- view_mode: "form",
2419
- view_type: "form",
2420
- views: [[1953, "form"]],
2421
- },
2422
- {
2423
- auto_refresh: 0,
2424
- context: "{}",
2425
- domain: false,
2426
- groups_id: [],
2427
- id: 1509,
2428
- limit: 80,
2429
- name: "Generar cas Gestió ATR",
2430
- res_model: "giscedata.switching.polissa.c101.wizard",
2431
- src_model: false,
2432
- string: "Generar cas Gestió ATR",
2433
- target: "new",
2434
- type: "ir.actions.act_window",
2435
- usage: false,
2436
- view_id: [1661, "wizard.switching.polissa.c101.form"],
2437
- view_ids: [],
2438
- view_mode: "form",
2439
- view_type: "form",
2440
- views: [[1661, "form"]],
2441
- },
2442
- {
2443
- auto_refresh: 0,
2444
- context: "{}",
2445
- domain: false,
2446
- groups_id: [],
2447
- id: 1505,
2448
- limit: 80,
2449
- name: "Update contract SIPS data",
2450
- res_model: "wizard.update.contract.sips.data",
2451
- src_model: false,
2452
- string: "Update contract SIPS data",
2453
- target: "new",
2454
- type: "ir.actions.act_window",
2455
- usage: false,
2456
- view_id: [1655, "wizard.update.contract.sips.data.form"],
2457
- view_ids: [],
2458
- view_mode: "form",
2459
- view_type: "form",
2460
- views: [[1655, "form"]],
2461
- },
2462
- {
2463
- auto_refresh: 0,
2464
- context: "{'model': 'giscedata.polissa'}",
2465
- domain: false,
2466
- groups_id: [],
2467
- id: 1616,
2468
- limit: 80,
2469
- name: "Càrrega de lectures de Pool",
2470
- res_model: "giscedata.lectures.pool.wizard",
2471
- src_model: false,
2472
- string: "Càrrega de lectures de Pool",
2473
- target: "new",
2474
- type: "ir.actions.act_window",
2475
- usage: false,
2476
- view_id: false,
2477
- view_ids: [],
2478
- view_mode: "form",
2479
- view_type: "form",
2480
- views: [[1830, "form"]],
2481
- },
2482
- {
2483
- auto_refresh: 0,
2484
- context: "{}",
2485
- domain: false,
2486
- groups_id: [],
2487
- id: 1469,
2488
- limit: 80,
2489
- name: "Canvi de compte",
2490
- res_model: "wizard.bank.account.change",
2491
- src_model: false,
2492
- string: "Canvi de compte",
2493
- target: "new",
2494
- type: "ir.actions.act_window",
2495
- usage: false,
2496
- view_id: false,
2497
- view_ids: [],
2498
- view_mode: "form",
2499
- view_type: "form",
2500
- views: [[1609, "form"]],
2501
- },
2502
- {
2503
- auto_refresh: 0,
2504
- context: "{}",
2505
- domain: false,
2506
- groups_id: [],
2507
- id: 1464,
2508
- limit: 80,
2509
- name: "Avançar facturació",
2510
- res_model: "wizard.avancar.facturacio",
2511
- src_model: false,
2512
- string: "Avançar facturació",
2513
- target: "new",
2514
- type: "ir.actions.act_window",
2515
- usage: false,
2516
- view_id: false,
2517
- view_ids: [],
2518
- view_mode: "form",
2519
- view_type: "form",
2520
- views: [[1600, "form"]],
2521
- },
2522
- {
2523
- auto_refresh: 0,
2524
- context: "{}",
2525
- domain: false,
2526
- groups_id: [],
2527
- id: 1463,
2528
- limit: 80,
2529
- name: "Canvi de dades fiscals i compte",
2530
- res_model: "wizard.payer.change",
2531
- src_model: false,
2532
- string: "Canvi de dades fiscals i compte",
2533
- target: "new",
2534
- type: "ir.actions.act_window",
2535
- usage: false,
2536
- view_id: false,
2537
- view_ids: [],
2538
- view_mode: "form",
2539
- view_type: "form",
2540
- views: [[1599, "form"]],
2541
- },
2542
- {
2543
- auto_refresh: 0,
2544
- context: "{'model': 'giscedata.polissa'}",
2545
- domain: false,
2546
- groups_id: [],
2547
- id: 1431,
2548
- limit: 80,
2549
- name: "Devolució diposit",
2550
- res_model: "wizard.refund.deposit",
2551
- src_model: false,
2552
- string: "Devolució diposit",
2553
- target: "new",
2554
- type: "ir.actions.act_window",
2555
- usage: false,
2556
- view_id: false,
2557
- view_ids: [],
2558
- view_mode: "form",
2559
- view_type: "form",
2560
- views: [[1554, "form"]],
2561
- },
2562
- {
2563
- auto_refresh: 0,
2564
- context: "{}",
2565
- domain: false,
2566
- groups_id: [],
2567
- id: 1367,
2568
- limit: 80,
2569
- name: "Afegir polisses a un lot",
2570
- res_model: "wizard.afegir.polisses.lot",
2571
- src_model: false,
2572
- string: "Afegir polisses a un lot",
2573
- target: "new",
2574
- type: "ir.actions.act_window",
2575
- usage: false,
2576
- view_id: false,
2577
- view_ids: [],
2578
- view_mode: "form",
2579
- view_type: "form",
2580
- views: [[1490, "form"]],
2581
- },
2582
- {
2583
- auto_refresh: 0,
2584
- context: "{}",
2585
- domain: false,
2586
- groups_id: [],
2587
- id: 434,
2588
- limit: 80,
2589
- name: "Actualitzar data firma contracte",
2590
- res_model: "wizard.update.data.firma.contracte",
2591
- src_model: false,
2592
- string: "Actualitzar data firma contracte",
2593
- target: "new",
2594
- type: "ir.actions.act_window",
2595
- usage: false,
2596
- view_id: false,
2597
- view_ids: [],
2598
- view_mode: "form",
2599
- view_type: "form",
2600
- views: [[496, "form"]],
2601
- },
2602
- {
2603
- auto_refresh: 0,
2604
- context: "{'default_polissa_id': active_id}",
2605
- domain: false,
2606
- groups_id: [],
2607
- id: 433,
2608
- limit: 80,
2609
- name: "Actualitzar data d'alta",
2610
- res_model: "wizard.update.data.alta",
2611
- src_model: false,
2612
- string: "Actualitzar data d'alta",
2613
- target: "new",
2614
- type: "ir.actions.act_window",
2615
- usage: false,
2616
- view_id: false,
2617
- view_ids: [],
2618
- view_mode: "form",
2619
- view_type: "form",
2620
- views: [[495, "form"]],
2621
- },
2622
- {
2623
- auto_refresh: 0,
2624
- context: "{'model_name': 'giscedata.polissa'}",
2625
- domain: false,
2626
- groups_id: [],
2627
- id: 1658,
2628
- limit: 80,
2629
- name: "Buscar Procesos de Firma",
2630
- res_model: "wizard.signature.model",
2631
- src_model: false,
2632
- string: "Buscar Procesos de Firma",
2633
- target: "new",
2634
- type: "ir.actions.act_window",
2635
- usage: false,
2636
- view_id: false,
2637
- view_ids: [],
2638
- view_mode: "form",
2639
- view_type: "form",
2640
- views: [[1837, "form"]],
2641
- },
2642
- {
2643
- auto_refresh: 0,
2644
- context: "{}",
2645
- domain: false,
2646
- groups_id: [],
2647
- id: 1657,
2648
- limit: 80,
2649
- name: "Signar contracte digitalment",
2650
- res_model: "wizard.signar.contracte.esborrany",
2651
- src_model: false,
2652
- string: "Signar contracte digitalment",
2653
- target: "new",
2654
- type: "ir.actions.act_window",
2655
- usage: false,
2656
- view_id: false,
2657
- view_ids: [],
2658
- view_mode: "form",
2659
- view_type: "form",
2660
- views: [[1915, "form"]],
2661
- },
2662
- {
2663
- auto_refresh: 0,
2664
- context: "{'model':'giscedata.polissa'}",
2665
- domain: false,
2666
- groups_id: [],
2667
- id: 1650,
2668
- limit: 80,
2669
- name: "Generar Casos",
2670
- res_model: "wizard.create.case",
2671
- src_model: false,
2672
- string: "Generar Casos",
2673
- target: "new",
2674
- type: "ir.actions.act_window",
2675
- usage: false,
2676
- view_id: false,
2677
- view_ids: [],
2678
- view_mode: "form",
2679
- view_type: "form",
2680
- views: [[1852, "form"]],
2681
- },
2682
- ],
2683
- print: [
2684
- {
2685
- attachment: false,
2686
- attachment_use: false,
2687
- auto: true,
2688
- context: "{}",
2689
- groups_id: [],
2690
- header: false,
2691
- id: 956,
2692
- jasper_file_ids: [],
2693
- jasper_model_id: false,
2694
- jasper_output: false,
2695
- jasper_report: false,
2696
- model: "giscedata.polissa",
2697
- multi: false,
2698
- name: "Fitxa contracte",
2699
- report_name: "fitxa_contracte",
2700
- report_type: "pdf",
2701
- report_webkit: false,
2702
- report_webkit_data: false,
2703
- report_xml: false,
2704
- report_xsl: false,
2705
- signature_in_coordinates: false,
2706
- string: "Fitxa contracte",
2707
- type: "ir.actions.report.xml",
2708
- usage: false,
2709
- webkit_debug: false,
2710
- webkit_flags: false,
2711
- webkit_header: [1, "Base Sample"],
2712
- webkit_sign: false,
2713
- },
2714
- {
2715
- attachment: false,
2716
- attachment_use: false,
2717
- auto: false,
2718
- context: "{}",
2719
- groups_id: [],
2720
- header: false,
2721
- id: 436,
2722
- jasper_file_ids: [],
2723
- jasper_model_id: false,
2724
- jasper_output: false,
2725
- jasper_report: false,
2726
- model: "giscedata.polissa",
2727
- multi: false,
2728
- name: "Informe mod. contractuales",
2729
- report_name: "modcon",
2730
- report_type: "webkit",
2731
- report_webkit: "giscedata_polissa/report/modcon_report.mako",
2732
- report_webkit_data: false,
2733
- report_xml: false,
2734
- report_xsl: false,
2735
- signature_in_coordinates: false,
2736
- string: "Informe mod. contractuales",
2737
- type: "ir.actions.report.xml",
2738
- usage: false,
2739
- webkit_debug: false,
2740
- webkit_flags: false,
2741
- webkit_header: [2, "Sense fons header"],
2742
- webkit_sign: false,
2743
- },
2744
- {
2745
- attachment: false,
2746
- attachment_use: false,
2747
- auto: false,
2748
- context: "{}",
2749
- groups_id: [],
2750
- header: false,
2751
- id: 435,
2752
- jasper_file_ids: [],
2753
- jasper_model_id: false,
2754
- jasper_output: false,
2755
- jasper_report: false,
2756
- model: "giscedata.polissa",
2757
- multi: false,
2758
- name: "Contracte",
2759
- report_name: "giscedata.polissa",
2760
- report_type: "webkit",
2761
- report_webkit: "giscedata_polissa_comer/report/contracte.mako",
2762
- report_webkit_data: false,
2763
- report_xml: false,
2764
- report_xsl: false,
2765
- signature_in_coordinates:
2766
- '[{"top": 81, "left": 17, "height": 10, "width": 22}]',
2767
- string: "Contracte",
2768
- type: "ir.actions.report.xml",
2769
- usage: false,
2770
- webkit_debug: false,
2771
- webkit_flags: false,
2772
- webkit_header: [3, "Generic contract"],
2773
- webkit_sign: false,
2774
- },
2775
- ],
2776
- relate: [
2777
- {
2778
- auto_refresh: 0,
2779
- context: "{}",
2780
- domain: "[('cups_polissa_id', '=', active_id)]",
2781
- groups_id: [],
2782
- id: 1591,
2783
- limit: 0,
2784
- name: "Casos ATR",
2785
- res_model: "giscedata.switching",
2786
- src_model: "giscedata.polissa",
2787
- string: "Casos ATR",
2788
- target: "current",
2789
- type: "ir.actions.act_window",
2790
- usage: "",
2791
- view_id: false,
2792
- view_ids: [],
2793
- view_mode: "tree,form",
2794
- view_type: "form",
2795
- views: [
2796
- [1667, "tree"],
2797
- [1666, "form"],
2798
- ],
2799
- },
2800
- {
2801
- auto_refresh: 0,
2802
- context: "{}",
2803
- domain:
2804
- "[('ref', '=', name), ('product_id.default_code', '=', 'CON06')]",
2805
- groups_id: [],
2806
- id: 1441,
2807
- limit: 80,
2808
- name: "Moviments de fiances",
2809
- res_model: "account.move.line",
2810
- src_model: "res.partner",
2811
- string: "Moviments de fiances",
2812
- target: "current",
2813
- type: "ir.actions.act_window",
2814
- usage: false,
2815
- view_id: [184, "account.move.line.tree"],
2816
- view_ids: [],
2817
- view_mode: "tree,form",
2818
- view_type: "form",
2819
- views: [
2820
- [184, "tree"],
2821
- [185, "form"],
2822
- ],
2823
- },
2824
- {
2825
- auto_refresh: 0,
2826
- context: "{}",
2827
- domain: "[('polissa_id', '=', active_id)]",
2828
- groups_id: [],
2829
- id: 1411,
2830
- limit: 80,
2831
- name: "Factura manual",
2832
- res_model: "wizard.manual.invoice",
2833
- src_model: false,
2834
- string: "Factura manual",
2835
- target: "new",
2836
- type: "ir.actions.act_window",
2837
- usage: false,
2838
- view_id: false,
2839
- view_ids: [],
2840
- view_mode: "form",
2841
- view_type: "form",
2842
- views: [[1532, "form"]],
2843
- },
2844
- {
2845
- auto_refresh: 0,
2846
- context: "{}",
2847
- domain: "[('reference','=','giscedata.polissa,%d'%active_id)]",
2848
- groups_id: [],
2849
- id: 1405,
2850
- limit: 80,
2851
- name: "Mandatos",
2852
- res_model: "payment.mandate",
2853
- src_model: "giscedata.polissa",
2854
- string: "Mandatos",
2855
- target: "current",
2856
- type: "ir.actions.act_window",
2857
- usage: false,
2858
- view_id: false,
2859
- view_ids: [],
2860
- view_mode: "tree,form",
2861
- view_type: "form",
2862
- views: [
2863
- [1086, "tree"],
2864
- [1087, "form"],
2865
- ],
2866
- },
2867
- {
2868
- auto_refresh: 0,
2869
- context: "{'active_test': False}",
2870
- domain: "[('polissa_id','=', active_id)]",
2871
- groups_id: [],
2872
- id: 1394,
2873
- limit: 80,
2874
- name: "Extra lines",
2875
- res_model: "giscedata.facturacio.extra",
2876
- src_model: "giscedata.polissa",
2877
- string: "Extra lines",
2878
- target: "current",
2879
- type: "ir.actions.act_window",
2880
- usage: false,
2881
- view_id: false,
2882
- view_ids: [],
2883
- view_mode: "tree,form",
2884
- view_type: "form",
2885
- views: [
2886
- [1514, "tree"],
2887
- [1515, "form"],
2888
- ],
2889
- },
2890
- {
2891
- auto_refresh: 0,
2892
- context: "{}",
2893
- domain: "[('polissa_id', '=', active_id)]",
2894
- groups_id: [],
2895
- id: 1388,
2896
- limit: 80,
2897
- name: "Contractes Lot",
2898
- res_model: "giscedata.facturacio.contracte_lot",
2899
- src_model: "giscedata.polissa",
2900
- string: "Contractes Lot",
2901
- target: "current",
2902
- type: "ir.actions.act_window",
2903
- usage: false,
2904
- view_id: [1510, "giscedata.facturacio.contracte_lot.tree"],
2905
- view_ids: [],
2906
- view_mode: "tree,form",
2907
- view_type: "form",
2908
- views: [
2909
- [1510, "tree"],
2910
- [1511, "form"],
2911
- ],
2912
- },
2913
- {
2914
- auto_refresh: 0,
2915
- context: "{}",
2916
- domain: "[('polissa_id', '=', active_id), ('state', '=', 'open')]",
2917
- groups_id: [],
2918
- id: 1381,
2919
- limit: 80,
2920
- name: "Factures obertes",
2921
- res_model: "giscedata.facturacio.factura",
2922
- src_model: "giscedata.polissa",
2923
- string: "Factures obertes",
2924
- target: "current",
2925
- type: "ir.actions.act_window",
2926
- usage: false,
2927
- view_id: [1495, "giscedata.facturacio.factura.tree"],
2928
- view_ids: [],
2929
- view_mode: "tree,form",
2930
- view_type: "form",
2931
- views: [
2932
- [1495, "tree"],
2933
- [false, "form"],
2934
- ],
2935
- },
2936
- {
2937
- auto_refresh: 0,
2938
- context: "{}",
2939
- domain:
2940
- "[('polissa_id', '=', active_id),('type','in',('in_refund', 'in_invoice'))]",
2941
- groups_id: [],
2942
- id: 1380,
2943
- limit: 80,
2944
- name: "Factures Proveïdor",
2945
- res_model: "giscedata.facturacio.factura",
2946
- src_model: "giscedata.polissa",
2947
- string: "Factures Proveïdor",
2948
- target: "current",
2949
- type: "ir.actions.act_window",
2950
- usage: false,
2951
- view_id: [1495, "giscedata.facturacio.factura.tree"],
2952
- view_ids: [],
2953
- view_mode: "tree,form",
2954
- view_type: "form",
2955
- views: [
2956
- [1495, "tree"],
2957
- [false, "form"],
2958
- ],
2959
- },
2960
- {
2961
- auto_refresh: 0,
2962
- context: "{}",
2963
- domain:
2964
- "[('polissa_id', '=', active_id),('type','in',('out_refund', 'out_invoice'))]",
2965
- groups_id: [],
2966
- id: 1379,
2967
- limit: 80,
2968
- name: "Factures Client",
2969
- res_model: "giscedata.facturacio.factura",
2970
- src_model: "giscedata.polissa",
2971
- string: "Factures Client",
2972
- target: "current",
2973
- type: "ir.actions.act_window",
2974
- usage: false,
2975
- view_id: [1495, "giscedata.facturacio.factura.tree"],
2976
- view_ids: [],
2977
- view_mode: "tree,form",
2978
- view_type: "form",
2979
- views: [
2980
- [1495, "tree"],
2981
- [false, "form"],
2982
- ],
2983
- },
2984
- {
2985
- auto_refresh: 0,
2986
- context: "{}",
2987
- domain: "[('polissa_id', '=', active_id)]",
2988
- groups_id: [],
2989
- id: 1378,
2990
- limit: 80,
2991
- name: "Factures",
2992
- res_model: "giscedata.facturacio.factura",
2993
- src_model: "giscedata.polissa",
2994
- string: "Factures",
2995
- target: "current",
2996
- type: "ir.actions.act_window",
2997
- usage: false,
2998
- view_id: [1495, "giscedata.facturacio.factura.tree"],
2999
- view_ids: [],
3000
- view_mode: "tree,form",
3001
- view_type: "form",
3002
- views: [
3003
- [1495, "tree"],
3004
- [false, "form"],
3005
- ],
3006
- },
3007
- {
3008
- auto_refresh: 0,
3009
- context: "{}",
3010
- domain: "[('polissa', '=', active_id)]",
3011
- groups_id: [],
3012
- id: 940,
3013
- limit: 80,
3014
- name: "Comptadors",
3015
- res_model: "giscedata.lectures.comptador",
3016
- src_model: "giscedata.polissa",
3017
- string: "Comptadors",
3018
- target: "current",
3019
- type: "ir.actions.act_window",
3020
- usage: false,
3021
- view_id: false,
3022
- view_ids: [],
3023
- view_mode: "tree,form",
3024
- view_type: "form",
3025
- views: [
3026
- [1033, "tree"],
3027
- [1032, "form"],
3028
- ],
3029
- },
3030
- {
3031
- auto_refresh: 0,
3032
- context: "{}",
3033
- domain: "[('cups_id', '=', cups)]",
3034
- groups_id: [],
3035
- id: 1500,
3036
- limit: 80,
3037
- name: "Bulletins",
3038
- res_model: "giscedata.butlleti",
3039
- src_model: "giscedata.polissa",
3040
- string: "Bulletins",
3041
- target: "current",
3042
- type: "ir.actions.act_window",
3043
- usage: false,
3044
- view_id: false,
3045
- view_ids: [],
3046
- view_mode: "tree,form",
3047
- view_type: "form",
3048
- views: [
3049
- [1645, "tree"],
3050
- [1646, "form"],
3051
- ],
3052
- },
3053
- {
3054
- auto_refresh: 0,
3055
- context: "{'active_test': False}",
3056
- domain: "[('polissa_id', '=', active_id)]",
3057
- groups_id: [],
3058
- id: 424,
3059
- limit: 80,
3060
- name: "Modificacions Contractuals",
3061
- res_model: "giscedata.polissa.modcontractual",
3062
- src_model: "giscedata.polissa",
3063
- string: "Modificacions Contractuals",
3064
- target: "current",
3065
- type: "ir.actions.act_window",
3066
- usage: false,
3067
- view_id: [485, "giscedata.polissa.modcontractual.tree.llistat"],
3068
- view_ids: [],
3069
- view_mode: "tree,form",
3070
- view_type: "form",
3071
- views: [
3072
- [485, "tree"],
3073
- [488, "form"],
3074
- ],
3075
- },
3076
- {
3077
- auto_refresh: 0,
3078
- context: "{}",
3079
- domain: "[('polissa_id','=',active_id)]",
3080
- groups_id: [],
3081
- id: 1651,
3082
- limit: 80,
3083
- name: "Casos",
3084
- res_model: "crm.case",
3085
- src_model: "giscedata.polissa",
3086
- string: "Casos",
3087
- target: "current",
3088
- type: "ir.actions.act_window",
3089
- usage: false,
3090
- view_id: false,
3091
- view_ids: [],
3092
- view_mode: "tree,form",
3093
- view_type: "form",
3094
- views: [
3095
- [1623, "tree"],
3096
- [1624, "form"],
3097
- ],
3098
- },
3099
- {
3100
- auto_refresh: 0,
3101
- context: "{}",
3102
- domain: "[('id', '=', active_id)]",
3103
- groups_id: [],
3104
- id: -1,
3105
- limit: 0,
3106
- name: "Polissa d'un Client",
3107
- res_model: "giscedata.polissa",
3108
- src_model: "giscedata.polissa",
3109
- string: "Polissa d'un Client",
3110
- target: "current",
3111
- type: "ir.actions.act_window",
3112
- usage: "",
3113
- view_id: false,
3114
- view_ids: [],
3115
- view_mode: "tree,form",
3116
- view_type: "form",
3117
- views: [
3118
- [false, "tree"],
3119
- [false, "form"],
3120
- ],
3121
- },
3122
- ],
3123
- },
3124
- type: "form",
3125
- view_id: 479,
3126
- },
3127
- };