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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +6 -8
  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,937 +0,0 @@
1
- export default {
2
- model: "giscedata.cups.ps",
3
- exampleValues: {
4
- aclarador: "aclaridor",
5
- active: true,
6
- autoconsum_id: false,
7
- ax: 347.21,
8
- bq: 347.21,
9
- butlletins: [],
10
- catas_bq: false,
11
- catas_cpa: false,
12
- catas_cpo: false,
13
- catas_cv: false,
14
- catas_dp: false,
15
- catas_es: false,
16
- catas_ldt: false,
17
- catas_nm: false,
18
- catas_np: false,
19
- catas_nv: false,
20
- catas_pnp: false,
21
- catas_pt: false,
22
- catas_pu: false,
23
- catas_tv: false,
24
- coef_repartiment: false,
25
- cpa: false,
26
- cpo: false,
27
- direccio: "carrer inventat 1 1 1 6 aclaridor 00001 (Poble de Prova)",
28
- distribuidora_id: [1, "Tiny sprl"],
29
- dp: "00001",
30
- es: "1",
31
- force_potencia_adscrita: false,
32
- hist_autoconsum: [],
33
- id: 9,
34
- id_municipi: [1, "Alegría-Dulantzi"],
35
- id_poblacio: [1, "Poble de Prova"],
36
- id_provincia: [54, "Araba/Álava"],
37
- name: "ES0112000000100295SE",
38
- notes:
39
- "notes notes***Cambios detectados***\nFecha: 22-06-2020 23:10, Usuario: Administrator (admin)\n• Direcció Principal: False → carrer inventat 1 1 1 6 aclaridor 00001 (Poble de Prova)\n\n",
40
- nv: "carrer inventat",
41
- pnp: "1",
42
- polissa_comptador: false,
43
- polissa_polissa: false,
44
- polissa_potencia: false,
45
- polisses: [],
46
- potencia_adscrita: false,
47
- pt: "1",
48
- pu: "6",
49
- ref_catastral: "referencia catastral",
50
- tv: false,
51
- state: "baixa",
52
- },
53
- form: {
54
- arch: '<form string="CUPS">\n <button type="action" name="417" string="readonly1" icon="gtk-print" readonly="1"/><button type="action" name="417" string="readonly0" icon="gtk-print" readonly="0"/><button type="action" name="417" string="readonlyVariable1" icon="gtk-print" attrs="{\'readonly\':[(\'state\',\'!=\',\'actiu\')]}"/><button type="action" name="417" string="readonlyVariable2" icon="gtk-print" attrs="{\'readonly\':[(\'state\',\'==\',\'actiu\')]}"/> <button type="object" name="417" string="readonly1" icon="gtk-print" readonly="1"/><button type="object" name="417" string="readonly0" icon="gtk-print" readonly="0"/><button type="object" name="417" string="readonlyVariable3" icon="gtk-print" attrs="{\'readonly\':[(\'state\',\'!=\',\'actiu\')]}"/><button type="object" name="417" string="readonlyVariable4" icon="gtk-print" attrs="{\'readonly\':[(\'state\',\'==\',\'actiu\')]}"/> <notebook colspan="4">\n <page string="Corbes"> <group colspan="4"> <group string="Validada" colspan="2"> <field name="ax" string="AX"/> <field name="bq" string="Format"/> </group> <group string="Facturada" colspan="2"> <field name="bq" string="Última corba"/> <field name="bq" string="Format"/> </group> <group string="Autoconsumida" colspan="2"> <field name="bq" string="Última corba"/> <field name="bq" string="Format"/> </group> <group string="Generada Neta" colspan="2"> <field name="bq" string="Última corba"/> <field name="bq" string="Format"/> </group> <group string="Quart-Horària" colspan="2"> <field name="bq1" string="Última corba"/> <field name="bq" string="Format"/> </group> </group> </page> <page string="General">\n <field name="name" select="1" size="25"/>\n <field name="active" select="1"/>\n <field name="distribuidora_id" domain="[(\'supplier\',\'=\',True)]" context="{\'task\': \'test\'}" required="1" select="1"/>\n <field name="id_municipi" select="1"/>\n <field name="id_provincia"/>\n <field name="id_poblacio" select="1" domain="[(\'municipi_id.id\', \'=\', id_municipi)]"/>\n <field name="dp"/>\n <field name="direccio" select="1" colspan="4"/>\n <field name="polissa_polissa" select="1"/>\n <field name="polissa_comptador" select="1"/>\n <field name="polissa_potencia"/>\n <field name="potencia_adscrita" attrs="{\'readonly\':[(\'force_potencia_adscrita\',\'=\',0)]}"/>\n <field name="force_potencia_adscrita"/>\n <group colspan="4" string="Adreces">\n <notebook colspan="4">\n <page string="Principal">\n <separator string="Zona urbana" colspan="4"/>\n <field name="tv"/>\n <field name="nv" select="1"/>\n <field name="pnp" select="1"/>\n <field name="bq" select="1"/>\n <field name="es" select="1"/>\n <field name="pt" select="1"/>\n <field name="pu" select="1"/>\n <field name="aclarador" colspan="4" select="1"/>\n <separator string="Zona industrial" colspan="4"/>\n <field name="cpo" select="1"/>\n <field name="cpa" select="1"/>\n </page>\n <page string="Cadastre">\n <separator string="Zona urbana" colspan="4"/>\n <field name="catas_np"/>\n <field name="catas_nm"/>\n <field name="ref_catastral" select="1"/>\n <button type="object" name="update_dir_from_ref" string="Obtenir del Cadastre"/>\n <button type="object" name="delete_dir_ref" string="Eliminar dades del Cadastre" confirm="Està segur que vol eliminar les dades que s\'han obtingut del cadastre?"/>\n <field name="catas_ldt" colspan="4"/>\n <field name="catas_tv"/>\n <field name="catas_nv"/>\n <field name="catas_pnp"/>\n <field name="catas_bq"/>\n <field name="catas_es"/>\n <field name="catas_pt"/>\n <field name="catas_pu"/>\n <field name="catas_dp"/>\n <separator string="Zona industrial" colspan="4"/>\n <field name="catas_cpo"/>\n <field name="catas_cpa"/>\n <separator string="Sincronització amb el cadastre" colspan="4"/>\n <label colspan="2" string="Si disposa de la referencia cadastral pot copiar les dades del cadastre a l\'adreça principal mitjançant aquest botó"/>\n <button type="object" name="copy_to_alternative" string="Copiar a la principal"/>\n </page>\n <page string="Notes">\n <field name="notes" colspan="4" nolabel="1"/>\n </page>\n </notebook>\n </group>\n </page>\n <page string="Autoconsum">\n <field name="autoconsum_id" readonly="1" colspan="4"/>\n <field name="coef_repartiment" readonly="1" colspan="4"/>\n </page>\n <page string="Butlletins">\n <field name="butlletins" colspan="4" nolabel="1" context="{\'cups_id\': active_id}"/>\n </page>\n <page string="Històric d\'autoconsums">\n <field name="hist_autoconsum" nolabel="1" context="{\'default_cups_id\': active_id}" readonly="1"/>\n </page>\n <page string="Històric de pòlisses">\n <field name="polisses" nolabel="1" colspan="4">\n </field>\n </page>\n </notebook>\n </form>',
55
- field_parent: false,
56
- fields: {
57
- state: {
58
- readonly: true,
59
- required: true,
60
- selection: [
61
- ["esborrany", "Esborrany"],
62
- ["actiu", "Actiu"],
63
- ["pendent", "Pendent d'activació"],
64
- ["baixa", "Baixa"],
65
- ["baixa2", "Baixa per modificació"],
66
- ["baixa3", "Baixa per renovació"],
67
- ["baixa4", "Baixa per nova pòlissa"],
68
- ],
69
- string: "Estat",
70
- type: "selection",
71
- views: {},
72
- },
73
- aclarador: {
74
- size: 256,
75
- string: "Aclarador",
76
- type: "char",
77
- views: {},
78
- },
79
- active: {
80
- string: "Actiu",
81
- type: "boolean",
82
- views: {},
83
- },
84
- autoconsum_id: {
85
- context: "",
86
- domain: [],
87
- relation: "giscedata.autoconsum",
88
- size: 64,
89
- string: "Autoconsum",
90
- type: "many2one",
91
- views: {},
92
- },
93
- ax: {
94
- size: 4,
95
- string: "Bloc",
96
- type: "integer",
97
- views: {},
98
- },
99
- bq: {
100
- size: 4,
101
- string: "Bloc",
102
- type: "integer",
103
- views: {},
104
- },
105
- bq1: {
106
- size: 4,
107
- string: "Bloc",
108
- type: "integer",
109
- views: {},
110
- },
111
- butlletins: {
112
- context: "",
113
- domain: [],
114
- inv_field: "cups_id",
115
- relation: "giscedata.butlleti",
116
- string: "Bulletins",
117
- type: "one2many",
118
- views: {},
119
- },
120
- catas_bq: {
121
- readonly: true,
122
- size: 4,
123
- string: "Bloc (c)",
124
- type: "char",
125
- views: {},
126
- },
127
- catas_cpa: {
128
- readonly: true,
129
- size: 4,
130
- string: "Parcel·la (c)",
131
- type: "char",
132
- views: {},
133
- },
134
- catas_cpo: {
135
- readonly: true,
136
- size: 4,
137
- string: "Poligon (c)",
138
- type: "char",
139
- views: {},
140
- },
141
- catas_dp: {
142
- readonly: true,
143
- size: 5,
144
- string: "Codi Postal (c)",
145
- type: "integer",
146
- views: {},
147
- },
148
- catas_es: {
149
- readonly: true,
150
- size: 4,
151
- string: "Escala (c)",
152
- type: "char",
153
- views: {},
154
- },
155
- catas_ldt: {
156
- readonly: true,
157
- size: 256,
158
- string: "Domicili tributari (c)",
159
- type: "char",
160
- views: {},
161
- },
162
- catas_nm: {
163
- readonly: true,
164
- size: 256,
165
- string: "Municipi (c)",
166
- type: "char",
167
- views: {},
168
- },
169
- catas_np: {
170
- readonly: true,
171
- size: 256,
172
- string: "Provincia (c)",
173
- type: "char",
174
- views: {},
175
- },
176
- catas_nv: {
177
- readonly: true,
178
- size: 256,
179
- string: "Carrer (c)",
180
- type: "char",
181
- views: {},
182
- },
183
- catas_pnp: {
184
- readonly: true,
185
- size: 4,
186
- string: "Número (c)",
187
- type: "char",
188
- views: {},
189
- },
190
- catas_pt: {
191
- readonly: true,
192
- size: 4,
193
- string: "Planta (c)",
194
- type: "char",
195
- views: {},
196
- },
197
- catas_pu: {
198
- readonly: true,
199
- size: 4,
200
- string: "Porta (c)",
201
- type: "char",
202
- views: {},
203
- },
204
- catas_tv: {
205
- readonly: true,
206
- size: 10,
207
- string: "Tipus Via (c)",
208
- type: "char",
209
- views: {},
210
- },
211
- coef_repartiment: {
212
- digits: [12, 2],
213
- readonly: true,
214
- string: "Coeficient de repartiment",
215
- type: "float",
216
- views: {},
217
- },
218
- cpa: {
219
- size: 4,
220
- string: "Parcel·la",
221
- type: "char",
222
- views: {},
223
- },
224
- cpo: {
225
- size: 4,
226
- string: "Poligon",
227
- type: "char",
228
- views: {},
229
- },
230
- direccio: {
231
- digits: [16, 2],
232
- readonly: 1,
233
- size: 256,
234
- string: "Direcció Principal",
235
- type: "char",
236
- views: {},
237
- },
238
- distribuidora_id: {
239
- context: "",
240
- domain: [],
241
- relation: "res.partner",
242
- size: 64,
243
- string: "Distribuidora",
244
- type: "many2one",
245
- views: {},
246
- },
247
- dp: {
248
- size: 5,
249
- string: "Codi Postal",
250
- type: "float",
251
- views: {},
252
- },
253
- es: {
254
- size: 4,
255
- string: "Escala",
256
- type: "char",
257
- views: {},
258
- },
259
- force_potencia_adscrita: {
260
- string: "Bloquejar potència adscrita",
261
- type: "boolean",
262
- views: {},
263
- },
264
- hist_autoconsum: {
265
- context: "",
266
- domain: [],
267
- inv_field: "cups_id",
268
- relation: "giscedata.autoconsum.cups.autoconsum",
269
- string: "Històric autoconsums",
270
- type: "one2many",
271
- views: {},
272
- },
273
- id_municipi: {
274
- context: "",
275
- domain: [],
276
- relation: "res.municipi",
277
- required: true,
278
- size: 64,
279
- string: "Municipi",
280
- type: "many2one",
281
- views: {},
282
- },
283
- id_poblacio: {
284
- context: "",
285
- domain: [],
286
- relation: "res.poblacio",
287
- size: 64,
288
- string: "Població",
289
- type: "many2one",
290
- views: {},
291
- },
292
- id_provincia: {
293
- context: "",
294
- digits: [16, 2],
295
- domain: [],
296
- readonly: true,
297
- relation: "res.country.state",
298
- string: "Provincia",
299
- type: "many2one",
300
- views: {},
301
- },
302
- name: {
303
- required: true,
304
- size: 25,
305
- string: "CUPS",
306
- type: "char",
307
- views: {},
308
- },
309
- notes: {
310
- readonly: true,
311
- string: "Canvis",
312
- type: "text",
313
- views: {},
314
- },
315
- nv: {
316
- size: 256,
317
- string: "Carrer",
318
- type: "char",
319
- views: {},
320
- },
321
- pnp: {
322
- size: 9,
323
- string: "Número",
324
- type: "char",
325
- views: {},
326
- },
327
- polissa_comptador: {
328
- digits: [16, 2],
329
- readonly: 1,
330
- size: 60,
331
- string: "Nº de comptador",
332
- type: "char",
333
- views: {},
334
- },
335
- polissa_polissa: {
336
- context: "",
337
- digits: [16, 2],
338
- domain: [],
339
- readonly: 1,
340
- relation: "giscedata.polissa",
341
- string: "Polissa",
342
- type: "many2one",
343
- views: {},
344
- },
345
- polissa_potencia: {
346
- digits: [16, 3],
347
- readonly: true,
348
- string: "Potència contractada (kW)",
349
- type: "float",
350
- views: {},
351
- },
352
- polisses: {
353
- context: {
354
- active_test: false,
355
- },
356
- domain: [],
357
- inv_field: "cups",
358
- readonly: true,
359
- relation: "giscedata.polissa.modcontractual",
360
- string: "Històric Pòlisses",
361
- type: "one2many",
362
- views: {
363
- tree: {
364
- arch: '<tree string="Modificacions contractuals">\n <field name="polissa_id"/>\n <field name="comptadors_periode"/>\n <field name="titular"/>\n <field name="tarifa"/>\n <field name="potencia"/>\n <field name="tensio_normalitzada"/>\n <field name="name"/>\n <field name="tipus"/>\n <field name="data_inici"/>\n <field name="data_final"/>\n <field name="state"/>\n </tree>\n ',
365
- fields: {
366
- comptadors_periode: {
367
- digits: [16, 2],
368
- readonly: 1,
369
- string: "Comptadors",
370
- type: "text",
371
- views: {},
372
- },
373
- data_final: {
374
- select: true,
375
- string: "Data final",
376
- type: "date",
377
- views: {},
378
- },
379
- data_inici: {
380
- required: true,
381
- select: true,
382
- string: "Data inici",
383
- type: "date",
384
- views: {},
385
- },
386
- name: {
387
- readonly: true,
388
- required: true,
389
- size: 64,
390
- string: "Codi modificació",
391
- type: "char",
392
- views: {},
393
- },
394
- polissa_id: {
395
- context: "",
396
- domain: [],
397
- relation: "giscedata.polissa",
398
- required: true,
399
- select: true,
400
- size: 64,
401
- string: "Pòlissa",
402
- type: "many2one",
403
- views: {},
404
- },
405
- potencia: {
406
- digits: [16, 3],
407
- required: true,
408
- string: "Potència contractada (kW)",
409
- type: "float",
410
- views: {},
411
- },
412
- state: {
413
- readonly: true,
414
- required: true,
415
- selection: [
416
- ["esborrany", "Esborrany"],
417
- ["actiu", "Actiu"],
418
- ["pendent", "Pendent d'activació"],
419
- ["baixa", "Baixa"],
420
- ["baixa2", "Baixa per modificació"],
421
- ["baixa3", "Baixa per renovació"],
422
- ["baixa4", "Baixa per nova pòlissa"],
423
- ],
424
- string: "Estat",
425
- type: "selection",
426
- views: {},
427
- },
428
- tarifa: {
429
- context: "",
430
- domain: [],
431
- relation: "giscedata.polissa.tarifa",
432
- required: true,
433
- size: 64,
434
- string: "Tarifa",
435
- type: "many2one",
436
- views: {},
437
- },
438
- tensio_normalitzada: {
439
- context: "",
440
- domain: [],
441
- relation: "giscedata.tensions.tensio",
442
- required: true,
443
- size: 64,
444
- string: "Tensió normalitzada",
445
- type: "many2one",
446
- views: {},
447
- },
448
- tipus: {
449
- required: true,
450
- selection: [
451
- ["alta", "Alta"],
452
- ["baixa", "Baixa"],
453
- ["mod", "Modificació"],
454
- ["reno", "Renovació"],
455
- ],
456
- string: "Tipus",
457
- type: "selection",
458
- views: {},
459
- },
460
- titular: {
461
- context: "",
462
- domain: [],
463
- relation: "res.partner",
464
- size: 64,
465
- string: "Titular",
466
- type: "many2one",
467
- views: {},
468
- },
469
- },
470
- },
471
- },
472
- },
473
- potencia_adscrita: {
474
- digits: [15, 3],
475
- string: "Potència adscrita (kW)",
476
- type: "float",
477
- views: {},
478
- },
479
- pt: {
480
- size: 12,
481
- string: "Planta",
482
- type: "char",
483
- views: {},
484
- },
485
- pu: {
486
- size: 4,
487
- string: "Porta",
488
- type: "char",
489
- views: {},
490
- },
491
- ref_catastral: {
492
- size: 20,
493
- string: "Ref Cadastral (c)",
494
- type: "char",
495
- views: {},
496
- },
497
- tv: {
498
- context: "",
499
- domain: [],
500
- relation: "res.tipovia",
501
- size: 64,
502
- string: "Tipus Via",
503
- type: "many2one",
504
- views: {},
505
- },
506
- },
507
- model: "giscedata.cups.ps",
508
- name: "giscedata_cups_ps.form",
509
- search_fields: {
510
- primary: [
511
- "name",
512
- "active",
513
- "distribuidora_id",
514
- "id_municipi",
515
- "id_poblacio",
516
- "direccio",
517
- "polissa_polissa",
518
- "polissa_comptador",
519
- "nv",
520
- "pnp",
521
- "bq",
522
- "es",
523
- "pt",
524
- "pu",
525
- "aclarador",
526
- "cpo",
527
- "cpa",
528
- "ref_catastral",
529
- ],
530
- secondary: [],
531
- },
532
- toolbar: {
533
- action: [
534
- {
535
- auto_refresh: 0,
536
- context: "{'from_cups': True}",
537
- domain: false,
538
- groups_id: [],
539
- id: 1503,
540
- limit: 80,
541
- name: "Import CNMC SIPS data",
542
- res_model: "wizard.import.cnmc.sips.data",
543
- src_model: false,
544
- string: "Import CNMC SIPS data",
545
- target: "new",
546
- type: "ir.actions.act_window",
547
- usage: false,
548
- view_id: [1654, "wizard.import.cnmc.sips.data.form"],
549
- view_ids: [],
550
- view_mode: "form",
551
- view_type: "form",
552
- views: [[1654, "form"]],
553
- },
554
- {
555
- auto_refresh: 0,
556
- context: "{}",
557
- domain: false,
558
- groups_id: [],
559
- id: 441,
560
- limit: 80,
561
- name: "Donar d'alta/baixa un autoconsum",
562
- res_model: "wizard.alta.baixa.autoconsum",
563
- src_model: false,
564
- string: "Donar d'alta/baixa un autoconsum",
565
- target: "new",
566
- type: "ir.actions.act_window",
567
- usage: false,
568
- view_id: false,
569
- view_ids: [],
570
- view_mode: "form",
571
- view_type: "form",
572
- views: [[512, "form"]],
573
- },
574
- ],
575
- print: [],
576
- relate: [
577
- {
578
- auto_refresh: 0,
579
- context: "{}",
580
- domain: "[('cups_id', '=', active_id)]",
581
- groups_id: [],
582
- id: 1765,
583
- limit: 80,
584
- name: "Fitxers F1 importats",
585
- res_model: "giscedata.facturacio.importacio.linia",
586
- src_model: false,
587
- string: "Fitxers F1 importats",
588
- target: "current",
589
- type: "ir.actions.act_window",
590
- usage: false,
591
- view_id: [2038, "giscedata.facturacio.importacio.linia.tree"],
592
- view_ids: [],
593
- view_mode: "tree,form",
594
- view_type: "form",
595
- views: [
596
- [2038, "tree"],
597
- [2039, "form"],
598
- ],
599
- },
600
- {
601
- auto_refresh: 0,
602
- context: "{}",
603
- domain: "[('cups_id', '=', active_id)]",
604
- groups_id: [],
605
- id: 1738,
606
- limit: 0,
607
- name: "Fitxers Q1",
608
- res_model: "giscedata.lectures.importacio.linia",
609
- src_model: "giscedata.cups.ps",
610
- string: "Fitxers Q1",
611
- target: "current",
612
- type: "ir.actions.act_window",
613
- usage: "",
614
- view_id: false,
615
- view_ids: [],
616
- view_mode: "tree,form",
617
- view_type: "form",
618
- views: [
619
- [2016, "tree"],
620
- [2017, "form"],
621
- ],
622
- },
623
- {
624
- auto_refresh: 0,
625
- context: "{}",
626
- domain: "[('cups_id', '=', active_id)]",
627
- groups_id: [],
628
- id: 1499,
629
- limit: 80,
630
- name: "Bulletins",
631
- res_model: "giscedata.butlleti",
632
- src_model: "giscedata.cups.ps",
633
- string: "Bulletins",
634
- target: "current",
635
- type: "ir.actions.act_window",
636
- usage: false,
637
- view_id: false,
638
- view_ids: [],
639
- view_mode: "tree,form",
640
- view_type: "form",
641
- views: [
642
- [1645, "tree"],
643
- [1646, "form"],
644
- ],
645
- },
646
- {
647
- auto_refresh: 0,
648
- context: "{'active_test': False}",
649
- domain: "[('cups.id', '=', active_id)]",
650
- groups_id: [],
651
- id: 437,
652
- limit: 80,
653
- name: "Pòlissa",
654
- res_model: "giscedata.polissa",
655
- src_model: "giscedata.cups.ps",
656
- string: "Pòlissa",
657
- target: "current",
658
- type: "ir.actions.act_window",
659
- usage: false,
660
- view_id: false,
661
- view_ids: [],
662
- view_mode: "tree,form",
663
- view_type: "form",
664
- views: [
665
- [480, "tree"],
666
- [479, "form"],
667
- ],
668
- },
669
- {
670
- auto_refresh: 0,
671
- context: "{}",
672
- domain: "[('id', '=', active_id)]",
673
- groups_id: [],
674
- id: -1,
675
- limit: 0,
676
- name: "giscedata.cups.ps",
677
- res_model: "giscedata.cups.ps",
678
- src_model: "giscedata.cups.ps",
679
- string: "giscedata.cups.ps",
680
- target: "current",
681
- type: "ir.actions.act_window",
682
- usage: "",
683
- view_id: false,
684
- view_ids: [],
685
- view_mode: "tree,form",
686
- view_type: "form",
687
- views: [
688
- [false, "tree"],
689
- [false, "form"],
690
- ],
691
- },
692
- ],
693
- },
694
- type: "form",
695
- view_id: 458,
696
- },
697
- tree: {
698
- arch: '<tree string="CUPS">\n <field name="distribuidora_id"/>\n <field name="name"/>\n <field name="polissa_polissa"/>\n <field name="polissa_comptador"/>\n <field name="polissa_potencia" sum="Potència contractada (kW)"/>\n <field name="active"/>\n <field name="direccio"/>\n <field name="id_municipi"/>\n </tree>',
699
- field_parent: false,
700
- fields: {
701
- active: {
702
- string: "Actiu",
703
- type: "boolean",
704
- views: {},
705
- },
706
- direccio: {
707
- digits: [16, 2],
708
- readonly: 1,
709
- size: 256,
710
- string: "Direcció Principal",
711
- type: "char",
712
- views: {},
713
- },
714
- distribuidora_id: {
715
- context: "",
716
- domain: [],
717
- relation: "res.partner",
718
- size: 64,
719
- string: "Distribuidora",
720
- type: "many2one",
721
- views: {},
722
- },
723
- id_municipi: {
724
- context: "",
725
- domain: [],
726
- relation: "res.municipi",
727
- required: true,
728
- size: 64,
729
- string: "Municipi",
730
- type: "many2one",
731
- views: {},
732
- },
733
- name: {
734
- required: true,
735
- size: 25,
736
- string: "CUPS",
737
- type: "char",
738
- views: {},
739
- },
740
- polissa_comptador: {
741
- digits: [16, 2],
742
- readonly: 1,
743
- size: 60,
744
- string: "Nº de comptador",
745
- type: "char",
746
- views: {},
747
- },
748
- polissa_polissa: {
749
- context: "",
750
- digits: [16, 2],
751
- domain: [],
752
- readonly: 1,
753
- relation: "giscedata.polissa",
754
- string: "Polissa",
755
- type: "many2one",
756
- views: {},
757
- },
758
- polissa_potencia: {
759
- digits: [16, 3],
760
- readonly: true,
761
- string: "Potència contractada (kW)",
762
- type: "float",
763
- views: {},
764
- },
765
- },
766
- model: "giscedata.cups.ps",
767
- name: "giscedata_cups_ps.tree",
768
- search_fields: {
769
- primary: [],
770
- secondary: [],
771
- },
772
- toolbar: {
773
- action: [
774
- {
775
- auto_refresh: 0,
776
- context: "{'from_cups': True}",
777
- domain: false,
778
- groups_id: [],
779
- id: 1503,
780
- limit: 80,
781
- name: "Import CNMC SIPS data",
782
- res_model: "wizard.import.cnmc.sips.data",
783
- src_model: false,
784
- string: "Import CNMC SIPS data",
785
- target: "new",
786
- type: "ir.actions.act_window",
787
- usage: false,
788
- view_id: [1654, "wizard.import.cnmc.sips.data.form"],
789
- view_ids: [],
790
- view_mode: "form",
791
- view_type: "form",
792
- views: [[1654, "form"]],
793
- },
794
- {
795
- auto_refresh: 0,
796
- context: "{}",
797
- domain: false,
798
- groups_id: [],
799
- id: 441,
800
- limit: 80,
801
- name: "Donar d'alta/baixa un autoconsum",
802
- res_model: "wizard.alta.baixa.autoconsum",
803
- src_model: false,
804
- string: "Donar d'alta/baixa un autoconsum",
805
- target: "new",
806
- type: "ir.actions.act_window",
807
- usage: false,
808
- view_id: false,
809
- view_ids: [],
810
- view_mode: "form",
811
- view_type: "form",
812
- views: [[512, "form"]],
813
- },
814
- ],
815
- print: [],
816
- relate: [
817
- {
818
- auto_refresh: 0,
819
- context: "{}",
820
- domain: "[('cups_id', '=', active_id)]",
821
- groups_id: [],
822
- id: 1765,
823
- limit: 80,
824
- name: "Fitxers F1 importats",
825
- res_model: "giscedata.facturacio.importacio.linia",
826
- src_model: false,
827
- string: "Fitxers F1 importats",
828
- target: "current",
829
- type: "ir.actions.act_window",
830
- usage: false,
831
- view_id: [2038, "giscedata.facturacio.importacio.linia.tree"],
832
- view_ids: [],
833
- view_mode: "tree,form",
834
- view_type: "form",
835
- views: [
836
- [2038, "tree"],
837
- [2039, "form"],
838
- ],
839
- },
840
- {
841
- auto_refresh: 0,
842
- context: "{}",
843
- domain: "[('cups_id', '=', active_id)]",
844
- groups_id: [],
845
- id: 1738,
846
- limit: 0,
847
- name: "Fitxers Q1",
848
- res_model: "giscedata.lectures.importacio.linia",
849
- src_model: "giscedata.cups.ps",
850
- string: "Fitxers Q1",
851
- target: "current",
852
- type: "ir.actions.act_window",
853
- usage: "",
854
- view_id: false,
855
- view_ids: [],
856
- view_mode: "tree,form",
857
- view_type: "form",
858
- views: [
859
- [2016, "tree"],
860
- [2017, "form"],
861
- ],
862
- },
863
- {
864
- auto_refresh: 0,
865
- context: "{}",
866
- domain: "[('cups_id', '=', active_id)]",
867
- groups_id: [],
868
- id: 1499,
869
- limit: 80,
870
- name: "Bulletins",
871
- res_model: "giscedata.butlleti",
872
- src_model: "giscedata.cups.ps",
873
- string: "Bulletins",
874
- target: "current",
875
- type: "ir.actions.act_window",
876
- usage: false,
877
- view_id: false,
878
- view_ids: [],
879
- view_mode: "tree,form",
880
- view_type: "form",
881
- views: [
882
- [1645, "tree"],
883
- [1646, "form"],
884
- ],
885
- },
886
- {
887
- auto_refresh: 0,
888
- context: "{'active_test': False}",
889
- domain: "[('cups.id', '=', active_id)]",
890
- groups_id: [],
891
- id: 437,
892
- limit: 80,
893
- name: "Pòlissa",
894
- res_model: "giscedata.polissa",
895
- src_model: "giscedata.cups.ps",
896
- string: "Pòlissa",
897
- target: "current",
898
- type: "ir.actions.act_window",
899
- usage: false,
900
- view_id: false,
901
- view_ids: [],
902
- view_mode: "tree,form",
903
- view_type: "form",
904
- views: [
905
- [480, "tree"],
906
- [479, "form"],
907
- ],
908
- },
909
- {
910
- auto_refresh: 0,
911
- context: "{}",
912
- domain: "[('id', '=', active_id)]",
913
- groups_id: [],
914
- id: -1,
915
- limit: 0,
916
- name: "giscedata.cups.ps",
917
- res_model: "giscedata.cups.ps",
918
- src_model: "giscedata.cups.ps",
919
- string: "giscedata.cups.ps",
920
- target: "current",
921
- type: "ir.actions.act_window",
922
- usage: "",
923
- view_id: false,
924
- view_ids: [],
925
- view_mode: "tree,form",
926
- view_type: "form",
927
- views: [
928
- [false, "tree"],
929
- [false, "form"],
930
- ],
931
- },
932
- ],
933
- },
934
- type: "tree",
935
- view_id: 457,
936
- },
937
- };