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