@gisce/react-ooui 0.1.0

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 (698) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/Config.d.ts +6 -0
  4. package/dist/Config.d.ts.map +1 -0
  5. package/dist/Config.js +7 -0
  6. package/dist/Config.js.map +1 -0
  7. package/dist/ConnectionProvider.d.ts +7 -0
  8. package/dist/ConnectionProvider.d.ts.map +1 -0
  9. package/dist/ConnectionProvider.js +18 -0
  10. package/dist/ConnectionProvider.js.map +1 -0
  11. package/dist/actionbar/ActionButton.d.ts +13 -0
  12. package/dist/actionbar/ActionButton.d.ts.map +1 -0
  13. package/dist/actionbar/ActionButton.js +17 -0
  14. package/dist/actionbar/ActionButton.js.map +1 -0
  15. package/dist/actionbar/AttachmentsButton.d.ts +11 -0
  16. package/dist/actionbar/AttachmentsButton.d.ts.map +1 -0
  17. package/dist/actionbar/AttachmentsButton.js +170 -0
  18. package/dist/actionbar/AttachmentsButton.js.map +1 -0
  19. package/dist/actionbar/AttachmentsButtonWrapper.d.ts +18 -0
  20. package/dist/actionbar/AttachmentsButtonWrapper.d.ts.map +1 -0
  21. package/dist/actionbar/AttachmentsButtonWrapper.js +72 -0
  22. package/dist/actionbar/AttachmentsButtonWrapper.js.map +1 -0
  23. package/dist/actionbar/ButtonWithBadge.d.ts +8 -0
  24. package/dist/actionbar/ButtonWithBadge.d.ts.map +1 -0
  25. package/dist/actionbar/ButtonWithBadge.js +47 -0
  26. package/dist/actionbar/ButtonWithBadge.js.map +1 -0
  27. package/dist/actionbar/ChangeViewButton.d.ts +12 -0
  28. package/dist/actionbar/ChangeViewButton.d.ts.map +1 -0
  29. package/dist/actionbar/ChangeViewButton.js +97 -0
  30. package/dist/actionbar/ChangeViewButton.js.map +1 -0
  31. package/dist/actionbar/DashboardActionBar.d.ts +4 -0
  32. package/dist/actionbar/DashboardActionBar.d.ts.map +1 -0
  33. package/dist/actionbar/DashboardActionBar.js +50 -0
  34. package/dist/actionbar/DashboardActionBar.js.map +1 -0
  35. package/dist/actionbar/DropdownButton.d.ts +12 -0
  36. package/dist/actionbar/DropdownButton.d.ts.map +1 -0
  37. package/dist/actionbar/DropdownButton.js +38 -0
  38. package/dist/actionbar/DropdownButton.js.map +1 -0
  39. package/dist/actionbar/FormActionBar.d.ts +4 -0
  40. package/dist/actionbar/FormActionBar.d.ts.map +1 -0
  41. package/dist/actionbar/FormActionBar.js +346 -0
  42. package/dist/actionbar/FormActionBar.js.map +1 -0
  43. package/dist/actionbar/NewButton.d.ts +7 -0
  44. package/dist/actionbar/NewButton.d.ts.map +1 -0
  45. package/dist/actionbar/NewButton.js +50 -0
  46. package/dist/actionbar/NewButton.js.map +1 -0
  47. package/dist/actionbar/SearchBar.d.ts +9 -0
  48. package/dist/actionbar/SearchBar.d.ts.map +1 -0
  49. package/dist/actionbar/SearchBar.js +55 -0
  50. package/dist/actionbar/SearchBar.js.map +1 -0
  51. package/dist/actionbar/TreeActionBar.d.ts +7 -0
  52. package/dist/actionbar/TreeActionBar.d.ts.map +1 -0
  53. package/dist/actionbar/TreeActionBar.js +233 -0
  54. package/dist/actionbar/TreeActionBar.js.map +1 -0
  55. package/dist/common/ButtonWithTooltip.d.ts +8 -0
  56. package/dist/common/ButtonWithTooltip.d.ts.map +1 -0
  57. package/dist/common/ButtonWithTooltip.js +36 -0
  58. package/dist/common/ButtonWithTooltip.js.map +1 -0
  59. package/dist/common/DatePicker.d.ts +8 -0
  60. package/dist/common/DatePicker.d.ts.map +1 -0
  61. package/dist/common/DatePicker.js +66 -0
  62. package/dist/common/DatePicker.js.map +1 -0
  63. package/dist/common/Field.d.ts +14 -0
  64. package/dist/common/Field.d.ts.map +1 -0
  65. package/dist/common/Field.js +68 -0
  66. package/dist/common/Field.js.map +1 -0
  67. package/dist/context/ActionViewContext.d.ts +54 -0
  68. package/dist/context/ActionViewContext.d.ts.map +1 -0
  69. package/dist/context/ActionViewContext.js +93 -0
  70. package/dist/context/ActionViewContext.js.map +1 -0
  71. package/dist/context/ContentRootContext.d.ts +19 -0
  72. package/dist/context/ContentRootContext.d.ts.map +1 -0
  73. package/dist/context/ContentRootContext.js +419 -0
  74. package/dist/context/ContentRootContext.js.map +1 -0
  75. package/dist/context/DashboardActionContext.d.ts +19 -0
  76. package/dist/context/DashboardActionContext.d.ts.map +1 -0
  77. package/dist/context/DashboardActionContext.js +39 -0
  78. package/dist/context/DashboardActionContext.js.map +1 -0
  79. package/dist/context/FormContext.d.ts +30 -0
  80. package/dist/context/FormContext.d.ts.map +1 -0
  81. package/dist/context/FormContext.js +29 -0
  82. package/dist/context/FormContext.js.map +1 -0
  83. package/dist/context/FormModalContext.d.ts +11 -0
  84. package/dist/context/FormModalContext.d.ts.map +1 -0
  85. package/dist/context/FormModalContext.js +16 -0
  86. package/dist/context/FormModalContext.js.map +1 -0
  87. package/dist/context/LocaleContext.d.ts +14 -0
  88. package/dist/context/LocaleContext.d.ts.map +1 -0
  89. package/dist/context/LocaleContext.js +34 -0
  90. package/dist/context/LocaleContext.js.map +1 -0
  91. package/dist/context/One2manyContext.d.ts +17 -0
  92. package/dist/context/One2manyContext.d.ts.map +1 -0
  93. package/dist/context/One2manyContext.js +40 -0
  94. package/dist/context/One2manyContext.js.map +1 -0
  95. package/dist/context/TabManagerContext.d.ts +50 -0
  96. package/dist/context/TabManagerContext.d.ts.map +1 -0
  97. package/dist/context/TabManagerContext.js +45 -0
  98. package/dist/context/TabManagerContext.js.map +1 -0
  99. package/dist/helpers/containerHelper.d.ts +22 -0
  100. package/dist/helpers/containerHelper.d.ts.map +1 -0
  101. package/dist/helpers/containerHelper.js +108 -0
  102. package/dist/helpers/containerHelper.js.map +1 -0
  103. package/dist/helpers/dynamicColumnsHelper.d.ts +8 -0
  104. package/dist/helpers/dynamicColumnsHelper.d.ts.map +1 -0
  105. package/dist/helpers/dynamicColumnsHelper.js +67 -0
  106. package/dist/helpers/dynamicColumnsHelper.js.map +1 -0
  107. package/dist/helpers/filesHelper.d.ts +8 -0
  108. package/dist/helpers/filesHelper.d.ts.map +1 -0
  109. package/dist/helpers/filesHelper.js +91 -0
  110. package/dist/helpers/filesHelper.js.map +1 -0
  111. package/dist/helpers/formHelper.d.ts +31 -0
  112. package/dist/helpers/formHelper.d.ts.map +1 -0
  113. package/dist/helpers/formHelper.js +191 -0
  114. package/dist/helpers/formHelper.js.map +1 -0
  115. package/dist/helpers/iconMapper.d.ts +3 -0
  116. package/dist/helpers/iconMapper.d.ts.map +1 -0
  117. package/dist/helpers/iconMapper.js +125 -0
  118. package/dist/helpers/iconMapper.js.map +1 -0
  119. package/dist/helpers/logInfoHelper.d.ts +3 -0
  120. package/dist/helpers/logInfoHelper.d.ts.map +1 -0
  121. package/dist/helpers/logInfoHelper.js +78 -0
  122. package/dist/helpers/logInfoHelper.js.map +1 -0
  123. package/dist/helpers/one2manyHelper.d.ts +29 -0
  124. package/dist/helpers/one2manyHelper.d.ts.map +1 -0
  125. package/dist/helpers/one2manyHelper.js +159 -0
  126. package/dist/helpers/one2manyHelper.js.map +1 -0
  127. package/dist/helpers/searchFilterHelper.d.ts +5 -0
  128. package/dist/helpers/searchFilterHelper.d.ts.map +1 -0
  129. package/dist/helpers/searchFilterHelper.js +157 -0
  130. package/dist/helpers/searchFilterHelper.js.map +1 -0
  131. package/dist/helpers/timeHelper.d.ts +4 -0
  132. package/dist/helpers/timeHelper.d.ts.map +1 -0
  133. package/dist/helpers/timeHelper.js +53 -0
  134. package/dist/helpers/timeHelper.js.map +1 -0
  135. package/dist/helpers/treeHelper.d.ts +16 -0
  136. package/dist/helpers/treeHelper.d.ts.map +1 -0
  137. package/dist/helpers/treeHelper.js +128 -0
  138. package/dist/helpers/treeHelper.js.map +1 -0
  139. package/dist/hooks/useEffectDebugger.d.ts +3 -0
  140. package/dist/hooks/useEffectDebugger.d.ts.map +1 -0
  141. package/dist/hooks/useEffectDebugger.js +43 -0
  142. package/dist/hooks/useEffectDebugger.js.map +1 -0
  143. package/dist/hooks/useWindowDimensions.d.ts +7 -0
  144. package/dist/hooks/useWindowDimensions.d.ts.map +1 -0
  145. package/dist/hooks/useWindowDimensions.js +29 -0
  146. package/dist/hooks/useWindowDimensions.js.map +1 -0
  147. package/dist/index.d.ts +44 -0
  148. package/dist/index.d.ts.map +1 -0
  149. package/dist/index.js +2 -0
  150. package/dist/index.js.LICENSE.txt +76 -0
  151. package/dist/index.js.map +1 -0
  152. package/dist/locales/ca_ES.d.ts +81 -0
  153. package/dist/locales/ca_ES.d.ts.map +1 -0
  154. package/dist/locales/ca_ES.js +82 -0
  155. package/dist/locales/ca_ES.js.map +1 -0
  156. package/dist/locales/en_US.d.ts +81 -0
  157. package/dist/locales/en_US.d.ts.map +1 -0
  158. package/dist/locales/en_US.js +82 -0
  159. package/dist/locales/en_US.js.map +1 -0
  160. package/dist/locales/es_ES.d.ts +81 -0
  161. package/dist/locales/es_ES.d.ts.map +1 -0
  162. package/dist/locales/es_ES.js +82 -0
  163. package/dist/locales/es_ES.js.map +1 -0
  164. package/dist/main.css +180 -0
  165. package/dist/types/index.d.ts +205 -0
  166. package/dist/types/index.d.ts.map +1 -0
  167. package/dist/types/index.js +3 -0
  168. package/dist/types/index.js.map +1 -0
  169. package/dist/ui/ActionErrorDialog.d.ts +3 -0
  170. package/dist/ui/ActionErrorDialog.d.ts.map +1 -0
  171. package/dist/ui/ActionErrorDialog.js +38 -0
  172. package/dist/ui/ActionErrorDialog.js.map +1 -0
  173. package/dist/ui/ConfirmDialog.d.ts +7 -0
  174. package/dist/ui/ConfirmDialog.d.ts.map +1 -0
  175. package/dist/ui/ConfirmDialog.js +24 -0
  176. package/dist/ui/ConfirmDialog.js.map +1 -0
  177. package/dist/ui/FavouriteButton.d.ts +26 -0
  178. package/dist/ui/FavouriteButton.d.ts.map +1 -0
  179. package/dist/ui/FavouriteButton.js +238 -0
  180. package/dist/ui/FavouriteButton.js.map +1 -0
  181. package/dist/ui/Fieldset.d.ts +8 -0
  182. package/dist/ui/Fieldset.d.ts.map +1 -0
  183. package/dist/ui/Fieldset.js +22 -0
  184. package/dist/ui/Fieldset.js.map +1 -0
  185. package/dist/ui/FormErrorsDialog.d.ts +3 -0
  186. package/dist/ui/FormErrorsDialog.d.ts.map +1 -0
  187. package/dist/ui/FormErrorsDialog.js +20 -0
  188. package/dist/ui/FormErrorsDialog.js.map +1 -0
  189. package/dist/ui/GenericErrorDialog.d.ts +3 -0
  190. package/dist/ui/GenericErrorDialog.d.ts.map +1 -0
  191. package/dist/ui/GenericErrorDialog.js +19 -0
  192. package/dist/ui/GenericErrorDialog.js.map +1 -0
  193. package/dist/ui/GoToResourceModal.d.ts +10 -0
  194. package/dist/ui/GoToResourceModal.d.ts.map +1 -0
  195. package/dist/ui/GoToResourceModal.js +49 -0
  196. package/dist/ui/GoToResourceModal.js.map +1 -0
  197. package/dist/ui/InfoDialog.d.ts +3 -0
  198. package/dist/ui/InfoDialog.d.ts.map +1 -0
  199. package/dist/ui/InfoDialog.js +13 -0
  200. package/dist/ui/InfoDialog.js.map +1 -0
  201. package/dist/ui/RefreshItemDialog.d.ts +7 -0
  202. package/dist/ui/RefreshItemDialog.d.ts.map +1 -0
  203. package/dist/ui/RefreshItemDialog.js +25 -0
  204. package/dist/ui/RefreshItemDialog.js.map +1 -0
  205. package/dist/ui/RemoveItemDialog.d.ts +6 -0
  206. package/dist/ui/RemoveItemDialog.d.ts.map +1 -0
  207. package/dist/ui/RemoveItemDialog.js +24 -0
  208. package/dist/ui/RemoveItemDialog.js.map +1 -0
  209. package/dist/ui/TitleHeader.d.ts +7 -0
  210. package/dist/ui/TitleHeader.d.ts.map +1 -0
  211. package/dist/ui/TitleHeader.js +93 -0
  212. package/dist/ui/TitleHeader.js.map +1 -0
  213. package/dist/ui/UnlinkItemDialog.d.ts +6 -0
  214. package/dist/ui/UnlinkItemDialog.d.ts.map +1 -0
  215. package/dist/ui/UnlinkItemDialog.js +24 -0
  216. package/dist/ui/UnlinkItemDialog.js.map +1 -0
  217. package/dist/ui/UnsavedChangesDialog.d.ts +7 -0
  218. package/dist/ui/UnsavedChangesDialog.d.ts.map +1 -0
  219. package/dist/ui/UnsavedChangesDialog.js +25 -0
  220. package/dist/ui/UnsavedChangesDialog.js.map +1 -0
  221. package/dist/ui/WarningDialog.d.ts +3 -0
  222. package/dist/ui/WarningDialog.d.ts.map +1 -0
  223. package/dist/ui/WarningDialog.js +20 -0
  224. package/dist/ui/WarningDialog.js.map +1 -0
  225. package/dist/views/ActionView.d.ts +24 -0
  226. package/dist/views/ActionView.d.ts.map +1 -0
  227. package/dist/views/ActionView.js +376 -0
  228. package/dist/views/ActionView.js.map +1 -0
  229. package/dist/views/CurrentTabContent.d.ts +4 -0
  230. package/dist/views/CurrentTabContent.d.ts.map +1 -0
  231. package/dist/views/CurrentTabContent.js +35 -0
  232. package/dist/views/CurrentTabContent.js.map +1 -0
  233. package/dist/views/RootView.d.ts +14 -0
  234. package/dist/views/RootView.d.ts.map +1 -0
  235. package/dist/views/RootView.js +469 -0
  236. package/dist/views/RootView.js.map +1 -0
  237. package/dist/views/TabContent.d.ts +8 -0
  238. package/dist/views/TabContent.d.ts.map +1 -0
  239. package/dist/views/TabContent.js +34 -0
  240. package/dist/views/TabContent.js.map +1 -0
  241. package/dist/views/TabSelector.d.ts +4 -0
  242. package/dist/views/TabSelector.d.ts.map +1 -0
  243. package/dist/views/TabSelector.js +34 -0
  244. package/dist/views/TabSelector.js.map +1 -0
  245. package/dist/views/Welcome.d.ts +4 -0
  246. package/dist/views/Welcome.d.ts.map +1 -0
  247. package/dist/views/Welcome.js +33 -0
  248. package/dist/views/Welcome.js.map +1 -0
  249. package/dist/views/tabs/Tab.d.ts +11 -0
  250. package/dist/views/tabs/Tab.d.ts.map +1 -0
  251. package/dist/views/tabs/Tab.js +54 -0
  252. package/dist/views/tabs/Tab.js.map +1 -0
  253. package/dist/widgets/WidgetFactory.d.ts +4 -0
  254. package/dist/widgets/WidgetFactory.d.ts.map +1 -0
  255. package/dist/widgets/WidgetFactory.js +85 -0
  256. package/dist/widgets/WidgetFactory.js.map +1 -0
  257. package/dist/widgets/base/Binary.d.ts +14 -0
  258. package/dist/widgets/base/Binary.d.ts.map +1 -0
  259. package/dist/widgets/base/Binary.js +173 -0
  260. package/dist/widgets/base/Binary.js.map +1 -0
  261. package/dist/widgets/base/Boolean.d.ts +4 -0
  262. package/dist/widgets/base/Boolean.d.ts.map +1 -0
  263. package/dist/widgets/base/Boolean.js +53 -0
  264. package/dist/widgets/base/Boolean.js.map +1 -0
  265. package/dist/widgets/base/Button.d.ts +8 -0
  266. package/dist/widgets/base/Button.d.ts.map +1 -0
  267. package/dist/widgets/base/Button.js +118 -0
  268. package/dist/widgets/base/Button.js.map +1 -0
  269. package/dist/widgets/base/Char.d.ts +8 -0
  270. package/dist/widgets/base/Char.d.ts.map +1 -0
  271. package/dist/widgets/base/Char.js +145 -0
  272. package/dist/widgets/base/Char.js.map +1 -0
  273. package/dist/widgets/base/Date.d.ts +5 -0
  274. package/dist/widgets/base/Date.d.ts.map +1 -0
  275. package/dist/widgets/base/Date.js +13 -0
  276. package/dist/widgets/base/Date.js.map +1 -0
  277. package/dist/widgets/base/DateTime.d.ts +5 -0
  278. package/dist/widgets/base/DateTime.d.ts.map +1 -0
  279. package/dist/widgets/base/DateTime.js +13 -0
  280. package/dist/widgets/base/DateTime.js.map +1 -0
  281. package/dist/widgets/base/Email.d.ts +4 -0
  282. package/dist/widgets/base/Email.d.ts.map +1 -0
  283. package/dist/widgets/base/Email.js +34 -0
  284. package/dist/widgets/base/Email.js.map +1 -0
  285. package/dist/widgets/base/Float.d.ts +4 -0
  286. package/dist/widgets/base/Float.d.ts.map +1 -0
  287. package/dist/widgets/base/Float.js +54 -0
  288. package/dist/widgets/base/Float.js.map +1 -0
  289. package/dist/widgets/base/FloatTime.d.ts +12 -0
  290. package/dist/widgets/base/FloatTime.d.ts.map +1 -0
  291. package/dist/widgets/base/FloatTime.js +122 -0
  292. package/dist/widgets/base/FloatTime.js.map +1 -0
  293. package/dist/widgets/base/Image.d.ts +14 -0
  294. package/dist/widgets/base/Image.d.ts.map +1 -0
  295. package/dist/widgets/base/Image.js +153 -0
  296. package/dist/widgets/base/Image.js.map +1 -0
  297. package/dist/widgets/base/Integer.d.ts +8 -0
  298. package/dist/widgets/base/Integer.d.ts.map +1 -0
  299. package/dist/widgets/base/Integer.js +57 -0
  300. package/dist/widgets/base/Integer.js.map +1 -0
  301. package/dist/widgets/base/Label.d.ts +9 -0
  302. package/dist/widgets/base/Label.d.ts.map +1 -0
  303. package/dist/widgets/base/Label.js +27 -0
  304. package/dist/widgets/base/Label.js.map +1 -0
  305. package/dist/widgets/base/LinkInput.d.ts +12 -0
  306. package/dist/widgets/base/LinkInput.d.ts.map +1 -0
  307. package/dist/widgets/base/LinkInput.js +70 -0
  308. package/dist/widgets/base/LinkInput.js.map +1 -0
  309. package/dist/widgets/base/MultiSelection.d.ts +10 -0
  310. package/dist/widgets/base/MultiSelection.d.ts.map +1 -0
  311. package/dist/widgets/base/MultiSelection.js +69 -0
  312. package/dist/widgets/base/MultiSelection.js.map +1 -0
  313. package/dist/widgets/base/ProgressBar.d.ts +7 -0
  314. package/dist/widgets/base/ProgressBar.d.ts.map +1 -0
  315. package/dist/widgets/base/ProgressBar.js +45 -0
  316. package/dist/widgets/base/ProgressBar.js.map +1 -0
  317. package/dist/widgets/base/Reference.d.ts +16 -0
  318. package/dist/widgets/base/Reference.d.ts.map +1 -0
  319. package/dist/widgets/base/Reference.js +93 -0
  320. package/dist/widgets/base/Reference.js.map +1 -0
  321. package/dist/widgets/base/Selection.d.ts +10 -0
  322. package/dist/widgets/base/Selection.d.ts.map +1 -0
  323. package/dist/widgets/base/Selection.js +51 -0
  324. package/dist/widgets/base/Selection.js.map +1 -0
  325. package/dist/widgets/base/Separator.d.ts +8 -0
  326. package/dist/widgets/base/Separator.d.ts.map +1 -0
  327. package/dist/widgets/base/Separator.js +15 -0
  328. package/dist/widgets/base/Separator.js.map +1 -0
  329. package/dist/widgets/base/Text.d.ts +8 -0
  330. package/dist/widgets/base/Text.d.ts.map +1 -0
  331. package/dist/widgets/base/Text.js +142 -0
  332. package/dist/widgets/base/Text.js.map +1 -0
  333. package/dist/widgets/base/Url.d.ts +4 -0
  334. package/dist/widgets/base/Url.d.ts.map +1 -0
  335. package/dist/widgets/base/Url.js +34 -0
  336. package/dist/widgets/base/Url.js.map +1 -0
  337. package/dist/widgets/base/many2one/Many2one.d.ts +16 -0
  338. package/dist/widgets/base/many2one/Many2one.d.ts.map +1 -0
  339. package/dist/widgets/base/many2one/Many2one.js +353 -0
  340. package/dist/widgets/base/many2one/Many2one.js.map +1 -0
  341. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts +9 -0
  342. package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -0
  343. package/dist/widgets/base/many2one/Many2oneSuffix.js +215 -0
  344. package/dist/widgets/base/many2one/Many2oneSuffix.js.map +1 -0
  345. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts +10 -0
  346. package/dist/widgets/base/many2one/Many2oneSuffixModal.d.ts.map +1 -0
  347. package/dist/widgets/base/many2one/Many2oneSuffixModal.js +37 -0
  348. package/dist/widgets/base/many2one/Many2oneSuffixModal.js.map +1 -0
  349. package/dist/widgets/base/one2many/One2many.d.ts +9 -0
  350. package/dist/widgets/base/one2many/One2many.d.ts.map +1 -0
  351. package/dist/widgets/base/one2many/One2many.js +188 -0
  352. package/dist/widgets/base/one2many/One2many.js.map +1 -0
  353. package/dist/widgets/base/one2many/One2manyInput.d.ts +23 -0
  354. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -0
  355. package/dist/widgets/base/one2many/One2manyInput.js +602 -0
  356. package/dist/widgets/base/one2many/One2manyInput.js.map +1 -0
  357. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +21 -0
  358. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -0
  359. package/dist/widgets/base/one2many/One2manyTopBar.js +59 -0
  360. package/dist/widgets/base/one2many/One2manyTopBar.js.map +1 -0
  361. package/dist/widgets/containers/Container.d.ts +9 -0
  362. package/dist/widgets/containers/Container.d.ts.map +1 -0
  363. package/dist/widgets/containers/Container.js +77 -0
  364. package/dist/widgets/containers/Container.js.map +1 -0
  365. package/dist/widgets/containers/Group.d.ts +10 -0
  366. package/dist/widgets/containers/Group.d.ts.map +1 -0
  367. package/dist/widgets/containers/Group.js +15 -0
  368. package/dist/widgets/containers/Group.js.map +1 -0
  369. package/dist/widgets/containers/Notebook.d.ts +9 -0
  370. package/dist/widgets/containers/Notebook.d.ts.map +1 -0
  371. package/dist/widgets/containers/Notebook.js +21 -0
  372. package/dist/widgets/containers/Notebook.js.map +1 -0
  373. package/dist/widgets/custom/FiberGrid.d.ts +10 -0
  374. package/dist/widgets/custom/FiberGrid.d.ts.map +1 -0
  375. package/dist/widgets/custom/FiberGrid.js +50 -0
  376. package/dist/widgets/custom/FiberGrid.js.map +1 -0
  377. package/dist/widgets/custom/Indicator.d.ts +10 -0
  378. package/dist/widgets/custom/Indicator.d.ts.map +1 -0
  379. package/dist/widgets/custom/Indicator.js +44 -0
  380. package/dist/widgets/custom/Indicator.js.map +1 -0
  381. package/dist/widgets/custom/Timeline.d.ts +16 -0
  382. package/dist/widgets/custom/Timeline.d.ts.map +1 -0
  383. package/dist/widgets/custom/Timeline.js +231 -0
  384. package/dist/widgets/custom/Timeline.js.map +1 -0
  385. package/dist/widgets/modals/FormModal.d.ts +12 -0
  386. package/dist/widgets/modals/FormModal.d.ts.map +1 -0
  387. package/dist/widgets/modals/FormModal.js +174 -0
  388. package/dist/widgets/modals/FormModal.js.map +1 -0
  389. package/dist/widgets/modals/SearchModal.d.ts +13 -0
  390. package/dist/widgets/modals/SearchModal.d.ts.map +1 -0
  391. package/dist/widgets/modals/SearchModal.js +129 -0
  392. package/dist/widgets/modals/SearchModal.js.map +1 -0
  393. package/dist/widgets/modals/TranslationModal.d.ts +12 -0
  394. package/dist/widgets/modals/TranslationModal.d.ts.map +1 -0
  395. package/dist/widgets/modals/TranslationModal.js +254 -0
  396. package/dist/widgets/modals/TranslationModal.js.map +1 -0
  397. package/dist/widgets/views/Dashboard/Dashboard.d.ts +7 -0
  398. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -0
  399. package/dist/widgets/views/Dashboard/Dashboard.js +368 -0
  400. package/dist/widgets/views/Dashboard/Dashboard.js.map +1 -0
  401. package/dist/widgets/views/Dashboard/Dashboard.types.d.ts +8 -0
  402. package/dist/widgets/views/Dashboard/Dashboard.types.d.ts.map +1 -0
  403. package/dist/widgets/views/Dashboard/Dashboard.types.js +3 -0
  404. package/dist/widgets/views/Dashboard/Dashboard.types.js.map +1 -0
  405. package/dist/widgets/views/Dashboard/DashboardForm.d.ts +4 -0
  406. package/dist/widgets/views/Dashboard/DashboardForm.d.ts.map +1 -0
  407. package/dist/widgets/views/Dashboard/DashboardForm.js +106 -0
  408. package/dist/widgets/views/Dashboard/DashboardForm.js.map +1 -0
  409. package/dist/widgets/views/Dashboard/DashboardTree.d.ts +19 -0
  410. package/dist/widgets/views/Dashboard/DashboardTree.d.ts.map +1 -0
  411. package/dist/widgets/views/Dashboard/DashboardTree.js +318 -0
  412. package/dist/widgets/views/Dashboard/DashboardTree.js.map +1 -0
  413. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts +6 -0
  414. package/dist/widgets/views/Dashboard/dashboardHelper.d.ts.map +1 -0
  415. package/dist/widgets/views/Dashboard/dashboardHelper.js +136 -0
  416. package/dist/widgets/views/Dashboard/dashboardHelper.js.map +1 -0
  417. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts +6 -0
  418. package/dist/widgets/views/DashboardGrid/DashboardGrid.d.ts.map +1 -0
  419. package/dist/widgets/views/DashboardGrid/DashboardGrid.js +31 -0
  420. package/dist/widgets/views/DashboardGrid/DashboardGrid.js.map +1 -0
  421. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts +6 -0
  422. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.d.ts.map +1 -0
  423. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.js +3 -0
  424. package/dist/widgets/views/DashboardGrid/DashboardGrid.types.js.map +1 -0
  425. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts +4 -0
  426. package/dist/widgets/views/DashboardGrid/DashboardGridItem.d.ts.map +1 -0
  427. package/dist/widgets/views/DashboardGrid/DashboardGridItem.js +38 -0
  428. package/dist/widgets/views/DashboardGrid/DashboardGridItem.js.map +1 -0
  429. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts +11 -0
  430. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.d.ts.map +1 -0
  431. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.js +3 -0
  432. package/dist/widgets/views/DashboardGrid/DashboardGridItem.types.js.map +1 -0
  433. package/dist/widgets/views/DashboardGrid/index.d.ts +5 -0
  434. package/dist/widgets/views/DashboardGrid/index.d.ts.map +1 -0
  435. package/dist/widgets/views/DashboardGrid/index.js +17 -0
  436. package/dist/widgets/views/DashboardGrid/index.js.map +1 -0
  437. package/dist/widgets/views/Form.d.ts +28 -0
  438. package/dist/widgets/views/Form.d.ts.map +1 -0
  439. package/dist/widgets/views/Form.js +933 -0
  440. package/dist/widgets/views/Form.js.map +1 -0
  441. package/dist/widgets/views/Graph/Graph.d.ts +10 -0
  442. package/dist/widgets/views/Graph/Graph.d.ts.map +1 -0
  443. package/dist/widgets/views/Graph/Graph.js +150 -0
  444. package/dist/widgets/views/Graph/Graph.js.map +1 -0
  445. package/dist/widgets/views/Graph/GraphChart.d.ts +10 -0
  446. package/dist/widgets/views/Graph/GraphChart.d.ts.map +1 -0
  447. package/dist/widgets/views/Graph/GraphChart.js +104 -0
  448. package/dist/widgets/views/Graph/GraphChart.js.map +1 -0
  449. package/dist/widgets/views/Graph/GraphDefaults.d.ts +47 -0
  450. package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -0
  451. package/dist/widgets/views/Graph/GraphDefaults.js +62 -0
  452. package/dist/widgets/views/Graph/GraphDefaults.js.map +1 -0
  453. package/dist/widgets/views/Graph/GraphIndicator.d.ts +16 -0
  454. package/dist/widgets/views/Graph/GraphIndicator.d.ts.map +1 -0
  455. package/dist/widgets/views/Graph/GraphIndicator.js +292 -0
  456. package/dist/widgets/views/Graph/GraphIndicator.js.map +1 -0
  457. package/dist/widgets/views/Graph/useGraphData.d.ts +18 -0
  458. package/dist/widgets/views/Graph/useGraphData.d.ts.map +1 -0
  459. package/dist/widgets/views/Graph/useGraphData.js +163 -0
  460. package/dist/widgets/views/Graph/useGraphData.js.map +1 -0
  461. package/dist/widgets/views/SearchTree.d.ts +25 -0
  462. package/dist/widgets/views/SearchTree.d.ts.map +1 -0
  463. package/dist/widgets/views/SearchTree.js +495 -0
  464. package/dist/widgets/views/SearchTree.js.map +1 -0
  465. package/dist/widgets/views/Tree.d.ts +23 -0
  466. package/dist/widgets/views/Tree.d.ts.map +1 -0
  467. package/dist/widgets/views/Tree.js +180 -0
  468. package/dist/widgets/views/Tree.js.map +1 -0
  469. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts +4 -0
  470. package/dist/widgets/views/searchFilter/DateRangePicker.d.ts.map +1 -0
  471. package/dist/widgets/views/searchFilter/DateRangePicker.js +26 -0
  472. package/dist/widgets/views/searchFilter/DateRangePicker.js.map +1 -0
  473. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts +4 -0
  474. package/dist/widgets/views/searchFilter/DateTimeRangePicker.d.ts.map +1 -0
  475. package/dist/widgets/views/searchFilter/DateTimeRangePicker.js +53 -0
  476. package/dist/widgets/views/searchFilter/DateTimeRangePicker.js.map +1 -0
  477. package/dist/widgets/views/searchFilter/PairFields.d.ts +4 -0
  478. package/dist/widgets/views/searchFilter/PairFields.d.ts.map +1 -0
  479. package/dist/widgets/views/searchFilter/PairFields.js +45 -0
  480. package/dist/widgets/views/searchFilter/PairFields.js.map +1 -0
  481. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts +10 -0
  482. package/dist/widgets/views/searchFilter/SearchBottomBar.d.ts.map +1 -0
  483. package/dist/widgets/views/searchFilter/SearchBottomBar.js +40 -0
  484. package/dist/widgets/views/searchFilter/SearchBottomBar.js.map +1 -0
  485. package/dist/widgets/views/searchFilter/SearchField.d.ts +8 -0
  486. package/dist/widgets/views/searchFilter/SearchField.d.ts.map +1 -0
  487. package/dist/widgets/views/searchFilter/SearchField.js +84 -0
  488. package/dist/widgets/views/searchFilter/SearchField.js.map +1 -0
  489. package/dist/widgets/views/searchFilter/SearchFilter.d.ts +15 -0
  490. package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -0
  491. package/dist/widgets/views/searchFilter/SearchFilter.js +78 -0
  492. package/dist/widgets/views/searchFilter/SearchFilter.js.map +1 -0
  493. package/dist/widgets/views/searchFilter/SearchParams.d.ts +7 -0
  494. package/dist/widgets/views/searchFilter/SearchParams.d.ts.map +1 -0
  495. package/dist/widgets/views/searchFilter/SearchParams.js +44 -0
  496. package/dist/widgets/views/searchFilter/SearchParams.js.map +1 -0
  497. package/package.json +89 -0
  498. package/src/.eslintcache +1 -0
  499. package/src/Config.ts +4 -0
  500. package/src/ConnectionProvider.ts +16 -0
  501. package/src/__tests__/iconMapper.test.ts +15 -0
  502. package/src/__tests__/searchFilterHelper.spec.ts +386 -0
  503. package/src/actionbar/ActionButton.tsx +40 -0
  504. package/src/actionbar/AttachmentsButton.tsx +128 -0
  505. package/src/actionbar/AttachmentsButtonWrapper.tsx +139 -0
  506. package/src/actionbar/ButtonWithBadge.tsx +39 -0
  507. package/src/actionbar/ChangeViewButton.tsx +136 -0
  508. package/src/actionbar/DashboardActionBar.tsx +67 -0
  509. package/src/actionbar/DropdownButton.tsx +61 -0
  510. package/src/actionbar/FormActionBar.tsx +412 -0
  511. package/src/actionbar/NewButton.tsx +46 -0
  512. package/src/actionbar/SearchBar.tsx +69 -0
  513. package/src/actionbar/TreeActionBar.tsx +265 -0
  514. package/src/common/ButtonWithTooltip.tsx +18 -0
  515. package/src/common/DatePicker.tsx +93 -0
  516. package/src/common/Field.tsx +92 -0
  517. package/src/context/ActionViewContext.tsx +161 -0
  518. package/src/context/ContentRootContext.tsx +422 -0
  519. package/src/context/DashboardActionContext.tsx +45 -0
  520. package/src/context/FormContext.tsx +79 -0
  521. package/src/context/FormModalContext.tsx +29 -0
  522. package/src/context/LocaleContext.tsx +50 -0
  523. package/src/context/One2manyContext.tsx +46 -0
  524. package/src/context/TabManagerContext.tsx +117 -0
  525. package/src/helpers/containerHelper.ts +145 -0
  526. package/src/helpers/dynamicColumnsHelper.ts +73 -0
  527. package/src/helpers/filesHelper.ts +41 -0
  528. package/src/helpers/formHelper.ts +225 -0
  529. package/src/helpers/iconMapper.ts +108 -0
  530. package/src/helpers/logInfoHelper.tsx +28 -0
  531. package/src/helpers/one2manyHelper.ts +139 -0
  532. package/src/helpers/searchFilterHelper.ts +167 -0
  533. package/src/helpers/timeHelper.ts +58 -0
  534. package/src/helpers/treeHelper.ts +127 -0
  535. package/src/hooks/useEffectDebugger.ts +43 -0
  536. package/src/hooks/useWindowDimensions.ts +33 -0
  537. package/src/index.ts +136 -0
  538. package/src/locales/ca_ES.tsx +85 -0
  539. package/src/locales/en_US.tsx +82 -0
  540. package/src/locales/es_ES.tsx +86 -0
  541. package/src/stories/Binary.stories.tsx +23 -0
  542. package/src/stories/Boolean.stories.tsx +22 -0
  543. package/src/stories/Button.stories.tsx +120 -0
  544. package/src/stories/Char.stories.tsx +49 -0
  545. package/src/stories/FiberGrid.stories.tsx +109 -0
  546. package/src/stories/Float.stories.tsx +22 -0
  547. package/src/stories/FloatTime.stories.tsx +32 -0
  548. package/src/stories/Image.stories.tsx +25 -0
  549. package/src/stories/Integer.stories.tsx +22 -0
  550. package/src/stories/Label.stories.tsx +22 -0
  551. package/src/stories/Many2one.stories.tsx +31 -0
  552. package/src/stories/One2many.stories.tsx +292 -0
  553. package/src/stories/ProgressBar.stories.tsx +22 -0
  554. package/src/stories/Reference.stories.tsx +43 -0
  555. package/src/stories/Selection.stories.tsx +34 -0
  556. package/src/stories/Separator.stories.tsx +21 -0
  557. package/src/stories/Text.stories.tsx +35 -0
  558. package/src/stories/containers/Group.stories.tsx +63 -0
  559. package/src/stories/containers/NewLine.stories.tsx +53 -0
  560. package/src/stories/containers/Notebook.stories.tsx +91 -0
  561. package/src/stories/custom/Indicator.stories.tsx +41 -0
  562. package/src/stories/dashboard/Dashboard.stories.tsx +23 -0
  563. package/src/stories/dashboard/DashboardGrid.stories.tsx +30 -0
  564. package/src/stories/forms/Attachment.stories.tsx +24 -0
  565. package/src/stories/forms/CUPSForm.stories.tsx +25 -0
  566. package/src/stories/forms/Company.stories.tsx +25 -0
  567. package/src/stories/forms/CrmCaseForm.stories.tsx +25 -0
  568. package/src/stories/forms/Documents.stories.tsx +25 -0
  569. package/src/stories/forms/FormWithGridFiber.stories.tsx +25 -0
  570. package/src/stories/forms/FormWithLinks.stories.tsx +31 -0
  571. package/src/stories/forms/Lead.stories.tsx +25 -0
  572. package/src/stories/forms/ModContractForm.stories.tsx +25 -0
  573. package/src/stories/forms/PartnersForm.stories.tsx +25 -0
  574. package/src/stories/forms/PolissaForm.stories.tsx +25 -0
  575. package/src/stories/forms/PreferencesForm.stories.tsx +693 -0
  576. package/src/stories/forms/Signatures.stories.tsx +25 -0
  577. package/src/stories/forms/Switching.stories.tsx +25 -0
  578. package/src/stories/graphs/GraphIndicator.stories.tsx +20 -0
  579. package/src/stories/graphs/PieGraph.stories.tsx +78 -0
  580. package/src/stories/mocks/index.ts +42 -0
  581. package/src/stories/mocks/mockProvider.ts +180 -0
  582. package/src/stories/mocks/models/attachment.ts +1327 -0
  583. package/src/stories/mocks/models/butlleti.ts +344 -0
  584. package/src/stories/mocks/models/company.ts +137 -0
  585. package/src/stories/mocks/models/crm_case.ts +598 -0
  586. package/src/stories/mocks/models/cups.ts +910 -0
  587. package/src/stories/mocks/models/document.ts +225 -0
  588. package/src/stories/mocks/models/factura.ts +2727 -0
  589. package/src/stories/mocks/models/form_with_gridfiber.ts +143 -0
  590. package/src/stories/mocks/models/hist_autoconsum.ts +148 -0
  591. package/src/stories/mocks/models/lead.ts +2109 -0
  592. package/src/stories/mocks/models/modcontractual.ts +806 -0
  593. package/src/stories/mocks/models/partner.ts +1360 -0
  594. package/src/stories/mocks/models/polissa.ts +3133 -0
  595. package/src/stories/mocks/models/signatura.ts +618 -0
  596. package/src/stories/mocks/models/switching.ts +769 -0
  597. package/src/stories/modals/FormModal.stories.tsx +36 -0
  598. package/src/stories/modals/SearchModal.stories.tsx +37 -0
  599. package/src/stories/trees/FacturesTree.stories.tsx +16 -0
  600. package/src/stories/ui/ActionBar.stories.tsx +23 -0
  601. package/src/stories/ui/FavouriteButton.stories.tsx +18 -0
  602. package/src/stories/ui/GoToResourceModal.stories.tsx +26 -0
  603. package/src/stories/views/ActionView.stories.tsx +28 -0
  604. package/src/stories/views/SearchTree.stories.tsx +946 -0
  605. package/src/stories/views/Tab.stories.tsx +94 -0
  606. package/src/stories/views/TabManager.stories.tsx +15 -0
  607. package/src/stories/views/TabsAndContent.stories.tsx +89 -0
  608. package/src/stories/views/Tree.stories.js +166 -0
  609. package/src/stories/views/searchFilter/DateRangePicker.stories.tsx +23 -0
  610. package/src/stories/views/searchFilter/DateTimeRangePicker.stories.tsx +23 -0
  611. package/src/stories/views/searchFilter/PairFields.stories.tsx +23 -0
  612. package/src/stories/views/searchFilter/SearchFilter.stories.tsx +166 -0
  613. package/src/stories/views/searchFilter/examples/PartnersSearchFilter.stories.tsx +425 -0
  614. package/src/tailwind.css +8 -0
  615. package/src/tailwind.generated.css +168533 -0
  616. package/src/types/index.ts +275 -0
  617. package/src/ui/ActionErrorDialog.tsx +41 -0
  618. package/src/ui/ConfirmDialog.tsx +28 -0
  619. package/src/ui/FavouriteButton.tsx +261 -0
  620. package/src/ui/Fieldset.tsx +31 -0
  621. package/src/ui/FormErrorsDialog.tsx +17 -0
  622. package/src/ui/GenericErrorDialog.tsx +16 -0
  623. package/src/ui/GoToResourceModal.tsx +71 -0
  624. package/src/ui/InfoDialog.tsx +13 -0
  625. package/src/ui/RefreshItemDialog.tsx +29 -0
  626. package/src/ui/RemoveItemDialog.tsx +20 -0
  627. package/src/ui/TitleHeader.tsx +95 -0
  628. package/src/ui/UnlinkItemDialog.tsx +20 -0
  629. package/src/ui/UnsavedChangesDialog.tsx +29 -0
  630. package/src/ui/WarningDialog.tsx +17 -0
  631. package/src/views/ActionView.tsx +455 -0
  632. package/src/views/CurrentTabContent.tsx +21 -0
  633. package/src/views/RootView.tsx +467 -0
  634. package/src/views/TabContent.tsx +31 -0
  635. package/src/views/TabSelector.tsx +31 -0
  636. package/src/views/Welcome.tsx +18 -0
  637. package/src/views/tabs/Tab.tsx +77 -0
  638. package/src/widgets/WidgetFactory.tsx +109 -0
  639. package/src/widgets/base/Binary.tsx +141 -0
  640. package/src/widgets/base/Boolean.tsx +44 -0
  641. package/src/widgets/base/Button.tsx +77 -0
  642. package/src/widgets/base/Char.tsx +155 -0
  643. package/src/widgets/base/Date.tsx +12 -0
  644. package/src/widgets/base/DateTime.tsx +12 -0
  645. package/src/widgets/base/Email.tsx +27 -0
  646. package/src/widgets/base/Float.tsx +33 -0
  647. package/src/widgets/base/FloatTime.tsx +69 -0
  648. package/src/widgets/base/Image.tsx +120 -0
  649. package/src/widgets/base/Integer.tsx +38 -0
  650. package/src/widgets/base/Label.tsx +40 -0
  651. package/src/widgets/base/LinkInput.tsx +96 -0
  652. package/src/widgets/base/MultiSelection.tsx +82 -0
  653. package/src/widgets/base/ProgressBar.tsx +38 -0
  654. package/src/widgets/base/Reference.tsx +105 -0
  655. package/src/widgets/base/Selection.tsx +61 -0
  656. package/src/widgets/base/Separator.tsx +18 -0
  657. package/src/widgets/base/Text.tsx +156 -0
  658. package/src/widgets/base/Url.tsx +26 -0
  659. package/src/widgets/base/many2one/Many2one.tsx +331 -0
  660. package/src/widgets/base/many2one/Many2oneSuffix.tsx +210 -0
  661. package/src/widgets/base/many2one/Many2oneSuffixModal.tsx +41 -0
  662. package/src/widgets/base/one2many/One2many.tsx +102 -0
  663. package/src/widgets/base/one2many/One2manyInput.tsx +635 -0
  664. package/src/widgets/base/one2many/One2manyTopBar.tsx +143 -0
  665. package/src/widgets/containers/Container.tsx +97 -0
  666. package/src/widgets/containers/Group.tsx +34 -0
  667. package/src/widgets/containers/Notebook.tsx +35 -0
  668. package/src/widgets/custom/FiberGrid.tsx +51 -0
  669. package/src/widgets/custom/Indicator.tsx +66 -0
  670. package/src/widgets/custom/Timeline.tsx +190 -0
  671. package/src/widgets/modals/FormModal.tsx +127 -0
  672. package/src/widgets/modals/SearchModal.tsx +131 -0
  673. package/src/widgets/modals/TranslationModal.tsx +201 -0
  674. package/src/widgets/views/Dashboard/Dashboard.tsx +371 -0
  675. package/src/widgets/views/Dashboard/Dashboard.types.ts +8 -0
  676. package/src/widgets/views/Dashboard/DashboardForm.tsx +30 -0
  677. package/src/widgets/views/Dashboard/DashboardTree.tsx +287 -0
  678. package/src/widgets/views/Dashboard/dashboardHelper.ts +71 -0
  679. package/src/widgets/views/DashboardGrid/DashboardGrid.tsx +53 -0
  680. package/src/widgets/views/DashboardGrid/DashboardGrid.types.ts +4 -0
  681. package/src/widgets/views/DashboardGrid/DashboardGridItem.tsx +58 -0
  682. package/src/widgets/views/DashboardGrid/DashboardGridItem.types.ts +10 -0
  683. package/src/widgets/views/DashboardGrid/index.ts +4 -0
  684. package/src/widgets/views/Form.tsx +991 -0
  685. package/src/widgets/views/Graph/Graph.tsx +108 -0
  686. package/src/widgets/views/Graph/GraphChart.tsx +102 -0
  687. package/src/widgets/views/Graph/GraphDefaults.ts +57 -0
  688. package/src/widgets/views/Graph/GraphIndicator.tsx +360 -0
  689. package/src/widgets/views/Graph/useGraphData.tsx +142 -0
  690. package/src/widgets/views/SearchTree.tsx +542 -0
  691. package/src/widgets/views/Tree.tsx +267 -0
  692. package/src/widgets/views/searchFilter/DateRangePicker.tsx +16 -0
  693. package/src/widgets/views/searchFilter/DateTimeRangePicker.tsx +63 -0
  694. package/src/widgets/views/searchFilter/PairFields.tsx +56 -0
  695. package/src/widgets/views/searchFilter/SearchBottomBar.tsx +58 -0
  696. package/src/widgets/views/searchFilter/SearchField.tsx +73 -0
  697. package/src/widgets/views/searchFilter/SearchFilter.tsx +113 -0
  698. package/src/widgets/views/searchFilter/SearchParams.tsx +32 -0
@@ -0,0 +1,2109 @@
1
+ export default {
2
+ model: "giscedata.crm.lead",
3
+ exampleValues: {
4
+ ref: "product.product,5",
5
+ },
6
+ tree: {
7
+ arch:
8
+ '<tree colors="red:date_deadline&lt;current_date and state==\'open\'" string="CRM Ofertes/Oportunitats">\n <field name="id" select="2"/>\n <field name="create_date" select="1"/>\n <field name="name" select="1"/>\n <field name="user_id" select="1"/>\n <field name="stage_id" select="1"/>\n <field name="state" select="1"/>\n <field name="polissa_id" select="1" string="Contrato"/>\n <field name="titular_vat" select="2" string="Nº Documento (Cliente)"/>\n <field name="titular_nom" select="2" string="Nombre (Cliente)"/>\n <field name="titular_cognom1" select="2" string="Apellido (Cliente)"/>\n <field name="titular_cognom2" select="2" string="2º Apellido (Cliente)"/>\n <field name="titular_email" select="2" string="Email (Cliente)"/>\n <field name="cups" select="1"/>\n <field name="tarifa" select="2"/>\n <field name="date" select="2"/>\n <field name="date_deadline" select="1"/>\n <field name="date_closed" select="2"/>\n <field name="comercialitzadora" select="2"/>\n <!-- Camps invisibles amb select 1 per poder buscar millor-->\n <field name="titular_search" select="1" invisible="1"/>\n <field name="titular_direccio_search" select="1" invisible="1"/>\n <field name="cups_direccio_search" select="1" invisible="1"/>\n <!-- Camps tornats a definir per treurelsi el select 1-->\n <field name="partner_id" select="2" invisible="1"/>\n <field name="create_uid" select="2" invisible="1"/>\n </tree>',
9
+ field_parent: false,
10
+ fields: {
11
+ comercialitzadora: {
12
+ context: "",
13
+ domain: [],
14
+ relation: "res.partner",
15
+ size: 64,
16
+ string: "Comercializadora",
17
+ type: "many2one",
18
+ views: {},
19
+ },
20
+ create_date: {
21
+ readonly: true,
22
+ string: "Created",
23
+ type: "datetime",
24
+ views: {},
25
+ },
26
+ create_uid: {
27
+ context: "",
28
+ domain: [],
29
+ readonly: true,
30
+ relation: "res.users",
31
+ size: 64,
32
+ string: "User",
33
+ type: "many2one",
34
+ views: {},
35
+ },
36
+ cups: {
37
+ size: 22,
38
+ string: "CUPS",
39
+ type: "char",
40
+ views: {},
41
+ },
42
+ cups_direccio_search: {
43
+ digits: [16, 2],
44
+ readonly: 1,
45
+ size: 256,
46
+ string: "Buscar por Direccion del CUPS",
47
+ type: "char",
48
+ views: {},
49
+ },
50
+ date: {
51
+ string: "Date",
52
+ type: "datetime",
53
+ views: {},
54
+ },
55
+ date_closed: {
56
+ readonly: true,
57
+ string: "Closed",
58
+ type: "datetime",
59
+ views: {},
60
+ },
61
+ date_deadline: {
62
+ string: "Deadline",
63
+ type: "datetime",
64
+ views: {},
65
+ },
66
+ id: {
67
+ readonly: true,
68
+ string: "ID",
69
+ type: "integer",
70
+ },
71
+ name: {
72
+ required: true,
73
+ size: 128,
74
+ string: "Description",
75
+ type: "char",
76
+ views: {},
77
+ },
78
+ partner_id: {
79
+ context: "",
80
+ domain: [],
81
+ relation: "res.partner",
82
+ size: 64,
83
+ string: "Partner",
84
+ type: "many2one",
85
+ views: {},
86
+ },
87
+ polissa_id: {
88
+ context: "",
89
+ domain: [],
90
+ relation: "giscedata.polissa",
91
+ size: 64,
92
+ string: "Abonat",
93
+ type: "many2one",
94
+ views: {},
95
+ },
96
+ stage_id: {
97
+ context: "",
98
+ domain: "[('section_ids', '=', section_id)]",
99
+ relation: "crm.case.stage",
100
+ size: 64,
101
+ string: "Stage",
102
+ type: "many2one",
103
+ views: {},
104
+ },
105
+ state: {
106
+ selection: [
107
+ ["draft", "Draft"],
108
+ ["open", "Open"],
109
+ ["cancel", "Cancel"],
110
+ ["done", "Close"],
111
+ ["pending", "Pending"],
112
+ ],
113
+ size: 16,
114
+ string: "Status",
115
+ type: "selection",
116
+ views: {},
117
+ },
118
+ tarifa: {
119
+ context: "",
120
+ domain: [],
121
+ relation: "giscedata.polissa.tarifa",
122
+ size: 64,
123
+ string: "Tarifa ATR",
124
+ type: "many2one",
125
+ views: {},
126
+ },
127
+ titular_cognom1: {
128
+ size: 30,
129
+ string: "Apellido 1",
130
+ type: "char",
131
+ views: {},
132
+ },
133
+ titular_cognom2: {
134
+ size: 30,
135
+ string: "Apellido 2",
136
+ type: "char",
137
+ views: {},
138
+ },
139
+ titular_direccio_search: {
140
+ digits: [16, 2],
141
+ readonly: 1,
142
+ size: 256,
143
+ string: "Buscar por Direccion del Cliente",
144
+ type: "char",
145
+ views: {},
146
+ },
147
+ titular_email: {
148
+ size: 240,
149
+ string: "E-Mail",
150
+ type: "char",
151
+ views: {},
152
+ },
153
+ titular_nom: {
154
+ size: 40,
155
+ string: "Nombre Cliente / Razón Social",
156
+ type: "char",
157
+ views: {},
158
+ },
159
+ titular_search: {
160
+ digits: [16, 2],
161
+ readonly: 1,
162
+ size: 240,
163
+ string: "Buscar por Cliente",
164
+ type: "char",
165
+ views: {},
166
+ },
167
+ titular_vat: {
168
+ size: 11,
169
+ string: "Nº de Documento",
170
+ type: "char",
171
+ views: {},
172
+ },
173
+ user_id: {
174
+ context: "",
175
+ domain: [],
176
+ relation: "res.users",
177
+ size: 64,
178
+ string: "Responsible",
179
+ type: "many2one",
180
+ views: {},
181
+ },
182
+ },
183
+ model: "giscedata.crm.lead",
184
+ name: "giscedata.crm.lead.tree",
185
+ search_fields: {
186
+ primary: [
187
+ "create_date",
188
+ "name",
189
+ "user_id",
190
+ "stage_id",
191
+ "state",
192
+ "polissa_id",
193
+ "cups",
194
+ "date_deadline",
195
+ "titular_search",
196
+ "titular_direccio_search",
197
+ "cups_direccio_search",
198
+ ],
199
+ secondary: [
200
+ "date_closed",
201
+ "create_uid",
202
+ "comercialitzadora",
203
+ "titular_nom",
204
+ "titular_email",
205
+ "titular_vat",
206
+ "date",
207
+ "titular_cognom1",
208
+ "titular_cognom2",
209
+ "tarifa",
210
+ "partner_id",
211
+ "id",
212
+ ],
213
+ },
214
+ toolbar: {
215
+ action: [
216
+ {
217
+ auto_refresh: 0,
218
+ context: "{}",
219
+ domain: false,
220
+ groups_id: [],
221
+ id: 1656,
222
+ limit: 80,
223
+ name: "Crear Contratos a partir de Oferta/Oportunidad",
224
+ res_model: "wizard.crm.lead.create.entities",
225
+ src_model: false,
226
+ string: "Crear Contratos a partir de Oferta/Oportunidad",
227
+ target: "new",
228
+ type: "ir.actions.act_window",
229
+ usage: false,
230
+ view_id: false,
231
+ view_ids: [],
232
+ view_mode: "form",
233
+ view_type: "form",
234
+ views: [[1914, "form"]],
235
+ },
236
+ ],
237
+ print: [],
238
+ relate: [
239
+ {
240
+ auto_refresh: 0,
241
+ context: "{}",
242
+ domain: "[('id', '=', active_id)]",
243
+ groups_id: [],
244
+ id: -1,
245
+ limit: 0,
246
+ name: "Oferta/Oportunitat",
247
+ res_model: "giscedata.crm.lead",
248
+ src_model: "giscedata.crm.lead",
249
+ string: "Oferta/Oportunitat",
250
+ target: "current",
251
+ type: "ir.actions.act_window",
252
+ usage: "",
253
+ view_id: false,
254
+ view_ids: [],
255
+ view_mode: "tree,form",
256
+ view_type: "form",
257
+ views: [
258
+ [false, "tree"],
259
+ [false, "form"],
260
+ ],
261
+ },
262
+ ],
263
+ },
264
+ type: "tree",
265
+ view_id: 1909,
266
+ },
267
+ form: {
268
+ arch:
269
+ '<?xml version="1.0" encoding="UTF-8"?>\r\n<form string="Cases">\r\n <separator string="Datos del Contrato" colspan="8" />\r\n <group col="1" colspan="2">\r\n <field name="ref" /><group string="Datos Tecnicos" col="2">\r\n <field name="tarifa" on_change="onchange_generic(tarifa)" />\r\n <field name="tensio_normalitzada" />\r\n <field name="facturacio_potencia" />\r\n </group>\r\n <group col="4">\r\n <field name="llista_preu" colspan="2" />\r\n <button name="1681" string="Anexo de Precios" type="action" icon="gtk-print" readonly="0" />\r\n </group>\r\n <group string="Datos Administrativos" col="8">\r\n <field name="cnae" colspan="8" />\r\n <field name="contract_type" colspan="4" />\r\n <field name="data_alta_prevista" colspan="3" />\r\n <field name="autoconsumo" colspan="8" />\r\n </group>\r\n </group>\r\n <group string="Potencias Contratadas (kW)" col="2" colspan="2">\r\n <field name="potenciasContratadasEnKWP1" string="P1" />\r\n <field name="potenciasContratadasEnKWP2" string="P2" />\r\n <field name="potenciasContratadasEnKWP3" string="P3" />\r\n <field name="potenciasContratadasEnKWP4" string="P4" />\r\n <field name="potenciasContratadasEnKWP5" string="P5" />\r\n <field name="potenciasContratadasEnKWP6" string="P6" />\r\n </group>\r\n</form>',
270
+ field_parent: false,
271
+ fields: {
272
+ active: {
273
+ string: "Active",
274
+ type: "boolean",
275
+ views: {},
276
+ },
277
+ allow_contact: {
278
+ string: "Aceptación contactar con el cliente",
279
+ type: "boolean",
280
+ views: {},
281
+ },
282
+ atr_proces_name: {
283
+ help:
284
+ "Si se selecciona un proceso, se generara un caso ATR cuando se genere el contrato",
285
+ selection: [
286
+ ["", ""],
287
+ ["A3", "A3"],
288
+ ["C1", "C1"],
289
+ ["C2", "C2"],
290
+ ],
291
+ string: "Proceso de alta",
292
+ type: "selection",
293
+ views: {},
294
+ },
295
+ autoconsumo: {
296
+ selection: [
297
+ ["00", "Sin Autoconsumo"],
298
+ ["01", "Autoconsumo Tipo 1"],
299
+ ["2A", "Autoconsumo tipo 2 (según el Art. 13. 2. a) RD 900/2015)"],
300
+ ["2B", "Autoconsumo tipo 2 (según el Art. 13. 2. b) RD 900/2015)"],
301
+ [
302
+ "2G",
303
+ "Servicios auxiliares de generación ligada a un autoconsumo tipo 2",
304
+ ],
305
+ ["31", "Sin Excedentes Individual – Consumo"],
306
+ ["32", "Sin Excedentes Colectivo – Consumo"],
307
+ [
308
+ "33",
309
+ "Sin Excedentes Colectivo con acuerdo de compensación – Consumo",
310
+ ],
311
+ ["41", "Con excedentes y compensación Individual - Consumo "],
312
+ ["42", "Con excedentes y compensación Colectivo– Consumo"],
313
+ [
314
+ "51",
315
+ "Con excedentes sin compensación Individual sin cto de SSAA en Red Interior– Consumo",
316
+ ],
317
+ [
318
+ "52",
319
+ "Con excedentes sin compensación Colectivo sin cto de SSAA en Red Interior– Consumo",
320
+ ],
321
+ [
322
+ "53",
323
+ "Con excedentes sin compensación Individual con cto SSAA en Red Interior– Consumo",
324
+ ],
325
+ [
326
+ "54",
327
+ "Con excedentes sin compensación individual con cto SSAA en Red Interior– SSAA",
328
+ ],
329
+ [
330
+ "55",
331
+ "Con excedentes sin compensación Colectivo/en Red Interior– Consumo",
332
+ ],
333
+ [
334
+ "56",
335
+ "Con excedentes sin compensación Colectivo/en Red Interior - SSAA",
336
+ ],
337
+ [
338
+ "61",
339
+ "Con excedentes sin compensación Individual con cto SSAA a través de red – Consumo",
340
+ ],
341
+ [
342
+ "62",
343
+ "Con excedentes sin compensación individual con cto SSAA a través de red – SSAA",
344
+ ],
345
+ [
346
+ "63",
347
+ "Con excedentes sin compensación Colectivo a través de red – Consumo",
348
+ ],
349
+ [
350
+ "64",
351
+ "Con excedentes sin compensación Colectivo a través de red - SSAA",
352
+ ],
353
+ [
354
+ "71",
355
+ "Con excedentes sin compensación Individual con cto SSAA a través de red y red interior – Consumo",
356
+ ],
357
+ [
358
+ "72",
359
+ "Con excedentes sin compensación individual con cto SSAA a través de red y red interior – SSAA",
360
+ ],
361
+ [
362
+ "73",
363
+ "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior – Consumo",
364
+ ],
365
+ [
366
+ "74",
367
+ "Con excedentes sin compensación Colectivo con cto de SSAA a través de red y red interior - SSAA",
368
+ ],
369
+ ],
370
+ string: "Autoconsumo",
371
+ type: "selection",
372
+ views: {},
373
+ },
374
+ canal_id: {
375
+ context: "",
376
+ domain: [],
377
+ relation: "res.partner.canal",
378
+ size: 64,
379
+ string: "Channel",
380
+ type: "many2one",
381
+ views: {},
382
+ },
383
+ categ_id: {
384
+ context: "",
385
+ domain: "[('section_id','=',section_id)]",
386
+ relation: "crm.case.categ",
387
+ selection: [
388
+ [false, ""],
389
+ [1, "Incidència"],
390
+ ],
391
+ size: 64,
392
+ string: "Category",
393
+ type: "many2one",
394
+ views: {},
395
+ },
396
+ categ_ids: {
397
+ context: "",
398
+ domain: [],
399
+ relation: "crm.case.categ",
400
+ string: "Categories",
401
+ type: "many2many",
402
+ views: {},
403
+ },
404
+ change_adm: {
405
+ string: "Cambio Titular",
406
+ type: "boolean",
407
+ views: {},
408
+ },
409
+ change_atr: {
410
+ string: "Cambio Tarifa/Potencia",
411
+ type: "boolean",
412
+ views: {},
413
+ },
414
+ cnae: {
415
+ context: "",
416
+ domain: [],
417
+ relation: "giscemisc.cnae",
418
+ size: 64,
419
+ string: "CNAE",
420
+ type: "many2one",
421
+ views: {},
422
+ },
423
+ codigoEmpresaDistribuidora: {
424
+ size: 4,
425
+ string: "Código distribuidora",
426
+ type: "char",
427
+ views: {},
428
+ },
429
+ comer_origen: {
430
+ context: "",
431
+ domain: [],
432
+ relation: "giscedata.crm.lead.comer",
433
+ size: 64,
434
+ string: "Comercializadora actual",
435
+ type: "many2one",
436
+ views: {},
437
+ },
438
+ comercial_id: {
439
+ context: "",
440
+ domain: [],
441
+ relation: "hr.employee",
442
+ size: 64,
443
+ string: "Comercial",
444
+ type: "many2one",
445
+ views: {},
446
+ },
447
+ comercialitzadora: {
448
+ context: "",
449
+ domain: [],
450
+ relation: "res.partner",
451
+ size: 64,
452
+ string: "Comercializadora",
453
+ type: "many2one",
454
+ views: {},
455
+ },
456
+ comissio: {
457
+ selection: [["giscedata.polissa.comissio.unica", "Comissió Única"]],
458
+ size: 256,
459
+ string: "Comissión Asignada",
460
+ type: "reference",
461
+ views: {},
462
+ },
463
+ condicions_generals_id: {
464
+ context: "",
465
+ domain: [],
466
+ relation: "giscedata.polissa.condicions.generals",
467
+ size: 64,
468
+ string: "Condiciones generales",
469
+ type: "many2one",
470
+ views: {},
471
+ },
472
+ consum_anual: {
473
+ string: "Consumo Anual",
474
+ type: "integer",
475
+ views: {},
476
+ },
477
+ consum_anual_previst: {
478
+ string: "Consumo Anual Previsto",
479
+ type: "integer",
480
+ views: {},
481
+ },
482
+ cont_titular_aclarador: {
483
+ size: 256,
484
+ string: "Aclarador",
485
+ type: "char",
486
+ views: {},
487
+ },
488
+ cont_titular_apartat_correus: {
489
+ size: 5,
490
+ string: "Apartado de Correos",
491
+ type: "char",
492
+ views: {},
493
+ },
494
+ cont_titular_bq: {
495
+ size: 4,
496
+ string: "Bloque",
497
+ type: "char",
498
+ views: {},
499
+ },
500
+ cont_titular_cpa: {
501
+ size: 10,
502
+ string: "Parcela",
503
+ type: "char",
504
+ views: {},
505
+ },
506
+ cont_titular_cpo: {
507
+ size: 10,
508
+ string: "Poligono",
509
+ type: "char",
510
+ views: {},
511
+ },
512
+ cont_titular_email: {
513
+ size: 240,
514
+ string: "E-Mail",
515
+ type: "char",
516
+ views: {},
517
+ },
518
+ cont_titular_es: {
519
+ size: 10,
520
+ string: "Escalera",
521
+ type: "char",
522
+ views: {},
523
+ },
524
+ cont_titular_id_municipi: {
525
+ context: "",
526
+ domain: [],
527
+ relation: "res.municipi",
528
+ size: 64,
529
+ string: "Municipio",
530
+ type: "many2one",
531
+ views: {},
532
+ },
533
+ cont_titular_id_poblacio: {
534
+ context: "",
535
+ domain: [],
536
+ relation: "res.poblacio",
537
+ size: 64,
538
+ string: "Población",
539
+ type: "many2one",
540
+ views: {},
541
+ },
542
+ cont_titular_mobile: {
543
+ size: 64,
544
+ string: "Mobil",
545
+ type: "char",
546
+ views: {},
547
+ },
548
+ cont_titular_nom: {
549
+ size: 40,
550
+ string: "Nombre Persona de Contacto",
551
+ type: "char",
552
+ views: {},
553
+ },
554
+ cont_titular_nv: {
555
+ size: 256,
556
+ string: "Calle",
557
+ type: "char",
558
+ views: {},
559
+ },
560
+ cont_titular_phone: {
561
+ size: 64,
562
+ string: "Telefono",
563
+ type: "char",
564
+ views: {},
565
+ },
566
+ cont_titular_pnp: {
567
+ size: 10,
568
+ string: "Número",
569
+ type: "char",
570
+ views: {},
571
+ },
572
+ cont_titular_pt: {
573
+ size: 10,
574
+ string: "Planta",
575
+ type: "char",
576
+ views: {},
577
+ },
578
+ cont_titular_pu: {
579
+ size: 10,
580
+ string: "Puerta",
581
+ type: "char",
582
+ views: {},
583
+ },
584
+ cont_titular_tv: {
585
+ context: "",
586
+ domain: [],
587
+ relation: "res.tipovia",
588
+ size: 64,
589
+ string: "Tipo Via",
590
+ type: "many2one",
591
+ views: {},
592
+ },
593
+ cont_titular_zip: {
594
+ change_default: true,
595
+ size: 24,
596
+ string: "Codigo Postal",
597
+ type: "char",
598
+ views: {},
599
+ },
600
+ contact_time_range: {
601
+ size: 256,
602
+ string: "Franja horaria contacto",
603
+ type: "char",
604
+ views: {},
605
+ },
606
+ contract_type: {
607
+ selection: [
608
+ ["01", "Anual"],
609
+ ["02", "Eventual medido"],
610
+ ["03", "Temporada"],
611
+ ["05", "Suministro Régimen especial"],
612
+ ["07", "Suministro de Obras"],
613
+ ["08", "Suministro de Socorro"],
614
+ ["09", "Eventual a tanto alzado"],
615
+ ["10", "Pruebas"],
616
+ ["11", "Duplicado"],
617
+ ["12", "De reserva"],
618
+ ],
619
+ string: "Tipo contrato",
620
+ type: "selection",
621
+ views: {},
622
+ },
623
+ create_date: {
624
+ readonly: true,
625
+ string: "Created",
626
+ type: "datetime",
627
+ views: {},
628
+ },
629
+ create_ov_user: {
630
+ help:
631
+ "Si la firma digital esta habilitada se va a crear siempre l'usuario después de la firma independientemente de este campo",
632
+ string: "Crear Usuario Oficina Virtual",
633
+ type: "boolean",
634
+ views: {},
635
+ },
636
+ create_uid: {
637
+ context: "",
638
+ domain: [],
639
+ readonly: true,
640
+ relation: "res.users",
641
+ size: 64,
642
+ string: "User",
643
+ type: "many2one",
644
+ views: {},
645
+ },
646
+ cups: {
647
+ size: 22,
648
+ string: "CUPS",
649
+ type: "char",
650
+ views: {},
651
+ },
652
+ cups_aclarador: {
653
+ size: 256,
654
+ string: "Aclarador",
655
+ type: "char",
656
+ views: {},
657
+ },
658
+ cups_apartat_correus: {
659
+ size: 5,
660
+ string: "Apartado de Correos",
661
+ type: "char",
662
+ views: {},
663
+ },
664
+ cups_bq: {
665
+ size: 4,
666
+ string: "Bloque",
667
+ type: "char",
668
+ views: {},
669
+ },
670
+ cups_cpa: {
671
+ size: 10,
672
+ string: "Parcela",
673
+ type: "char",
674
+ views: {},
675
+ },
676
+ cups_cpo: {
677
+ size: 10,
678
+ string: "Poligono",
679
+ type: "char",
680
+ views: {},
681
+ },
682
+ cups_es: {
683
+ size: 10,
684
+ string: "Escalera",
685
+ type: "char",
686
+ views: {},
687
+ },
688
+ cups_id_municipi: {
689
+ context: "",
690
+ domain: [],
691
+ relation: "res.municipi",
692
+ size: 64,
693
+ string: "Municipip PS",
694
+ type: "many2one",
695
+ views: {},
696
+ },
697
+ cups_id_poblacio: {
698
+ context: "",
699
+ domain: [],
700
+ relation: "res.poblacio",
701
+ size: 64,
702
+ string: "Poblacion PS",
703
+ type: "many2one",
704
+ views: {},
705
+ },
706
+ cups_nv: {
707
+ size: 256,
708
+ string: "Calle",
709
+ type: "char",
710
+ views: {},
711
+ },
712
+ cups_pnp: {
713
+ size: 10,
714
+ string: "Número",
715
+ type: "char",
716
+ views: {},
717
+ },
718
+ cups_pt: {
719
+ size: 10,
720
+ string: "Planta",
721
+ type: "char",
722
+ views: {},
723
+ },
724
+ cups_pu: {
725
+ size: 10,
726
+ string: "Puerta",
727
+ type: "char",
728
+ views: {},
729
+ },
730
+ cups_tv: {
731
+ context: "",
732
+ domain: [],
733
+ relation: "res.tipovia",
734
+ size: 64,
735
+ string: "Tipo Via",
736
+ type: "many2one",
737
+ views: {},
738
+ },
739
+ cups_zip: {
740
+ size: 5,
741
+ string: "Código postal PS",
742
+ type: "char",
743
+ views: {},
744
+ },
745
+ data_alta_prevista: {
746
+ string: "Fecha de alta prevista",
747
+ type: "date",
748
+ views: {},
749
+ },
750
+ date: {
751
+ string: "Date",
752
+ type: "datetime",
753
+ views: {},
754
+ },
755
+ date_action_last: {
756
+ readonly: 1,
757
+ string: "Last Action",
758
+ type: "datetime",
759
+ views: {},
760
+ },
761
+ date_action_next: {
762
+ readonly: 1,
763
+ string: "Next Action",
764
+ type: "datetime",
765
+ views: {},
766
+ },
767
+ date_closed: {
768
+ readonly: true,
769
+ string: "Closed",
770
+ type: "datetime",
771
+ views: {},
772
+ },
773
+ date_deadline: {
774
+ string: "Deadline",
775
+ type: "datetime",
776
+ views: {},
777
+ },
778
+ delivery_type: {
779
+ selection: [
780
+ ["url", "Código QR"],
781
+ ["email", "Email"],
782
+ ],
783
+ string: "Forma de envío",
784
+ type: "selection",
785
+ views: {},
786
+ },
787
+ description: {
788
+ string: "Your action",
789
+ type: "text",
790
+ views: {},
791
+ },
792
+ digital_email: {
793
+ size: 240,
794
+ string: "E-Mail Firma Digital",
795
+ type: "char",
796
+ views: {},
797
+ },
798
+ digital_sign: {
799
+ string: "Firma digital",
800
+ type: "boolean",
801
+ views: {},
802
+ },
803
+ distribuidora_vat: {
804
+ size: 11,
805
+ string: "Nº de Documento distribuidora",
806
+ type: "char",
807
+ views: {},
808
+ },
809
+ email_cc: {
810
+ size: 252,
811
+ string: "Watchers Emails",
812
+ type: "char",
813
+ views: {},
814
+ },
815
+ email_from: {
816
+ size: 128,
817
+ string: "Partner Email",
818
+ type: "char",
819
+ views: {},
820
+ },
821
+ enviament: {
822
+ selection: [
823
+ ["postal", "Correu postal"],
824
+ ["email", "E-mail"],
825
+ ["postal+email", "Correu postal i e-mail"],
826
+ ],
827
+ string: "Enviar factura via",
828
+ type: "selection",
829
+ views: {},
830
+ },
831
+ facturacio: {
832
+ selection: [
833
+ [1, "Mensual"],
834
+ [2, "Bimestral"],
835
+ ],
836
+ string: "Periodicidad facturación",
837
+ type: "selection",
838
+ views: {},
839
+ },
840
+ facturacio_potencia: {
841
+ selection: [
842
+ ["max", "Maxímetro"],
843
+ ["icp", "ICP"],
844
+ ["recarrec", "Recàrrec ICP"],
845
+ ],
846
+ string: "Facturación Potencia",
847
+ type: "selection",
848
+ views: {},
849
+ },
850
+ history_line: {
851
+ context: "",
852
+ domain: [],
853
+ inv_field: "case_id",
854
+ readonly: 1,
855
+ relation: "crm.case.history",
856
+ string: "Communication",
857
+ type: "one2many",
858
+ views: {
859
+ form: {
860
+ arch:
861
+ '<form string="Communication history">\n <group col="6" colspan="4">\n <field name="date" select="1"/>\n <field name="email" select="1"/>\n <field name="canal_id" select="2"/>\n </group>\n <newline/>\n <field colspan="4" name="description" nolabel="1" select="2"/>\n </form>\n ',
862
+ fields: {
863
+ canal_id: {
864
+ context: "",
865
+ domain: [],
866
+ relation: "res.partner.canal",
867
+ size: 64,
868
+ string: "Channel",
869
+ type: "many2one",
870
+ views: {},
871
+ },
872
+ date: {
873
+ string: "Date",
874
+ type: "datetime",
875
+ views: {},
876
+ },
877
+ description: {
878
+ string: "Description",
879
+ type: "text",
880
+ views: {},
881
+ },
882
+ email: {
883
+ size: 84,
884
+ string: "Email",
885
+ type: "char",
886
+ views: {},
887
+ },
888
+ },
889
+ },
890
+ tree: {
891
+ arch:
892
+ '<tree string="Communication history">\n <field name="note"/>\n </tree>\n ',
893
+ fields: {
894
+ note: {
895
+ digits: [16, 2],
896
+ readonly: 1,
897
+ string: "Description",
898
+ type: "text",
899
+ views: {},
900
+ },
901
+ },
902
+ },
903
+ },
904
+ },
905
+ iban: {
906
+ size: 34,
907
+ string: "Cuenta IBAN",
908
+ type: "char",
909
+ views: {},
910
+ },
911
+ id: {
912
+ readonly: true,
913
+ string: "ID",
914
+ type: "integer",
915
+ },
916
+ lang: {
917
+ selection: [
918
+ ["en_US", "English"],
919
+ ["ca_ES", "Catalan / Català"],
920
+ ["es_ES", "Spanish / Español"],
921
+ ["", ""],
922
+ ],
923
+ size: 5,
924
+ string: "Idioma",
925
+ type: "selection",
926
+ views: {},
927
+ },
928
+ llista_preu: {
929
+ context: "",
930
+ domain: [],
931
+ relation: "product.pricelist",
932
+ size: 64,
933
+ string: "Tarifa de venda",
934
+ type: "many2one",
935
+ views: {},
936
+ },
937
+ log_ids: {
938
+ context: "",
939
+ domain: [],
940
+ inv_field: "case_id",
941
+ readonly: 1,
942
+ relation: "crm.case.log",
943
+ string: "Logs History",
944
+ type: "one2many",
945
+ views: {
946
+ form: {
947
+ arch:
948
+ '<form string="Actions">\n <separator colspan="4" string="Action Information"/>\n <field colspan="4" name="name"/>\n <field name="date" select="2"/>\n <field name="user_id" select="2"/>\n <field name="som" select="2"/>\n <field name="canal_id"/>\n </form>\n ',
949
+ fields: {
950
+ canal_id: {
951
+ context: "",
952
+ domain: [],
953
+ relation: "res.partner.canal",
954
+ size: 64,
955
+ string: "Channel",
956
+ type: "many2one",
957
+ views: {},
958
+ },
959
+ date: {
960
+ string: "Date",
961
+ type: "datetime",
962
+ views: {},
963
+ },
964
+ name: {
965
+ size: 64,
966
+ string: "Action",
967
+ type: "char",
968
+ views: {},
969
+ },
970
+ som: {
971
+ context: "",
972
+ domain: [],
973
+ relation: "res.partner.som",
974
+ size: 64,
975
+ string: "State of Mind",
976
+ type: "many2one",
977
+ views: {},
978
+ },
979
+ user_id: {
980
+ context: "",
981
+ domain: [],
982
+ readonly: true,
983
+ relation: "res.users",
984
+ size: 64,
985
+ string: "User Responsible",
986
+ type: "many2one",
987
+ views: {},
988
+ },
989
+ },
990
+ },
991
+ },
992
+ },
993
+ mandate_id: {
994
+ context: "",
995
+ domain: [],
996
+ relation: "payment.mandate",
997
+ size: 64,
998
+ string: "Mandato",
999
+ type: "many2one",
1000
+ views: {},
1001
+ },
1002
+ name: {
1003
+ required: true,
1004
+ size: 128,
1005
+ string: "Description",
1006
+ type: "char",
1007
+ views: {},
1008
+ },
1009
+ nombreEmpresaDistribuidora: {
1010
+ size: 60,
1011
+ string: "Empresa distribuidora",
1012
+ type: "char",
1013
+ views: {},
1014
+ },
1015
+ ov_user: {
1016
+ context: "",
1017
+ domain: [],
1018
+ relation: "ov.users",
1019
+ size: 64,
1020
+ string: "Usuari de Oficina Virtual",
1021
+ type: "many2one",
1022
+ views: {},
1023
+ },
1024
+ partner_address_id: {
1025
+ context: "",
1026
+ domain: "[('partner_id','=',partner_id)]",
1027
+ relation: "res.partner.address",
1028
+ size: 64,
1029
+ string: "Partner Contact",
1030
+ type: "many2one",
1031
+ views: {},
1032
+ },
1033
+ partner_id: {
1034
+ context: "",
1035
+ domain: [],
1036
+ relation: "res.partner",
1037
+ size: 64,
1038
+ string: "Partner",
1039
+ type: "many2one",
1040
+ views: {},
1041
+ },
1042
+ payment_mode_id: {
1043
+ context: "",
1044
+ domain: [],
1045
+ relation: "payment.mode",
1046
+ size: 64,
1047
+ string: "Grupo de pago",
1048
+ type: "many2one",
1049
+ views: {},
1050
+ },
1051
+ persona_firmant_vat: {
1052
+ size: 11,
1053
+ string: "NIF Firmante",
1054
+ type: "char",
1055
+ views: {},
1056
+ },
1057
+ persona_nom: {
1058
+ size: 80,
1059
+ string: "Nombre Firmante",
1060
+ type: "char",
1061
+ views: {},
1062
+ },
1063
+ planned_cost: {
1064
+ string: "Planned Costs",
1065
+ type: "float",
1066
+ views: {},
1067
+ },
1068
+ planned_revenue: {
1069
+ string: "Planned Revenue",
1070
+ type: "float",
1071
+ views: {},
1072
+ },
1073
+ polissa_id: {
1074
+ context: "",
1075
+ domain: [],
1076
+ relation: "giscedata.polissa",
1077
+ size: 64,
1078
+ string: "Abonat",
1079
+ type: "many2one",
1080
+ views: {},
1081
+ },
1082
+ potenciasContratadasEnKWP1: {
1083
+ digits: [15, 3],
1084
+ string: "Potencia contratada P1",
1085
+ type: "float",
1086
+ views: {},
1087
+ },
1088
+ potenciasContratadasEnKWP2: {
1089
+ digits: [15, 3],
1090
+ string: "Potencia contratada P2",
1091
+ type: "float",
1092
+ views: {},
1093
+ },
1094
+ potenciasContratadasEnKWP3: {
1095
+ digits: [15, 3],
1096
+ string: "Potencia contratada P3",
1097
+ type: "float",
1098
+ views: {},
1099
+ },
1100
+ potenciasContratadasEnKWP4: {
1101
+ digits: [15, 3],
1102
+ string: "Potencia contratada P4",
1103
+ type: "float",
1104
+ views: {},
1105
+ },
1106
+ potenciasContratadasEnKWP5: {
1107
+ digits: [15, 3],
1108
+ string: "Potencia contratada P5",
1109
+ type: "float",
1110
+ views: {},
1111
+ },
1112
+ potenciasContratadasEnKWP6: {
1113
+ digits: [15, 3],
1114
+ string: "Potencia contratada P6",
1115
+ type: "float",
1116
+ views: {},
1117
+ },
1118
+ priority: {
1119
+ selection: [
1120
+ ["5", "Lowest"],
1121
+ ["4", "Low"],
1122
+ ["3", "Normal"],
1123
+ ["2", "High"],
1124
+ ["1", "Highest"],
1125
+ ],
1126
+ string: "Priority",
1127
+ type: "selection",
1128
+ views: {},
1129
+ },
1130
+ probability: {
1131
+ string: "Probability (%)",
1132
+ type: "float",
1133
+ views: {},
1134
+ },
1135
+ ref: {
1136
+ selection: [
1137
+ ["product.product", "Product"],
1138
+ ["purchase.order", "Purchase Order"],
1139
+ ["account.invoice", "Invoice"],
1140
+ ["stock.production.lot", "Production Lot"],
1141
+ ["giscedata.polissa", "Pòlissa"],
1142
+ ["giscegas.polissa", "Contrato"],
1143
+ ["giscedata.signatura.process", "Firma"],
1144
+ ["giscedata.crm.lead", "Oferta/Oportunidad"],
1145
+ ["crm.case", "Case"],
1146
+ ["giscedata.switching", "Caso ATR"],
1147
+ ],
1148
+ size: 128,
1149
+ string: "Reference",
1150
+ type: "reference",
1151
+ views: {},
1152
+ },
1153
+ ref2: {
1154
+ selection: [
1155
+ ["product.product", "Product"],
1156
+ ["purchase.order", "Purchase Order"],
1157
+ ["account.invoice", "Invoice"],
1158
+ ["stock.production.lot", "Production Lot"],
1159
+ ["giscedata.polissa", "Pòlissa"],
1160
+ ["giscedata.polissa", "Pólissa"],
1161
+ ["giscegas.polissa", "Contrato"],
1162
+ ["giscedata.polissa", "Polissa"],
1163
+ ["giscedata.signatura.process", "Firma"],
1164
+ ["giscedata.crm.lead", "Oferta/Oportunidad"],
1165
+ ["crm.case", "Case"],
1166
+ ["giscedata.switching", "Caso ATR"],
1167
+ ],
1168
+ size: 128,
1169
+ string: "Reference 2",
1170
+ type: "reference",
1171
+ views: {},
1172
+ },
1173
+ section_id: {
1174
+ context: "",
1175
+ domain: [],
1176
+ relation: "crm.case.section",
1177
+ required: true,
1178
+ select: true,
1179
+ size: 64,
1180
+ string: "Section",
1181
+ type: "many2one",
1182
+ views: {},
1183
+ },
1184
+ sips_consums_ids: {
1185
+ context: "",
1186
+ digits: [16, 2],
1187
+ domain: [],
1188
+ readonly: 1,
1189
+ relation: "giscedata.cnmc.sips.consums.comer.ps",
1190
+ string: "Informacio del SIPS sobre consums",
1191
+ type: "many2many",
1192
+ views: {},
1193
+ },
1194
+ sips_id: {
1195
+ context: "",
1196
+ digits: [16, 2],
1197
+ domain: [],
1198
+ readonly: 1,
1199
+ relation: "giscedata.cnmc.sips.comer.ps",
1200
+ string: "Informacio del SIPS sobre el PS",
1201
+ type: "many2one",
1202
+ views: {
1203
+ form: {
1204
+ arch:
1205
+ '<form string="Informacio del SIPS sobre el PS">\n <field name="codigoEmpresaDistribuidora"/>\n <field name="cups"/>\n <field name="nombreEmpresaDistribuidora"/>\n <field name="codigoPostalPS"/>\n <field name="municipioPS"/>\n <field name="codigoProvinciaPS"/>\n <field name="fechaAltaSuministro"/>\n <field name="codigoTarifaATREnVigor"/>\n <field name="codigoTensionV"/>\n <field name="potenciaMaximaBIEW"/>\n <field name="potenciaMaximaAPMW"/>\n <field name="codigoClasificacionPS"/>\n <field name="codigoDisponibilidadICP"/>\n <field name="tipoPerfilConsumo"/>\n <field name="valorDerechosExtensionW"/>\n <field name="valorDerechosAccesoW"/>\n <field name="codigoPropiedadEquipoMedida"/>\n <field name="codigoPropiedadICP"/>\n <field name="potenciasContratadasEnWP1"/>\n <field name="potenciasContratadasEnWP2"/>\n <field name="potenciasContratadasEnWP3"/>\n <field name="potenciasContratadasEnWP4"/>\n <field name="potenciasContratadasEnWP5"/>\n <field name="potenciasContratadasEnWP6"/>\n <field name="fechaUltimoMovimientoContrato"/>\n <field name="fechaUltimoCambioComercializador"/>\n <field name="fechaLimiteDerechosReconocidos"/>\n <field name="fechaUltimaLectura"/>\n <field name="informacionImpagos"/>\n <field name="importeDepositoGarantiaEuros"/>\n <field name="tipoIdTitular"/>\n <field name="esViviendaHabitual"/>\n <field name="codigoComercializadora"/>\n <field name="codigoTelegestion"/>\n <field name="codigoFasesEquipoMedida"/>\n <field name="codigoAutoconsumo"/>\n <field name="codigoTipoContrato"/>\n <field name="codigoPeriodicidadFacturacion"/>\n <field name="codigoBIE"/>\n <field name="fechaEmisionBIE"/>\n <field name="fechaCaducidadBIE"/>\n <field name="codigoAPM"/>\n <field name="fechaEmisionAPM"/>\n <field name="fechaCaducidadAPM"/>\n <field name="relacionTransformacionIntensidad"/>\n <field name="CNAE"/>\n <field name="codigoModoControlPotencia"/>\n <field name="potenciaCGPW"/>\n <field name="codigoDHEquipoDeMedida"/>\n <field name="codigoAccesibilidadContador"/>\n <field name="codigoPSContratable"/>\n <field name="motivoEstadoNoContratable"/>\n <field name="codigoTensionMedida"/>\n <field name="codigoClaseExpediente"/>\n <field name="codigoMotivoExpediente"/>\n <field name="codigoTipoSuministro"/>\n <field name="aplicacionBonoSocial"/>\n </form>\n ',
1206
+ fields: {
1207
+ CNAE: {
1208
+ readonly: true,
1209
+ size: 4,
1210
+ string: "CNAE",
1211
+ type: "char",
1212
+ views: {},
1213
+ },
1214
+ aplicacionBonoSocial: {
1215
+ readonly: true,
1216
+ size: 1,
1217
+ string: "Aplicación bono social",
1218
+ type: "char",
1219
+ views: {},
1220
+ },
1221
+ codigoAPM: {
1222
+ readonly: true,
1223
+ size: 30,
1224
+ string: "APM",
1225
+ type: "char",
1226
+ views: {},
1227
+ },
1228
+ codigoAccesibilidadContador: {
1229
+ readonly: true,
1230
+ size: 1,
1231
+ string: "Accesibilidad contador",
1232
+ type: "char",
1233
+ views: {},
1234
+ },
1235
+ codigoAutoconsumo: {
1236
+ readonly: true,
1237
+ size: 2,
1238
+ string: "Autoconsumo",
1239
+ type: "char",
1240
+ views: {},
1241
+ },
1242
+ codigoBIE: {
1243
+ readonly: true,
1244
+ size: 30,
1245
+ string: "BIE",
1246
+ type: "char",
1247
+ views: {},
1248
+ },
1249
+ codigoClaseExpediente: {
1250
+ readonly: true,
1251
+ size: 1,
1252
+ string: "Clase expediente",
1253
+ type: "char",
1254
+ views: {},
1255
+ },
1256
+ codigoClasificacionPS: {
1257
+ readonly: true,
1258
+ selection: [
1259
+ ["01", "Punto de medida tipo 1"],
1260
+ ["02", "Punto de medida tipo 2"],
1261
+ ["03", "Punto de medida tipo 3"],
1262
+ ["04", "Punto de medida tipo 4"],
1263
+ ["05", "Punto de medida tipo 5"],
1264
+ ],
1265
+ string: "Clasificación PS",
1266
+ type: "selection",
1267
+ views: {},
1268
+ },
1269
+ codigoComercializadora: {
1270
+ readonly: true,
1271
+ size: 4,
1272
+ string: "Código comercializadora",
1273
+ type: "char",
1274
+ views: {},
1275
+ },
1276
+ codigoDHEquipoDeMedida: {
1277
+ readonly: true,
1278
+ selection: [
1279
+ ["1", "Sin discriminación horaria"],
1280
+ ["2", "Dos períodos"],
1281
+ [
1282
+ "3",
1283
+ "Tres períodos, sin discriminación de sábados y festivos",
1284
+ ],
1285
+ [
1286
+ "4",
1287
+ "Tres períodos, con discriminación de sábados y festivos",
1288
+ ],
1289
+ ["6", "Seis períodos"],
1290
+ ["8", "DH Supervalle"],
1291
+ ],
1292
+ string: "Código DH equipo de medida",
1293
+ type: "selection",
1294
+ views: {},
1295
+ },
1296
+ codigoDisponibilidadICP: {
1297
+ readonly: true,
1298
+ size: 1,
1299
+ string: "Disponibilidad ICP",
1300
+ type: "char",
1301
+ views: {},
1302
+ },
1303
+ codigoEmpresaDistribuidora: {
1304
+ readonly: true,
1305
+ size: 4,
1306
+ string: "Código distribuidora",
1307
+ type: "char",
1308
+ views: {},
1309
+ },
1310
+ codigoFasesEquipoMedida: {
1311
+ readonly: true,
1312
+ size: 1,
1313
+ string: "Fases equipo medida",
1314
+ type: "char",
1315
+ views: {},
1316
+ },
1317
+ codigoModoControlPotencia: {
1318
+ readonly: true,
1319
+ size: 1,
1320
+ string: "Modo control potencia",
1321
+ type: "char",
1322
+ views: {},
1323
+ },
1324
+ codigoMotivoExpediente: {
1325
+ readonly: true,
1326
+ size: 2,
1327
+ string: "Motivo expediente",
1328
+ type: "char",
1329
+ views: {},
1330
+ },
1331
+ codigoPSContratable: {
1332
+ readonly: true,
1333
+ size: 1,
1334
+ string: "PS contratable",
1335
+ type: "char",
1336
+ views: {},
1337
+ },
1338
+ codigoPeriodicidadFacturacion: {
1339
+ readonly: true,
1340
+ selection: [
1341
+ ["01", "Mensual"],
1342
+ ["02", "Bimestral"],
1343
+ ],
1344
+ string: "Periodicidad facturación",
1345
+ type: "selection",
1346
+ views: {},
1347
+ },
1348
+ codigoPostalPS: {
1349
+ readonly: true,
1350
+ size: 5,
1351
+ string: "Código postal",
1352
+ type: "char",
1353
+ views: {},
1354
+ },
1355
+ codigoPropiedadEquipoMedida: {
1356
+ readonly: true,
1357
+ selection: [
1358
+ ["1", "Distribuidor"],
1359
+ ["2", "Cliente"],
1360
+ ["3", "Comercializador"],
1361
+ ["4", "Otros"],
1362
+ ],
1363
+ string: "Propiedad equipo medida",
1364
+ type: "selection",
1365
+ views: {},
1366
+ },
1367
+ codigoPropiedadICP: {
1368
+ readonly: true,
1369
+ selection: [
1370
+ ["1", "Distribuidor"],
1371
+ ["2", "Cliente"],
1372
+ ["3", "Comercializador"],
1373
+ ["4", "Otros"],
1374
+ ],
1375
+ size: 16,
1376
+ string: "Propiedad ICP",
1377
+ type: "selection",
1378
+ views: {},
1379
+ },
1380
+ codigoProvinciaPS: {
1381
+ readonly: true,
1382
+ size: 2,
1383
+ string: "Provincia",
1384
+ type: "char",
1385
+ views: {},
1386
+ },
1387
+ codigoTarifaATREnVigor: {
1388
+ readonly: true,
1389
+ selection: [
1390
+ ["001", "2.0A"],
1391
+ ["003", "3.0A"],
1392
+ ["004", "2.0DHA"],
1393
+ ["005", "2.1A"],
1394
+ ["006", "2.1DHA"],
1395
+ ["007", "2.0DHS"],
1396
+ ["008", "2.1DHS"],
1397
+ ["011", "3.1A"],
1398
+ ["012", "6.1A"],
1399
+ ["013", "6.2"],
1400
+ ["014", "6.3"],
1401
+ ["015", "6.4"],
1402
+ ["016", "6.5"],
1403
+ ["017", "6.1B"],
1404
+ ],
1405
+ string: "Tarifa ATR",
1406
+ type: "selection",
1407
+ views: {},
1408
+ },
1409
+ codigoTelegestion: {
1410
+ readonly: true,
1411
+ selection: [
1412
+ ["01", "Telegestión Operativa con Curva de Carga Horaria"],
1413
+ ["02", "Telegestión Operativa sin Curva de Carga Horaria"],
1414
+ ["03", "Sin Telegestión"],
1415
+ ],
1416
+ string: "Telegestión",
1417
+ type: "selection",
1418
+ views: {},
1419
+ },
1420
+ codigoTensionMedida: {
1421
+ readonly: true,
1422
+ selection: [
1423
+ ["01", "1X220"],
1424
+ ["02", "1X230"],
1425
+ ["03", "3X380"],
1426
+ ["04", "3X380/220"],
1427
+ ["05", "3X400"],
1428
+ ["06", "3X400/230"],
1429
+ ["07", "1X127"],
1430
+ ["08", "1X133"],
1431
+ ["09", "2X220"],
1432
+ ["10", "2X230"],
1433
+ ["11", "3X220"],
1434
+ ["12", "3X220/127"],
1435
+ ["13", "3X230"],
1436
+ ["14", "3X230/133"],
1437
+ ["15", "5.000"],
1438
+ ["16", "6.000"],
1439
+ ["17", "7.200"],
1440
+ ["18", "8.000"],
1441
+ ["19", "10.000"],
1442
+ ["20", "11.000"],
1443
+ ["21", "12.000"],
1444
+ ["22", "13.000"],
1445
+ ["23", "13.200"],
1446
+ ["24", "15.000"],
1447
+ ["25", "16.500"],
1448
+ ["26", "17.000"],
1449
+ ["27", "20.000"],
1450
+ ["28", "22.000"],
1451
+ ["29", "25.000"],
1452
+ ["30", "26.500"],
1453
+ ["31", "30.000"],
1454
+ ["32", "36.000"],
1455
+ ["33", "44.000"],
1456
+ ["34", "45.000"],
1457
+ ["35", "66.000"],
1458
+ ["36", "110.000"],
1459
+ ["37", "132.000"],
1460
+ ["38", "220.000"],
1461
+ ["39", "400.000"],
1462
+ ["40", "1200"],
1463
+ ["41", "2000"],
1464
+ ["42", "5500"],
1465
+ ["43", "55000"],
1466
+ ["44", "130000"],
1467
+ ["45", "100"],
1468
+ ["46", "150"],
1469
+ ["47", "3x100"],
1470
+ ["48", "3x150/260"],
1471
+ ["49", "3x260"],
1472
+ ],
1473
+ string: "Tensión medida",
1474
+ type: "selection",
1475
+ views: {},
1476
+ },
1477
+ codigoTensionV: {
1478
+ readonly: true,
1479
+ selection: [
1480
+ ["01", "1X220"],
1481
+ ["02", "1X230"],
1482
+ ["03", "3X380"],
1483
+ ["04", "3X380/220"],
1484
+ ["05", "3X400"],
1485
+ ["06", "3X400/230"],
1486
+ ["07", "1X127"],
1487
+ ["08", "1X133"],
1488
+ ["09", "2X220"],
1489
+ ["10", "2X230"],
1490
+ ["11", "3X220"],
1491
+ ["12", "3X220/127"],
1492
+ ["13", "3X230"],
1493
+ ["14", "3X230/133"],
1494
+ ["15", "5.000"],
1495
+ ["16", "6.000"],
1496
+ ["17", "7.200"],
1497
+ ["18", "8.000"],
1498
+ ["19", "10.000"],
1499
+ ["20", "11.000"],
1500
+ ["21", "12.000"],
1501
+ ["22", "13.000"],
1502
+ ["23", "13.200"],
1503
+ ["24", "15.000"],
1504
+ ["25", "16.500"],
1505
+ ["26", "17.000"],
1506
+ ["27", "20.000"],
1507
+ ["28", "22.000"],
1508
+ ["29", "25.000"],
1509
+ ["30", "26.500"],
1510
+ ["31", "30.000"],
1511
+ ["32", "36.000"],
1512
+ ["33", "44.000"],
1513
+ ["34", "45.000"],
1514
+ ["35", "66.000"],
1515
+ ["36", "110.000"],
1516
+ ["37", "132.000"],
1517
+ ["38", "220.000"],
1518
+ ["39", "400.000"],
1519
+ ["40", "1200"],
1520
+ ["41", "2000"],
1521
+ ["42", "5500"],
1522
+ ["43", "55000"],
1523
+ ["44", "130000"],
1524
+ ["45", "100"],
1525
+ ["46", "150"],
1526
+ ["47", "3x100"],
1527
+ ["48", "3x150/260"],
1528
+ ["49", "3x260"],
1529
+ ],
1530
+ string: "Tensión (v)",
1531
+ type: "selection",
1532
+ views: {},
1533
+ },
1534
+ codigoTipoContrato: {
1535
+ readonly: true,
1536
+ selection: [
1537
+ ["01", "Anual"],
1538
+ ["02", "Eventual medido"],
1539
+ ["03", "Temporada"],
1540
+ ["05", "Suministro Régimen especial"],
1541
+ ["07", "Suministro de Obras"],
1542
+ ["08", "Suministro de Socorro"],
1543
+ ["09", "Eventual a tanto alzado"],
1544
+ ["10", "Pruebas"],
1545
+ ["11", "Duplicado"],
1546
+ ["12", "De reserva"],
1547
+ ],
1548
+ string: "Tipo contrato",
1549
+ type: "selection",
1550
+ views: {},
1551
+ },
1552
+ codigoTipoSuministro: {
1553
+ readonly: true,
1554
+ selection: [
1555
+ ["AL", "Almacén"],
1556
+ ["AP", "Alumbrado publico"],
1557
+ ["AS", "Ascensores"],
1558
+ ["AT", "Antena Telefonía Móvil"],
1559
+ ["BA", "Batería de acumuladores"],
1560
+ ["CM", "Centro de Maniobra y Control"],
1561
+ ["EA", "Escalera-Ascensor"],
1562
+ ["ES", "Escalera"],
1563
+ ["FT", "Fabrica y Talleres sin Riesgo Especifico"],
1564
+ ["FV", "Inst. Fotovoltaica"],
1565
+ ["GA", "Garaje"],
1566
+ ["GB", "Grupo Bombeo, Riego por Goteo"],
1567
+ ["HP", "Loc.Húmedos con Riesgo Corrosión o Polv."],
1568
+ ["IN", "Nave industrial"],
1569
+ ["IT", "Instalación Temporal en Emplazam.Abierto"],
1570
+ ["KC", "Kioskos / cabinas tfno"],
1571
+ ["LB", "Locales a Baja Temperatura"],
1572
+ ["LC", "Local comercial"],
1573
+ ["OF", "Oficina"],
1574
+ ["PC", "Publica concurrencia"],
1575
+ ["RA", "Refugio o Albergue Agrícola"],
1576
+ ["RT", "Repetidor de Televisión"],
1577
+ ["SA", "Servicios Auxiliares"],
1578
+ ["SC", "Sumtro complementario"],
1579
+ ["SE", "Sumtro eventual"],
1580
+ ["SG", "Servicio general vivienda"],
1581
+ ["SM", "Semáforo"],
1582
+ ["SO", "Sumtro obras"],
1583
+ ["TL", "Telecomunicaciones"],
1584
+ ["TR", "Trastero"],
1585
+ ["UF", "Uso finca"],
1586
+ ["UV", "Usos Varios"],
1587
+ ["VI", "Vivienda"],
1588
+ ],
1589
+ string: "Tipo suministro",
1590
+ type: "selection",
1591
+ views: {},
1592
+ },
1593
+ cups: {
1594
+ readonly: true,
1595
+ required: true,
1596
+ size: 22,
1597
+ string: "CUPS",
1598
+ type: "char",
1599
+ views: {},
1600
+ },
1601
+ esViviendaHabitual: {
1602
+ readonly: true,
1603
+ size: 1,
1604
+ string: "Vivienda habitual",
1605
+ type: "char",
1606
+ views: {},
1607
+ },
1608
+ fechaAltaSuministro: {
1609
+ readonly: true,
1610
+ string: "Alta suministro",
1611
+ type: "date",
1612
+ views: {},
1613
+ },
1614
+ fechaCaducidadAPM: {
1615
+ readonly: true,
1616
+ string: "Caducidad APM",
1617
+ type: "date",
1618
+ views: {},
1619
+ },
1620
+ fechaCaducidadBIE: {
1621
+ readonly: true,
1622
+ string: "Caducidad BIE",
1623
+ type: "date",
1624
+ views: {},
1625
+ },
1626
+ fechaEmisionAPM: {
1627
+ readonly: true,
1628
+ string: "Emisión APM",
1629
+ type: "date",
1630
+ views: {},
1631
+ },
1632
+ fechaEmisionBIE: {
1633
+ readonly: true,
1634
+ string: "Emisión BIE",
1635
+ type: "date",
1636
+ views: {},
1637
+ },
1638
+ fechaLimiteDerechosReconocidos: {
1639
+ readonly: true,
1640
+ string: "Límite derechos reconocidos",
1641
+ type: "date",
1642
+ views: {},
1643
+ },
1644
+ fechaUltimaLectura: {
1645
+ readonly: true,
1646
+ string: "Última lectura",
1647
+ type: "date",
1648
+ views: {},
1649
+ },
1650
+ fechaUltimoCambioComercializador: {
1651
+ readonly: true,
1652
+ string: "Último cambio comercializador",
1653
+ type: "date",
1654
+ views: {},
1655
+ },
1656
+ fechaUltimoMovimientoContrato: {
1657
+ readonly: true,
1658
+ string: "Último movimiento contrato",
1659
+ type: "date",
1660
+ views: {},
1661
+ },
1662
+ importeDepositoGarantiaEuros: {
1663
+ readonly: true,
1664
+ size: 16,
1665
+ string: "Importe depósito garantía",
1666
+ type: "char",
1667
+ views: {},
1668
+ },
1669
+ informacionImpagos: {
1670
+ readonly: true,
1671
+ size: 255,
1672
+ string: "Información impagos",
1673
+ type: "char",
1674
+ views: {},
1675
+ },
1676
+ motivoEstadoNoContratable: {
1677
+ readonly: true,
1678
+ size: 255,
1679
+ string: "Estado no contratable",
1680
+ type: "char",
1681
+ views: {},
1682
+ },
1683
+ municipioPS: {
1684
+ readonly: true,
1685
+ size: 5,
1686
+ string: "Municipio",
1687
+ type: "char",
1688
+ views: {},
1689
+ },
1690
+ nombreEmpresaDistribuidora: {
1691
+ readonly: true,
1692
+ size: 60,
1693
+ string: "Empresa distribuidora",
1694
+ type: "char",
1695
+ views: {},
1696
+ },
1697
+ potenciaCGPW: {
1698
+ readonly: true,
1699
+ size: 16,
1700
+ string: "Potencia CGP",
1701
+ type: "char",
1702
+ views: {},
1703
+ },
1704
+ potenciaMaximaAPMW: {
1705
+ readonly: true,
1706
+ size: 16,
1707
+ string: "Potencia máxima APM",
1708
+ type: "char",
1709
+ views: {},
1710
+ },
1711
+ potenciaMaximaBIEW: {
1712
+ readonly: true,
1713
+ size: 16,
1714
+ string: "Potencia máxima BIE",
1715
+ type: "char",
1716
+ views: {},
1717
+ },
1718
+ potenciasContratadasEnWP1: {
1719
+ readonly: true,
1720
+ size: 16,
1721
+ string: "Potencia contratada P1",
1722
+ type: "char",
1723
+ views: {},
1724
+ },
1725
+ potenciasContratadasEnWP2: {
1726
+ readonly: true,
1727
+ size: 16,
1728
+ string: "Potencia contratada P2",
1729
+ type: "char",
1730
+ views: {},
1731
+ },
1732
+ potenciasContratadasEnWP3: {
1733
+ readonly: true,
1734
+ size: 16,
1735
+ string: "Potencia contratada P3",
1736
+ type: "char",
1737
+ views: {},
1738
+ },
1739
+ potenciasContratadasEnWP4: {
1740
+ readonly: true,
1741
+ size: 16,
1742
+ string: "Potencia contratada P4",
1743
+ type: "char",
1744
+ views: {},
1745
+ },
1746
+ potenciasContratadasEnWP5: {
1747
+ readonly: true,
1748
+ size: 16,
1749
+ string: "Potencia contratada P5",
1750
+ type: "char",
1751
+ views: {},
1752
+ },
1753
+ potenciasContratadasEnWP6: {
1754
+ readonly: true,
1755
+ size: 16,
1756
+ string: "Potencia contratada P6",
1757
+ type: "char",
1758
+ views: {},
1759
+ },
1760
+ relacionTransformacionIntensidad: {
1761
+ readonly: true,
1762
+ size: 15,
1763
+ string: "Transformación intensidad",
1764
+ type: "char",
1765
+ views: {},
1766
+ },
1767
+ tipoIdTitular: {
1768
+ readonly: true,
1769
+ selection: [
1770
+ ["NI", "NIF"],
1771
+ ["NV", "N.I.V.A"],
1772
+ ["OT", "Otro"],
1773
+ ["PS", "Pasaporte"],
1774
+ ["NE", "NIE"],
1775
+ ],
1776
+ string: "Tipo ID titular",
1777
+ type: "selection",
1778
+ views: {},
1779
+ },
1780
+ tipoPerfilConsumo: {
1781
+ readonly: true,
1782
+ size: 2,
1783
+ string: "Tipo perfil consumo",
1784
+ type: "char",
1785
+ views: {},
1786
+ },
1787
+ valorDerechosAccesoW: {
1788
+ readonly: true,
1789
+ size: 16,
1790
+ string: "Valor derechos acceso (w)",
1791
+ type: "char",
1792
+ views: {},
1793
+ },
1794
+ valorDerechosExtensionW: {
1795
+ readonly: true,
1796
+ size: 16,
1797
+ string: "Valor derechos extensión (w)",
1798
+ type: "char",
1799
+ views: {},
1800
+ },
1801
+ },
1802
+ },
1803
+ },
1804
+ },
1805
+ som: {
1806
+ context: "",
1807
+ domain: [],
1808
+ relation: "res.partner.som",
1809
+ size: 64,
1810
+ string: "State of Mind",
1811
+ type: "many2one",
1812
+ views: {},
1813
+ },
1814
+ stage_id: {
1815
+ context: "",
1816
+ domain: "[('section_ids', '=', section_id)]",
1817
+ relation: "crm.case.stage",
1818
+ size: 64,
1819
+ string: "Stage",
1820
+ type: "many2one",
1821
+ views: {},
1822
+ },
1823
+ stage_validation_ids: {
1824
+ context: "",
1825
+ domain: [],
1826
+ inv_field: "crm_lead_id",
1827
+ relation: "crm.stage.validation",
1828
+ string: "Validaciones",
1829
+ type: "one2many",
1830
+ views: {},
1831
+ },
1832
+ state: {
1833
+ selection: [
1834
+ ["draft", "Draft"],
1835
+ ["open", "Open"],
1836
+ ["cancel", "Cancel"],
1837
+ ["done", "Close"],
1838
+ ["pending", "Pending"],
1839
+ ],
1840
+ size: 16,
1841
+ string: "Status",
1842
+ type: "selection",
1843
+ views: {},
1844
+ },
1845
+ tarifa: {
1846
+ context: "",
1847
+ domain: [],
1848
+ relation: "giscedata.polissa.tarifa",
1849
+ size: 64,
1850
+ string: "Tarifa ATR",
1851
+ type: "many2one",
1852
+ views: {},
1853
+ },
1854
+ tensio_normalitzada: {
1855
+ context: "",
1856
+ domain: [],
1857
+ relation: "giscedata.tensions.tensio",
1858
+ size: 64,
1859
+ string: "Tensió normalitzada",
1860
+ type: "many2one",
1861
+ views: {},
1862
+ },
1863
+ tipus_vivenda: {
1864
+ selection: [
1865
+ ["habitual", "Habitual"],
1866
+ ["no_habitual", "No habitual"],
1867
+ ],
1868
+ string: "Tipo vivienda",
1869
+ type: "selection",
1870
+ views: {},
1871
+ },
1872
+ titular_aclarador: {
1873
+ size: 256,
1874
+ string: "Aclarador",
1875
+ type: "char",
1876
+ views: {},
1877
+ },
1878
+ titular_apartat_correus: {
1879
+ size: 5,
1880
+ string: "Apartado de Correos",
1881
+ type: "char",
1882
+ views: {},
1883
+ },
1884
+ titular_bq: {
1885
+ size: 4,
1886
+ string: "Bloque",
1887
+ type: "char",
1888
+ views: {},
1889
+ },
1890
+ titular_cognom1: {
1891
+ size: 30,
1892
+ string: "Apellido 1",
1893
+ type: "char",
1894
+ views: {},
1895
+ },
1896
+ titular_cognom2: {
1897
+ size: 30,
1898
+ string: "Apellido 2",
1899
+ type: "char",
1900
+ views: {},
1901
+ },
1902
+ titular_cpa: {
1903
+ size: 10,
1904
+ string: "Parcela",
1905
+ type: "char",
1906
+ views: {},
1907
+ },
1908
+ titular_cpo: {
1909
+ size: 10,
1910
+ string: "Poligono",
1911
+ type: "char",
1912
+ views: {},
1913
+ },
1914
+ titular_email: {
1915
+ size: 240,
1916
+ string: "E-Mail",
1917
+ type: "char",
1918
+ views: {},
1919
+ },
1920
+ titular_es: {
1921
+ size: 10,
1922
+ string: "Escalera",
1923
+ type: "char",
1924
+ views: {},
1925
+ },
1926
+ titular_es_empresa: {
1927
+ digits: [16, 2],
1928
+ readonly: 1,
1929
+ string: "Es Empresa",
1930
+ type: "boolean",
1931
+ views: {},
1932
+ },
1933
+ titular_id_municipi: {
1934
+ context: "",
1935
+ domain: [],
1936
+ relation: "res.municipi",
1937
+ size: 64,
1938
+ string: "Municipio",
1939
+ type: "many2one",
1940
+ views: {},
1941
+ },
1942
+ titular_id_poblacio: {
1943
+ context: "",
1944
+ domain: [],
1945
+ relation: "res.poblacio",
1946
+ size: 64,
1947
+ string: "Población",
1948
+ type: "many2one",
1949
+ views: {},
1950
+ },
1951
+ titular_mobile: {
1952
+ size: 64,
1953
+ string: "Mobil",
1954
+ type: "char",
1955
+ views: {},
1956
+ },
1957
+ titular_nom: {
1958
+ size: 40,
1959
+ string: "Nombre Cliente / Razón Social",
1960
+ type: "char",
1961
+ views: {},
1962
+ },
1963
+ titular_nv: {
1964
+ size: 256,
1965
+ string: "Calle",
1966
+ type: "char",
1967
+ views: {},
1968
+ },
1969
+ titular_phone: {
1970
+ size: 64,
1971
+ string: "Telefono",
1972
+ type: "char",
1973
+ views: {},
1974
+ },
1975
+ titular_pnp: {
1976
+ size: 10,
1977
+ string: "Número",
1978
+ type: "char",
1979
+ views: {},
1980
+ },
1981
+ titular_pt: {
1982
+ size: 10,
1983
+ string: "Planta",
1984
+ type: "char",
1985
+ views: {},
1986
+ },
1987
+ titular_pu: {
1988
+ size: 10,
1989
+ string: "Puerta",
1990
+ type: "char",
1991
+ views: {},
1992
+ },
1993
+ titular_tv: {
1994
+ context: "",
1995
+ domain: [],
1996
+ relation: "res.tipovia",
1997
+ size: 64,
1998
+ string: "Tipo Via",
1999
+ type: "many2one",
2000
+ views: {},
2001
+ },
2002
+ titular_vat: {
2003
+ size: 11,
2004
+ string: "Nº de Documento",
2005
+ type: "char",
2006
+ views: {},
2007
+ },
2008
+ titular_zip: {
2009
+ change_default: true,
2010
+ size: 24,
2011
+ string: "Codigo Postal",
2012
+ type: "char",
2013
+ views: {},
2014
+ },
2015
+ use_cont_address: {
2016
+ string: "Direccion de contacto distinta a la del cliente",
2017
+ type: "boolean",
2018
+ views: {},
2019
+ },
2020
+ user_id: {
2021
+ context: "",
2022
+ domain: [],
2023
+ relation: "res.users",
2024
+ size: 64,
2025
+ string: "Responsible",
2026
+ type: "many2one",
2027
+ views: {},
2028
+ },
2029
+ },
2030
+ model: "giscedata.crm.lead",
2031
+ name: "crm.case.form",
2032
+ search_fields: {
2033
+ primary: [
2034
+ "create_uid",
2035
+ "name",
2036
+ "polissa_id",
2037
+ "date",
2038
+ "partner_id",
2039
+ "user_id",
2040
+ "id",
2041
+ "state",
2042
+ "stage_id",
2043
+ "section_id",
2044
+ ],
2045
+ secondary: [
2046
+ "description",
2047
+ "categ_ids",
2048
+ "partner_address_id",
2049
+ "som",
2050
+ "date_deadline",
2051
+ "active",
2052
+ "categ_id",
2053
+ "email_from",
2054
+ ],
2055
+ },
2056
+ toolbar: {
2057
+ action: [
2058
+ {
2059
+ auto_refresh: 0,
2060
+ context: "{}",
2061
+ domain: false,
2062
+ groups_id: [],
2063
+ id: 1656,
2064
+ limit: 80,
2065
+ name: "Crear Contratos a partir de Oferta/Oportunidad",
2066
+ res_model: "wizard.crm.lead.create.entities",
2067
+ src_model: false,
2068
+ string: "Crear Contratos a partir de Oferta/Oportunidad",
2069
+ target: "new",
2070
+ type: "ir.actions.act_window",
2071
+ usage: false,
2072
+ view_id: false,
2073
+ view_ids: [],
2074
+ view_mode: "form",
2075
+ view_type: "form",
2076
+ views: [[1914, "form"]],
2077
+ },
2078
+ ],
2079
+ print: [],
2080
+ relate: [
2081
+ {
2082
+ auto_refresh: 0,
2083
+ context: "{}",
2084
+ domain: "[('id', '=', active_id)]",
2085
+ groups_id: [],
2086
+ id: -1,
2087
+ limit: 0,
2088
+ name: "Oferta/Oportunitat",
2089
+ res_model: "giscedata.crm.lead",
2090
+ src_model: "giscedata.crm.lead",
2091
+ string: "Oferta/Oportunitat",
2092
+ target: "current",
2093
+ type: "ir.actions.act_window",
2094
+ usage: "",
2095
+ view_id: false,
2096
+ view_ids: [],
2097
+ view_mode: "tree,form",
2098
+ view_type: "form",
2099
+ views: [
2100
+ [false, "tree"],
2101
+ [false, "form"],
2102
+ ],
2103
+ },
2104
+ ],
2105
+ },
2106
+ type: "form",
2107
+ view_id: 1624,
2108
+ },
2109
+ };