diff --git a/.hgtags b/.hgtags
index 60aaac706a..d0466eb787 100644
--- a/.hgtags
+++ b/.hgtags
@@ -22,3 +22,366 @@ c3046a83c61339a6310b8cf56c2e4dddd59a0675 web_shortener-5.8.0
b27e5df8f64e7e96c3b895ec7090eb1bb9166eaa web_shortener-6.4.0
0000000000000000000000000000000000000000 6.6.0
cd182550e175f7de15c5940fb446d72895f68a31 web_shortener-6.6.0
+99f99784b341ce8bb34bd70d89f51aa45c24f1f7 4.2.0
+a6661fddc44d1cee9c5697d983e8fb38deb73225 4.4.0
+d5c1f780f492de8ab82da98a577a5685bb513d9b 4.6.0
+9ad3bd829ad68cd69806533416aadc50f5eb6794 4.8.0
+ca21f3a99b42b088c6588c36f5e105dae713f775 5.0.0
+c2ef0488218d9d3ee59514b744e2145bbd0147b3 5.2.0
+cb5da130470815adfd7b3681fa2803feed934f45 5.4.0
+b95009d0a58dd058440cc0cd7537e5c4499ea16a 5.6.0
+166c1e4c476baeb36b21cef7963b87b5ca07f71e 5.8.0
+ec9a4f3e26f796c12a267e4b3af717fd2a35c066 6.0.0
+355cdcd27f958fbd7e3bdd021c238283b3f0f539 6.2.0
+b81b890c871cea5a9a3fb734af72452f59969c32 6.4.0
+a9dab1237717b85084d19158a7d487d0d9adbfb4 6.6.0
+0000000000000000000000000000000000000000 4.2.0
+99f99784b341ce8bb34bd70d89f51aa45c24f1f7 web_user-4.2.0
+0000000000000000000000000000000000000000 4.4.0
+a6661fddc44d1cee9c5697d983e8fb38deb73225 web_user-4.4.0
+0000000000000000000000000000000000000000 4.6.0
+d5c1f780f492de8ab82da98a577a5685bb513d9b web_user-4.6.0
+0000000000000000000000000000000000000000 4.8.0
+9ad3bd829ad68cd69806533416aadc50f5eb6794 web_user-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+ca21f3a99b42b088c6588c36f5e105dae713f775 web_user-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+c2ef0488218d9d3ee59514b744e2145bbd0147b3 web_user-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+cb5da130470815adfd7b3681fa2803feed934f45 web_user-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+b95009d0a58dd058440cc0cd7537e5c4499ea16a web_user-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+166c1e4c476baeb36b21cef7963b87b5ca07f71e web_user-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+ec9a4f3e26f796c12a267e4b3af717fd2a35c066 web_user-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+355cdcd27f958fbd7e3bdd021c238283b3f0f539 web_user-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+b81b890c871cea5a9a3fb734af72452f59969c32 web_user-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+a9dab1237717b85084d19158a7d487d0d9adbfb4 web_user-6.6.0
+3974f546b848d4ac59551db9f733d8ed62946dfd 1.8.0
+c8fdae3b2338b744fce709572958884a95de87b3 2.0.0
+120d0435125cf3a3c28280321962571924ad422f 2.2.0
+ef9846cb18afe62182de446d8e4fa7b8393f7168 2.4.0
+648c43939fd698988bde5b54f7a1dff9d47922af 2.6.0
+5625ce03643f9f2b69659907754e5b0e924c689f 2.8.0
+31740f7e08a0c449ce6715e1ef15392fb6326ce9 3.0.0
+40affcdda4629de37997d0e5c7d3fe9ca2806b12 3.2.0
+61013c4482fc95a61d2a15a8b21574a706755b10 3.4.0
+2a2503ebd25887ff3668d470809c00c5bcf2c6c7 3.6.0
+1e741a18e2a1f29fcc66e9ab4878554a4e63a355 3.8.0
+403f21dd1bb7059a0928c46c8b21a97c14f9c720 4.0.0
+d5b1e8f047748526d9a2cd354da0e86d617ec4c7 4.2.0
+365af7e74c2baae38e96bc0afb1deae2d2b44ac0 4.4.0
+cd4731fb373698d480a625a286de776a0b9bdc6e 4.6.0
+3867b51d50056fda52882150a017a9dce6811264 4.8.0
+e86f9d540f29dfcd39e8f198b50940c8b91250d6 5.0.0
+f4a0b0e282f39c013c44e5012e6b85e4b8a4ae40 5.2.0
+03daaf3994610fde107d98d8458b2731e03c5306 5.4.0
+a8061a1d268776766c44ceb97094d229dbe31962 5.6.0
+8bc88e82ff9edc33725d08bc0c6f2862f221a127 5.8.0
+ac15e7f1881fd78d30eac0d7c772638265830c77 6.0.0
+286ac00ea47d420641bf79917025421a90a5d353 6.2.0
+1310030ca59a2d88a3995cdc5874e9c4a57c5854 6.4.0
+051cf4dfddf8c0e15109b4a74554a910cc28c6c1 6.6.0
+0000000000000000000000000000000000000000 1.8.0
+3974f546b848d4ac59551db9f733d8ed62946dfd proteus-1.8.0
+0000000000000000000000000000000000000000 2.0.0
+c8fdae3b2338b744fce709572958884a95de87b3 proteus-2.0.0
+0000000000000000000000000000000000000000 2.2.0
+120d0435125cf3a3c28280321962571924ad422f proteus-2.2.0
+0000000000000000000000000000000000000000 2.4.0
+ef9846cb18afe62182de446d8e4fa7b8393f7168 proteus-2.4.0
+0000000000000000000000000000000000000000 2.6.0
+648c43939fd698988bde5b54f7a1dff9d47922af proteus-2.6.0
+0000000000000000000000000000000000000000 2.8.0
+5625ce03643f9f2b69659907754e5b0e924c689f proteus-2.8.0
+0000000000000000000000000000000000000000 3.0.0
+31740f7e08a0c449ce6715e1ef15392fb6326ce9 proteus-3.0.0
+0000000000000000000000000000000000000000 3.2.0
+40affcdda4629de37997d0e5c7d3fe9ca2806b12 proteus-3.2.0
+0000000000000000000000000000000000000000 3.4.0
+61013c4482fc95a61d2a15a8b21574a706755b10 proteus-3.4.0
+0000000000000000000000000000000000000000 3.6.0
+2a2503ebd25887ff3668d470809c00c5bcf2c6c7 proteus-3.6.0
+0000000000000000000000000000000000000000 3.8.0
+1e741a18e2a1f29fcc66e9ab4878554a4e63a355 proteus-3.8.0
+0000000000000000000000000000000000000000 4.0.0
+403f21dd1bb7059a0928c46c8b21a97c14f9c720 proteus-4.0.0
+0000000000000000000000000000000000000000 4.2.0
+d5b1e8f047748526d9a2cd354da0e86d617ec4c7 proteus-4.2.0
+0000000000000000000000000000000000000000 4.4.0
+365af7e74c2baae38e96bc0afb1deae2d2b44ac0 proteus-4.4.0
+0000000000000000000000000000000000000000 4.6.0
+cd4731fb373698d480a625a286de776a0b9bdc6e proteus-4.6.0
+0000000000000000000000000000000000000000 4.8.0
+3867b51d50056fda52882150a017a9dce6811264 proteus-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+e86f9d540f29dfcd39e8f198b50940c8b91250d6 proteus-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+f4a0b0e282f39c013c44e5012e6b85e4b8a4ae40 proteus-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+03daaf3994610fde107d98d8458b2731e03c5306 proteus-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+a8061a1d268776766c44ceb97094d229dbe31962 proteus-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+8bc88e82ff9edc33725d08bc0c6f2862f221a127 proteus-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+ac15e7f1881fd78d30eac0d7c772638265830c77 proteus-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+286ac00ea47d420641bf79917025421a90a5d353 proteus-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+1310030ca59a2d88a3995cdc5874e9c4a57c5854 proteus-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+051cf4dfddf8c0e15109b4a74554a910cc28c6c1 proteus-6.6.0
+c835144ba5fd172c9aa8714683e69ca60bc894bc 3.8.0
+20712dc81634af43f9e0ebb41b0dcea50ccffdd2 4.0.0
+963504a30207af5877c11368ac5dadbc5d28fee1 4.2.0
+1fea2b717dd8d57d0a233c19d7f1eec35bdde0fa 4.4.0
+16a536201007ba66d36040a34e79a8998c4051f8 4.6.0
+08b000057b0b5a69f4034f2e1f5c7f2f7f23276f 4.8.0
+47edb75271514576ea775d28dc286a120675aa32 5.0.0
+4074fcefe73deec0b4dcd8b2e29f6c3c8eade611 5.2.0
+2d6d3a648c1dc1711adcc7bd3ff0930949b3076a 5.4.0
+513d2f77dc3bb1f5335af4faf233ccaa1711ac82 5.6.0
+e013e9930e2f27e5205b93f39d49f3604ae07901 5.8.0
+031cd536bd9f4e89345876c2d438626c57fbb33c 6.0.0
+e6b66ac38f2f3aefeddeba9fc0b3cee375d1f19a 6.2.0
+4a114b18bce58de90577d7975b0c275b45ecdcb0 6.4.0
+1bf438772b1bb9702ebb9bbcbce96f7ab53a94eb 6.6.0
+0000000000000000000000000000000000000000 3.8.0
+c835144ba5fd172c9aa8714683e69ca60bc894bc sao-3.8.0
+0000000000000000000000000000000000000000 4.0.0
+20712dc81634af43f9e0ebb41b0dcea50ccffdd2 sao-4.0.0
+0000000000000000000000000000000000000000 4.2.0
+963504a30207af5877c11368ac5dadbc5d28fee1 sao-4.2.0
+0000000000000000000000000000000000000000 4.4.0
+1fea2b717dd8d57d0a233c19d7f1eec35bdde0fa sao-4.4.0
+0000000000000000000000000000000000000000 4.6.0
+16a536201007ba66d36040a34e79a8998c4051f8 sao-4.6.0
+0000000000000000000000000000000000000000 4.8.0
+08b000057b0b5a69f4034f2e1f5c7f2f7f23276f sao-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+47edb75271514576ea775d28dc286a120675aa32 sao-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+4074fcefe73deec0b4dcd8b2e29f6c3c8eade611 sao-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+2d6d3a648c1dc1711adcc7bd3ff0930949b3076a sao-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+513d2f77dc3bb1f5335af4faf233ccaa1711ac82 sao-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+e013e9930e2f27e5205b93f39d49f3604ae07901 sao-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+031cd536bd9f4e89345876c2d438626c57fbb33c sao-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+e6b66ac38f2f3aefeddeba9fc0b3cee375d1f19a sao-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+4a114b18bce58de90577d7975b0c275b45ecdcb0 sao-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+1bf438772b1bb9702ebb9bbcbce96f7ab53a94eb sao-6.6.0
+4b876ac37410e223bc3628256425d80398d051c6 4.8.0
+144f9950fba568bd77ac0eecd02c7b0d0a98ba87 5.0.0
+ed88584857aa1b39459a420270c0253d460cfe48 5.2.0
+ed46c63b027820aa6e605bb53040f4ed4d133813 5.4.0
+d2db68823a8225ff32842da4e948c1c01197e5cc 5.6.0
+eeab3256f17f6b9bc111d74d6d7f984e75d70f17 5.8.0
+4d33daf649c10711b782ef82b71e49d1a725ccee 6.0.0
+77df2082ed44a6655dd151c09cf8a7ca36ec6499 6.2.0
+88192dc708bc13b43a99168c97642106684bbfeb 6.4.0
+312583490fff372849dfb38c7c849325d40bbf81 6.6.0
+0000000000000000000000000000000000000000 4.8.0
+4b876ac37410e223bc3628256425d80398d051c6 trytond-gis-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+144f9950fba568bd77ac0eecd02c7b0d0a98ba87 trytond-gis-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+ed88584857aa1b39459a420270c0253d460cfe48 trytond-gis-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+ed46c63b027820aa6e605bb53040f4ed4d133813 trytond-gis-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+d2db68823a8225ff32842da4e948c1c01197e5cc trytond-gis-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+eeab3256f17f6b9bc111d74d6d7f984e75d70f17 trytond-gis-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+4d33daf649c10711b782ef82b71e49d1a725ccee trytond-gis-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+77df2082ed44a6655dd151c09cf8a7ca36ec6499 trytond-gis-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+88192dc708bc13b43a99168c97642106684bbfeb trytond-gis-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+312583490fff372849dfb38c7c849325d40bbf81 trytond-gis-6.6.0
+951bb3311b916cb893adc5294cfb3216d2940169 1.0.0
+9f5ce178a7c403a0865fd4b6c1a82a911df0e998 1.2.0
+e2d31d59de7745de70199b7c340d78b7c4775723 1.4.0
+64691214959ac19983f3b3d1dbb89ff693d1545c 1.6.0
+af3a6063b46bf8739a513a06400fbb9858b5869b 1.8.0
+3475040a8fe081b1b8609350186b779cc640fba4 2.0.0
+1df3f0702c621e65279af52d1f87725747ae8fa4 2.2.0
+640af4420c8eace7ee59a432bec54692f4808b20 2.4.0
+36530840a1d0dce354bbaa58ec849a409d306d83 2.6.0
+2893d6c3efd6df3759ab09a28ea16773a160118e 2.8.0
+759c6ff44b90b8c685e9d9a4124bcd85af204649 3.0.0
+b3d84aa2c3a6ed3b76bfb58a40fc687f68824c29 3.2.0
+f0a9fa755cde703be54efd747f376b096ea8316c 3.4.0
+1e4ba5a3f16e6afd59131b49841eb004e706619d 3.6.0
+0a29a9dba7f56fbdef067772eea3f037934999c9 3.8.0
+49a0caa894dae201ed4ec707f277d9859b5521fb 4.0.0
+eb8949ec5bcedba563b5799f1315a0cecfee61f6 4.2.0
+f253ce8ed02f4c46a69b8b2f29311ad8959698be 4.4.0
+e7a6d0e8002237f624ecc8a45a6a472f7baadd08 4.6.0
+321b0104a732419c11aa4926785502e0615b89c9 4.8.0
+e8cadc044d59edff8a2ca73932c723d507517ec8 5.0.0
+ef34e4e92d45ab2b2b2956bbb6aa8b3ca259eb13 5.2.0
+32170ff46339dbc8609225791ab737a0f3eb0291 5.4.0
+5738a22adbb45390167194e4089adc46c6b638a3 5.6.0
+e21456b81972188261b8a6fc876afc18f641c85b 5.8.0
+2164597ffa5f4f0443e4804944b30f5491070990 6.0.0
+1252631aa5277267887251090d6e2f7ed6d41503 6.2.0
+2593216de16bfca661479ed068b87fd0e83260e0 6.4.0
+e5934d7675cbdbf6e534ea4a01f9e1d0792e22b4 6.6.0
+0000000000000000000000000000000000000000 1.0.0
+951bb3311b916cb893adc5294cfb3216d2940169 trytond-1.0.0
+0000000000000000000000000000000000000000 1.2.0
+9f5ce178a7c403a0865fd4b6c1a82a911df0e998 trytond-1.2.0
+0000000000000000000000000000000000000000 1.4.0
+e2d31d59de7745de70199b7c340d78b7c4775723 trytond-1.4.0
+0000000000000000000000000000000000000000 1.6.0
+64691214959ac19983f3b3d1dbb89ff693d1545c trytond-1.6.0
+0000000000000000000000000000000000000000 1.8.0
+af3a6063b46bf8739a513a06400fbb9858b5869b trytond-1.8.0
+0000000000000000000000000000000000000000 2.0.0
+3475040a8fe081b1b8609350186b779cc640fba4 trytond-2.0.0
+0000000000000000000000000000000000000000 2.2.0
+1df3f0702c621e65279af52d1f87725747ae8fa4 trytond-2.2.0
+0000000000000000000000000000000000000000 2.4.0
+640af4420c8eace7ee59a432bec54692f4808b20 trytond-2.4.0
+0000000000000000000000000000000000000000 2.6.0
+36530840a1d0dce354bbaa58ec849a409d306d83 trytond-2.6.0
+0000000000000000000000000000000000000000 2.8.0
+2893d6c3efd6df3759ab09a28ea16773a160118e trytond-2.8.0
+0000000000000000000000000000000000000000 3.0.0
+759c6ff44b90b8c685e9d9a4124bcd85af204649 trytond-3.0.0
+0000000000000000000000000000000000000000 3.2.0
+b3d84aa2c3a6ed3b76bfb58a40fc687f68824c29 trytond-3.2.0
+0000000000000000000000000000000000000000 3.4.0
+f0a9fa755cde703be54efd747f376b096ea8316c trytond-3.4.0
+0000000000000000000000000000000000000000 3.6.0
+1e4ba5a3f16e6afd59131b49841eb004e706619d trytond-3.6.0
+0000000000000000000000000000000000000000 3.8.0
+0a29a9dba7f56fbdef067772eea3f037934999c9 trytond-3.8.0
+0000000000000000000000000000000000000000 4.0.0
+49a0caa894dae201ed4ec707f277d9859b5521fb trytond-4.0.0
+0000000000000000000000000000000000000000 4.2.0
+eb8949ec5bcedba563b5799f1315a0cecfee61f6 trytond-4.2.0
+0000000000000000000000000000000000000000 4.4.0
+f253ce8ed02f4c46a69b8b2f29311ad8959698be trytond-4.4.0
+0000000000000000000000000000000000000000 4.6.0
+e7a6d0e8002237f624ecc8a45a6a472f7baadd08 trytond-4.6.0
+0000000000000000000000000000000000000000 4.8.0
+321b0104a732419c11aa4926785502e0615b89c9 trytond-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+e8cadc044d59edff8a2ca73932c723d507517ec8 trytond-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+ef34e4e92d45ab2b2b2956bbb6aa8b3ca259eb13 trytond-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+32170ff46339dbc8609225791ab737a0f3eb0291 trytond-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+5738a22adbb45390167194e4089adc46c6b638a3 trytond-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+e21456b81972188261b8a6fc876afc18f641c85b trytond-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+2164597ffa5f4f0443e4804944b30f5491070990 trytond-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+1252631aa5277267887251090d6e2f7ed6d41503 trytond-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+2593216de16bfca661479ed068b87fd0e83260e0 trytond-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+e5934d7675cbdbf6e534ea4a01f9e1d0792e22b4 trytond-6.6.0
+923b3073b686c6dc5a921d0561c934adf3eeb879 1.0.0
+9a6434d63616f46520b6fa1b2be31906ff6f4f6a 1.2.0
+de84c1443d4bad908eabb99c381578b988c2117f 1.4.0
+3976912b23dfc5db2525d4c2e55d17f099d9492d 1.6.0
+8aa050da53cbdfabe1353a37da91c011b7fff549 1.8.0
+1876747b3f963ba6011b4bcf6968e681624c6e24 2.0.0
+5364f8ca6cd2cccfb5f7f39c69bb20bae2b5f495 2.2.0
+fe15da23f7333e0e90d2693aadddf6bed53ed602 2.4.0
+d069f9f1cdc3fea39e71415268582abb2b333ea1 2.6.0
+21fbf8bd36096d926c472acfecd3963369204af8 2.8.0
+9197d90b0257ec7c4576a38092fd592b3e87f7a4 3.0.0
+9721289ee2fdaab8b990de9327c3eab87363c88c 3.2.0
+8e5cba59137f9d0a063fa6d7855e09a51bc5889c 3.4.0
+1ac658605d42d82988cfb232afebfe359aba7776 3.6.0
+f4b9c8a84cf61935afec788c3c639982731452ef 3.8.0
+44d8ed92ff90cf98c4c01d37f12d344d9d66e7f1 4.0.0
+94037cff031ef897c9533a579356977c8a3cf695 4.2.0
+763dc5d8e1d7e483edbf9977dd96afc114555555 4.4.0
+d7ed5002e47249d019fbc546f6ac562db44c54f2 4.6.0
+2a2b48ea60fbb5201ea12443000d3a106a2fa27c 4.8.0
+70ade9d1fe04c734fe2dd7d35dd75b13f1af902a 5.0.0
+d5652dee45a43fccc1f33d39050af6e00e073273 5.2.0
+9f3fbb33df184ca19350cc71054dd9afd55f1cb7 5.4.0
+45d3f736ffb4396ee0dac0e2110fcc17237337ba 5.6.0
+df9de0ceeb27b38b165da7526accad0ad6682e86 5.8.0
+d18d03f0c540dfd2aae81dfaac048378a62c0ef6 6.0.0
+932b5115f37ddb479b4034bf1438e48df198cc05 6.2.0
+4100f887dd4a3d7511c0c0547e766db7845114e3 6.4.0
+f3542b3396f897c2231e629437f528371d3d11db 6.6.0
+0000000000000000000000000000000000000000 1.0.0
+923b3073b686c6dc5a921d0561c934adf3eeb879 tryton-1.0.0
+0000000000000000000000000000000000000000 1.2.0
+9a6434d63616f46520b6fa1b2be31906ff6f4f6a tryton-1.2.0
+0000000000000000000000000000000000000000 1.4.0
+de84c1443d4bad908eabb99c381578b988c2117f tryton-1.4.0
+0000000000000000000000000000000000000000 1.6.0
+3976912b23dfc5db2525d4c2e55d17f099d9492d tryton-1.6.0
+0000000000000000000000000000000000000000 1.8.0
+8aa050da53cbdfabe1353a37da91c011b7fff549 tryton-1.8.0
+0000000000000000000000000000000000000000 2.0.0
+1876747b3f963ba6011b4bcf6968e681624c6e24 tryton-2.0.0
+0000000000000000000000000000000000000000 2.2.0
+5364f8ca6cd2cccfb5f7f39c69bb20bae2b5f495 tryton-2.2.0
+0000000000000000000000000000000000000000 2.4.0
+fe15da23f7333e0e90d2693aadddf6bed53ed602 tryton-2.4.0
+0000000000000000000000000000000000000000 2.6.0
+d069f9f1cdc3fea39e71415268582abb2b333ea1 tryton-2.6.0
+0000000000000000000000000000000000000000 2.8.0
+21fbf8bd36096d926c472acfecd3963369204af8 tryton-2.8.0
+0000000000000000000000000000000000000000 3.0.0
+9197d90b0257ec7c4576a38092fd592b3e87f7a4 tryton-3.0.0
+0000000000000000000000000000000000000000 3.2.0
+9721289ee2fdaab8b990de9327c3eab87363c88c tryton-3.2.0
+0000000000000000000000000000000000000000 3.4.0
+8e5cba59137f9d0a063fa6d7855e09a51bc5889c tryton-3.4.0
+0000000000000000000000000000000000000000 3.6.0
+1ac658605d42d82988cfb232afebfe359aba7776 tryton-3.6.0
+0000000000000000000000000000000000000000 3.8.0
+f4b9c8a84cf61935afec788c3c639982731452ef tryton-3.8.0
+0000000000000000000000000000000000000000 4.0.0
+44d8ed92ff90cf98c4c01d37f12d344d9d66e7f1 tryton-4.0.0
+0000000000000000000000000000000000000000 4.2.0
+94037cff031ef897c9533a579356977c8a3cf695 tryton-4.2.0
+0000000000000000000000000000000000000000 4.4.0
+763dc5d8e1d7e483edbf9977dd96afc114555555 tryton-4.4.0
+0000000000000000000000000000000000000000 4.6.0
+d7ed5002e47249d019fbc546f6ac562db44c54f2 tryton-4.6.0
+0000000000000000000000000000000000000000 4.8.0
+2a2b48ea60fbb5201ea12443000d3a106a2fa27c tryton-4.8.0
+0000000000000000000000000000000000000000 5.0.0
+70ade9d1fe04c734fe2dd7d35dd75b13f1af902a tryton-5.0.0
+0000000000000000000000000000000000000000 5.2.0
+d5652dee45a43fccc1f33d39050af6e00e073273 tryton-5.2.0
+0000000000000000000000000000000000000000 5.4.0
+9f3fbb33df184ca19350cc71054dd9afd55f1cb7 tryton-5.4.0
+0000000000000000000000000000000000000000 5.6.0
+45d3f736ffb4396ee0dac0e2110fcc17237337ba tryton-5.6.0
+0000000000000000000000000000000000000000 5.8.0
+df9de0ceeb27b38b165da7526accad0ad6682e86 tryton-5.8.0
+0000000000000000000000000000000000000000 6.0.0
+d18d03f0c540dfd2aae81dfaac048378a62c0ef6 tryton-6.0.0
+0000000000000000000000000000000000000000 6.2.0
+932b5115f37ddb479b4034bf1438e48df198cc05 tryton-6.2.0
+0000000000000000000000000000000000000000 6.4.0
+4100f887dd4a3d7511c0c0547e766db7845114e3 tryton-6.4.0
+0000000000000000000000000000000000000000 6.6.0
+f3542b3396f897c2231e629437f528371d3d11db tryton-6.6.0
diff --git a/modules/web_user/.drone.yml b/modules/web_user/.drone.yml
new file mode 100644
index 0000000000..cb4fbecb4d
--- /dev/null
+++ b/modules/web_user/.drone.yml
@@ -0,0 +1,70 @@
+clone:
+ hg:
+ image: plugins/hg
+ environment:
+ - HG_SHARE_POOL=/root/.cache/hg
+ volumes:
+ - cache:/root/.cache
+
+pipeline:
+ tox:
+ image: ${IMAGE}
+ environment:
+ - CFLAGS=-O0
+ - DB_CACHE=/cache
+ - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
+ - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
+ commands:
+ - echo "[extensions]" >> /root/.hgrc
+ - echo "hgext.share =" >> /root/.hgrc
+ - echo "[share]" >> /root/.hgrc
+ - echo "pool = /root/.cache/hg" >> /root/.hgrc
+ - pip install tox
+ - tox -e "${TOXENV}-${DATABASE}"
+ volumes:
+ - cache:/root/.cache
+ check_dist:
+ image: ${IMAGE}
+ commands:
+ - pip install twine
+ - python setup.py sdist
+ - twine check dist/*
+ volumes:
+ - cache:/root/.cache
+
+services:
+ postgresql:
+ image: postgres
+ environment:
+ - POSTGRES_HOST_AUTH_METHOD=trust
+ command: "-c fsync=off -c synchronous_commit=off -c full_page_writes=off"
+ when:
+ matrix:
+ DATABASE: postgresql
+
+matrix:
+ include:
+ - IMAGE: python:3.7
+ TOXENV: py37
+ DATABASE: sqlite
+ - IMAGE: python:3.7
+ TOXENV: py37
+ DATABASE: postgresql
+ - IMAGE: python:3.8
+ TOXENV: py38
+ DATABASE: sqlite
+ - IMAGE: python:3.8
+ TOXENV: py38
+ DATABASE: postgresql
+ - IMAGE: python:3.9
+ TOXENV: py39
+ DATABASE: sqlite
+ - IMAGE: python:3.9
+ TOXENV: py39
+ DATABASE: postgresql
+ - IMAGE: python:3.10
+ TOXENV: py310
+ DATABASE: sqlite
+ - IMAGE: python:3.10
+ TOXENV: py310
+ DATABASE: postgresql
diff --git a/modules/web_user/.flake8 b/modules/web_user/.flake8
new file mode 100644
index 0000000000..fa6b4f66d1
--- /dev/null
+++ b/modules/web_user/.flake8
@@ -0,0 +1,2 @@
+[flake8]
+ignore=E123,E124,E126,E128,E741,W503
diff --git a/modules/web_user/.isort.cfg b/modules/web_user/.isort.cfg
new file mode 100644
index 0000000000..e1c6495da9
--- /dev/null
+++ b/modules/web_user/.isort.cfg
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff --git a/modules/web_user/CHANGELOG b/modules/web_user/CHANGELOG
new file mode 100644
index 0000000000..56840ca0ed
--- /dev/null
+++ b/modules/web_user/CHANGELOG
@@ -0,0 +1,51 @@
+Version 6.6.0 - 2022-10-31
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add expire delay in reset password email
+
+Version 6.4.0 - 2022-05-02
+* Bug fixes (see mercurial logs for details)
+* Add support for Python 3.10
+* Remove support for Python 3.6
+
+Version 6.2.0 - 2021-11-01
+* Bug fixes (see mercurial logs for details)
+
+Version 6.0.0 - 2021-05-03
+* Bug fixes (see mercurial logs for details)
+
+Version 5.8.0 - 2020-11-02
+* Bug fixes (see mercurial logs for details)
+* Remove support for Python 3.5
+* Add secondary parties on user
+
+Version 5.6.0 - 2020-05-04
+* Bug fixes (see mercurial logs for details)
+
+Version 5.4.0 - 2019-11-04
+* Bug fixes (see mercurial logs for details)
+
+Version 5.2.0 - 2019-05-06
+* Bug fixes (see mercurial logs for details)
+
+Version 5.0.0 - 2018-10-01
+* Bug fixes (see mercurial logs for details)
+* Remove support for Python 2.7
+* Add remove and reset session methods
+
+Version 4.8.0 - 2018-04-23
+* Bug fixes (see mercurial logs for details)
+* Erase user email when party is erased
+* Require email only for active user
+* Add maximum authentication attempt
+
+Version 4.6.0 - 2017-10-30
+* Bug fixes (see mercurial logs for details)
+* Increase session randomness to 32 bytes
+* Manage email case insensitively
+
+Version 4.4.0 - 2017-05-01
+* Bug fixes (see mercurial logs for details)
+
+Version 4.2.0 - 2016-11-28
+* Initial release
diff --git a/modules/web_user/COPYRIGHT b/modules/web_user/COPYRIGHT
new file mode 100644
index 0000000000..821dba2084
--- /dev/null
+++ b/modules/web_user/COPYRIGHT
@@ -0,0 +1,15 @@
+Copyright (C) 2016-2022 Cédric Krier
+Copyright (C) 2016-2022 B2CK
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
diff --git a/modules/web_user/LICENSE b/modules/web_user/LICENSE
new file mode 100644
index 0000000000..94a9ed024d
--- /dev/null
+++ b/modules/web_user/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/modules/web_user/MANIFEST.in b/modules/web_user/MANIFEST.in
new file mode 100644
index 0000000000..f7e7aaa36b
--- /dev/null
+++ b/modules/web_user/MANIFEST.in
@@ -0,0 +1,6 @@
+include CHANGELOG
+include COPYRIGHT
+include LICENSE
+include README.rst
+include icons/LICENSE
+graft doc
diff --git a/modules/web_user/README.rst b/modules/web_user/README.rst
new file mode 120000
index 0000000000..176d9c2695
--- /dev/null
+++ b/modules/web_user/README.rst
@@ -0,0 +1 @@
+doc/index.rst
\ No newline at end of file
diff --git a/modules/web_user/__init__.py b/modules/web_user/__init__.py
new file mode 100644
index 0000000000..3d065429f8
--- /dev/null
+++ b/modules/web_user/__init__.py
@@ -0,0 +1,25 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+
+from trytond.pool import Pool
+
+from . import ir, party, user
+
+
+def register():
+ Pool.register(
+ user.User,
+ user.User_PartySecondary,
+ user.UserAuthenticateAttempt,
+ user.UserSession,
+ ir.Email,
+ ir.EmailTemplate,
+ module='web_user', type_='model')
+ Pool.register(
+ party.Replace,
+ party.Erase,
+ module='web_user', type_='wizard')
+ Pool.register(
+ user.EmailValidation,
+ user.EmailResetPassword,
+ module='web_user', type_='report')
diff --git a/modules/web_user/doc/index.rst b/modules/web_user/doc/index.rst
new file mode 100644
index 0000000000..3495e03652
--- /dev/null
+++ b/modules/web_user/doc/index.rst
@@ -0,0 +1,43 @@
+Web User Module
+###############
+
+The web_user module provides facilities to manage external user accessing from
+the web.
+
+User
+****
+
+A user is uniquely identified by an email and he is authenticated using a
+hashed password. The user can be linked to a Party.
+
+Two actions are available:
+
+- The *Validate E-mail* which sent an e-mail to the user with a link to an URL
+ that ensures the address exists.
+- The *Reset Password* which sent an e-mail to the user with a link to an URL
+ to set a new password.
+
+Configuration
+*************
+
+The web_user module uses parameters from different sections:
+
+- `web`:
+
+ - `reset_password_url`: the URL to reset the password to which the
+ parameters `email` and `token` will be added.
+
+ - `email_validation_url`: the URL for email validation to which the
+ parameter `token` will be added.
+
+- `email`:
+
+ - `from`: the origin address to send emails.
+
+- `session`:
+
+ - `web_timeout`: defines in seconds the validity of the web session.
+ Default: 30 days.
+
+ - `web_timeout_reset`: in seconds the validity of the reset password token.
+ Default: 1 day.
diff --git a/modules/web_user/email_reset_password.html b/modules/web_user/email_reset_password.html
new file mode 100644
index 0000000000..6b9a2979d0
--- /dev/null
+++ b/modules/web_user/email_reset_password.html
@@ -0,0 +1,29 @@
+
+
+
+ Reset Password
+
+
+
+
+
+
Reset Password
+
We received a request to reset the password for your account: ${user.email}
Button is not working? Paste this into your browser:
+
${user.get_email_validation_url()}
+
If you received this email by mistake, just ignore it.
+
+
+
+
+
diff --git a/modules/web_user/ir.py b/modules/web_user/ir.py
new file mode 100644
index 0000000000..0882411411
--- /dev/null
+++ b/modules/web_user/ir.py
@@ -0,0 +1,55 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+from trytond.pool import Pool, PoolMeta
+from trytond.tools import escape_wildcard
+
+
+class Email(metaclass=PoolMeta):
+ __name__ = 'ir.email'
+
+ @classmethod
+ def _match(cls, name, email):
+ pool = Pool()
+ User = pool.get('web.user')
+ yield from super()._match(name, email)
+ domain = ['OR']
+ for field in ['party.name', 'email']:
+ for value in [name, email]:
+ if value and len(value) >= 3:
+ domain.append(
+ (field, 'ilike', '%' + escape_wildcard(value) + '%'))
+ for user in User.search([
+ ('email', '!=', ''),
+ domain,
+ ], order=[]):
+ yield user.party.name if user.party else '', user.email
+
+
+class EmailTemplate(metaclass=PoolMeta):
+ __name__ = 'ir.email.template'
+
+ @classmethod
+ def email_models(cls):
+ return super().email_models() + ['web.user']
+
+ @classmethod
+ def _get_address(cls, record):
+ pool = Pool()
+ User = pool.get('web.user')
+ address = super()._get_address(record)
+ if isinstance(record, User):
+ name = None
+ if record.party:
+ name = record.party.name
+ address = (name, record.email)
+ return address
+
+ @classmethod
+ def _get_language(cls, record):
+ pool = Pool()
+ User = pool.get('web.user')
+ language = super()._get_language(record)
+ if isinstance(record, User):
+ if record.party:
+ language = cls._get_language(record.party)
+ return language
diff --git a/modules/web_user/locale/bg.po b/modules/web_user/locale/bg.po
new file mode 100644
index 0000000000..3fec74141f
--- /dev/null
+++ b/modules/web_user/locale/bg.po
@@ -0,0 +1,190 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Управление на партньор"
+
+#, fuzzy
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Парола"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Управление на партньор"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Потребител"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Потребителско име"
+
+#, fuzzy
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Ключ"
+
+#, fuzzy
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Потребител"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Проверка"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/ca.po b/modules/web_user/locale/ca.po
new file mode 100644
index 0000000000..2ca8acd4d3
--- /dev/null
+++ b/modules/web_user/locale/ca.po
@@ -0,0 +1,178 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "Correu electrònic"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Token del correu electrònic"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "Correu electrònic vàlid"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Tercer"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Contrasenya"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Hash de la contrasenya"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Token restableix la contrasenya"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Expiració token restableix contrasenya"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Tercers secundaris"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Tercer"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Usuari"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Galeta de dispositiu"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "Adreça IP"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "Xarxa IP"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Nom usuari"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Clau"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Usuari"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Usuaris web"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Usuaris web"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Restableix la contrasenya"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Validació correu electrònic"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "El correu electrònic de l'usuari web ha de ser únic."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "La clau de sessió de l'usuari web ha de ser única."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Restableix la contrasenya"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Valida correu electrònic"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Usuaris web"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Usuari web"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Usuari Web - Tercers Secundaris"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Intent d'autenticació usuari web"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Sessió usuari web"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "El botó no funciona? Empega això al teu navegador:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Si no heu fet aquesta petició, podeu ignorar aquest correu."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Restableix la contrasenya"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "L'enllaç caducarà en [1:%(datetime)s]."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"Hem rebut una petició per restablir la contrasenya del vostre compte: "
+"%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "El botó no funciona? Empega això al teu navegador:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Validació correu electrònic"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Si heu rebut aquest correu per error, ignoreu-lo."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Només un pas més..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Valida"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Restableix la contrasenya"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Valida correu electrònic"
diff --git a/modules/web_user/locale/cs.po b/modules/web_user/locale/cs.po
new file mode 100644
index 0000000000..a262e51d00
--- /dev/null
+++ b/modules/web_user/locale/cs.po
@@ -0,0 +1,183 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Web Users"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/de.po b/modules/web_user/locale/de.po
new file mode 100644
index 0000000000..769620bdec
--- /dev/null
+++ b/modules/web_user/locale/de.po
@@ -0,0 +1,187 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-Mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "E-Mail Token"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "E-Mail gültig"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Partei"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Passwort"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Passwort Hash"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Passwortrücksetzungstoken"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Passwortrücksetzungstoken Verfall"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Sekundäre Parteien"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Partei"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Benutzer"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Geräte Cookie"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP-Adresse"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "IP-Netz"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Benutzername"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Schlüssel"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Benutzer"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Webbenutzer"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Webbenutzer"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Passwort zurücksetzen"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "E-Mail-Validierung"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+"Die E-Mail eines aktiven Webbenutzers kann nur einmal vergeben werden."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+"Der Sitzungsschlüssel eines Webbenutzers kann nur einmal vergeben werden."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Passwort zurücksetzen"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "E-Mail validieren"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Webbenutzer"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Webbenutzer"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Webbenutzer - Sekundäre Partei"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Webbenutzer Authentifizierungsversuch"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Webbenutzer Sitzung"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+"Wenn der Button nicht funktioniert, kopieren Sie bitte die folgende Zeile in"
+" die Adresszeile Ihres Browsers:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+"Ignorieren Sie bitte diese E-Mail, wenn Sie nicht der Urheber dieser Anfrage"
+" sind."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Passwort zurücksetzen"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "Der Hyperlink wird in [1:%(datetime)s] ablaufen."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"Wir haben eine Anfrage zur Rücksetzung des Passworts für Ihr Konto erhalten:"
+" %(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+"Wenn der Button nicht funktioniert, kopieren Sie bitte die folgende Zeile in"
+" die Adresszeile Ihres Browsers:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "E-Mail-Validierung"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+"Ignorieren Sie bitte diese E-Mail, wenn Sie sie irrtümlich erhalten haben."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Nur noch ein Schritt..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Prüfen"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Passwort zurücksetzen"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "E-Mail validieren"
diff --git a/modules/web_user/locale/es.po b/modules/web_user/locale/es.po
new file mode 100644
index 0000000000..70eed2b0f6
--- /dev/null
+++ b/modules/web_user/locale/es.po
@@ -0,0 +1,180 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "Correo electrónico"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Token del correo electrónico"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "Correo electrónico válido"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Tercero"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Contraseña"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Hash de la contraseña"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Restablecer el token de la contraseña"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Restablecer el token de expiración de la contraseña"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Terceros secundarios"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Tercero"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Usuario"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Cookie del dispositivo"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "Dirección IP"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "Red IP"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Nombre usuario"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Clave"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Usuario"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Usuarios web"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Usuarios web"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Restablecer contraseña"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Validación correo electrónico"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "El correo electrónico del usuario web debe ser único."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "La clave de sesión del usuario web debe ser única."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Restablecer contraseña"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validar correo electrónico"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Usuarios web"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Usuario web"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Usuario web - Tercero secundario"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Intento de identificación usuario web"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Sesión usuario web"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "¿El botón no funciona? Pega esto en tu navegador:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+"Si no habéis realizado esta petición, podéis ignorar este correo "
+"electrónico."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Restablecer contraseña"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "El enlace caducará en [1:%(datetime)s]."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"Hemos recibido una solicitud para reiniciar la contraseña de vuestra cuenta:"
+" %(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "¿El botón no funciona? Pega esto en tu navegador:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Validación correo electrónico"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Si ha recibido este correo electrónico por error, por favor ignórelo."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Solo un paso mas..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Validar"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Restablecer contraseña"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validar correo electrónico"
diff --git a/modules/web_user/locale/es_419.po b/modules/web_user/locale/es_419.po
new file mode 100644
index 0000000000..882362bcdb
--- /dev/null
+++ b/modules/web_user/locale/es_419.po
@@ -0,0 +1,176 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr ""
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr ""
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr ""
diff --git a/modules/web_user/locale/et.po b/modules/web_user/locale/et.po
new file mode 100644
index 0000000000..798cf2a657
--- /dev/null
+++ b/modules/web_user/locale/et.po
@@ -0,0 +1,180 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-kiri"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Osapool"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Salasõna"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Salasõna räsi"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Osapool"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Kasutaja"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP-aadress"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "IP-võrk"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Logi sisse"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Võti"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Kasutaja"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr ""
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Muutja"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Lähtesta salasõna"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Lähtesta salasõna"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr ""
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr ""
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Nupp ei tööta? Aseta see link brauseri aadressreale:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Kui sa ei teinud seda päringut, siis ignoreeri seda e-kirja."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Lähtesta salasõna"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "Saime teate salasõna lähtestamiseks,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Nupp ei tööta? Aseta see link brauseri aadressreale:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Lähtesta salasõna"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr ""
diff --git a/modules/web_user/locale/fa.po b/modules/web_user/locale/fa.po
new file mode 100644
index 0000000000..d609507752
--- /dev/null
+++ b/modules/web_user/locale/fa.po
@@ -0,0 +1,181 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "ایمیل"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "نشانه(Token) ایمیل"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "ایمیل معتبر است"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "نهاد/سازمان"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "کلمه عبور"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "کلمه عبور درهم"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "بازنشانی نشانه(Token) کلمه عبور"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "بازنشانی انقضای نشانه(Token) کلمه عبور"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "نهاد/سازمان"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "کاربر"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "آدرس آی پی"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "آی پی شبکه"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "ورود به سیستم"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "کلید"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "کاربر"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "کاربران وب"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "کاربران وب"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "بازنشانی رمز عبور"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "اعتبار سنجی ایمیل"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "پست الکترونیکی کاربر فعال وب سایت باید منحصر به فرد باشد."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "کلید جلسه کاربر وب باید منحصر به فرد باشد."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "کاربران وب"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "کاربر وب"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "جلسه کاری کاربر وب"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "تلاش برای هوّیت سنجی کاربر وب"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "جلسه کاری کاربر وب"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "دکمه کار نمی کند؟ این آدرس را در مرورگر خود مرور کنید:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "اگراین درخواست را نکرده باشید، می توانید این ایمیل را نادیده بگیرید."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "بازنشانی کلمه عبور"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "مایک درخواست برای بازنشانی کلمه عبور حساب کاربری شما دریافت کردیم،"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "دکمه کار نمی کند؟ این آدرس را در مرورگر خود مرور کنید:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "اعتبار سنجی ایمیل"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "اگر این ایمیل را به اشتباه دریافت کردید، فقط آن را نادیده بگیرید."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "فقط یک گام دیگه.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "تایید اعتبار"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "بازنشانی کلمه عبور"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "ایمیل معتبر است"
diff --git a/modules/web_user/locale/fi.po b/modules/web_user/locale/fi.po
new file mode 100644
index 0000000000..a262e51d00
--- /dev/null
+++ b/modules/web_user/locale/fi.po
@@ -0,0 +1,183 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Web Users"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/fr.po b/modules/web_user/locale/fr.po
new file mode 100644
index 0000000000..f6bf1400da
--- /dev/null
+++ b/modules/web_user/locale/fr.po
@@ -0,0 +1,179 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Jeton d'E-mail"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "E-mail valide"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Tiers"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Mot de passe"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Hachage de mot de passe"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Jeton de réinitialisation du mot de passe"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Expiration du jeton de réinitialisation du mot de passe"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Tiers secondaires"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Tiers"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Utilisateur"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Cookie de l'appareil"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "Adresse IP"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "Réseau IP"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Identifiant"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Clé"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Utilisateur"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Utilisateurs web"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Utilisateurs web"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Réinitialiser le mot de passe"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "E-mail de validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "L’E-mail d'un utilisateur web actif doit être unique."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "La session d'un utilisateur web doit être unique."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Réinitialiser le mot de passe"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Valider l'e-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Utilisateurs web"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Utilisateur web"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Utilisateur Web - Tiers secondaire"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Tentative d'authentification d'utilisateur web"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Session d'utilisateur web"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Le bouton ne fonctionne pas ? Copier ceci dans votre navigateur :"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+"Si vous n'avez pas fait cette demande, vous pouvez ignorer cet E-mail."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Réinitialiser le mot de passe"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "Le lien expirera dans [1:%(datetime)s]."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"Nous avons reçu une demande de réinitialisation du mot de passe de votre "
+"compte : %(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Le bouton ne fonctionne pas ? Copier ceci dans votre navigateur :"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Validation d'E-mail"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Si vous avez reçu cet E-mail par erreur, ignorez le."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Encore une étape.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Valider"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Réinitialiser le mot de passe"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Valider l'E-mail"
diff --git a/modules/web_user/locale/hu.po b/modules/web_user/locale/hu.po
new file mode 100644
index 0000000000..6ccdadc48d
--- /dev/null
+++ b/modules/web_user/locale/hu.po
@@ -0,0 +1,180 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "E-mail cím leellenőrizve"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Ügyfél"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Jelszó"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Jelszó hash"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Másodlagos ügyfelek"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Ügyfél"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Felhasználó"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Bejelentkezés"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Kulcs"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Felhasználó"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Webáruház felhasználók"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Webáruház felhasználók"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Jelszó visszaállítása"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "E-mail cím ellenőrzés"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "Nem lehet több aktív webes felhasználónak ugyanaz az e-mail címe."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Jelszó visszaállítása"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "E-mail cím leellenőrzése"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Webáruház felhasználók"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Webáruház felhasználó"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "A gomb nem működik? Másolja be ezt a böngészőjébe:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+"Ha nem Ön küldte ezt a kérés, akkor nyugodtan hagyja figyelmen kívül ezt az "
+"e-mailt."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Jelszó visszaállítása"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "Kaptunk egy kérést, hogy állítsuk vissza a felhasználója jelszavát,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "A gomb nem működik? Másolja be ezt a böngészőjébe:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "E-mail cím ellenőrzés"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Ha tévedésből kapta ezt az e-mailt, hagyja nyugodtan figyelmen kívül."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Csak még egy lépés.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Ellenőrzés"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Jelszó visszaállítása"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "E-mail cím leellenőrzése"
diff --git a/modules/web_user/locale/id.po b/modules/web_user/locale/id.po
new file mode 100644
index 0000000000..3bbf032921
--- /dev/null
+++ b/modules/web_user/locale/id.po
@@ -0,0 +1,180 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Pihak"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Kata sandi"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Pihak"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Pengguna"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "Alamat IP"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Kunci"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Pengguna"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Pengguna Web"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Pengguna Web"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Atur Ulang Kata Sandi"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Atur Ulang Kata Sandi"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr ""
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr ""
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Tombol tidak berfungsi? Lekatkan ini pada browser Anda:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Jika bukan Anda yang membuat permintaan ini, abaikan email ini."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Atur Ulang Kata Sandi"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "Kami menerima permintaan untuk mengatur ulang kata sandi akun Anda,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Tombol tidak berfungsi? Lekatkan ini pada browser Anda:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Validasi Email"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Jika Anda menerima email ini karena kesalahan, abaikan saja."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Tinggal satu langkah lagi..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Atur Ulang Kata Sandi"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr ""
diff --git a/modules/web_user/locale/it.po b/modules/web_user/locale/it.po
new file mode 100644
index 0000000000..6f3bbdaa82
--- /dev/null
+++ b/modules/web_user/locale/it.po
@@ -0,0 +1,195 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+#, fuzzy
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "_E-Mail..."
+
+#, fuzzy
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "_E-Mail..."
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Controparte"
+
+#, fuzzy
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Password"
+
+#, fuzzy
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Hash della Password"
+
+#, fuzzy
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Reset Password"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Controparte"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Utente"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "Indirizzo IP"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Login"
+
+#, fuzzy
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Chiave"
+
+#, fuzzy
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Utente"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Sessione"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+#, fuzzy
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Sessione"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Verifica"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/lo.po b/modules/web_user/locale/lo.po
new file mode 100644
index 0000000000..78f77f7892
--- /dev/null
+++ b/modules/web_user/locale/lo.po
@@ -0,0 +1,188 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "ອີ-ເມວລ໌"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "ອີ-ເມວລ໌ ຢັງຢືນຕົວຕົນ"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "ອີ-ເມວລ໌ ຖືກຕ້ອງ"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "ພາກສ່ວນ"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "ລະຫັດຜ່ານ"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "ລະຫັດຜ່ານປະສົມ"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "ຕັ້ງລະຫັດຢັ້ງຢືນຜ່ານຄືນໃໝ່"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "ການຕັ້ງລະຫັດຢັ້ງຢືນຜ່ານຄືນໃໝ່ໝົດເວລາແລ້ວ"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "ພາກສ່ວນ"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "ຜູ້ໃຊ້"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "ເຊື່ອມຕໍ່ເຂົ້າລະບົບ"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "ຄຳສຳຄັນ"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "ຜູ້ໃຊ້"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+#, fuzzy
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "ຜູ້ໃຊ້ງານເວັບ"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "ເທື່ອເຂົ້າໃຊ້ຂອງຜູ້ໃຊ້ງານເວັບ"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "ພະຍາຍາມກວດສອບສິດທີ່ຖືກຕ້ອງຂອງຜູ້ໃຊ້ງານເວັບ"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "ເທື່ອເຂົ້າໃຊ້ຂອງຜູ້ໃຊ້ງານເວັບ"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "ປຸ່ມບໍ່ເຮັດວຽກບໍ? ໃຫ້ ວາງ ອັນນີ້ລົງໃສ່ ໂຕທ່ອງເວັບຂອງທ່ານ:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "ຖ້າຫາກທ່ານບໍ່ໄດ້ຮ້ອງຂໍ ອ-ເມວລ໌ ນີ້, ທ່ານບໍ່ຕ້ອງຮັບຮູ້ ອີ-ເມວລ໌ ນີ້."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "ຕັ້ງຄ່າລະຫັດຜ່ານຄືນໃໝ່"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "ພວກເຮົາໄດ້ຮັບຄຳຮ້ອງຂໍໃຫ້ຕັ້ງຄ່າລະຫັດຜ່ານບັນຊີໃຊ້ງານຂອງທ່ານຄືນໃໝ່,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "ປຸ່ມບໍ່ເຮັດວຽກບໍ? ໃຫ້ ວາງ ອັນນີ້ລົງໃສ່ ໂຕທ່ອງເວັບຂອງທ່ານ:"
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "ການຢືນຢັນຄວາມຖືກຕ້ອງ ອີ-ເມວລ໌"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+"ຖ້າຫາກທ່ານໄດ້ຮັບ ອີ-ເມວລ໌ ນີ້ ໂດຍຄວາມຜິດພາດໃດໜຶ່ງ, ພຽງແຕ່ໃຫ້ທ່ານ ບໍ່ຮັບຮູ້ "
+"ອີ-ເມວລ໌ ນີ້ກໍພໍ."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "ພຽງແຕ່ອີກບາດກ້າວໜຶ່ງທໍ່ນັ້ນ.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "ກວດສອບຄວາມຖືກຕ້ອງ"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "ຕັ້ງຄ່າລະຫັດຜ່ານຄືນໃໝ່"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "ກວດສອບຄວາມຖືກຕ້ອງ ອີ-ເມວລ໌"
diff --git a/modules/web_user/locale/lt.po b/modules/web_user/locale/lt.po
new file mode 100644
index 0000000000..360794a656
--- /dev/null
+++ b/modules/web_user/locale/lt.po
@@ -0,0 +1,184 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Kontrahentas"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Kontrahentas"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Naudotojas"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP adresas"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Naudotojas"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Atstatyti slaptažodį"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Atstatyti slaptažodį"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/nl.po b/modules/web_user/locale/nl.po
new file mode 100644
index 0000000000..fe2cec2b89
--- /dev/null
+++ b/modules/web_user/locale/nl.po
@@ -0,0 +1,178 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "E-mail token"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "E-mail geldig"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Relatie"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Wachtwoord"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Wachtwoord Hash"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Reset wachtwoord token"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Reset wachtwoord token verlopen"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Secundaire Relaties"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Relatie"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Gebruiker"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Apparaatcookie"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP Adres"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "IP-netwerk"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Loginnaam"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Sleutel"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Gebruiker"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Webgebruikers"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Webgebruikers"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset wachtwoord"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "E-mailvalidatie"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "E-mail van actieve webgebruiker moet uniek zijn."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "Webgebruikerssessiesleutel moet uniek zijn."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset wachtwoord"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Email valideren"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Webgebruikers"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web gebruiker"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Webgebruiker -Secundaire Relatie"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Inlog poging webgebruikers"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Webgebruikerssessie"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Knop werkt niet? Plak dit in uw browser:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Indien u dit verzoek niet hebt gedaan, kunt u deze e-mail negeren."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset wachtwoord"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "De link vervalt in [1:%(datetime)s]."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"We hebben het verzoek ontvangen om het wachtwoord voor uw account %(email)s "
+"opnieuw in te stellen"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Knop werkt niet? Plak dit in uw browser:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "E-mailvalidatie"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Negeer deze email, als u deze per ongeluk hebt ontvangen."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Nog maar één stap.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Goedkeuren"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset wachtwoord"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Email valideren"
diff --git a/modules/web_user/locale/pl.po b/modules/web_user/locale/pl.po
new file mode 100644
index 0000000000..a262e51d00
--- /dev/null
+++ b/modules/web_user/locale/pl.po
@@ -0,0 +1,183 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Web Users"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/pt.po b/modules/web_user/locale/pt.po
new file mode 100644
index 0000000000..2d1e852434
--- /dev/null
+++ b/modules/web_user/locale/pt.po
@@ -0,0 +1,185 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "E-mail"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Token do E-mail"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "E-mail Válido"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Pessoa"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Senha"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Hash da Senha"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Redefinir Token da Senha"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Redefinir Validade do Token da Senha"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Pessoa"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Usuário"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Entrar"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Chave"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Usuário"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+#, fuzzy
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Usuário Web"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Sessão de Usuário Web"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Tentativa de autenticação do usuário Web"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Sessão de Usuário Web"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "O botão não está funcionando? Cole isso em seu navegador:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Se você não fez esta solicitação, você pode ignorar esse email."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Redefinir senha"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "Nós recebemos uma solicitação para redefinir a senha da sua conta,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Botão não está funcionando? Cole isso no seu navegador:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email de Validação"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Se você recebeu esse email por engano, apenas ignore-o."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Apenas mais um passo..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Validar"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Redefinir senha"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validar E-mail"
diff --git a/modules/web_user/locale/ro.po b/modules/web_user/locale/ro.po
new file mode 100644
index 0000000000..deb9389427
--- /dev/null
+++ b/modules/web_user/locale/ro.po
@@ -0,0 +1,177 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Parte"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Parola"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Parte"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Resetare parola"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Resetare Parola"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr ""
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr ""
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr ""
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr ""
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr ""
diff --git a/modules/web_user/locale/ru.po b/modules/web_user/locale/ru.po
new file mode 100644
index 0000000000..e989aee68f
--- /dev/null
+++ b/modules/web_user/locale/ru.po
@@ -0,0 +1,190 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Организации"
+
+#, fuzzy
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Пароль"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Организации"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Пользователь"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Логин"
+
+#, fuzzy
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Ключ"
+
+#, fuzzy
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Пользователь"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Утвержденный"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/sl.po b/modules/web_user/locale/sl.po
new file mode 100644
index 0000000000..d46f89dfaa
--- /dev/null
+++ b/modules/web_user/locale/sl.po
@@ -0,0 +1,185 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "e-naslov"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Žeton e-naslova"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "e-naslov veljaven"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Partner"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Geslo"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Zgoščena vrednost gesla"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Žeton za ponastavitev gesla"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Zapadlost ponastavitvenga žetona"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Partner"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Uporabnik"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Prijava"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Ključ"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Uporabnik"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+#, fuzzy
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Spletni uporabnik"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Seja spletnega uporabnika"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Poskus overjanja spletnega uporabnika"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Seja spletnega uporabnika"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Gumb ne deluje? Prilepite sledeče v vaš brskalnik:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Če niste zahtevali tega sporočila, ga preprosto prezrite."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Ponastavitev gesla"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "Prejeli smo zahtevek za ponastavitev gesla vašega računa,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Gumb ne deluje? Prilepite sledeče v vaš brskalnik:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Preverjanje elektronskega naslova"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Če ste po pomoti prejeli to sporočilo, ga preprosto prezrite."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Samo še en korak ..."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Preveri veljavnost"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Ponastavi geslo"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Preveri e-naslov"
diff --git a/modules/web_user/locale/tr.po b/modules/web_user/locale/tr.po
new file mode 100644
index 0000000000..a262e51d00
--- /dev/null
+++ b/modules/web_user/locale/tr.po
@@ -0,0 +1,183 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr ""
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr ""
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr ""
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr ""
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr ""
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr ""
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Web Users"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr ""
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr ""
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr ""
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web Users"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr ""
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr ""
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web Users"
+
+#, fuzzy
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web Users"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr ""
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr ""
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Email Validation"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr ""
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Reset Password"
+
+#, fuzzy
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Validate E-mail"
diff --git a/modules/web_user/locale/uk.po b/modules/web_user/locale/uk.po
new file mode 100644
index 0000000000..ebd598750f
--- /dev/null
+++ b/modules/web_user/locale/uk.po
@@ -0,0 +1,177 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "Ел.пошта"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "Токен ел.пошти"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "Ел.пошта дійсна"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "Особа"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "Пароль"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "Хеш пароля"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "Скинути токен пароля"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "Термін скидання токена пароля закінчується"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr "Вторинні особи"
+
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "Особа"
+
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "Користувач"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr "Куки пристрою"
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP-адреса"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "IP-мережа"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "Логін"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "Ключ"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "Користувач"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Веб-користувачі"
+
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Веб-користувачі"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "Скинути пароль"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "Перевірка ел.пошти"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "Ел.пошта активного веб-користувача має бути унікальною."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "Ключ сеансу веб-користувача має бути унікальним."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "Скинути пароль"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "Перевірити ел.пошту"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Веб-користувачі"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Веб-користувач"
+
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "Веб-користувач - Вторинна особа"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Спроба автентифікації веб-користувача"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "Сеанс веб-користувача"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Кнопка не працює? Вставте це у свій браузер:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "Якщо ви не робили цей запит, можете проігнорувати цей ел.лист."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "Скинути пароль"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr "Термін посилання завершиться через [1:%(datetime)s]."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr ""
+"Ми отримали запит на скидання пароля для вашого облікового запису: %(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr "%(email)s"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "Кнопка не працює? Вставте це у свій браузер:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "Перевірка ел.пошти"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "Якщо ви отримали цей ел.лист помилково, просто проігноруйте його."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "Ще один крок.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "Перевірити"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "Скинути пароль"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "Перевірити ел.пошту"
diff --git a/modules/web_user/locale/zh_CN.po b/modules/web_user/locale/zh_CN.po
new file mode 100644
index 0000000000..cf487f75a4
--- /dev/null
+++ b/modules/web_user/locale/zh_CN.po
@@ -0,0 +1,181 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:web.user,email:"
+msgid "E-mail"
+msgstr "电子邮件"
+
+msgctxt "field:web.user,email_token:"
+msgid "E-mail Token"
+msgstr "电子邮件令牌"
+
+msgctxt "field:web.user,email_valid:"
+msgid "E-mail Valid"
+msgstr "电子邮件有效"
+
+msgctxt "field:web.user,party:"
+msgid "Party"
+msgstr "参与者"
+
+msgctxt "field:web.user,password:"
+msgid "Password"
+msgstr "密码"
+
+msgctxt "field:web.user,password_hash:"
+msgid "Password Hash"
+msgstr "密码HASH"
+
+msgctxt "field:web.user,reset_password_token:"
+msgid "Reset Password Token"
+msgstr "重置密码令牌"
+
+msgctxt "field:web.user,reset_password_token_expire:"
+msgid "Reset Password Token Expire"
+msgstr "重置密码令牌过期"
+
+msgctxt "field:web.user,secondary_parties:"
+msgid "Secondary Parties"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,party:"
+msgid "Party"
+msgstr "参与者"
+
+#, fuzzy
+msgctxt "field:web.user-party.party.secondary,user:"
+msgid "User"
+msgstr "用户"
+
+msgctxt "field:web.user.authenticate.attempt,device_cookie:"
+msgid "Device Cookie"
+msgstr ""
+
+msgctxt "field:web.user.authenticate.attempt,ip_address:"
+msgid "IP Address"
+msgstr "IP地址"
+
+msgctxt "field:web.user.authenticate.attempt,ip_network:"
+msgid "IP Network"
+msgstr "IP网络"
+
+msgctxt "field:web.user.authenticate.attempt,login:"
+msgid "Login"
+msgstr "登录"
+
+msgctxt "field:web.user.session,key:"
+msgid "Key"
+msgstr "密匙"
+
+msgctxt "field:web.user.session,user:"
+msgid "User"
+msgstr "用户"
+
+msgctxt "model:ir.action,name:act_user_form"
+msgid "Web Users"
+msgstr "Web 用户"
+
+#, fuzzy
+msgctxt "model:ir.action,name:act_user_form_party"
+msgid "Web Users"
+msgstr "Web 用户"
+
+msgctxt "model:ir.action,name:report_email_reset_password"
+msgid "Reset Password"
+msgstr "重置密码"
+
+msgctxt "model:ir.action,name:report_email_validation"
+msgid "Email Validation"
+msgstr "电子邮件验证"
+
+msgctxt "model:ir.message,text:msg_user_email_unique"
+msgid "E-mail of active web user must be unique."
+msgstr "已经激活的Web用户,电子邮件不能重复."
+
+msgctxt "model:ir.message,text:msg_user_session_key_unique"
+msgid "Web user session key must be unique."
+msgstr "Web用户会话密钥必须唯一."
+
+msgctxt "model:ir.model.button,string:user_reset_password_button"
+msgid "Reset Password"
+msgstr "重置密码"
+
+msgctxt "model:ir.model.button,string:user_validate_email_button"
+msgid "Validate E-mail"
+msgstr "验证电子邮件"
+
+msgctxt "model:ir.ui.menu,name:menu_user_form"
+msgid "Web Users"
+msgstr "Web 用户"
+
+msgctxt "model:web.user,name:"
+msgid "Web User"
+msgstr "Web 用户"
+
+#, fuzzy
+msgctxt "model:web.user-party.party.secondary,name:"
+msgid "Web User - Secondary Party"
+msgstr "web 用户会话"
+
+msgctxt "model:web.user.authenticate.attempt,name:"
+msgid "Web User Authenticate Attempt"
+msgstr "Web用户验证尝试"
+
+msgctxt "model:web.user.session,name:"
+msgid "Web User Session"
+msgstr "web 用户会话"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "按钮不起作用? 将此粘贴到浏览器的地址栏中:"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "If you didn't make this request, you can ignore this email."
+msgstr "如果你没有发出过此请求,就忽略此电子邮件."
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "Reset Password"
+msgstr "重置密码"
+
+msgctxt "report:web.user.email_reset_password:"
+msgid "The link will expire in [1:%(datetime)s]."
+msgstr ""
+
+#, fuzzy
+msgctxt "report:web.user.email_reset_password:"
+msgid ""
+"We received a request to reset the password for your account: %(email)s"
+msgstr "我们收到了重置你的帐户密码的请求,"
+
+msgctxt "report:web.user.email_validation:"
+msgid "%(email)s"
+msgstr ""
+
+msgctxt "report:web.user.email_validation:"
+msgid "Button is not working? Paste this into your browser:"
+msgstr "按钮不起作用? 将此粘贴到浏览器的地址栏中:"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Email Validation"
+msgstr "电子邮件验证"
+
+msgctxt "report:web.user.email_validation:"
+msgid "If you received this email by mistake, just ignore it."
+msgstr "如果误收到此电子邮件,请忽略它。"
+
+msgctxt "report:web.user.email_validation:"
+msgid "Just one more step.."
+msgstr "仅一步之遥.."
+
+msgctxt "report:web.user.email_validation:"
+msgid "Validate"
+msgstr "验证"
+
+msgctxt "view:web.user:"
+msgid "Reset Password"
+msgstr "重置密码"
+
+msgctxt "view:web.user:"
+msgid "Validate E-mail"
+msgstr "验证电子邮件"
diff --git a/modules/web_user/message.xml b/modules/web_user/message.xml
new file mode 100644
index 0000000000..809c5f6574
--- /dev/null
+++ b/modules/web_user/message.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ E-mail of active web user must be unique.
+
+
+ Web user session key must be unique.
+
+
+
diff --git a/modules/web_user/party.py b/modules/web_user/party.py
new file mode 100644
index 0000000000..a58d6c5384
--- /dev/null
+++ b/modules/web_user/party.py
@@ -0,0 +1,28 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+from trytond.pool import Pool, PoolMeta
+
+
+class Replace(metaclass=PoolMeta):
+ __name__ = 'party.replace'
+
+ @classmethod
+ def fields_to_replace(cls):
+ return super().fields_to_replace() + [
+ ('web.user', 'party'),
+ ('web.user-party.party.secondary', 'party'),
+ ]
+
+
+class Erase(metaclass=PoolMeta):
+ __name__ = 'party.erase'
+
+ def to_erase(self, party_id):
+ pool = Pool()
+ User = pool.get('web.user')
+ to_erase = super().to_erase(party_id)
+ to_erase.append(
+ (User, [('party', '=', party_id)], True,
+ ['email'],
+ [None]))
+ return to_erase
diff --git a/modules/web_user/setup.py b/modules/web_user/setup.py
new file mode 100755
index 0000000000..4647f5a1ac
--- /dev/null
+++ b/modules/web_user/setup.py
@@ -0,0 +1,151 @@
+#!/usr/bin/env python3
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+
+import io
+import os
+import re
+from configparser import ConfigParser
+
+from setuptools import find_packages, setup
+
+
+def read(fname):
+ return io.open(
+ os.path.join(os.path.dirname(__file__), fname),
+ 'r', encoding='utf-8').read()
+
+
+def get_require_version(name):
+ if minor_version % 2:
+ require = '%s >= %s.%s.dev0, < %s.%s'
+ else:
+ require = '%s >= %s.%s, < %s.%s'
+ require %= (name, major_version, minor_version,
+ major_version, minor_version + 1)
+ return require
+
+
+config = ConfigParser()
+config.read_file(open(os.path.join(os.path.dirname(__file__), 'tryton.cfg')))
+info = dict(config.items('tryton'))
+for key in ('depends', 'extras_depend', 'xml'):
+ if key in info:
+ info[key] = info[key].strip().splitlines()
+version = info.get('version', '0.0.1')
+major_version, minor_version, _ = version.split('.', 2)
+major_version = int(major_version)
+minor_version = int(minor_version)
+name = 'trytond_web_user'
+
+download_url = 'http://downloads.tryton.org/%s.%s/' % (
+ major_version, minor_version)
+if minor_version % 2:
+ version = '%s.%s.dev0' % (major_version, minor_version)
+ download_url = (
+ 'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
+ name[8:], name, version))
+local_version = []
+if os.environ.get('CI_JOB_ID'):
+ local_version.append(os.environ['CI_JOB_ID'])
+else:
+ for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']:
+ if os.environ.get(build):
+ local_version.append(os.environ[build])
+ else:
+ local_version = []
+ break
+if local_version:
+ version += '+' + '.'.join(local_version)
+
+requires = []
+for dep in info.get('depends', []):
+ if not re.match(r'(ir|res)(\W|$)', dep):
+ requires.append(get_require_version('trytond_%s' % dep))
+requires.append(get_require_version('trytond'))
+
+tests_require = []
+dependency_links = []
+if minor_version % 2:
+ dependency_links.append(
+ 'https://trydevpi.tryton.org/?local_version='
+ + '.'.join(local_version))
+
+setup(name=name,
+ version=version,
+ description='Tryton module to manage Web users',
+ long_description=read('README.rst'),
+ author='Tryton',
+ author_email='bugs@tryton.org',
+ url='http://www.tryton.org/',
+ download_url=download_url,
+ project_urls={
+ "Bug Tracker": 'https://bugs.tryton.org/',
+ "Documentation": 'https://docs.tryton.org/',
+ "Forum": 'https://www.tryton.org/forum',
+ "Source Code": 'https://hg.tryton.org/modules/web_user',
+ },
+ keywords='web user',
+ package_dir={'trytond.modules.web_user': '.'},
+ packages=(
+ ['trytond.modules.web_user']
+ + ['trytond.modules.web_user.%s' % p for p in find_packages()]
+ ),
+ package_data={
+ 'trytond.modules.web_user': (info.get('xml', [])
+ + ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.html',
+ 'icons/*.svg', 'tests/*.rst']),
+ },
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Plugins',
+ 'Framework :: Tryton',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Financial and Insurance Industry',
+ 'Intended Audience :: Legal Industry',
+ 'License :: OSI Approved :: '
+ 'GNU General Public License v3 or later (GPLv3+)',
+ 'Natural Language :: Bulgarian',
+ 'Natural Language :: Catalan',
+ 'Natural Language :: Czech',
+ 'Natural Language :: Dutch',
+ 'Natural Language :: English',
+ 'Natural Language :: Finnish',
+ 'Natural Language :: French',
+ 'Natural Language :: German',
+ 'Natural Language :: Hungarian',
+ 'Natural Language :: Indonesian',
+ 'Natural Language :: Italian',
+ 'Natural Language :: Persian',
+ 'Natural Language :: Polish',
+ 'Natural Language :: Portuguese (Brazilian)',
+ 'Natural Language :: Romanian',
+ 'Natural Language :: Russian',
+ 'Natural Language :: Slovenian',
+ 'Natural Language :: Spanish',
+ 'Natural Language :: Turkish',
+ 'Natural Language :: Ukrainian',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Topic :: Office/Business',
+ ],
+ license='GPL-3',
+ python_requires='>=3.7',
+ install_requires=requires,
+ extras_require={
+ 'BCrypt': ['bcrypt'],
+ 'test': tests_require,
+ 'html2text': ['html2text'],
+ },
+ dependency_links=dependency_links,
+ zip_safe=False,
+ entry_points="""
+ [trytond.modules]
+ web_user = trytond.modules.web_user
+ """,
+ )
diff --git a/modules/web_user/tests/__init__.py b/modules/web_user/tests/__init__.py
new file mode 100644
index 0000000000..4effdfa4a2
--- /dev/null
+++ b/modules/web_user/tests/__init__.py
@@ -0,0 +1,2 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
diff --git a/modules/web_user/tests/test_module.py b/modules/web_user/tests/test_module.py
new file mode 100644
index 0000000000..bf0530e5a6
--- /dev/null
+++ b/modules/web_user/tests/test_module.py
@@ -0,0 +1,200 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+
+from unittest.mock import ANY, patch
+
+from trytond.config import config
+from trytond.modules.party.tests import PartyCheckEraseMixin
+from trytond.modules.web_user import user as user_module
+from trytond.pool import Pool
+from trytond.tests.test_tryton import ModuleTestCase, with_transaction
+
+VALIDATION_URL = 'http://www.example.com/validation'
+RESET_PASSWORD_URL = 'http://www.example.com/reset_password'
+FROM = 'tryton@example.com'
+
+
+class WebUserTestCase(PartyCheckEraseMixin, ModuleTestCase):
+ 'Test Web User module'
+ module = 'web_user'
+
+ def setUp(self):
+ super(WebUserTestCase, self).setUp()
+ validation_url = config.get('web', 'email_validation_url', default='')
+ config.set('web', 'email_validation_url', VALIDATION_URL)
+ self.addCleanup(
+ lambda: config.set('web', 'email_validation_url', validation_url))
+ reset_password_url = config.get(
+ 'web', 'reset_password_url', default='')
+ config.set('web', 'reset_password_url', RESET_PASSWORD_URL)
+ self.addCleanup(lambda: config.set(
+ 'web', 'reset_password_url', reset_password_url))
+ reset_from = config.get('email', 'from', default='')
+ config.set('email', 'from', FROM)
+ self.addCleanup(lambda: config.set('email', 'from', reset_from))
+
+ length = config.get('password', 'length', default='')
+ config.set('password', 'length', '4')
+ self.addCleanup(config.set, 'password', 'length', length)
+
+ entropy = config.get('password', 'entropy', default='')
+ config.set('password', 'entropy', '0.8')
+ self.addCleanup(config.set, 'password', 'entropy', entropy)
+
+ def create_user(self, email, password):
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email=email)
+ user.password = password
+ user.save()
+
+ self.assertEqual(user.password, 'x' * 10)
+ self.assertNotEqual(user.password_hash, password)
+
+ def check_user(self, email, password):
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user, = User.search([('email', '=', email)])
+ auth_user = User.authenticate(email, password)
+ self.assertEqual(auth_user, user)
+
+ bad_user = User.authenticate(email, password + 'wrong')
+ self.assertEqual(bad_user, None)
+
+ bad_user = User.authenticate(email + 'wrong', password)
+ self.assertEqual(bad_user, None)
+
+ @with_transaction()
+ def test_default_hash(self):
+ 'Test default hash'
+ self.create_user('user@example.com', 'secret')
+ self.check_user('user@example.com', 'secret')
+
+ @with_transaction()
+ def test_session(self):
+ 'Test session'
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='user@example.com')
+ user.save()
+
+ key = user.new_session()
+ self.assertTrue(key)
+
+ session_user = User.get_user(key)
+ self.assertEqual(session_user, user)
+
+ wrong_session_user = User.get_user('foo')
+ self.assertEqual(wrong_session_user, None)
+
+ @with_transaction()
+ def test_validate_email(self):
+ 'Test email validation'
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='user@example.com')
+ user.save()
+ self.assertFalse(user.email_valid)
+ self.assertFalse(user.email_token)
+
+ with patch.object(user_module, 'sendmail_transactional') as sendmail:
+ User.validate_email([user])
+ sendmail.assert_called_once_with(FROM, ['user@example.com'], ANY)
+
+ token = user.email_token
+ self.assertTrue(token)
+
+ self.assertEqual(
+ user.get_email_validation_url(),
+ '%s?token=%s' % (VALIDATION_URL, token))
+
+ self.assertFalse(
+ User.validate_email_url(VALIDATION_URL))
+ self.assertFalse(
+ User.validate_email_url('%s?token=12345' % VALIDATION_URL))
+
+ self.assertTrue(
+ User.validate_email_url(user.get_email_validation_url()))
+
+ self.assertTrue(user.email_valid)
+ self.assertFalse(user.email_token)
+
+ @with_transaction()
+ def test_reset_password(self):
+ 'Test reset password'
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='user@example.com', email_valid=True)
+ user.save()
+ self.assertFalse(user.password_hash)
+
+ with patch.object(user_module, 'sendmail_transactional') as sendmail:
+ User.reset_password([user])
+ sendmail.assert_called_once_with(FROM, ['user@example.com'], ANY)
+
+ token = user.reset_password_token
+ self.assertTrue(token)
+ self.assertTrue(user.reset_password_token_expire)
+
+ self.assertEqual(
+ user.get_email_reset_password_url(),
+ '%s?email=user%%40example.com&token=%s'
+ % (RESET_PASSWORD_URL, token))
+
+ self.assertFalse(
+ User.set_password_token('foo@example.com', '12345', 'secret'))
+ self.assertFalse(
+ User.set_password_token('user@example.com', '12345', 'secret'))
+ self.assertFalse(
+ User.set_password_token('foo@example.com', token, 'secret'))
+ self.assertFalse(user.password_hash)
+
+ self.assertTrue(User.set_password_url(
+ user.get_email_reset_password_url(), 'secret'))
+
+ self.assertTrue(user.password_hash)
+ self.assertFalse(user.reset_password_token)
+ self.assertFalse(user.reset_password_token_expire)
+
+ @with_transaction()
+ def test_create_format_email(self):
+ "Test create format email"
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='FOO@Example.com')
+ user.save()
+
+ self.assertEqual(user.email, 'foo@example.com')
+
+ @with_transaction()
+ def test_write_format_email(self):
+ "Test write format email"
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='foo@example.com')
+ user.save()
+ User.write([user], {'email': 'BAR@Example.com'})
+
+ self.assertEqual(user.email, 'bar@example.com')
+
+ @with_transaction()
+ def test_authenticate_case_insensitive(self):
+ "Test authenticate case insensitive"
+ pool = Pool()
+ User = pool.get('web.user')
+
+ user = User(email='foo@example.com', password='secret')
+ user.save()
+ auth_user = User.authenticate('FOO@Example.com', 'secret')
+
+ self.assertEqual(auth_user, user)
+
+
+del ModuleTestCase
diff --git a/modules/web_user/tox.ini b/modules/web_user/tox.ini
new file mode 100644
index 0000000000..b6e599948d
--- /dev/null
+++ b/modules/web_user/tox.ini
@@ -0,0 +1,17 @@
+[tox]
+envlist = {py37,py38,py39,py310}-{sqlite,postgresql}
+
+[testenv]
+extras = test
+commands =
+ coverage run --include=./**/web_user/* -m unittest discover -s tests
+ coverage report --include=./**/web_user/* --omit=*/tests/*
+deps =
+ coverage
+ postgresql: psycopg2 >= 2.7.0
+setenv =
+ sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
+ postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
+ sqlite: DB_NAME={env:SQLITE_NAME::memory:}
+ postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
+install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}} {opts} {packages}
diff --git a/modules/web_user/tryton.cfg b/modules/web_user/tryton.cfg
new file mode 100644
index 0000000000..6e42925aad
--- /dev/null
+++ b/modules/web_user/tryton.cfg
@@ -0,0 +1,8 @@
+[tryton]
+version=6.7.0
+depends:
+ ir
+ party
+xml:
+ user.xml
+ message.xml
diff --git a/modules/web_user/user.py b/modules/web_user/user.py
new file mode 100644
index 0000000000..5eea1faa02
--- /dev/null
+++ b/modules/web_user/user.py
@@ -0,0 +1,540 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import datetime
+import hashlib
+import logging
+import random
+import string
+import time
+import urllib.parse
+import warnings
+from email.header import Header
+from secrets import token_hex
+
+try:
+ import bcrypt
+except ImportError:
+ bcrypt = None
+try:
+ import html2text
+except ImportError:
+ html2text = None
+from sql import Literal
+from sql.conditionals import Coalesce
+from sql.functions import CurrentTimestamp
+from sql.operators import Equal
+
+from trytond.config import config
+from trytond.exceptions import RateLimitException
+from trytond.model import (
+ DeactivableMixin, Exclude, Index, ModelSQL, ModelView, Unique,
+ avatar_mixin, fields)
+from trytond.pool import Pool
+from trytond.pyson import Eval
+from trytond.report import Report, get_email
+from trytond.res.user import CRYPT_CONTEXT, LoginAttempt
+from trytond.sendmail import sendmail_transactional
+from trytond.tools.email_ import set_from_header
+from trytond.transaction import Transaction
+
+logger = logging.getLogger(__name__)
+
+
+def _send_email(from_, users, email_func):
+ from_cfg = config.get('email', 'from')
+ for user in users:
+ msg, title = email_func(user)
+ set_from_header(msg, from_cfg, from_ or from_cfg)
+ msg['To'] = user.email
+ msg['Subject'] = Header(title, 'utf-8')
+ sendmail_transactional(from_cfg, [user.email], msg)
+
+
+def _add_params(url, **params):
+ parts = urllib.parse.urlsplit(url)
+ query = urllib.parse.parse_qsl(parts.query)
+ for key, value in sorted(params.items()):
+ query.append((key, value))
+ parts = list(parts)
+ parts[3] = urllib.parse.urlencode(query)
+ return urllib.parse.urlunsplit(parts)
+
+
+def _extract_params(url):
+ return urllib.parse.parse_qsl(urllib.parse.urlsplit(url).query)
+
+
+class User(avatar_mixin(100), DeactivableMixin, ModelSQL, ModelView):
+ 'Web User'
+ __name__ = 'web.user'
+ _rec_name = 'email'
+
+ email = fields.Char(
+ "E-mail",
+ states={
+ 'required': Eval('active', True),
+ })
+ email_valid = fields.Boolean('E-mail Valid')
+ email_token = fields.Char("E-mail Token", strip=False)
+ password_hash = fields.Char('Password Hash')
+ password = fields.Function(
+ fields.Char('Password'), 'get_password', setter='set_password')
+ reset_password_token = fields.Char("Reset Password Token", strip=False)
+ reset_password_token_expire = fields.Timestamp(
+ 'Reset Password Token Expire')
+ party = fields.Many2One('party.party', 'Party', ondelete='RESTRICT')
+ secondary_parties = fields.Many2Many(
+ 'web.user-party.party.secondary', 'user', 'party', "Secondary Parties")
+
+ @classmethod
+ def __setup__(cls):
+ super(User, cls).__setup__()
+ table = cls.__table__()
+ cls._sql_constraints += [
+ ('email_exclude',
+ Exclude(table, (table.email, Equal),
+ where=table.active == Literal(True)),
+ 'web_user.msg_user_email_unique'),
+ ]
+ cls._sql_indexes.update({
+ Index(table, (table.email, Index.Equality())),
+ Index(table, (table.email_token, Index.Equality())),
+ })
+ cls._buttons.update({
+ 'validate_email': {
+ 'readonly': Eval('email_valid', False),
+ 'depends': ['email_valid'],
+ },
+ 'reset_password': {
+ 'readonly': ~Eval('email_valid', False),
+ 'depends': ['email_valid'],
+ },
+ })
+
+ @classmethod
+ def __register__(cls, module_name):
+ super(User, cls).__register__(module_name)
+
+ table_h = cls.__table_handler__(module_name)
+
+ # Migration from 4.6
+ table_h.not_null_action('email', 'remove')
+
+ # Migration from 4.6: replace unique by exclude
+ table_h.drop_constraint('email_unique')
+
+ @classmethod
+ def default_email_valid(cls):
+ return False
+
+ def get_password(self, name):
+ return 'x' * 10
+
+ @classmethod
+ def set_password(cls, users, name, value):
+ pool = Pool()
+ User = pool.get('res.user')
+
+ if value == 'x' * 10:
+ return
+
+ if Transaction().user and value:
+ User.validate_password(value, users)
+
+ to_write = []
+ for user in users:
+ to_write.extend([[user], {
+ 'password_hash': cls.hash_password(value),
+ }])
+ cls.write(*to_write)
+
+ @fields.depends('party', 'email')
+ def on_change_party(self):
+ if not self.email and self.party:
+ self.email = self.party.email
+
+ @classmethod
+ def _format_email(cls, users):
+ for user in users:
+ email = user.email.lower()
+ if email != user.email:
+ user.email = email
+ cls.save(users)
+
+ @classmethod
+ def create(cls, vlist):
+ users = super(User, cls).create(vlist)
+ cls._format_email(users)
+ return users
+
+ @classmethod
+ def write(cls, *args):
+ super(User, cls).write(*args)
+ users = sum(args[0:None:2], [])
+ cls._format_email(users)
+
+ @classmethod
+ def authenticate(cls, email, password):
+ pool = Pool()
+ Attempt = pool.get('web.user.authenticate.attempt')
+ email = email.lower()
+
+ count_ip = Attempt.count_ip()
+ if count_ip > config.getint(
+ 'session', 'max_attempt_ip_network', default=300):
+ # Do not add attempt as the goal is to prevent flooding
+ raise RateLimitException()
+ count = Attempt.count(email)
+ if count > config.getint('session', 'max_attempt', default=5):
+ Attempt.add(email)
+ raise RateLimitException()
+ # Prevent brute force attack
+ Transaction().atexit(time.sleep, 2 ** count - 1)
+
+ users = cls.search([('email', '=', email)])
+ if users:
+ user, = users
+ valid, new_hash = cls.check_password(password, user.password_hash)
+ if valid:
+ if new_hash:
+ logger.info("Update password hash for %s", user.id)
+ with Transaction().new_transaction() as transaction:
+ with transaction.set_user(0):
+ cls.write([cls(user.id)], {
+ 'password_hash': new_hash,
+ })
+ Attempt.remove(email)
+ return user
+ Attempt.add(email)
+
+ @classmethod
+ def hash_password(cls, password):
+ '''Hash given password in the form
+ $$...'''
+ if not password:
+ return ''
+ return CRYPT_CONTEXT.hash(password)
+
+ @classmethod
+ def check_password(cls, password, hash_):
+ if not hash_:
+ return False, None
+ try:
+ return CRYPT_CONTEXT.verify_and_update(password, hash_)
+ except ValueError:
+ hash_method = hash_.split('$', 1)[0]
+ warnings.warn(
+ "Use deprecated hash method %s" % hash_method,
+ DeprecationWarning)
+ valid = getattr(cls, 'check_' + hash_method)(password, hash_)
+ if valid:
+ new_hash = CRYPT_CONTEXT.hash(password)
+ else:
+ new_hash = None
+ return valid, new_hash
+
+ @classmethod
+ def hash_sha1(cls, password):
+ salt = ''.join(random.sample(string.ascii_letters + string.digits, 8))
+ salted_password = password + salt
+ if isinstance(salted_password, str):
+ salted_password = salted_password.encode('utf-8')
+ hash_ = hashlib.sha1(salted_password).hexdigest()
+ return '$'.join(['sha1', hash_, salt])
+
+ @classmethod
+ def check_sha1(cls, password, hash_):
+ if isinstance(password, str):
+ password = password.encode('utf-8')
+ hash_method, hash_, salt = hash_.split('$', 2)
+ salt = salt or ''
+ if isinstance(salt, str):
+ salt = salt.encode('utf-8')
+ assert hash_method == 'sha1'
+ return hash_ == hashlib.sha1(password + salt).hexdigest()
+
+ @classmethod
+ def hash_bcrypt(cls, password):
+ if isinstance(password, str):
+ password = password.encode('utf-8')
+ hash_ = bcrypt.hashpw(password, bcrypt.gensalt()).decode('utf-8')
+ return '$'.join(['bcrypt', hash_])
+
+ @classmethod
+ def check_bcrypt(cls, password, hash_):
+ if isinstance(password, str):
+ password = password.encode('utf-8')
+ hash_method, hash_ = hash_.split('$', 1)
+ if isinstance(hash_, str):
+ hash_ = hash_.encode('utf-8')
+ assert hash_method == 'bcrypt'
+ return hash_ == bcrypt.hashpw(password, hash_)
+
+ def new_session(self):
+ pool = Pool()
+ Session = pool.get('web.user.session')
+ return Session.add(self)
+
+ @classmethod
+ def get_user(cls, session):
+ pool = Pool()
+ Session = pool.get('web.user.session')
+ return Session.get_user(session)
+
+ @classmethod
+ @ModelView.button
+ def validate_email(cls, users, from_=None):
+ for user in users:
+ user.set_email_token()
+ cls.save(users)
+ _send_email(from_, users, cls.get_email_validation)
+
+ def set_email_token(self, nbytes=None):
+ self.email_token = token_hex(nbytes)
+
+ def get_email_validation(self):
+ return get_email(
+ 'web.user.email_validation', self, self.languages)
+
+ def get_email_validation_url(self, url=None):
+ if url is None:
+ url = config.get('web', 'email_validation_url')
+ return _add_params(url, token=self.email_token)
+
+ @classmethod
+ def validate_email_url(cls, url):
+ parts = urllib.parse.urlsplit(url)
+ tokens = filter(
+ None, urllib.parse.parse_qs(parts.query).get('token', [None]))
+ return cls.validate_email_token(list(tokens))
+
+ @classmethod
+ def validate_email_token(cls, tokens):
+ users = cls.search([
+ ('email_token', 'in', tokens),
+ ])
+ cls.write(users, {
+ 'email_valid': True,
+ 'email_token': None,
+ })
+ return users
+
+ @classmethod
+ @ModelView.button
+ def reset_password(cls, users, from_=None):
+ now = datetime.datetime.now()
+
+ # Prevent abusive reset
+ def reset(user):
+ return not (user.reset_password_token_expire
+ and user.reset_password_token_expire > now)
+ users = list(filter(reset, users))
+
+ for user in users:
+ user.set_reset_password_token()
+ cls.save(users)
+ _send_email(from_, users, cls.get_email_reset_password)
+
+ def set_reset_password_token(self, nbytes=None):
+ self.reset_password_token = token_hex(nbytes)
+ self.reset_password_token_expire = (
+ datetime.datetime.now() + datetime.timedelta(
+ seconds=config.getint(
+ 'session', 'web_timeout_reset', default=24 * 60 * 60)))
+
+ def clear_reset_password_token(self):
+ self.reset_password_token = None
+ self.reset_password_token_expire = None
+
+ def get_email_reset_password(self):
+ return get_email(
+ 'web.user.email_reset_password', self, self.languages)
+
+ def get_email_reset_password_url(self, url=None):
+ if url is None:
+ url = config.get('web', 'reset_password_url')
+ return _add_params(
+ url, token=self.reset_password_token, email=self.email)
+
+ @classmethod
+ def set_password_url(cls, url, password):
+ parts = urllib.parse.urlsplit(url)
+ query = urllib.parse.parse_qs(parts.query)
+ email = query.get('email', [None])[0]
+ token = query.get('token', [None])[0]
+ return cls.set_password_token(email, token, password)
+
+ @classmethod
+ def set_password_token(cls, email, token, password):
+ pool = Pool()
+ Attempt = pool.get('web.user.authenticate.attempt')
+ email = email.lower()
+
+ # Prevent brute force attack
+ Transaction().atexit(
+ time.sleep, random.randint(0, 2 ** Attempt.count(email) - 1))
+
+ users = cls.search([
+ ('email', '=', email),
+ ])
+ if users:
+ user, = users
+ if user.reset_password_token == token:
+ now = datetime.datetime.now()
+ expire = user.reset_password_token_expire
+ user.clear_reset_password_token()
+ if expire > now:
+ user.password = password
+ user.save()
+ Attempt.remove(email)
+ return True
+ Attempt.add(email)
+ return False
+
+ @property
+ def languages(self):
+ pool = Pool()
+ Language = pool.get('ir.lang')
+ if self.party and self.party.lang:
+ languages = [self.party.lang]
+ else:
+ languages = Language.search([
+ ('code', '=', Transaction().language),
+ ])
+ return languages
+
+
+class User_PartySecondary(ModelSQL):
+ "Web User - Secondary Party"
+ __name__ = 'web.user-party.party.secondary'
+
+ user = fields.Many2One(
+ 'web.user', "User", required=True, ondelete='CASCADE')
+ party = fields.Many2One(
+ 'party.party', "Party", required=True, ondelete='CASCADE')
+
+
+class UserAuthenticateAttempt(LoginAttempt):
+ 'Web User Authenticate Attempt'
+ __name__ = 'web.user.authenticate.attempt'
+ _table = None # Needed to reset LoginAttempt._table
+
+
+class UserSession(ModelSQL):
+ 'Web User Session'
+ __name__ = 'web.user.session'
+ _rec_name = 'key'
+
+ key = fields.Char("Key", required=True, strip=False)
+ user = fields.Many2One(
+ 'web.user', "User", required=True, ondelete='CASCADE')
+
+ @classmethod
+ def __setup__(cls):
+ super(UserSession, cls).__setup__()
+ table = cls.__table__()
+ cls.__rpc__ = {}
+ cls._sql_constraints += [
+ ('key_unique', Unique(table, table.key),
+ 'web_user.msg_user_session_key_unique'),
+ ]
+ cls._sql_indexes.update({
+ Index(
+ table,
+ (Coalesce(table.write_date, table.create_date),
+ Index.Range())),
+ Index(table, (table.key, Index.Equality())),
+ })
+
+ @classmethod
+ def default_key(cls, nbytes=None):
+ return token_hex(nbytes)
+
+ @classmethod
+ def add(cls, user):
+ cursor = Transaction().connection.cursor()
+ table = cls.__table__()
+
+ cursor.execute(*table.delete(
+ where=(
+ Coalesce(table.write_date, table.create_date)
+ < CurrentTimestamp() - cls.timeout())))
+
+ session = cls(user=user)
+ session.save()
+ return session.key
+
+ @classmethod
+ def remove(cls, key):
+ sessions = cls.search([
+ ('key', '=', key),
+ ])
+ cls.delete(sessions)
+
+ @classmethod
+ def get_user(cls, session):
+ transaction = Transaction()
+ sessions = cls.search([
+ ('key', '=', session),
+ ])
+ if not sessions:
+ return
+ session, = sessions
+ if not session.expired:
+ return session.user
+ elif not transaction.readonly:
+ cls.delete([session])
+
+ @classmethod
+ def timeout(cls):
+ return datetime.timedelta(seconds=config.getint(
+ 'session', 'web_timeout', default=30 * 24 * 60 * 60))
+
+ @property
+ def expired(self):
+ now = datetime.datetime.now()
+ timestamp = self.write_date or self.create_date
+ return abs(timestamp - now) > self.timeout()
+
+ @classmethod
+ def reset(cls, session):
+ sessions = cls.search([
+ ('key', '=', session),
+ ])
+ cls.write(sessions, {})
+
+ @classmethod
+ def create(cls, vlist):
+ vlist = [v.copy() for v in vlist]
+ for values in vlist:
+ # Ensure to get a different key for each record
+ # default methods are called only once
+ values.setdefault('key', cls.default_key())
+ return super(UserSession, cls).create(vlist)
+
+
+class EmailValidation(Report):
+ __name__ = 'web.user.email_validation'
+
+ @classmethod
+ def get_context(cls, records, header, data):
+ context = super().get_context(records, header, data)
+ context['extract_params'] = _extract_params
+ return context
+
+
+class EmailResetPassword(Report):
+ __name__ = 'web.user.email_reset_password'
+
+ @classmethod
+ def get_context(cls, records, header, data):
+ context = super().get_context(records, header, data)
+ context['extract_params'] = _extract_params
+ expire_delay = (
+ records[0].reset_password_token_expire - datetime.datetime.now())
+ # Use a precision of minutes
+ expire_delay = datetime.timedelta(
+ days=expire_delay.days,
+ minutes=round(expire_delay.seconds / 60))
+ context['expire_delay'] = expire_delay
+ return context
diff --git a/modules/web_user/user.xml b/modules/web_user/user.xml
new file mode 100644
index 0000000000..ed26f17ae6
--- /dev/null
+++ b/modules/web_user/user.xml
@@ -0,0 +1,105 @@
+
+
+
+
+
+ web.user
+ form
+ user_form
+
+
+
+ web.user
+ tree
+ user_list
+
+
+
+ Web Users
+ web.user
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Web Users
+ web.user
+
+
+
+
+
+
+
+
+
+
+
+
+
+ form_relate
+ party.party,-1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ validate_email
+ Validate E-mail
+
+
+
+
+ reset_password
+ Reset Password
+
+
+
+
+ Email Validation
+ web.user
+ web.user.email_validation
+ web_user/email_validation.html
+ html
+
+
+ Reset Password
+ web.user
+ web.user.email_reset_password
+ web_user/email_reset_password.html
+ html
+
+
+
diff --git a/modules/web_user/view/user_form.xml b/modules/web_user/view/user_form.xml
new file mode 100644
index 0000000000..16a87b8ce9
--- /dev/null
+++ b/modules/web_user/view/user_form.xml
@@ -0,0 +1,24 @@
+
+
+
diff --git a/modules/web_user/view/user_list.xml b/modules/web_user/view/user_list.xml
new file mode 100644
index 0000000000..aaa019cf33
--- /dev/null
+++ b/modules/web_user/view/user_list.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
diff --git a/proteus/.drone.yml b/proteus/.drone.yml
new file mode 100644
index 0000000000..f37746fe42
--- /dev/null
+++ b/proteus/.drone.yml
@@ -0,0 +1,50 @@
+clone:
+ hg:
+ image: plugins/hg
+ environment:
+ - HG_SHARE_POOL=/root/.cache/hg
+ volumes:
+ - cache:/root/.cache
+
+pipeline:
+ tox:
+ image: ${IMAGE}
+ environment:
+ - CFLAGS=-O0
+ - TOX_TESTENV_PASSENV=CFLAGS CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
+ commands:
+ - echo "[extensions]" >> /root/.hgrc
+ - echo "hgext.share =" >> /root/.hgrc
+ - echo "[share]" >> /root/.hgrc
+ - echo "pool = /root/.cache/hg" >> /root/.hgrc
+ - pip install tox pydot
+ - tox -e "${TOXENV}"
+ volumes:
+ - cache:/root/.cache
+ check_dist:
+ image: ${IMAGE}
+ commands:
+ - pip install twine
+ - python setup.py sdist
+ - twine check dist/*
+ volumes:
+ - cache:/root/.cache
+ check_doc:
+ image: ${IMAGE}
+ commands:
+ - pip install sphinx
+ - python -m sphinx -T -E -W -n -b html doc _build/html
+ - python -m sphinx -T -E -W -n -b linkcheck doc _build
+ volumes:
+ - cache:/root/.cache
+
+matrix:
+ include:
+ - IMAGE: python:3.7
+ TOXENV: py37
+ - IMAGE: python:3.8
+ TOXENV: py38
+ - IMAGE: python:3.9
+ TOXENV: py39
+ - IMAGE: python:3.10
+ TOXENV: py310
diff --git a/proteus/.flake8 b/proteus/.flake8
new file mode 100644
index 0000000000..fa6b4f66d1
--- /dev/null
+++ b/proteus/.flake8
@@ -0,0 +1,2 @@
+[flake8]
+ignore=E123,E124,E126,E128,E741,W503
diff --git a/proteus/.isort.cfg b/proteus/.isort.cfg
new file mode 100644
index 0000000000..e1c6495da9
--- /dev/null
+++ b/proteus/.isort.cfg
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff --git a/proteus/CHANGELOG b/proteus/CHANGELOG
new file mode 100644
index 0000000000..032e70b517
--- /dev/null
+++ b/proteus/CHANGELOG
@@ -0,0 +1,145 @@
+Version 6.6.0 - 2022-10-31
+--------------------------
+* Bug fixes (see mercurial logs for details)
+
+Version 6.4.0 - 2022-05-02
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Use unittest discover
+* Support notification message
+* Use defusedxml to parse XML (11244)
+* Add support for Python 3.10
+* Remove support for Python 3.6
+
+Version 6.2.0 - 2021-11-01
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Support session with XML-RPC
+* Use bigdecimal tag for XML-RPC
+
+Version 6.0.0 - 2021-05-03
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add support for Python 3.9
+* Unify PYSON string format
+
+Version 5.8.0 - 2020-11-02
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Remove support for Python 3.5
+* Support PYSON comparison of date and datetime
+
+Version 5.6.0 - 2020-05-04
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add support for Python 3.8
+* Use same __str__ as trytond instances
+
+Version 5.4.0 - 2019-11-04
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Support dot notation on PYSON Eval
+* Add __slots__
+
+Version 5.2.0 - 2019-05-06
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Remove support for Python 3.4
+
+Version 5.0.0 - 2018-10-01
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add support for Python 3.7
+* Remove support for Python 2.7
+
+Version 4.8.0 - 2018-04-23
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Always use the context and config of the instance
+* Add support for search_* attributes in ModelList
+
+Version 4.6.0 - 2017-10-30
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add set_sequence method to ModelList
+* Add __int__ to Model
+* Allow to use keyword arguments with trytond configuration
+
+Version 4.4.0 - 2017-05-01
+--------------------------
+* Bug fixes (see mercurial logs for details)
+
+Version 4.2.0 - 2016-11-28
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Fill default Report data
+
+Version 4.0.0 - 2016-05-02
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add Python3 support
+
+Version 3.8.0 - 2015-11-02
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add StateAction support to Wizard
+
+Version 3.6.0 - 2015-04-20
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add support for PyPy
+* Allow to provide extra keyword arguments to set_xmlrpc()
+* Add support of fields.TimeDelta
+* Remove password on set_trytond
+* Manage reload, save, delete, duplicate and click as class and instance method
+
+Version 3.4.0 - 2014-10-20
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* New configuration syntax
+* Add Report
+* Explicitly set value of parent field
+* Add duplicate method
+
+Version 3.2.0 - 2014-04-21
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Models cache depends also on user
+* Drop support of Python 2.6
+* Allow to pass field values to new method
+* Add click method for buttons
+
+Version 3.0.0 - 2013-10-21
+--------------------------
+* Bug fixes (see mercurial logs for details)
+
+Version 2.8.0 - 2013-04-22
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Add support of fields.Dict
+
+Version 2.6.0 - 2012-10-22
+--------------------------
+* Bug fixes (see mercurial logs for details)
+
+Version 2.4.0 - 2012-04-23
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Use loading attribute
+* Add support of _buttons
+* Add support of fields.Time
+
+Version 2.2.0 - 2011-10-25
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Change license to LGPL-3
+* Drop support of Python 2.5
+
+Version 2.0.0 - 2011-04-28
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Manage default values of trytond configuration
+
+Version 1.8.0 - 2010-12-24
+--------------------------
+* Initial release
diff --git a/proteus/COPYRIGHT b/proteus/COPYRIGHT
new file mode 100644
index 0000000000..ceaf6af071
--- /dev/null
+++ b/proteus/COPYRIGHT
@@ -0,0 +1,15 @@
+Copyright (C) 2010-2022 Cédric Krier.
+Copyright (C) 2010-2022 B2CK SPRL.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
diff --git a/proteus/LICENSE b/proteus/LICENSE
new file mode 100644
index 0000000000..75797f4ef8
--- /dev/null
+++ b/proteus/LICENSE
@@ -0,0 +1,841 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/proteus/MANIFEST.in b/proteus/MANIFEST.in
new file mode 100644
index 0000000000..005b0af076
--- /dev/null
+++ b/proteus/MANIFEST.in
@@ -0,0 +1,5 @@
+include CHANGELOG
+include COPYRIGHT
+include LICENSE
+include README.rst
+graft doc
diff --git a/proteus/README.rst b/proteus/README.rst
new file mode 120000
index 0000000000..176d9c2695
--- /dev/null
+++ b/proteus/README.rst
@@ -0,0 +1 @@
+doc/index.rst
\ No newline at end of file
diff --git a/proteus/doc/conf.py b/proteus/doc/conf.py
new file mode 100644
index 0000000000..fd190772eb
--- /dev/null
+++ b/proteus/doc/conf.py
@@ -0,0 +1,42 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+
+modules_url = 'https://docs.tryton.org/projects/modules-{module}/en/{series}/'
+trytond_url = 'https://docs.tryton.org/projects/server/en/{series}/'
+
+
+def get_info():
+ import os
+ import subprocess
+ import sys
+
+ module_dir = os.path.dirname(os.path.dirname(__file__))
+
+ info = dict()
+
+ result = subprocess.run(
+ [sys.executable, 'setup.py', '--name'],
+ stdout=subprocess.PIPE, check=True, cwd=module_dir)
+ info['name'] = result.stdout.decode('utf-8').strip()
+
+ result = subprocess.run(
+ [sys.executable, 'setup.py', '--version'],
+ stdout=subprocess.PIPE, check=True, cwd=module_dir)
+ version = result.stdout.decode('utf-8').strip()
+ if 'dev' in version:
+ info['series'] = 'latest'
+ else:
+ info['series'] = '.'.join(version.split('.', 2)[:2])
+
+ return info
+
+
+info = get_info()
+
+master_doc = 'index'
+project = info['name']
+release = version = info['series']
+default_role = 'ref'
+highlight_language = 'none'
+
+del get_info, info, modules_url, trytond_url
diff --git a/proteus/doc/index.rst b/proteus/doc/index.rst
new file mode 100644
index 0000000000..8844fee067
--- /dev/null
+++ b/proteus/doc/index.rst
@@ -0,0 +1,171 @@
+=======================
+Tryton Scripting Client
+=======================
+
+A library to access Tryton's models like a client.
+
+Example of usage
+----------------
+
+ >>> from proteus import config, Model, Wizard, Report
+
+Configuration
+~~~~~~~~~~~~~
+
+Configuration to connect to a sqlite memory database using trytond as module.
+
+ >>> config = config.set_trytond('sqlite:///:memory:')
+
+There is also the ``config.set_xmlrpc`` method which can be used to connect
+using a URL, and the ``config.set_xmlrpc_session`` method (when used as a
+context manager) which connects for a session.
+
+Activating a module
+~~~~~~~~~~~~~~~~~~~
+
+Find the module, call the activate button and run the upgrade wizard.
+
+ >>> Module = Model.get('ir.module')
+ >>> party_module, = Module.find([('name', '=', 'party')])
+ >>> party_module.click('activate')
+ >>> Wizard('ir.module.activate_upgrade').execute('upgrade')
+
+Creating a party
+~~~~~~~~~~~~~~~~
+
+First instantiate a new Party:
+
+ >>> Party = Model.get('party.party')
+ >>> party = Party()
+ >>> party.id < 0
+ True
+
+Fill the fields:
+
+ >>> party.name = 'ham'
+
+Save the instance into the server:
+
+ >>> party.save()
+ >>> party.name
+ 'ham'
+ >>> party.id > 0
+ True
+
+Setting the language of the party
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The language on party is a ``Many2One`` relation field. So it requires to get a
+``Model`` instance as value.
+
+ >>> Lang = Model.get('ir.lang')
+ >>> en, = Lang.find([('code', '=', 'en')])
+ >>> party.lang = en
+ >>> party.save()
+ >>> party.lang.code
+ 'en'
+
+Creating an address for the party
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Addresses are store on party with a ``One2Many`` field.
+So the new address just needs to be appended to the list ``addresses``.
+
+ >>> address = party.addresses.new(postal_code='42')
+ >>> party.save()
+ >>> party.addresses #doctest: +ELLIPSIS
+ [proteus.Model.get('party.address')(...)]
+
+Adding category to the party
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Categories are linked to party with a ``Many2Many`` field.
+
+So first create a category
+
+ >>> Category = Model.get('party.category')
+ >>> category = Category()
+ >>> category.name = 'spam'
+ >>> category.save()
+
+Append it to categories of the party
+
+ >>> party.categories.append(category)
+ >>> party.save()
+ >>> party.categories #doctest: +ELLIPSIS
+ [proteus.Model.get('party.category')(...)]
+
+Print party label
+~~~~~~~~~~~~~~~~~
+
+There is a label report on ``Party``.
+
+ >>> label = Report('party.label')
+
+The report is executed with a list of records and some extra data.
+
+ >>> type_, data, print_, name = label.execute([party], {})
+
+Sorting addresses and register order
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Addresses are ordered by sequence which means they can be stored following a
+specific order.
+The ``set_sequence`` method stores the current order.
+
+ >>> address = party.addresses.new(postal_code='69')
+ >>> party.save()
+ >>> address = party.addresses.new(postal_code='23')
+ >>> party.save()
+
+Now changing the order.
+
+ >>> reversed_addresses = list(reversed(party.addresses))
+ >>> while party.addresses:
+ ... _ = party.addresses.pop()
+ >>> party.addresses.extend(reversed_addresses)
+ >>> party.addresses.set_sequence()
+ >>> party.save()
+ >>> party.addresses == reversed_addresses
+ True
+
+Setting context
+~~~~~~~~~~~~~~~
+
+Make French translatable:
+
+ >>> Language = Model.get('ir.lang')
+ >>> french, = Language.find([('code', '=', 'fr')])
+ >>> french.translatable = True
+ >>> french.save()
+
+Create a category in English:
+
+ >>> Category = Model.get('party.category')
+ >>> with config.set_context(language='en'):
+ ... category = Category(name="Category")
+ ... category.save()
+
+Translate in French:
+
+ >>> with config.set_context(language='fr'):
+ ... category_fr = Category(category.id)
+ ... category_fr.name = "Categorie"
+ ... category_fr.save()
+
+Read in English:
+
+ >>> category.reload()
+ >>> category.name
+ 'Category'
+
+Read in French:
+
+ >>> category_fr.reload()
+ >>> category_fr.name
+ 'Categorie'
+
+.. toctree::
+ :maxdepth: 2
+
+ releases
diff --git a/proteus/doc/releases.rst b/proteus/doc/releases.rst
new file mode 100644
index 0000000000..21b13c4745
--- /dev/null
+++ b/proteus/doc/releases.rst
@@ -0,0 +1,7 @@
+.. _releases-index:
+
+=============
+Release notes
+=============
+
+.. include:: ../CHANGELOG
diff --git a/proteus/proteus/__init__.py b/proteus/proteus/__init__.py
new file mode 100644
index 0000000000..393757fc1d
--- /dev/null
+++ b/proteus/proteus/__init__.py
@@ -0,0 +1,1365 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+'''
+A library to access Tryton's models like a client.
+'''
+import datetime
+import functools
+import threading
+from decimal import Decimal
+
+import proteus.config
+
+__version__ = "6.7.0"
+__all__ = ['Model', 'Wizard', 'Report']
+
+_MODELS = threading.local()
+
+
+class _EvalEnvironment(dict):
+ 'Dictionary for evaluation'
+ __slots__ = ('parent', 'eval_type')
+
+ def __init__(self, parent, eval_type='eval'):
+ super(_EvalEnvironment, self).__init__()
+ self.parent = parent
+ assert eval_type in ('eval', 'on_change')
+ self.eval_type = eval_type
+
+ def __getitem__(self, item):
+ if item == 'id':
+ return self.parent.id
+ if item == '_parent_' + self.parent._parent_name \
+ and self.parent._parent:
+ return _EvalEnvironment(self.parent._parent,
+ eval_type=self.eval_type)
+ if self.eval_type == 'eval':
+ return self.parent._get_eval()[item]
+ else:
+ return self.parent._get_on_change_values(fields=[item])[item]
+
+ def __getattr__(self, item):
+ try:
+ return self.__getitem__(item)
+ except KeyError:
+ raise AttributeError(item)
+
+ def get(self, item, default=None):
+ try:
+ return self.__getitem__(item)
+ except KeyError:
+ pass
+ return super(_EvalEnvironment, self).get(item, default)
+
+ def __bool__(self):
+ return True
+
+ def __str__(self):
+ return str(self.parent)
+
+ def __repr__(self):
+ return repr(self.parent)
+
+ def __contains__(self, item):
+ if item == 'id':
+ return True
+ if item == '_parent_' + self.parent._parent_name \
+ and self.parent._parent:
+ return True
+ if self.eval_type == 'eval':
+ return item in self.parent._get_eval()
+ else:
+ return item in self.parent._fields
+
+
+class dualmethod(object):
+ """Descriptor implementing combination of class and instance method
+
+ When called on an instance, the class is passed as the first argument and a
+ list with the instance as the second.
+ When called on a class, the class itself is passed as the first argument.
+
+ >>> class Example(object):
+ ... @dualmethod
+ ... def method(cls, instances):
+ ... print(len(instances))
+ ...
+ >>> Example.method([Example()])
+ 1
+ >>> Example().method()
+ 1
+ """
+ __slots__ = ('func')
+
+ def __init__(self, func):
+ self.func = func
+
+ def __get__(self, instance, owner):
+
+ @functools.wraps(self.func)
+ def newfunc(*args, **kwargs):
+ if instance:
+ return self.func(owner, [instance], *args, **kwargs)
+ else:
+ return self.func(owner, *args, **kwargs)
+ return newfunc
+
+
+class FieldDescriptor(object):
+ default = None
+
+ def __init__(self, name, definition):
+ super(FieldDescriptor, self).__init__()
+ self.name = name
+ self.definition = definition
+ self.__doc__ = definition['string']
+
+ def __get__(self, instance, owner):
+ if instance.id >= 0:
+ instance._read(self.name)
+ return instance._values.get(self.name, self.default)
+
+ def __set__(self, instance, value):
+ if instance.id >= 0:
+ instance._read(self.name)
+ previous = getattr(instance, self.name)
+ instance._values[self.name] = value
+ if previous != getattr(instance, self.name):
+ instance._changed.add(self.name)
+ instance._on_change([self.name])
+ if instance._parent:
+ instance._parent._changed.add(instance._parent_field_name)
+ instance._parent._on_change([instance._parent_field_name])
+
+
+class BooleanDescriptor(FieldDescriptor):
+ default = False
+
+ def __set__(self, instance, value):
+ assert isinstance(value, bool)
+ super(BooleanDescriptor, self).__set__(instance, value)
+
+
+class CharDescriptor(FieldDescriptor):
+ default = None
+
+ def __set__(self, instance, value):
+ assert isinstance(value, str) or value is None
+ if self.definition.get('strip') and value:
+ if self.definition['strip'] == 'leading':
+ value = value.lstrip()
+ elif self.definition['strip'] == 'trailing':
+ value = value.rstrip()
+ else:
+ value = value.strip()
+ super(CharDescriptor, self).__set__(instance, value or '')
+
+
+class BinaryDescriptor(FieldDescriptor):
+ default = None
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (bytes, bytearray)) or value is None
+ super(BinaryDescriptor, self).__set__(instance, value)
+
+
+class IntegerDescriptor(FieldDescriptor):
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (int, type(None)))
+ super(IntegerDescriptor, self).__set__(instance, value)
+
+
+class FloatDescriptor(FieldDescriptor):
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (int, float, Decimal, type(None)))
+ if value is not None:
+ value = float(value)
+ super(FloatDescriptor, self).__set__(instance, value)
+
+
+class NumericDescriptor(FieldDescriptor):
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (type(None), Decimal))
+ # TODO add digits validation
+ super(NumericDescriptor, self).__set__(instance, value)
+
+
+class SelectionDescriptor(FieldDescriptor):
+
+ def __set__(self, instance, value):
+ assert isinstance(value, str) or value is None
+ # TODO add selection validation
+ super().__set__(instance, value)
+
+
+class MultiSelectionDescriptor(FieldDescriptor):
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (list, type(None)))
+ # TODO add selection validation
+ super().__set__(instance, value)
+
+
+class ReferenceDescriptor(FieldDescriptor):
+ def __get__(self, instance, owner):
+ value = super(ReferenceDescriptor, self).__get__(instance, owner)
+ if isinstance(value, str):
+ model_name, id = value.split(',', 1)
+ if model_name:
+ Relation = Model.get(model_name, instance._config)
+ config = Relation._config
+ with config.reset_context(), \
+ config.set_context(instance._context):
+ value = Relation(int(id))
+ instance._values[self.name] = value
+ return value
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (Model, type(None), str))
+ if isinstance(value, str):
+ assert value.startswith(',')
+ elif isinstance(value, Model):
+ assert value._config == instance._config
+ super(ReferenceDescriptor, self).__set__(instance, value)
+
+
+class DateDescriptor(FieldDescriptor):
+ def __get__(self, instance, owner):
+ value = super(DateDescriptor, self).__get__(instance, owner)
+ if isinstance(value, datetime.datetime):
+ value = value.date()
+ instance._values[self.name] = value
+ return value
+
+ def __set__(self, instance, value):
+ assert isinstance(value, datetime.date) or value is None
+ super(DateDescriptor, self).__set__(instance, value)
+
+
+class DateTimeDescriptor(FieldDescriptor):
+ def __set__(self, instance, value):
+ assert isinstance(value, datetime.datetime) or value is None
+ super(DateTimeDescriptor, self).__set__(instance, value)
+
+
+class TimeDescriptor(FieldDescriptor):
+ def __set__(self, instance, value):
+ assert isinstance(value, datetime.time) or value is None
+ super(TimeDescriptor, self).__set__(instance, value)
+
+
+class TimeDeltaDescriptor(FieldDescriptor):
+ def __set__(self, instance, value):
+ assert isinstance(value, datetime.timedelta) or value is None
+ super(TimeDeltaDescriptor, self).__set__(instance, value)
+
+
+class DictDescriptor(FieldDescriptor):
+ def __get__(self, instance, owner):
+ value = super(DictDescriptor, self).__get__(instance, owner)
+ if value:
+ value = value.copy()
+ return value
+
+ def __set__(self, instance, value):
+ assert isinstance(value, dict) or value is None
+ super(DictDescriptor, self).__set__(instance, value)
+
+
+class Many2OneDescriptor(FieldDescriptor):
+ def __get__(self, instance, owner):
+ Relation = Model.get(self.definition['relation'], instance._config)
+ value = super(Many2OneDescriptor, self).__get__(instance, owner)
+ if isinstance(value, int):
+ config = Relation._config
+ with config.reset_context(), config.set_context(instance._context):
+ value = Relation(value)
+ if self.name in instance._values:
+ instance._values[self.name] = value
+ return value
+
+ def __set__(self, instance, value):
+ assert isinstance(value, (Model, type(None)))
+ if value:
+ assert value._config == instance._config
+ super(Many2OneDescriptor, self).__set__(instance, value)
+
+
+class One2OneDescriptor(Many2OneDescriptor):
+ pass
+
+
+class One2ManyDescriptor(FieldDescriptor):
+ default = []
+
+ def __get__(self, instance, owner):
+ from .pyson import PYSONDecoder
+ Relation = Model.get(self.definition['relation'], instance._config)
+ value = super(One2ManyDescriptor, self).__get__(instance, owner)
+ if not isinstance(value, ModelList):
+ ctx = instance._context.copy() if instance._context else {}
+ if self.definition.get('context'):
+ decoder = PYSONDecoder(_EvalEnvironment(instance))
+ ctx.update(decoder.decode(self.definition.get('context')))
+ config = Relation._config
+ with config.reset_context(), config.set_context(ctx):
+ value = ModelList(self.definition, (Relation(id)
+ for id in value or []), instance, self.name)
+ instance._values[self.name] = value
+ return value
+
+ def __set__(self, instance, value):
+ raise AttributeError
+
+
+class Many2ManyDescriptor(One2ManyDescriptor):
+ pass
+
+
+class ValueDescriptor(object):
+ def __init__(self, name, definition):
+ super(ValueDescriptor, self).__init__()
+ self.name = name
+ self.definition = definition
+
+ def __get__(self, instance, owner):
+ return getattr(instance, self.name)
+
+
+class ReferenceValueDescriptor(ValueDescriptor):
+ def __get__(self, instance, owner):
+ value = super(ReferenceValueDescriptor, self).__get__(instance, owner)
+ if isinstance(value, Model):
+ value = '%s,%s' % (value.__class__.__name__, value.id)
+ return value or None
+
+
+class Many2OneValueDescriptor(ValueDescriptor):
+ def __get__(self, instance, owner):
+ value = super(Many2OneValueDescriptor, self).__get__(instance, owner)
+ return value and value.id or None
+
+
+class One2OneValueDescriptor(Many2OneValueDescriptor):
+ pass
+
+
+class One2ManyValueDescriptor(ValueDescriptor):
+ def __get__(self, instance, owner):
+ value = []
+ value_list = getattr(instance, self.name)
+ parent_name = self.definition.get('relation_field', '')
+ to_add = []
+ to_create = []
+ to_write = []
+ for record in value_list:
+ if record.id >= 0:
+ values = record._get_values(fields=record._changed)
+ values.pop(parent_name, None)
+ if record._changed and values:
+ to_write.extend(([record.id], values))
+ to_add.append(record.id)
+ else:
+ values = record._get_values()
+ values.pop(parent_name, None)
+ to_create.append(values)
+ if to_add:
+ value.append(('add', to_add))
+ if to_create:
+ value.append(('create', to_create))
+ if to_write:
+ value.append(('write',) + tuple(to_write))
+ if value_list.record_removed:
+ value.append(('remove', [x.id for x in value_list.record_removed]))
+ if value_list.record_deleted:
+ value.append(('delete', [x.id for x in value_list.record_deleted]))
+ return value
+
+
+class Many2ManyValueDescriptor(One2ManyValueDescriptor):
+ pass
+
+
+class EvalDescriptor(object):
+ def __init__(self, name, definition):
+ super(EvalDescriptor, self).__init__()
+ self.name = name
+ self.definition = definition
+
+ def __get__(self, instance, owner):
+ return getattr(instance, self.name)
+
+
+class ReferenceEvalDescriptor(EvalDescriptor):
+ def __get__(self, instance, owner):
+ value = super(ReferenceEvalDescriptor, self).__get__(instance, owner)
+ if isinstance(value, Model):
+ value = '%s,%s' % (value.__class__.__name__, value.id)
+ return value or None
+
+
+class Many2OneEvalDescriptor(EvalDescriptor):
+ def __get__(self, instance, owner):
+ value = super(Many2OneEvalDescriptor, self).__get__(instance, owner)
+ if value:
+ return value.id
+ return None
+
+
+class One2OneEvalDescriptor(Many2OneEvalDescriptor):
+ pass
+
+
+class One2ManyEvalDescriptor(EvalDescriptor):
+ def __get__(self, instance, owner):
+ # Directly use _values to prevent infinite recursion with
+ # One2ManyDescriptor which could evaluate this field to decode the
+ # context
+ value = instance._values.get(self.name, [])
+ if isinstance(value, ModelList):
+ return [x.id for x in value]
+ else:
+ return value
+
+
+class Many2ManyEvalDescriptor(One2ManyEvalDescriptor):
+ pass
+
+
+class MetaModelFactory(object):
+ descriptors = {
+ 'boolean': BooleanDescriptor,
+ 'char': CharDescriptor,
+ 'text': CharDescriptor,
+ 'binary': BinaryDescriptor,
+ 'selection': SelectionDescriptor,
+ 'multiselection': MultiSelectionDescriptor,
+ 'integer': IntegerDescriptor,
+ 'biginteger': IntegerDescriptor,
+ 'float': FloatDescriptor,
+ 'numeric': NumericDescriptor,
+ 'reference': ReferenceDescriptor,
+ 'date': DateDescriptor,
+ 'datetime': DateTimeDescriptor,
+ 'timestamp': DateTimeDescriptor,
+ 'time': TimeDescriptor,
+ 'timedelta': TimeDeltaDescriptor,
+ 'dict': DictDescriptor,
+ 'many2one': Many2OneDescriptor,
+ 'one2many': One2ManyDescriptor,
+ 'many2many': Many2ManyDescriptor,
+ 'one2one': One2OneDescriptor,
+ }
+ value_descriptors = {
+ 'reference': ReferenceValueDescriptor,
+ 'many2one': Many2OneValueDescriptor,
+ 'one2many': One2ManyValueDescriptor,
+ 'many2many': Many2ManyValueDescriptor,
+ 'one2one': One2OneValueDescriptor,
+ }
+ eval_descriptors = {
+ 'reference': ReferenceEvalDescriptor,
+ 'many2one': Many2OneEvalDescriptor,
+ 'one2many': One2ManyEvalDescriptor,
+ 'many2many': Many2ManyEvalDescriptor,
+ 'one2one': One2OneEvalDescriptor,
+ }
+
+ def __init__(self, model_name, config=None):
+ super(MetaModelFactory, self).__init__()
+ self.model_name = model_name
+ self.config = config or proteus.config.get_config()
+
+ def __call__(self):
+ models_key = 'c%su%s' % (id(self.config), self.config.user)
+ if not hasattr(_MODELS, models_key):
+ setattr(_MODELS, models_key, {})
+
+ class MetaModel(type):
+ 'Meta class for Model'
+ __slots__ = ()
+
+ def __new__(mcs, name, bases, dict):
+ if self.model_name in getattr(_MODELS, models_key):
+ return getattr(_MODELS, models_key)[self.model_name]
+ proxy = self.config.get_proxy(self.model_name)
+ context = self.config.context
+ name = self.model_name
+ dict['_proxy'] = proxy
+ dict['_config'] = self.config
+ dict['_fields'] = proxy.fields_get(None, context)
+ for field_name, definition in dict['_fields'].items():
+ if field_name == 'id':
+ continue
+ Descriptor = self.descriptors.get(definition['type'],
+ FieldDescriptor)
+ dict[field_name] = Descriptor(field_name, definition)
+ VDescriptor = self.value_descriptors.get(
+ definition['type'], ValueDescriptor)
+ dict['__%s_value' % field_name] = VDescriptor(
+ field_name, definition)
+ EDescriptor = self.eval_descriptors.get(
+ definition['type'], EvalDescriptor)
+ dict['__%s_eval' % field_name] = EDescriptor(
+ field_name, definition)
+ for method in self.config.get_proxy_methods(self.model_name):
+ setattr(mcs, method, getattr(proxy, method))
+ res = type.__new__(mcs, name, bases, dict)
+ getattr(_MODELS, models_key)[self.model_name] = res
+ return res
+ __new__.__doc__ = type.__new__.__doc__
+ return MetaModel
+
+
+class ModelList(list):
+ 'List for Model'
+ __slots__ = ('model_name', 'parent', 'parent_field_name', 'parent_name',
+ 'domain', 'context', 'add_remove', 'search_order', 'search_context',
+ 'record_removed', 'record_deleted')
+
+ def __init__(self, definition, sequence=None, parent=None,
+ parent_field_name=''):
+ self.model_name = definition['relation']
+ if sequence is None:
+ sequence = []
+ self.parent = parent
+ if parent:
+ assert parent_field_name
+ self.parent_field_name = parent_field_name
+ self.parent_name = definition.get('relation_field', '')
+ self.domain = definition.get('domain', [])
+ self.context = definition.get('context')
+ self.add_remove = definition.get('add_remove')
+ self.search_order = definition.get('search_order', 'null')
+ self.search_context = definition.get('search_context', '{}')
+ self.record_removed = set()
+ self.record_deleted = set()
+ result = super(ModelList, self).__init__(sequence)
+ assert len(self) == len(set(self))
+ self.__check(self, on_change=False)
+ return result
+ __init__.__doc__ = list.__init__.__doc__
+
+ def _changed(self):
+ 'Signal change to parent'
+ if self.parent:
+ self.parent._changed.add(self.parent_field_name)
+ self.parent._on_change([self.parent_field_name])
+
+ def _get_context(self):
+ from .pyson import PYSONDecoder
+ decoder = PYSONDecoder(_EvalEnvironment(self.parent))
+ ctx = self.parent._context.copy() if self.parent._context else {}
+ ctx.update(decoder.decode(self.context) if self.context else {})
+ return ctx
+
+ def __check(self, records, on_change=True):
+ config = None
+ for record in records:
+ assert isinstance(record, Model)
+ assert record.__class__.__name__ == self.model_name
+ if self.parent:
+ assert record._config == self.parent._config
+ elif self:
+ assert record._config == self[0]._config
+ elif config:
+ assert record._config == config
+ else:
+ config = record._config
+ if record._group is not self:
+ assert record._group is None
+ record._group = self
+ for record in records:
+ # Set parent field to trigger on_change
+ if (on_change
+ and self.parent
+ and self.parent_name in record._fields):
+ definition = record._fields[self.parent_name]
+ if definition['type'] in ('many2one', 'reference'):
+ setattr(record, self.parent_name, self.parent)
+ self.record_removed.difference_update(records)
+ self.record_deleted.difference_update(records)
+
+ def append(self, record):
+ self.__check([record])
+ if record not in self:
+ super().append(record)
+ self._changed()
+ append.__doc__ = list.append.__doc__
+
+ def extend(self, iterable):
+ iterable = list(iterable)
+ self.__check(iterable)
+ set_ = set(self)
+ super().extend(r for r in iterable if r not in set_)
+ self._changed()
+ extend.__doc__ = list.extend.__doc__
+
+ def insert(self, index, record):
+ raise NotImplementedError
+ insert.__doc__ = list.insert.__doc__
+
+ def pop(self, index=-1, _changed=True):
+ self.record_removed.add(self[index])
+ self[index]._group = None
+ res = super(ModelList, self).pop(index)
+ if _changed:
+ self._changed()
+ return res
+ pop.__doc__ = list.pop.__doc__
+
+ def remove(self, record, _changed=True):
+ if record.id >= 0:
+ self.record_deleted.add(record)
+ record._group = None
+ res = super(ModelList, self).remove(record)
+ if _changed:
+ self._changed()
+ return res
+ remove.__doc__ = list.remove.__doc__
+
+ def reverse(self):
+ raise NotImplementedError
+ reverse.__doc__ = list.reverse.__doc__
+
+ def sort(self):
+ raise NotImplementedError
+ sort.__doc__ = list.sort.__doc__
+
+ def new(self, **kwargs):
+ 'Adds a new record to the ModelList and returns it'
+ Relation = Model.get(self.model_name, self.parent._config)
+ config = Relation._config
+ with config.reset_context(), config.set_context(self._get_context()):
+ # Set parent for on_change calls from default_get
+ new_record = Relation(_group=self, **kwargs)
+ self.append(new_record)
+ return new_record
+
+ def find(self, condition=None, offset=0, limit=None, order=None):
+ 'Returns records matching condition taking into account list domain'
+ from .pyson import PYSONDecoder
+ decoder = PYSONDecoder(_EvalEnvironment(self.parent))
+ Relation = Model.get(self.model_name, self.parent._config)
+ if condition is None:
+ condition = []
+ field_domain = decoder.decode(self.domain)
+ add_remove_domain = (decoder.decode(self.add_remove)
+ if self.add_remove else [])
+ new_domain = [field_domain, add_remove_domain, condition]
+ context = self._get_context()
+ context.update(decoder.decode(self.search_context))
+ order = order if order else decoder.decode(self.search_order)
+ config = Relation._config
+ with config.reset_context(), config.set_context(context):
+ return Relation.find(new_domain, offset, limit, order)
+
+ def set_sequence(self, field='sequence'):
+ changed = False
+ prev = None
+ for record in self:
+ if prev:
+ index = getattr(prev, field)
+ else:
+ index = None
+ update = False
+ value = getattr(record, field)
+ if value is None:
+ if index:
+ update = True
+ elif prev and record.id >= 0:
+ update = record.id < prev.id
+ elif value == index:
+ if prev and record.id >= 0:
+ update = record.id < prev.id
+ elif value <= (index or 0):
+ update = True
+ if update:
+ if index is None:
+ index = 0
+ index += 1
+ setattr(record, field, index)
+ changed = record
+ prev = record
+ if changed:
+ self._changed()
+
+
+class Model(object):
+ 'Model class for Tryton records'
+ __slots__ = ('__id', '_values', '_changed', '_group', '__context')
+
+ __counter = -1
+ _proxy = None
+ _config = None
+ _fields = None
+
+ def __init__(self, id=None, _default=True, _group=None, **kwargs):
+ super(Model, self).__init__()
+ if id is not None:
+ assert not kwargs
+ self.__id = id if id is not None else Model.__counter
+ if self.__id < 0:
+ Model.__counter -= 1
+ self._values = {} # store the values of fields
+ self._changed = set() # store the changed fields
+ self._group = _group # store the parent group
+ self.__context = self._config.context # store the context
+ if self.id < 0 and _default:
+ self._default_get()
+
+ for field_name, value in kwargs.items():
+ definition = self._fields[field_name]
+ if definition['type'] in ('one2many', 'many2many'):
+ relation = Model.get(definition['relation'], self._config)
+
+ def instantiate(v):
+ if isinstance(v, int):
+ return relation(v)
+ elif isinstance(v, dict):
+ return relation(_default=_default, **v)
+ else:
+ return v
+ value = [instantiate(x) for x in value]
+ getattr(self, field_name).extend(value)
+ else:
+ if definition['type'] == 'many2one':
+ if isinstance(value, int):
+ relation = Model.get(
+ definition['relation'], self._config)
+ value = relation(value)
+ setattr(self, field_name, value)
+ __init__.__doc__ = object.__init__.__doc__
+
+ @property
+ def _parent(self):
+ if self._group is not None:
+ return self._group.parent
+
+ @property
+ def _parent_field_name(self):
+ if self._group is not None:
+ return self._group.parent_field_name
+ return ''
+
+ @property
+ def _parent_name(self):
+ if self._group is not None:
+ return self._group.parent_name
+ return ''
+
+ @property
+ def _context(self):
+ if self._group:
+ context = self._group._get_context()
+ else:
+ context = self.__context
+ return context
+
+ @classmethod
+ def get(cls, name, config=None):
+ 'Get a class for the named Model'
+ if (bytes == str) and isinstance(name, str):
+ name = name.encode('utf-8')
+
+ class Spam(Model, metaclass=MetaModelFactory(name, config=config)()):
+ __slots__ = ()
+ return Spam
+
+ @classmethod
+ def reset(cls, config=None, *names):
+ 'Reset class definition for Models named'
+ config = config or proteus.config.get_config()
+ models_key = 'c%su%s' % (id(config), config.user)
+ if not names:
+ setattr(_MODELS, models_key, {})
+ else:
+ models = getattr(_MODELS, models_key, {})
+ for name in names:
+ del models[name]
+
+ def __str__(self):
+ return '%s,%d' % (self.__class__.__name__, self.id)
+
+ def __repr__(self):
+ if self._config == proteus.config.get_config():
+ return "proteus.Model.get('%s')(%d)" % (self.__class__.__name__,
+ self.id)
+ return "proteus.Model.get('%s', %s)(%d)" % (self.__class__.__name__,
+ repr(self._config), self.id)
+
+ def __eq__(self, other):
+ if isinstance(other, Model):
+ return ((self.__class__.__name__, self.id)
+ == (other.__class__.__name__, other.id))
+ return NotImplemented
+
+ def __ne__(self, other):
+ return not self == other
+
+ def __hash__(self):
+ return hash(self.__class__.__name__) ^ hash(self.id)
+
+ def __int__(self):
+ return self.id
+
+ @property
+ def id(self):
+ 'The unique ID'
+ return self.__id
+
+ @id.setter
+ def id(self, value):
+ assert self.__id < 0
+ self.__id = int(value)
+
+ @classmethod
+ def find(cls, condition=None, offset=0, limit=None, order=None):
+ 'Return records matching condition'
+ if condition is None:
+ condition = []
+ ids = cls._proxy.search(condition, offset, limit, order,
+ cls._config.context)
+ return [cls(id) for id in ids]
+
+ @dualmethod
+ def reload(cls, records):
+ 'Reload record'
+ for record in records:
+ record._values = {}
+ record._changed = set()
+
+ @dualmethod
+ def save(cls, records):
+ 'Save records'
+ if not records:
+ return
+ proxy = records[0]._proxy
+ config = records[0]._config
+ context = records[0]._context.copy()
+ create, write = [], []
+ for record in records:
+ assert proxy == record._proxy
+ assert config == record._config
+ assert context == record._context
+ if record.id < 0:
+ create.append(record)
+ elif record._changed:
+ write.append(record)
+
+ if create:
+ values = [r._get_values() for r in create]
+ ids = proxy.create(values, context)
+ for record, id_ in zip(create, ids):
+ record.id = id_
+ if write:
+ values = []
+ context['_timestamp'] = {}
+ for record in write:
+ values.append([record.id])
+ values.append(record._get_values(fields=record._changed))
+ context['_timestamp'].update(record._get_timestamp())
+ values.append(context)
+ proxy.write(*values)
+ for record in records:
+ record.reload()
+
+ @dualmethod
+ def delete(cls, records):
+ 'Delete records'
+ if not records:
+ return
+ proxy = records[0]._proxy
+ config = records[0]._config
+ context = records[0]._context.copy()
+ timestamp = {}
+ delete = []
+ for record in records:
+ assert proxy == record._proxy
+ assert config == record._config
+ assert context == record._context
+ if record.id >= 0:
+ timestamp.update(record._get_timestamp())
+ delete.append(record.id)
+ context['_timestamp'] = timestamp
+ if delete:
+ proxy.delete(delete, context)
+ cls.reload(records)
+
+ @dualmethod
+ def duplicate(cls, records, default=None):
+ 'Duplicate the record'
+ ids = cls._proxy.copy([r.id for r in records], default,
+ cls._config.context)
+ return [cls(id) for id in ids]
+
+ @dualmethod
+ def click(cls, records, button, change=None):
+ 'Click on button'
+ if not records:
+ return
+
+ proxy = records[0]._proxy
+ config = records[0]._config
+ context = records[0]._context.copy()
+ for record in records:
+ assert proxy == record._proxy
+ assert config == record._config
+ assert context == record._context
+
+ if change is None:
+ cls.save(records)
+ cls.reload(records) # Force reload because save doesn't always
+ return getattr(proxy, button)([r.id for r in records], context)
+ else:
+ record, = records
+ values = record._on_change_args(change)
+ changes = getattr(proxy, button)(values, context)
+ record._set_on_change(changes)
+
+ def _get_values(self, fields=None):
+ 'Return dictionary values'
+ if fields is None:
+ fields = self._values.keys()
+ values = {}
+ for name in fields:
+ if name in ['id', '_timestamp']:
+ continue
+ definition = self._fields[name]
+ if definition.get('readonly') and definition['type'] != 'one2many':
+ continue
+ values[name] = getattr(self, '__%s_value' % name)
+ # Sending an empty X2Many fields breaks ModelFieldAccess.check
+ if (definition['type'] in {'one2many', 'many2many'}
+ and not values[name]):
+ del values[name]
+ return values
+
+ @property
+ def _timestamp(self):
+ 'Get _timestamp'
+ return self._values.get('_timestamp')
+
+ def _get_timestamp(self):
+ 'Return dictionary with timestamps'
+ result = {'%s,%s' % (self.__class__.__name__, self.id):
+ self._timestamp}
+ for field, definition in self._fields.items():
+ if field not in self._values:
+ continue
+ if definition['type'] in ('one2many', 'many2many'):
+ for record in getattr(self, field):
+ result.update(record._get_timestamp())
+ return result
+
+ def _read(self, name):
+ 'Read field'
+ fields = [name]
+ if name in self._values:
+ return
+ loading = self._fields[name]['loading']
+ if loading == 'eager':
+ fields = [x for x, y in self._fields.items()
+ if y['loading'] == 'eager']
+ fields.append('_timestamp')
+ self._values.update(
+ self._proxy.read([self.id], fields, self._context)[0])
+
+ def _default_get(self):
+ 'Set default values'
+ fields = list(self._fields.keys())
+ self._default_set(
+ self._proxy.default_get(fields, False, self._context))
+
+ def _default_set(self, values):
+ fieldnames = []
+ for field, value in values.items():
+ if '.' in field:
+ continue
+ definition = self._fields[field]
+ if definition['type'] in ('one2many', 'many2many'):
+ if value and len(value) and isinstance(value[0], int):
+ self._values[field] = value
+ else:
+ Relation = Model.get(definition['relation'], self._config)
+ self._values[field] = records = ModelList(
+ definition, [], self, field)
+ for vals in (value or []):
+ record = Relation()
+ record._default_set(vals)
+ records.append(record)
+ else:
+ self._values[field] = value
+ fieldnames.append(field)
+ self._on_change(sorted(fieldnames))
+
+ def _get_eval(self):
+ values = dict((x, getattr(self, '__%s_eval' % x))
+ for x in self._fields if x != 'id')
+ values['id'] = self.id
+ return values
+
+ def _get_on_change_values(self, skip=None, fields=None):
+ values = {'id': self.id}
+ if fields:
+ definitions = ((f, self._fields[f]) for f in fields)
+ else:
+ definitions = self._fields.items()
+ for field, definition in definitions:
+ if field == 'id':
+ continue
+ if not fields:
+ if skip and field in skip:
+ continue
+ if (self.id >= 0
+ and (field not in self._values
+ or field not in self._changed)):
+ continue
+ if definition['type'] == 'one2many':
+ values[field] = [x._get_on_change_values(
+ skip={definition.get('relation_field', '')})
+ for x in getattr(self, field)]
+ elif (definition['type'] in ('many2one', 'reference')
+ and self._parent_name == definition['name']
+ and self._parent):
+ values[field] = self._parent._get_on_change_values(
+ skip={self._parent_field_name})
+ if definition['type'] == 'reference':
+ values[field] = (
+ self._parent.__class__.__name__, values[field])
+ else:
+ values[field] = getattr(self, '__%s_eval' % field)
+ return values
+
+ def _on_change_args(self, args):
+ # Ensure arguments has been read
+ for arg in args:
+ record = self
+ for i in arg.split('.'):
+ if i in record._fields:
+ getattr(record, i)
+ elif i == '_parent_' + record._parent_name:
+ getattr(record, record._parent_name)
+ record = record._parent
+
+ res = {}
+ values = _EvalEnvironment(self, 'on_change')
+ for arg in args:
+ scope = values
+ for i in arg.split('.'):
+ if i not in scope:
+ break
+ scope = scope[i]
+ else:
+ res[arg] = scope
+ return res
+
+ def _on_change_set(self, field, value):
+ if (self._fields[field]['type'] in ('one2many', 'many2many')
+ and not isinstance(value, (list, tuple))):
+ if value and value.get('delete'):
+ for record_id in value['delete']:
+ for record in getattr(self, field):
+ if record.id == record_id:
+ getattr(self, field).remove(record, _changed=False)
+ if value and value.get('remove'):
+ for record_id in value['remove']:
+ for i, record in enumerate(getattr(self, field)):
+ if record.id == record_id:
+ getattr(self, field).pop(i, _changed=False)
+ if value and (value.get('add') or value.get('update')):
+ for index, vals in value.get('add', []):
+ group = getattr(self, field)
+ Relation = Model.get(
+ self._fields[field]['relation'], self._config)
+ config = Relation._config
+ id_ = vals.pop('id', None)
+ with config.reset_context(), \
+ config.set_context(self._context):
+ record = Relation(id=id_, _group=group, _default=False)
+ try:
+ idx = group.index(record)
+ except ValueError:
+ # append without signal
+ if index == -1:
+ list.append(group, record)
+ else:
+ list.insert(group, index, record)
+ else:
+ record = group[idx]
+ group.record_removed.discard(record)
+ group.record_deleted.discard(record)
+ record._set_on_change(vals)
+ for vals in value.get('update', []):
+ if 'id' not in vals:
+ continue
+ for record in getattr(self, field):
+ if record.id == vals['id']:
+ record._set_on_change(vals)
+ elif (self._fields[field]['type'] in ('one2many', 'many2many')
+ and len(value) and not isinstance(value[0], int)):
+ self._values[field] = []
+ for vals in value:
+ Relation = Model.get(
+ self._fields[field]['relation'], self._config)
+ config = Relation._config
+ records = getattr(self, field)
+ with config.reset_context(), \
+ config.set_context(records._get_context()):
+ record = Relation(_default=False, **vals)
+ records.append(record)
+ else:
+ self._values[field] = value
+ self._changed.add(field)
+
+ def _set_on_change(self, values):
+ later = {}
+ for field, value in values.items():
+ if field not in self._fields:
+ continue
+ if self._fields[field]['type'] in ('one2many', 'many2many'):
+ later[field] = value
+ continue
+ self._on_change_set(field, value)
+ for field, value in later.items():
+ self._on_change_set(field, value)
+
+ def _on_change(self, names):
+ 'Call on_change for field'
+ # Import locally to not break installation
+ from proteus.pyson import PYSONDecoder
+
+ values = {}
+ for name in names:
+ definition = self._fields[name]
+ on_change = definition.get('on_change')
+ if not on_change:
+ continue
+ if isinstance(on_change, str):
+ definition['on_change'] = on_change = PYSONDecoder().decode(
+ on_change)
+ values.update(self._on_change_args(on_change))
+ if values:
+ context = self._context
+ changes = getattr(self._proxy, 'on_change')(values, names, context)
+ for change in changes:
+ self._set_on_change(change)
+
+ values = {}
+ fieldnames = set(names)
+ to_change = set()
+ later = set()
+ for field, definition in self._fields.items():
+ on_change_with = definition.get('on_change_with')
+ if not on_change_with:
+ continue
+ if not fieldnames & set(on_change_with):
+ continue
+ if to_change & set(on_change_with):
+ later.add(field)
+ continue
+ to_change.add(field)
+ values.update(self._on_change_args(on_change_with))
+ if to_change:
+ context = self._context
+ changes = getattr(self._proxy, 'on_change_with')(values,
+ list(to_change), context)
+ self._set_on_change(changes)
+ for field in later:
+ on_change_with = self._fields[field]['on_change_with']
+ values = self._on_change_args(on_change_with)
+ context = self._context
+ result = getattr(self._proxy, 'on_change_with_%s' % field)(values,
+ context)
+ self._on_change_set(field, result)
+
+ if self._parent:
+ self._parent._changed.add(self._parent_field_name)
+ self._parent._on_change([self._parent_field_name])
+
+ def notifications(self):
+ values = self._get_on_change_values()
+ return getattr(self._proxy, 'on_change_notify')(values, self._context)
+
+
+class Wizard(object):
+ 'Wizard class for Tryton wizards'
+ __slots__ = ('name', 'form', 'form_state', 'actions', '_config',
+ '_context', '_proxy', 'session_id', 'start_state', 'end_state',
+ 'states', 'state', 'models', 'action')
+
+ def __init__(self, name, models=None, action=None, config=None,
+ context=None):
+ if models:
+ assert len(set(type(x) for x in models)) == 1
+ super(Wizard, self).__init__()
+ self.name = name
+ self.form = None
+ self.form_state = None
+ self.actions = []
+ self._config = config or proteus.config.get_config()
+ self._context = self._config.context
+ if context:
+ self._context.update(context)
+ self._proxy = self._config.get_proxy(name, type='wizard')
+ result = self._proxy.create(self._context)
+ self.session_id, self.start_state, self.end_state = result
+ self.states = [self.start_state]
+ self.models = models
+ self.action = action
+ self.execute(self.start_state)
+
+ def execute(self, state):
+ assert state in self.states
+
+ self.state = state
+ while self.state != self.end_state:
+ ctx = self._context.copy()
+ if self.models:
+ ctx['active_id'] = self.models[0].id
+ ctx['active_ids'] = [model.id for model in self.models]
+ ctx['active_model'] = self.models[0].__class__.__name__
+ else:
+ ctx['active_id'] = None
+ ctx['active_ids'] = None
+ ctx['active_model'] = None
+ if self.action:
+ ctx['action_id'] = self.action['id']
+ else:
+ ctx['action_id'] = None
+
+ if self.form:
+ data = {self.form_state: self.form._get_on_change_values()}
+ else:
+ data = {}
+
+ result = self._proxy.execute(self.session_id, data, self.state,
+ ctx)
+
+ if 'view' in result:
+ view = result['view']
+ self.form = Model.get(
+ view['fields_view']['model'], self._config)()
+ if 'defaults' in view:
+ self.form._default_set(view['defaults'])
+ if 'values' in view:
+ self.form._values.update(view['values'])
+ self.states = [b['state'] for b in view['buttons']]
+ self.form_state = view['state']
+ else:
+ self.state = self.end_state
+
+ self.actions = []
+ for action in result.get('actions', []):
+ proteus_action = _convert_action(*action,
+ context=self._context)
+ if proteus_action is not None:
+ self.actions.append(proteus_action)
+
+ if 'view' in result:
+ return
+
+ if self.state == self.end_state:
+ self._proxy.delete(self.session_id, self._context)
+ if self.models:
+ for record in self.models:
+ record.reload()
+
+
+class Report(object):
+ 'Report class for Tryton reports'
+ __slots__ = ('name', '_config', '_context', '_proxy')
+
+ def __init__(self, name, config=None, context=None):
+ super(Report, self).__init__()
+ self.name = name
+ self._config = config or proteus.config.get_config()
+ self._context = self._config.context
+ if context:
+ self._context.update(context)
+ self._proxy = self._config.get_proxy(name, type='report')
+
+ def execute(self, models=None, data=None):
+ if models:
+ ids = [m.id for m in models]
+ elif data:
+ ids = data.get('ids', [])
+ else:
+ ids = []
+ if data is None:
+ data = {
+ 'id': ids[0] if ids else None,
+ 'ids': ids,
+ }
+ if models:
+ data['model'] = models[0].__class__.__name__
+ return self._proxy.execute(ids, data, self._context)
+
+
+def _convert_action(action, data=None, context=None, config=None):
+ if config is None:
+ config = proteus.config.get_config()
+ if data is None:
+ data = {}
+ else:
+ data = data.copy()
+
+ if 'type' not in (action or {}):
+ return None
+
+ data['action_id'] = action['id']
+ if action['type'] == 'ir.action.act_window':
+ from .pyson import PYSONDecoder
+
+ action.setdefault('pyson_domain', '[]')
+ ctx = {
+ 'active_model': data.get('model'),
+ 'active_id': data.get('id'),
+ 'active_ids': data.get('ids', []),
+ }
+ ctx.update(config.context)
+ ctx['_user'] = config.user
+ decoder = PYSONDecoder(ctx)
+ action_ctx = decoder.decode(action.get('pyson_context') or '{}')
+ ctx.update(action_ctx)
+ ctx.update(context)
+ action_ctx.update(context)
+ if 'date_format' not in action_ctx:
+ action_ctx['date_format'] = config.context.get(
+ 'locale', {}).get('date', '%x')
+
+ ctx['context'] = ctx
+ decoder = PYSONDecoder(ctx)
+ domain = decoder.decode(action['pyson_domain'])
+
+ res_model = action.get('res_model', data.get('res_model'))
+ res_id = action.get('res_id', data.get('res_id'))
+ Model_ = Model.get(res_model, config)
+ config = Model_._config
+ with config.reset_context(), config.set_context(action_ctx):
+ if res_id is None:
+ return Model_.find(domain)
+ elif isinstance(res_id, int):
+ return [Model_(res_id)]
+ else:
+ return [Model_(id_) for id_ in res_id]
+ elif action['type'] == 'ir.action.wizard':
+ kwargs = {
+ 'action': action,
+ 'config': config,
+ 'context': context,
+ }
+ if 'model' in data:
+ Model_ = Model.get(data['model'], config)
+ config = Model_._config
+ with config.reset_context(), config.set_context(context):
+ kwargs['models'] = [Model_(id_) for id_ in data.get('ids', [])]
+ return Wizard(action['wiz_name'], **kwargs)
+ elif action['type'] == 'ir.action.report':
+ ActionReport = Report(action['report_name'], context=context)
+ return ActionReport.execute(data=data)
+ elif action['type'] == 'ir.action.url':
+ return action.get('url')
diff --git a/proteus/proteus/config.py b/proteus/proteus/config.py
new file mode 100644
index 0000000000..9b4f82a738
--- /dev/null
+++ b/proteus/proteus/config.py
@@ -0,0 +1,404 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+"""
+Configuration functions for the proteus package for Tryton.
+"""
+
+import base64
+import datetime
+import os
+import threading
+import urllib.parse
+import xmlrpc.client
+from contextlib import contextmanager
+from decimal import Decimal
+
+import defusedxml.xmlrpc
+
+__all__ = ['set_trytond', 'set_xmlrpc', 'get_config']
+
+defusedxml.xmlrpc.monkey_patch()
+
+
+def dump_decimal(self, value, write):
+ write('')
+ write(str(Decimal(value)))
+ write('')
+
+
+def dump_date(self, value, write):
+ value = {'__class__': 'date',
+ 'year': value.year,
+ 'month': value.month,
+ 'day': value.day,
+ }
+ self.dump_struct(value, write)
+
+
+def dump_time(self, value, write):
+ value = {'__class__': 'time',
+ 'hour': value.hour,
+ 'minute': value.minute,
+ 'second': value.second,
+ 'microsecond': value.microsecond,
+ }
+ self.dump_struct(value, write)
+
+
+def dump_timedelta(self, value, write):
+ value = {'__class__': 'timedelta',
+ 'seconds': value.total_seconds(),
+ }
+ self.dump_struct(value, write)
+
+
+def dump_long(self, value, write):
+ try:
+ self.dump_long(value, write)
+ except OverflowError:
+ write('')
+ write(str(int(value)))
+ write('\n')
+
+
+xmlrpc.client.Marshaller.dispatch[Decimal] = dump_decimal
+xmlrpc.client.Marshaller.dispatch[datetime.date] = dump_date
+xmlrpc.client.Marshaller.dispatch[datetime.time] = dump_time
+xmlrpc.client.Marshaller.dispatch[datetime.timedelta] = dump_timedelta
+xmlrpc.client.Marshaller.dispatch[int] = dump_long
+
+
+def dump_struct(self, value, write, escape=xmlrpc.client.escape):
+ converted_value = {}
+ for k, v in value.items():
+ if isinstance(k, int):
+ k = str(k)
+ elif isinstance(k, float):
+ k = repr(k)
+ converted_value[k] = v
+ return self.dump_struct(converted_value, write, escape=escape)
+
+
+xmlrpc.client.Marshaller.dispatch[dict] = dump_struct
+
+
+class XMLRPCDecoder(object):
+
+ decoders = {}
+
+ @classmethod
+ def register(cls, klass, decoder):
+ assert klass not in cls.decoders
+ cls.decoders[klass] = decoder
+
+ def __call__(self, dct):
+ if dct.get('__class__') in self.decoders:
+ return self.decoders[dct['__class__']](dct)
+ return dct
+
+
+XMLRPCDecoder.register('date',
+ lambda dct: datetime.date(dct['year'], dct['month'], dct['day']))
+XMLRPCDecoder.register('time',
+ lambda dct: datetime.time(dct['hour'], dct['minute'], dct['second'],
+ dct['microsecond']))
+XMLRPCDecoder.register('timedelta',
+ lambda dct: datetime.timedelta(seconds=dct['seconds']))
+XMLRPCDecoder.register('Decimal', lambda dct: Decimal(dct['decimal']))
+
+
+def end_struct(self, data):
+ mark = self._marks.pop()
+ # map structs to Python dictionaries
+ dct = {}
+ items = self._stack[mark:]
+ for i in range(0, len(items), 2):
+ dct[items[i]] = items[i + 1]
+ dct = XMLRPCDecoder()(dct)
+ self._stack[mark:] = [dct]
+ self._value = 0
+
+
+xmlrpc.client.Unmarshaller.dispatch['struct'] = end_struct
+
+_CONFIG = threading.local()
+_CONFIG.current = None
+
+
+class ContextManager(object):
+ 'Context Manager for the tryton context'
+
+ def __init__(self, config):
+ self.config = config
+ self.context = config.context
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, exc_value, traceback):
+ self.config._context = self.context
+
+
+class Config(object):
+ 'Config interface'
+
+ def __init__(self):
+ super(Config, self).__init__()
+ self._context = {}
+
+ @property
+ def context(self):
+ return self._context.copy()
+
+ def set_context(self, context=None, **kwargs):
+ ctx_manager = ContextManager(self)
+
+ if context is None:
+ context = {}
+ self._context = self.context
+ self._context.update(context)
+ self._context.update(kwargs)
+ return ctx_manager
+
+ def reset_context(self):
+ ctx_manager = ContextManager(self)
+ self._context = {}
+ return ctx_manager
+
+ def get_proxy(self, name):
+ raise NotImplementedError
+
+ def get_proxy_methods(self, name):
+ raise NotImplementedError
+
+
+class _TrytondMethod(object):
+
+ def __init__(self, name, model, config):
+ super(_TrytondMethod, self).__init__()
+ self._name = name
+ self._object = model
+ self._config = config
+
+ def __call__(self, *args, **kwargs):
+ from trytond.rpc import RPC
+ from trytond.tools import is_instance_method
+ from trytond.transaction import Transaction
+ from trytond.worker import run_task
+
+ if self._name in self._object.__rpc__:
+ rpc = self._object.__rpc__[self._name]
+ elif self._name in getattr(self._object, '_buttons', {}):
+ rpc = RPC(readonly=False, instantiate=0)
+ else:
+ raise TypeError('%s is not callable' % self._name)
+
+ with Transaction().start(self._config.database_name,
+ self._config.user, readonly=rpc.readonly) as transaction:
+ args, kwargs, transaction.context, transaction.timestamp = \
+ rpc.convert(self._object, *args, **kwargs)
+ meth = getattr(self._object, self._name)
+ if (rpc.instantiate is None
+ or not is_instance_method(self._object, self._name)):
+ result = rpc.result(meth(*args, **kwargs))
+ else:
+ assert rpc.instantiate == 0
+ inst = args.pop(0)
+ if hasattr(inst, self._name):
+ result = rpc.result(meth(inst, *args, **kwargs))
+ else:
+ result = [rpc.result(meth(i, *args, **kwargs))
+ for i in inst]
+ transaction.commit()
+ while transaction.tasks:
+ task_id = transaction.tasks.pop()
+ run_task(self._config.database_name, task_id)
+ return result
+
+
+class TrytondProxy(object):
+ 'Proxy for function call for trytond'
+
+ def __init__(self, name, config, type='model'):
+ super(TrytondProxy, self).__init__()
+ self._config = config
+ self._object = config.pool.get(name, type=type)
+ __init__.__doc__ = object.__init__.__doc__
+
+ def __getattr__(self, name):
+ 'Return attribute value'
+ return _TrytondMethod(name, self._object, self._config)
+
+
+class TrytondConfig(Config):
+ 'Configuration for trytond'
+
+ def __init__(self, database=None, user='admin', config_file=None):
+ super(TrytondConfig, self).__init__()
+ if not database:
+ database = os.environ.get('TRYTOND_DATABASE_URI')
+ elif (os.environ.get('TRYTOND_DATABASE_URI')
+ and not urllib.parse.urlparse(database).scheme):
+ url = urllib.parse.urlparse(os.environ['TRYTOND_DATABASE_URI'])
+ os.environ['TRYTOND_DATABASE_URI'] = urllib.parse.urlunparse(
+ url._replace(path=database))
+ else:
+ os.environ['TRYTOND_DATABASE_URI'] = database
+ if not config_file:
+ config_file = os.environ.get('TRYTOND_CONFIG')
+ from trytond.config import config
+ config.update_etc(config_file)
+ from trytond.pool import Pool
+ from trytond.transaction import Transaction
+ self.database = database
+ database_name = None
+ if database:
+ uri = urllib.parse.urlparse(database)
+ database_name = uri.path.strip('/')
+ if not database_name:
+ database_name = os.environ['DB_NAME']
+ self.database_name = database_name
+ self._user = user
+ self.config_file = config_file
+
+ Pool.start()
+ self.pool = Pool(database_name)
+ self.pool.init()
+
+ with Transaction().start(self.database_name, 0) as transaction:
+ User = self.pool.get('res.user')
+ transaction.context = self.context
+ with transaction.set_context(active_test=False):
+ self.user = User.search([
+ ('login', '=', user),
+ ], limit=1)[0].id
+ with transaction.set_user(self.user):
+ self._context = User.get_preferences(context_only=True)
+ __init__.__doc__ = object.__init__.__doc__
+
+ def __repr__(self):
+ return ("proteus.config.TrytondConfig"
+ "(%s, %s, config_file=%s)"
+ % (repr(self.database), repr(self._user), repr(self.config_file)))
+ __repr__.__doc__ = object.__repr__.__doc__
+
+ def __eq__(self, other):
+ if not isinstance(other, TrytondConfig):
+ raise NotImplementedError
+ return (self.database_name == other.database_name
+ and self._user == other._user
+ and self.database == other.database
+ and self.config_file == other.config_file)
+
+ def __hash__(self):
+ return hash((self.database_name, self._user,
+ self.database, self.config_file))
+
+ def get_proxy(self, name, type='model'):
+ 'Return Proxy class'
+ return TrytondProxy(name, self, type=type)
+
+ def get_proxy_methods(self, name, type='model'):
+ 'Return list of methods'
+ proxy = self.get_proxy(name, type=type)
+ methods = [x for x in proxy._object.__rpc__]
+ if hasattr(proxy._object, '_buttons'):
+ methods += [x for x in proxy._object._buttons]
+ return methods
+
+
+def set_trytond(database=None, user='admin',
+ config_file=None):
+ 'Set trytond package as backend'
+ _CONFIG.current = TrytondConfig(database, user, config_file=config_file)
+ return _CONFIG.current
+
+
+class XmlrpcProxy(object):
+ 'Proxy for function call for XML-RPC'
+
+ def __init__(self, name, config, type='model'):
+ super(XmlrpcProxy, self).__init__()
+ self._config = config
+ self._object = getattr(config.server, '%s.%s' % (type, name))
+ __init__.__doc__ = object.__init__.__doc__
+
+ def __getattr__(self, name):
+ 'Return attribute value'
+ return getattr(self._object, name)
+
+
+class XmlrpcConfig(Config):
+ 'Configuration for XML-RPC'
+
+ def __init__(self, url, **kwargs):
+ super(XmlrpcConfig, self).__init__()
+ self.url = url
+ self.server = xmlrpc.client.ServerProxy(
+ url, allow_none=True, use_builtin_types=True, **kwargs)
+ # TODO add user
+ self.user = None
+ self._context = self.server.model.res.user.get_preferences(True, {})
+ __init__.__doc__ = object.__init__.__doc__
+
+ def __repr__(self):
+ return "proteus.config.XmlrpcConfig(%s)" % repr(self.url)
+ __repr__.__doc__ = object.__repr__.__doc__
+
+ def __eq__(self, other):
+ if not isinstance(other, XmlrpcConfig):
+ raise NotImplementedError
+ return self.url == other.url
+
+ def __hash__(self):
+ return hash(self.url)
+
+ def get_proxy(self, name, type='model'):
+ 'Return Proxy class'
+ return XmlrpcProxy(name, self, type=type)
+
+ def get_proxy_methods(self, name, type='model'):
+ 'Return list of methods'
+ object_ = '%s.%s' % (type, name)
+ return [x[len(object_) + 1:]
+ for x in self.server.system.listMethods()
+ if x.startswith(object_)
+ and '.' not in x[len(object_) + 1:]]
+
+
+def set_xmlrpc(url, **kwargs):
+ '''
+ Set XML-RPC as backend.
+ It pass the keyword arguments received to xmlrpclib.ServerProxy()
+ '''
+ _CONFIG.current = XmlrpcConfig(url, **kwargs)
+ return _CONFIG.current
+
+
+@contextmanager
+def set_xmlrpc_session(
+ url, username, password=None, parameters=None, **kwargs):
+ """
+ Set XML-RPC as backend using session.
+ """
+ if parameters is None:
+ parameters = {}
+ else:
+ parameters = parameters.copy()
+ if password:
+ parameters['password'] = password
+ server = xmlrpc.client.ServerProxy(
+ url, allow_none=True, use_builtin_types=True, **kwargs)
+ session = server.common.db.login(username, parameters)
+ session = ':'.join(map(str, [username] + session))
+ auth = base64.encodebytes(session.encode('utf-8')).decode('ascii')
+ auth = ''.join(auth.split()) # get rid of whitespace
+ kwargs.setdefault('headers', []).append(
+ ('Authorization', 'Session ' + auth))
+ config = set_xmlrpc(url, **kwargs)
+ yield config
+ config.server.common.db.logout()
+
+
+def get_config():
+ return _CONFIG.current
diff --git a/proteus/proteus/pyson.py b/proteus/proteus/pyson.py
new file mode 100644
index 0000000000..496f151bc6
--- /dev/null
+++ b/proteus/proteus/pyson.py
@@ -0,0 +1,764 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import datetime
+import json
+from decimal import Decimal
+from functools import reduce
+
+from dateutil.relativedelta import relativedelta
+
+
+class PYSON(object):
+
+ def pyson(self):
+ raise NotImplementedError
+
+ def types(self):
+ raise NotImplementedError
+
+ @staticmethod
+ def eval(dct, context):
+ raise NotImplementedError
+
+ def __invert__(self):
+ if self.types() != {bool}:
+ return Not(Bool(self))
+ else:
+ return Not(self)
+
+ def __and__(self, other):
+ if (isinstance(other, PYSON)
+ and other.types() != {bool}):
+ other = Bool(other)
+ if (isinstance(self, And)
+ and not isinstance(self, Or)):
+ return And(*self._statements, other)
+ if self.types() != {bool}:
+ return And(Bool(self), other)
+ else:
+ return And(self, other)
+
+ __rand__ = __and__
+
+ def __or__(self, other):
+ if (isinstance(other, PYSON)
+ and other.types() != {bool}):
+ other = Bool(other)
+ if isinstance(self, Or):
+ return Or(*self._statements, other)
+ if self.types() != {bool}:
+ return Or(Bool(self), other)
+ else:
+ return Or(self, other)
+
+ __ror__ = __or__
+
+ def __eq__(self, other):
+ return Equal(self, other)
+
+ def __ne__(self, other):
+ return Not(Equal(self, other))
+
+ def __gt__(self, other):
+ return Greater(self, other)
+
+ def __ge__(self, other):
+ return Greater(self, other, True)
+
+ def __lt__(self, other):
+ return Less(self, other)
+
+ def __le__(self, other):
+ return Less(self, other, True)
+
+ def get(self, k, d=''):
+ return Get(self, k, d)
+
+ def in_(self, obj):
+ return In(self, obj)
+
+ def contains(self, k):
+ return In(k, self)
+
+ def __repr__(self):
+ klass = self.__class__.__name__
+ return '%s(%s)' % (klass, ', '.join(map(repr, self.__repr_params__)))
+
+ @property
+ def __repr_params__(self):
+ return NotImplementedError
+
+
+class PYSONEncoder(json.JSONEncoder):
+
+ def default(self, obj):
+ if isinstance(obj, PYSON):
+ return obj.pyson()
+ elif isinstance(obj, datetime.date):
+ if isinstance(obj, datetime.datetime):
+ return DateTime(obj.year, obj.month, obj.day,
+ obj.hour, obj.minute, obj.second, obj.microsecond
+ ).pyson()
+ else:
+ return Date(obj.year, obj.month, obj.day).pyson()
+ elif isinstance(obj, Decimal):
+ return float(obj)
+ return super(PYSONEncoder, self).default(obj)
+
+
+class PYSONDecoder(json.JSONDecoder):
+
+ def __init__(self, context=None, noeval=False):
+ self.__context = context or {}
+ self.noeval = noeval
+ super(PYSONDecoder, self).__init__(object_hook=self._object_hook)
+
+ def _object_hook(self, dct):
+ if '__class__' in dct:
+ klass = CONTEXT.get(dct['__class__'])
+ if klass:
+ if not self.noeval:
+ return klass.eval(dct, self.__context)
+ else:
+ dct = dct.copy()
+ del dct['__class__']
+ return klass(**dct)
+ return dct
+
+
+class Eval(PYSON):
+
+ def __init__(self, v, d=''):
+ super(Eval, self).__init__()
+ self._value = v
+ self._default = d
+
+ @property
+ def __repr_params__(self):
+ return self._value, self._default
+
+ def pyson(self):
+ return {
+ '__class__': 'Eval',
+ 'v': self._value,
+ 'd': self._default,
+ }
+
+ def types(self):
+ if isinstance(self._default, PYSON):
+ return self._default.types()
+ else:
+ return {type(self._default)}
+
+ @staticmethod
+ def eval(dct, context):
+ if '.' in dct['v'] and dct['v'] not in context:
+ base, name = dct['v'].split('.', 1)
+ return Eval.eval({
+ 'v': name,
+ 'd': dct['d'],
+ }, context.get(base) or {})
+ return context.get(dct['v'], dct['d'])
+
+ @property
+ def basename(self):
+ name = self._value
+ if name.startswith('_parent_'):
+ name = name[len('_parent_'):]
+ if '.' in name:
+ name = name.split('.', 1)[0]
+ return name
+
+
+class Not(PYSON):
+
+ def __init__(self, v):
+ super(Not, self).__init__()
+ if isinstance(v, PYSON):
+ if v.types() != {bool}:
+ v = Bool(v)
+ elif not isinstance(v, bool):
+ v = bool(v)
+ self._value = v
+
+ @property
+ def __repr_params__(self):
+ return (self._value,)
+
+ def pyson(self):
+ return {
+ '__class__': 'Not',
+ 'v': self._value,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def eval(dct, context):
+ return not dct['v']
+
+
+class Bool(PYSON):
+
+ def __init__(self, v):
+ super(Bool, self).__init__()
+ self._value = v
+
+ @property
+ def __repr_params__(self):
+ return (self._value,)
+
+ def pyson(self):
+ return {
+ '__class__': 'Bool',
+ 'v': self._value,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def eval(dct, context):
+ return bool(dct['v'])
+
+
+class And(PYSON):
+
+ def __init__(self, *statements, **kwargs):
+ super(And, self).__init__()
+ statements = list(statements) + kwargs.get('s', [])
+ for i, statement in enumerate(list(statements)):
+ if isinstance(statement, PYSON):
+ if statement.types() != {bool}:
+ statements[i] = Bool(statement)
+ elif not isinstance(statement, bool):
+ statements[i] = bool(statement)
+ assert len(statements) >= 2, 'must have at least 2 statements'
+ self._statements = statements
+
+ @property
+ def __repr_params__(self):
+ return tuple(self._statements)
+
+ def pyson(self):
+ return {
+ '__class__': 'And',
+ 's': self._statements,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def eval(dct, context):
+ return bool(reduce(lambda x, y: x and y, dct['s']))
+
+
+class Or(And):
+
+ def pyson(self):
+ res = super(Or, self).pyson()
+ res['__class__'] = 'Or'
+ return res
+
+ @staticmethod
+ def eval(dct, context):
+ return bool(reduce(lambda x, y: x or y, dct['s']))
+
+
+class Equal(PYSON):
+
+ def __init__(self, s1, s2):
+ statement1, statement2 = s1, s2
+ super(Equal, self).__init__()
+ if isinstance(statement1, PYSON):
+ types1 = statement1.types()
+ else:
+ types1 = {type(s1)}
+ if isinstance(statement2, PYSON):
+ types2 = statement2.types()
+ else:
+ types2 = {type(s2)}
+ assert types1 == types2, 'statements must have the same type'
+ self._statement1 = statement1
+ self._statement2 = statement2
+
+ @property
+ def __repr_params__(self):
+ return (self._statement1, self._statement2)
+
+ def pyson(self):
+ return {
+ '__class__': 'Equal',
+ 's1': self._statement1,
+ 's2': self._statement2,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def eval(dct, context):
+ return dct['s1'] == dct['s2']
+
+
+class Greater(PYSON):
+
+ def __init__(self, s1, s2, e=False):
+ statement1, statement2, equal = s1, s2, e
+ super(Greater, self).__init__()
+ for i in (statement1, statement2):
+ if isinstance(i, PYSON):
+ assert i.types().issubset({
+ int, float, type(None),
+ datetime.datetime, datetime.date}), \
+ 'statement must be an integer, float, date or datetime'
+ else:
+ assert isinstance(i, (
+ int, float, type(None),
+ datetime.datetime, datetime.date)), \
+ 'statement must be an integer, float, date or datetime'
+ if isinstance(equal, PYSON):
+ if equal.types() != {bool}:
+ equal = Bool(equal)
+ elif not isinstance(equal, bool):
+ equal = bool(equal)
+ self._statement1 = statement1
+ self._statement2 = statement2
+ self._equal = equal
+
+ @property
+ def __repr_params__(self):
+ return (self._statement1, self._statement2, self._equal)
+
+ def pyson(self):
+ return {
+ '__class__': 'Greater',
+ 's1': self._statement1,
+ 's2': self._statement2,
+ 'e': self._equal,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def _convert(dct):
+ for i in ('s1', 's2'):
+ if dct[i] is None:
+ dct[i] = 0.0
+ if not isinstance(dct[i], (int, float)):
+ dct = dct.copy()
+ stmt = dct[i]
+ if isinstance(stmt, datetime.datetime):
+ stmt = stmt.timestamp()
+ elif isinstance(stmt, datetime.date):
+ time = datetime.time(0, 0)
+ stmt = datetime.datetime.combine(stmt, time).timestamp()
+ dct[i] = float(stmt)
+ return dct
+
+ @staticmethod
+ def eval(dct, context):
+ if dct['s1'] is None or dct['s2'] is None:
+ return False
+ dct = Greater._convert(dct)
+ if dct['e']:
+ return dct['s1'] >= dct['s2']
+ else:
+ return dct['s1'] > dct['s2']
+
+
+class Less(Greater):
+
+ def pyson(self):
+ res = super(Less, self).pyson()
+ res['__class__'] = 'Less'
+ return res
+
+ @staticmethod
+ def eval(dct, context):
+ if dct['s1'] is None or dct['s2'] is None:
+ return False
+ dct = Less._convert(dct)
+ if dct['e']:
+ return dct['s1'] <= dct['s2']
+ else:
+ return dct['s1'] < dct['s2']
+
+
+class If(PYSON):
+
+ def __init__(self, c, t, e=None):
+ condition, then_statement, else_statement = c, t, e
+ super(If, self).__init__()
+ if isinstance(condition, PYSON):
+ if condition.types() != {bool}:
+ condition = Bool(condition)
+ elif not isinstance(condition, bool):
+ condition = bool(condition)
+ self._condition = condition
+ self._then_statement = then_statement
+ self._else_statement = else_statement
+
+ @property
+ def __repr_params__(self):
+ return (self._condition, self._then_statement, self._else_statement)
+
+ def pyson(self):
+ return {
+ '__class__': 'If',
+ 'c': self._condition,
+ 't': self._then_statement,
+ 'e': self._else_statement,
+ }
+
+ def types(self):
+ if isinstance(self._then_statement, PYSON):
+ types = self._then_statement.types()
+ else:
+ types = {type(self._then_statement)}
+ if isinstance(self._else_statement, PYSON):
+ types |= self._else_statement.types()
+ else:
+ types |= {type(self._else_statement)}
+ return types
+
+ @staticmethod
+ def eval(dct, context):
+ if dct['c']:
+ return dct['t']
+ else:
+ return dct['e']
+
+
+class Get(PYSON):
+
+ def __init__(self, v, k, d=''):
+ obj, key, default = v, k, d
+ super(Get, self).__init__()
+ if isinstance(obj, PYSON):
+ assert obj.types() == {dict}, 'obj must be a dict'
+ else:
+ assert isinstance(obj, dict), 'obj must be a dict'
+ self._obj = obj
+ if isinstance(key, PYSON):
+ assert key.types() == {str}, 'key must be a string'
+ else:
+ assert isinstance(key, str), 'key must be a string'
+ self._key = key
+ self._default = default
+
+ @property
+ def __repr_params__(self):
+ return (self._obj, self._key, self._default)
+
+ def pyson(self):
+ return {
+ '__class__': 'Get',
+ 'v': self._obj,
+ 'k': self._key,
+ 'd': self._default,
+ }
+
+ def types(self):
+ if isinstance(self._default, PYSON):
+ return self._default.types()
+ else:
+ return {type(self._default)}
+
+ @staticmethod
+ def eval(dct, context):
+ return dct['v'].get(dct['k'], dct['d'])
+
+
+class In(PYSON):
+
+ def __init__(self, k, v):
+ key, obj = k, v
+ super(In, self).__init__()
+ if isinstance(key, PYSON):
+ assert key.types().issubset({str, int}), \
+ 'key must be a string or an integer or a long'
+ else:
+ assert isinstance(key, (str, int)), \
+ 'key must be a string or an integer or a long'
+ if isinstance(obj, PYSON):
+ assert obj.types().issubset({dict, list}), \
+ 'obj must be a dict or a list'
+ if obj.types() == {dict}:
+ if isinstance(key, PYSON):
+ assert key.types() == {str}, 'key must be a string'
+ else:
+ assert isinstance(key, str), 'key must be a string'
+ else:
+ assert isinstance(obj, (dict, list))
+ if isinstance(obj, dict):
+ if isinstance(key, PYSON):
+ assert key.types() == {str}, 'key must be a string'
+ else:
+ assert isinstance(key, str), 'key must be a string'
+ self._key = key
+ self._obj = obj
+
+ @property
+ def __repr_params__(self):
+ return (self._key, self._obj)
+
+ def pyson(self):
+ return {
+ '__class__': 'In',
+ 'k': self._key,
+ 'v': self._obj,
+ }
+
+ def types(self):
+ return {bool}
+
+ @staticmethod
+ def eval(dct, context):
+ if dct['v']:
+ return dct['k'] in dct['v']
+ else:
+ return False
+
+
+class Date(PYSON):
+
+ def __init__(self, year=None, month=None, day=None,
+ delta_years=0, delta_months=0, delta_days=0, start=None, **kwargs):
+ year = kwargs.get('y', year)
+ month = kwargs.get('M', month)
+ day = kwargs.get('d', day)
+ delta_years = kwargs.get('dy', delta_years)
+ delta_months = kwargs.get('dM', delta_months)
+ delta_days = kwargs.get('dd', delta_days)
+ super(Date, self).__init__()
+ for i in (year, month, day, delta_years, delta_months, delta_days):
+ if isinstance(i, PYSON):
+ assert i.types().issubset({int, type(None)}), \
+ '%s must be an integer or None' % (i,)
+ else:
+ assert isinstance(i, (int, type(None))), \
+ '%s must be an integer or None' % (i,)
+ self._year = year
+ self._month = month
+ self._day = day
+ self._delta_years = delta_years
+ self._delta_months = delta_months
+ self._delta_days = delta_days
+ self._start = start
+
+ @property
+ def __repr_params__(self):
+ return (self._year, self._month, self._day,
+ self._delta_years, self._delta_months, self._delta_days,
+ self._start)
+
+ def pyson(self):
+ return {
+ '__class__': 'Date',
+ 'y': self._year,
+ 'M': self._month,
+ 'd': self._day,
+ 'dy': self._delta_years,
+ 'dM': self._delta_months,
+ 'dd': self._delta_days,
+ 'start': self._start,
+ }
+
+ def types(self):
+ return {datetime.date}
+
+ @staticmethod
+ def eval(dct, context):
+ today = dct.get('start')
+ if isinstance(today, datetime.datetime):
+ today = today.date()
+ if not isinstance(today, datetime.date):
+ today = datetime.date.today()
+ return today + relativedelta(
+ year=dct['y'],
+ month=dct['M'],
+ day=dct['d'],
+ years=dct['dy'],
+ months=dct['dM'],
+ days=dct['dd'],
+ )
+
+
+class DateTime(Date):
+
+ def __init__(self, year=None, month=None, day=None,
+ hour=None, minute=None, second=None, microsecond=None,
+ delta_years=0, delta_months=0, delta_days=0,
+ delta_hours=0, delta_minutes=0, delta_seconds=0,
+ delta_microseconds=0, start=None, **kwargs):
+ hour = kwargs.get('h', hour)
+ minute = kwargs.get('m', minute)
+ second = kwargs.get('s', second)
+ microsecond = kwargs.get('ms', microsecond)
+ delta_hours = kwargs.get('dh', delta_hours)
+ delta_minutes = kwargs.get('dm', delta_minutes)
+ delta_seconds = kwargs.get('ds', delta_seconds)
+ delta_microseconds = kwargs.get('dms', delta_microseconds)
+ super(DateTime, self).__init__(year=year, month=month, day=day,
+ delta_years=delta_years, delta_months=delta_months,
+ delta_days=delta_days, start=start, **kwargs)
+ for i in (hour, minute, second, microsecond,
+ delta_hours, delta_minutes, delta_seconds, delta_microseconds):
+ if isinstance(i, PYSON):
+ assert i.types() == {int, type(None)}, \
+ '%s must be an integer or None' % (i,)
+ else:
+ assert isinstance(i, (int, type(None))), \
+ '%s must be an integer or None' % (i,)
+ self._hour = hour
+ self._minute = minute
+ self._second = second
+ self._microsecond = microsecond
+ self._delta_hours = delta_hours
+ self._delta_minutes = delta_minutes
+ self._delta_seconds = delta_seconds
+ self._delta_microseconds = delta_microseconds
+
+ @property
+ def __repr_params__(self):
+ date_params = super(DateTime, self).__repr_params__
+ return (date_params[:3]
+ + (self._hour, self._minute, self._second, self._microsecond)
+ + date_params[3:-1]
+ + (self._delta_hours, self._delta_minutes, self._delta_seconds,
+ self._delta_microseconds)
+ + date_params[-1:])
+
+ def pyson(self):
+ res = super(DateTime, self).pyson()
+ res['__class__'] = 'DateTime'
+ res['h'] = self._hour
+ res['m'] = self._minute
+ res['s'] = self._second
+ res['ms'] = self._microsecond
+ res['dh'] = self._delta_hours
+ res['dm'] = self._delta_minutes
+ res['ds'] = self._delta_seconds
+ res['dms'] = self._delta_microseconds
+ return res
+
+ def types(self):
+ return {datetime.datetime}
+
+ @staticmethod
+ def eval(dct, context):
+ now = dct.get('start')
+ if (isinstance(now, datetime.date)
+ and not isinstance(now, datetime.datetime)):
+ now = datetime.datetime.combine(now, datetime.time())
+ if not isinstance(now, datetime.datetime):
+ now = datetime.datetime.utcnow()
+ return now + relativedelta(
+ year=dct['y'],
+ month=dct['M'],
+ day=dct['d'],
+ hour=dct['h'],
+ minute=dct['m'],
+ second=dct['s'],
+ microsecond=dct['ms'],
+ years=dct['dy'],
+ months=dct['dM'],
+ days=dct['dd'],
+ hours=dct['dh'],
+ minutes=dct['dm'],
+ seconds=dct['ds'],
+ microseconds=dct['dms'],
+ )
+
+
+class TimeDelta(PYSON):
+
+ def __init__(self, days=0, seconds=0, microseconds=0):
+ for i in [days, seconds, microseconds]:
+ if isinstance(i, PYSON):
+ assert i.types().issubset({int, float}), \
+ '%s must be an integer' % (i,)
+ else:
+ assert isinstance(i, (int, float)), \
+ '%s must be an integer' % (i,)
+ self._days = days
+ self._seconds = seconds
+ self._microseconds = microseconds
+
+ @property
+ def __repr_params__(self):
+ return self._days, self._seconds, self._microseconds
+
+ def pyson(self):
+ return {
+ '__class__': 'TimeDelta',
+ 'd': self._days,
+ 's': self._seconds,
+ 'm': self._microseconds,
+ }
+
+ def types(self):
+ return {datetime.timedelta}
+
+ @staticmethod
+ def eval(dct, context):
+ return datetime.timedelta(
+ days=dct['d'],
+ seconds=dct['s'],
+ microseconds=dct['m'],
+ )
+
+
+class Len(PYSON):
+
+ def __init__(self, v):
+ super(Len, self).__init__()
+ if isinstance(v, PYSON):
+ assert v.types().issubset({dict, list, str}), \
+ 'value must be a dict or a list or a string'
+ else:
+ assert isinstance(v, (dict, list, str)), \
+ 'value must be a dict or list or a string'
+ self._value = v
+
+ @property
+ def __repr_params__(self):
+ return (self._value,)
+
+ def pyson(self):
+ return {
+ '__class__': 'Len',
+ 'v': self._value,
+ }
+
+ def types(self):
+ return {int}
+
+ @staticmethod
+ def eval(dct, context):
+ return len(dct['v'])
+
+
+CONTEXT = {
+ 'Eval': Eval,
+ 'Not': Not,
+ 'Bool': Bool,
+ 'And': And,
+ 'Or': Or,
+ 'Equal': Equal,
+ 'Greater': Greater,
+ 'Less': Less,
+ 'If': If,
+ 'Get': Get,
+ 'In': In,
+ 'Date': Date,
+ 'DateTime': DateTime,
+ 'TimeDelta': TimeDelta,
+ 'Len': Len,
+ 'true': True,
+ 'false': False,
+}
diff --git a/proteus/proteus/tests/__init__.py b/proteus/proteus/tests/__init__.py
new file mode 100644
index 0000000000..60aa5746b7
--- /dev/null
+++ b/proteus/proteus/tests/__init__.py
@@ -0,0 +1,9 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import os
+
+os.environ.setdefault('TRYTOND_DATABASE_URI', 'sqlite:///')
+os.environ.setdefault('DB_NAME', ':memory:')
+
+here = os.path.dirname(__file__)
+readme = os.path.normpath(os.path.join(here, '..', '..', 'README.rst'))
diff --git a/proteus/proteus/tests/common.py b/proteus/proteus/tests/common.py
new file mode 100644
index 0000000000..063b948c8b
--- /dev/null
+++ b/proteus/proteus/tests/common.py
@@ -0,0 +1,17 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+from unittest import TestCase
+
+from proteus import config
+from trytond.tests.test_tryton import create_db, db_exist
+
+
+class ProteusTestCase(TestCase):
+
+ @classmethod
+ def setUpClass(cls):
+ if not db_exist():
+ create_db()
+
+ def setUp(self):
+ self.config = config.set_trytond()
diff --git a/proteus/proteus/tests/test_config.py b/proteus/proteus/tests/test_config.py
new file mode 100644
index 0000000000..50d576486b
--- /dev/null
+++ b/proteus/proteus/tests/test_config.py
@@ -0,0 +1,40 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import proteus.config
+
+from .common import ProteusTestCase
+
+
+class TestConfig(ProteusTestCase):
+
+ def test_proxy(self):
+ config = proteus.config.get_config()
+ user_proxy = config.get_proxy('res.user')
+ user_id = user_proxy.search([('login', '=', 'admin')], 0, 1, None,
+ config.context)[0]
+ self.assertTrue(user_id == config.user)
+
+ def test_proxy_keyword(self):
+ config = proteus.config.get_config()
+ user_proxy = config.get_proxy('res.user')
+ user_id, = user_proxy.search(
+ [('login', '=', 'admin')], limit=1, context=config.context)
+ self.assertTrue(user_id == config.user)
+
+ def test_proxy_methods(self):
+ config = proteus.config.get_config()
+ self.assertTrue('search' in config.get_proxy_methods('res.user'))
+
+ def test_trytond_config_eq(self):
+ config1 = proteus.config.get_config()
+ proteus.config.set_trytond()
+ config2 = proteus.config.get_config()
+ self.assertEqual(config1, config2)
+
+ self.assertRaises(NotImplementedError, config1.__eq__, None)
+
+ def test_repr(self):
+ config = proteus.config.TrytondConfig('sqlite:///:memory:')
+ self.assertEqual(repr(config),
+ "proteus.config.TrytondConfig("
+ "'sqlite:///:memory:', 'admin', config_file=None)")
diff --git a/proteus/proteus/tests/test_context.py b/proteus/proteus/tests/test_context.py
new file mode 100644
index 0000000000..7cbacec4e5
--- /dev/null
+++ b/proteus/proteus/tests/test_context.py
@@ -0,0 +1,16 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of this
+# repository contains the full copyright notices and license terms.
+from .common import ProteusTestCase
+
+
+class TestContext(ProteusTestCase):
+
+ def test_config(self):
+ prev_ctx = self.config._context
+
+ with self.config.set_context({'a': 1}):
+ self.assertEqual(self.config.context['a'], 1)
+ for key, value in prev_ctx.items():
+ self.assertEqual(self.config.context[key], value)
+
+ self.assertEqual(self.config.context, prev_ctx)
diff --git a/proteus/proteus/tests/test_model.py b/proteus/proteus/tests/test_model.py
new file mode 100644
index 0000000000..fe8d5da023
--- /dev/null
+++ b/proteus/proteus/tests/test_model.py
@@ -0,0 +1,389 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+from proteus import Model
+
+from .common import ProteusTestCase
+
+
+class TestModel(ProteusTestCase):
+
+ def test_class_cache(self):
+ User1 = Model.get('res.user')
+ User2 = Model.get('res.user')
+ self.assertEqual(id(User1), id(User2))
+
+ Model.reset()
+ User3 = Model.get('res.user')
+ self.assertNotEqual(id(User1), id(User3))
+
+ def test_class_method(self):
+ User = Model.get('res.user')
+ self.assertTrue(len(User.search([('login', '=', 'admin')], {})))
+
+ def test_int(self):
+ User = Model.get('res.user')
+ admin = User.find([('login', '=', 'admin')])[0]
+ self.assertEqual(int(admin), admin.id)
+
+ def test_id_zero(self):
+ User = Model.get('res.user')
+ root = User(0)
+ self.assertEqual(root.login, 'root')
+
+ def test_find(self):
+ User = Model.get('res.user')
+ admin = User.find([('login', '=', 'admin')])[0]
+ self.assertEqual(admin.login, 'admin')
+
+ def test_many2one(self):
+ User = Model.get('res.user')
+ admin = User.find([('login', '=', 'admin')])[0]
+ self.assertTrue(isinstance(admin.create_uid, User))
+ try:
+ admin.create_uid = 'test'
+ self.fail()
+ except AssertionError:
+ pass
+ admin.create_uid = admin
+ admin.create_uid = None
+
+ User(write_uid=None)
+
+ def test_one2many(self):
+ Group = Model.get('res.group')
+ administration = Group.find([('name', '=', 'Administration')])[0]
+ self.assertTrue(isinstance(administration.model_access, list))
+ self.assertTrue(isinstance(administration.model_access[0],
+ Model.get('ir.model.access')))
+ try:
+ administration.model_access = []
+ self.fail()
+ except AttributeError:
+ pass
+
+ def test_many2many(self):
+ User = Model.get('res.user')
+ admin = User.find([('login', '=', 'admin')])[0]
+ self.assertTrue(isinstance(admin.groups, list))
+ self.assertTrue(isinstance(admin.groups[0],
+ Model.get('res.group')))
+ try:
+ admin.groups = []
+ self.fail()
+ except AttributeError:
+ pass
+
+ def test_many2many_append_unique(self):
+ User = Model.get('res.user')
+ Group = Model.get('res.group')
+ admin, = User.find([('login', '=', 'admin')])
+ group = Group(admin.groups[0].id)
+ admin.groups.append(group)
+
+ self.assertEqual(admin.groups.count(group), 1)
+
+ def test_many2many_extend_unique(self):
+ User = Model.get('res.user')
+ Group = Model.get('res.group')
+ admin, = User.find([('login', '=', 'admin')])
+ group = Group(admin.groups[0].id)
+ admin.groups.extend([group])
+
+ self.assertEqual(admin.groups.count(group), 1)
+
+ # TODO test date
+
+ def test_reference(self):
+ Attachment = Model.get('ir.attachment')
+ User = Model.get('res.user')
+ admin = User.find([('login', '=', 'admin')])[0]
+ attachment = Attachment()
+ attachment.name = 'Test'
+ attachment.resource = admin
+ attachment.save()
+ self.assertEqual(attachment.resource, admin)
+
+ def test_id_counter(self):
+ User = Model.get('res.user')
+ test1 = User()
+ self.assertTrue(test1.id < 0)
+ test2 = User()
+ self.assertTrue(test2.id < 0)
+ self.assertNotEqual(test1.id, test2.id)
+
+ def test_init(self):
+ User = Model.get('res.user')
+ self.assertEqual(User(1).id, 1)
+ self.assertEqual(User(name='Foo').name, 'Foo')
+
+ Lang = Model.get('ir.lang')
+ en, = Lang.find([('code', '=', 'en')])
+ self.assertEqual(User(language=en).language, en)
+ self.assertEqual(User(language=en.id).language, en)
+
+ Group = Model.get('res.group')
+ groups = Group.find()
+ self.assertEqual(len(User(groups=groups).groups), len(groups))
+ self.assertEqual(len(User(groups=[x.id for x in groups]).groups),
+ len(groups))
+
+ def test_assign_unknown_field(self):
+ "Test it is not allowed to assign unknown field"
+ User = Model.get('res.user')
+ user = User()
+
+ with self.assertRaises(AttributeError):
+ user.unknown_field = 'foo'
+
+ def test_save(self):
+ User = Model.get('res.user')
+ test = User()
+ test.name = 'Test'
+ test.login = 'test'
+ test.save()
+ self.assertTrue(test.id > 0)
+
+ test = User(test.id)
+ self.assertEqual(test.name, 'Test')
+ self.assertEqual(test.login, 'test')
+ self.assertTrue(test.active)
+
+ test.signature = 'Test signature'
+ self.assertEqual(test.signature, 'Test signature')
+ test.save()
+ self.assertEqual(test.signature, 'Test signature')
+ test = User(test.id)
+ self.assertEqual(test.signature, 'Test signature')
+
+ Group = Model.get('res.group')
+ test2 = User(name='Test 2', login='test2',
+ groups=[Group(name='Test 2')])
+ test2.save()
+ self.assertTrue(test2.id > 0)
+ self.assertEqual(test2.name, 'Test 2')
+ self.assertEqual(test2.login, 'test2')
+
+ test.signature = 'classmethod save'
+ test2.name = 'Test 2 classmethod'
+ test3 = User(name='Test 3', login='test3')
+ User.save([test, test2, test3])
+ self.assertEqual(test.signature, 'classmethod save')
+ self.assertEqual(test2.name, 'Test 2 classmethod')
+ self.assertTrue(test3.id > 0)
+ self.assertEqual(test3.name, 'Test 3')
+
+ def test_save_many2one(self):
+ User = Model.get('res.user')
+ test = User()
+ test.name = 'Test save many2one'
+ test.login = 'test_save_many2one'
+ test.save()
+
+ Lang = Model.get('ir.lang')
+ en, = Lang.find([('code', '=', 'en')])
+ test.language = en
+ test.save()
+ self.assertEqual(test.language, en)
+
+ test.language = None
+ test.save()
+ self.assertFalse(test.language)
+
+ def test_save_one2many(self):
+ Group = Model.get('res.group')
+ group = Group()
+ group.name = 'Test save one2many'
+ group.save()
+
+ ModelAccess = Model.get('ir.model.access')
+ Model_ = Model.get('ir.model')
+ model_access = ModelAccess()
+ model_access.model = Model_.find([('model', '=', 'res.group')])[0]
+ model_access.perm_read = True
+ model_access.perm_write = True
+ model_access.perm_create = True
+ model_access.perm_delete = True
+
+ group.model_access.append(model_access)
+ group.save()
+ self.assertEqual(len(group.model_access), 1)
+
+ model_access_id = group.model_access[0].id
+
+ group.name = 'Test save one2many bis'
+ group.model_access[0].description = 'Test save one2many'
+ group.save()
+ self.assertEqual(group.model_access[0].description,
+ 'Test save one2many')
+
+ group.model_access.pop()
+ group.save()
+ self.assertEqual(group.model_access, [])
+ self.assertEqual(len(ModelAccess.find([('id', '=', model_access_id)])),
+ 1)
+
+ group.model_access.append(ModelAccess(model_access_id))
+ group.save()
+ self.assertEqual(len(group.model_access), 1)
+
+ group.model_access.remove(group.model_access[0])
+ group.save()
+ self.assertEqual(group.model_access, [])
+ self.assertEqual(len(ModelAccess.find([('id', '=', model_access_id)])),
+ 0)
+
+ def test_save_many2many(self):
+ User = Model.get('res.user')
+ test = User()
+ test.name = 'Test save many2many'
+ test.login = 'test_save_many2many'
+ test.save()
+
+ Group = Model.get('res.group')
+ group = Group()
+ group.name = 'Test save many2many'
+ group.save()
+
+ test.groups.append(group)
+ test.save()
+ self.assertEqual(len(test.groups), 1)
+
+ group_id = test.groups[0].id
+
+ test.name = 'Test save many2many bis'
+ test.groups[0].name = 'Test save many2many bis'
+ test.save()
+ self.assertEqual(test.groups[0].name,
+ 'Test save many2many bis')
+
+ test.groups.pop()
+ test.save()
+ self.assertEqual(test.groups, [])
+ self.assertEqual(len(Group.find([('id', '=', group_id)])), 1)
+
+ test.groups.append(Group(group_id))
+ test.save()
+ self.assertEqual(len(test.groups), 1)
+
+ test.groups.remove(test.groups[0])
+ test.save()
+ self.assertEqual(test.groups, [])
+ self.assertEqual(len(Group.find([('id', '=', group_id)])), 0)
+
+ def test_eq(self):
+ User = Model.get('res.user')
+ test = User()
+ test.name = 'Test eq'
+ test.login = 'test_eq'
+ test.save()
+ admin1 = User.find([('login', '=', 'admin')])[0]
+ admin2 = User.find([('login', '=', 'admin')])[0]
+
+ self.assertEqual(admin1, admin2)
+ self.assertFalse(admin1 != admin2)
+ self.assertNotEqual(admin1, test)
+ self.assertFalse(admin1 == test)
+ self.assertNotEqual(admin1, None)
+ self.assertNotEqual(admin1, False)
+ self.assertNotEqual(admin1, 1)
+
+ def test_default_set(self):
+ User = Model.get('res.user')
+ Group = Model.get('res.group')
+ group_ids = [x.id for x in Group.find()]
+ test = User()
+ test._default_set({
+ 'name': 'Test',
+ 'groups': group_ids,
+ })
+ self.assertEqual(test.name, 'Test')
+ self.assertEqual([x.id for x in test.groups], group_ids)
+
+ test = User()
+ test._default_set({
+ 'name': 'Test',
+ 'groups': [
+ {
+ 'name': 'Group 1',
+ },
+ {
+ 'name': 'Group 2',
+ },
+ ],
+ })
+ self.assertEqual(test.name, 'Test')
+ self.assertEqual([x.name for x in test.groups], ['Group 1', 'Group 2'])
+
+ def test_delete(self):
+ Group = Model.get('res.group')
+ test = Group()
+ test.name = 'Test delete'
+ test.save()
+ test.delete()
+
+ def test_duplicate(self):
+ User = Model.get('res.user')
+ test = User()
+ test.name = 'Test duplicate'
+ test.login = 'test duplicate'
+ test.save()
+ copy, = User.duplicate([test], {'name': 'Test copy'})
+ self.assertEqual(copy.name, 'Test copy')
+ self.assertEqual(copy.login, 'test duplicate (copy)')
+ self.assertNotEqual(copy.id, test.id)
+
+ def test_on_change(self):
+ Trigger = Model.get('ir.trigger')
+
+ trigger = Trigger()
+
+ trigger.on_time = True
+ self.assertEqual(trigger.on_create, False)
+
+ trigger.on_create = True
+ self.assertEqual(trigger.on_time, False)
+
+ def test_on_change_with(self):
+ Attachment = Model.get('ir.attachment')
+
+ attachment = Attachment()
+
+ attachment.description = 'Test'
+ self.assertEqual(attachment.summary, 'Test')
+
+ def test_on_change_set(self):
+ User = Model.get('res.user')
+ Group = Model.get('res.group')
+
+ test = User()
+ test._on_change_set('name', 'Test')
+ self.assertEqual(test.name, 'Test')
+ group_ids = [x.id for x in Group.find()]
+ test._on_change_set('groups', group_ids)
+ self.assertEqual([x.id for x in test.groups], group_ids)
+
+ test._on_change_set('groups', {'remove': [group_ids[0]]})
+ self.assertEqual([x.id for x in test.groups], group_ids[1:])
+
+ test._on_change_set('groups', {'add': [(-1, {
+ 'name': 'Bar',
+ })]})
+ self.assertTrue([x for x in test.groups if x.name == 'Bar'])
+
+ test.groups.extend(Group.find())
+ group = test.groups[0]
+ test._on_change_set('groups', {'update': [{
+ 'id': group.id,
+ 'name': 'Foo',
+ }]})
+ self.assertTrue([x for x in test.groups if x.name == 'Foo'])
+
+ def test_model_list_find(self):
+ User = Model.get('res.user')
+ Group = Model.get('res.group')
+
+ test = User()
+ groups = test.groups.find(order=[('id', 'ASC')])
+ all_groups = Group.find([], order=[('id', 'ASC')])
+
+ self.assertListEqual(groups, all_groups)
diff --git a/proteus/proteus/tests/test_readme.py b/proteus/proteus/tests/test_readme.py
new file mode 100644
index 0000000000..26a4ccfc43
--- /dev/null
+++ b/proteus/proteus/tests/test_readme.py
@@ -0,0 +1,22 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import doctest
+import os
+
+import proteus
+import proteus.config
+from trytond.tests.test_tryton import doctest_setup, doctest_teardown
+
+here = os.path.dirname(__file__)
+readme = os.path.normpath(os.path.join(here, '..', '..', 'README.rst'))
+
+
+def load_tests(loader, tests, pattern):
+ for mod in (proteus, proteus.config):
+ tests.addTest(doctest.DocTestSuite(mod))
+ if os.path.isfile(readme):
+ tests.addTest(doctest.DocFileSuite(
+ readme, module_relative=False,
+ setUp=doctest_setup, tearDown=doctest_teardown,
+ encoding='utf-8',
+ optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
diff --git a/proteus/proteus/tests/test_report.py b/proteus/proteus/tests/test_report.py
new file mode 100644
index 0000000000..edb89f1d6d
--- /dev/null
+++ b/proteus/proteus/tests/test_report.py
@@ -0,0 +1,29 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import unittest
+
+try:
+ import pydot
+except ImportError:
+ pydot = None
+
+from proteus import Model, Report
+
+from .common import ProteusTestCase
+
+
+class TestReport(ProteusTestCase):
+
+ @unittest.skipIf(not pydot, 'requires pydot')
+ def test_model_graph(self):
+ IrModel = Model.get('ir.model')
+ models = IrModel.find([])
+ data = {
+ 'level': 1,
+ 'filter': '',
+ }
+ report = Report('ir.model.graph')
+ type_, data, print_, name = report.execute(models, data)
+ self.assertEqual(type_, 'png')
+ self.assertEqual(print_, False)
+ self.assertEqual(name, 'Graph')
diff --git a/proteus/proteus/tests/test_wizard.py b/proteus/proteus/tests/test_wizard.py
new file mode 100644
index 0000000000..3d1c9f7927
--- /dev/null
+++ b/proteus/proteus/tests/test_wizard.py
@@ -0,0 +1,54 @@
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+from proteus import Model, Wizard
+
+from .common import ProteusTestCase
+
+
+class TestWizard(ProteusTestCase):
+
+ def test_translation_clean(self):
+ translation_clean = Wizard('ir.translation.clean')
+ self.assertEqual(translation_clean.form.__class__.__name__,
+ 'ir.translation.clean.start')
+ translation_clean.execute('clean')
+ self.assertEqual(translation_clean.form.__class__.__name__,
+ 'ir.translation.clean.succeed')
+
+ def test_translation_export(self):
+ Lang = Model.get('ir.lang')
+ Module = Model.get('ir.module')
+ translation_export = Wizard('ir.translation.export')
+ translation_export.form.language, = Lang.find([('code', '=', 'en')])
+ translation_export.form.module, = Module.find([('name', '=', 'ir')])
+ translation_export.execute('export')
+ self.assertTrue(translation_export.form.file)
+ translation_export.execute('end')
+
+ def test_user_config(self):
+ User = Model.get('res.user')
+
+ user_config = Wizard('res.user.config')
+ user_config.execute('user')
+ user_config.form.name = 'Foo'
+ user_config.form.login = 'foo'
+ user_config.execute('add')
+ self.assertEqual(user_config.form.name, None)
+ self.assertEqual(user_config.form.login, None)
+ user_config.form.name = 'Bar'
+ user_config.form.login = 'bar'
+ user_config.execute('end')
+
+ self.assertTrue(User.find([('name', '=', 'Foo')]))
+ self.assertFalse(User.find([('name', '=', 'Bar')]))
+
+ def test_translation_update(self):
+ print_model_graph = Wizard('ir.translation.update')
+ self.assertEqual(len(print_model_graph.actions), 0)
+ print_model_graph.execute('update')
+ self.assertEqual(len(print_model_graph.actions), 1)
+
+ def test_configuration_wizard(self):
+ config_wizard = Wizard('ir.module.config_wizard')
+ config_wizard.execute('action')
+ self.assertTrue(config_wizard.actions)
diff --git a/proteus/setup.py b/proteus/setup.py
new file mode 100755
index 0000000000..fa3ca38484
--- /dev/null
+++ b/proteus/setup.py
@@ -0,0 +1,120 @@
+#!/usr/bin/env python3
+# This file is part of Tryton. The COPYRIGHT file at the top level of
+# this repository contains the full copyright notices and license terms.
+import io
+import os
+import re
+
+from setuptools import find_packages, setup
+
+
+def read(fname):
+ return io.open(
+ os.path.join(os.path.dirname(__file__), fname),
+ 'r', encoding='utf-8').read()
+
+
+def readme():
+ content = read('README.rst')
+ content = re.sub(
+ r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
+ return content
+
+
+def get_version():
+ init = read(os.path.join('proteus', '__init__.py'))
+ return re.search('__version__ = "([0-9.]*)"', init).group(1)
+
+
+def get_require_version(name):
+ if minor_version % 2:
+ require = '%s >= %s.%s.dev0, < %s.%s'
+ else:
+ require = '%s >= %s.%s, < %s.%s'
+ require %= (name, major_version, minor_version,
+ major_version, minor_version + 1)
+ return require
+
+
+name = 'proteus'
+version = get_version()
+major_version, minor_version, _ = version.split('.', 2)
+major_version = int(major_version)
+minor_version = int(minor_version)
+
+download_url = 'http://downloads.tryton.org/%s.%s/' % (
+ major_version, minor_version)
+if minor_version % 2:
+ version = '%s.%s.dev0' % (major_version, minor_version)
+ download_url = 'hg+http://hg.tryton.org/%s#egg=%s-%s' % (
+ name, name, version)
+local_version = []
+if os.environ.get('CI_JOB_ID'):
+ local_version.append(os.environ['CI_JOB_ID'])
+else:
+ for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER']:
+ if os.environ.get(build):
+ local_version.append(os.environ[build])
+ else:
+ local_version = []
+ break
+if local_version:
+ version += '+' + '.'.join(local_version)
+
+dependency_links = []
+if minor_version % 2:
+ dependency_links.append(
+ 'https://trydevpi.tryton.org/?local_version='
+ + '.'.join(local_version))
+
+setup(name=name,
+ version=version,
+ description='Library to access Tryton server as a client',
+ long_description=readme(),
+ author='Tryton',
+ author_email='bugs@tryton.org',
+ url='http://www.tryton.org/',
+ download_url=download_url,
+ project_urls={
+ "Bug Tracker": 'https://bugs.tryton.org/',
+ "Documentation": 'https://docs.tryton.org/',
+ "Forum": 'https://www.tryton.org/forum',
+ "Source Code": 'https://hg.tryton.org/proteus',
+ },
+ keywords='tryton library cli',
+ packages=find_packages(),
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Plugins',
+ 'Framework :: Tryton',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: Financial and Insurance Industry',
+ 'Intended Audience :: Legal Industry',
+ 'License :: OSI Approved :: '
+ 'GNU Library or Lesser General Public License (LGPL)',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Topic :: Office/Business',
+ ],
+ platforms='any',
+ license='LGPL-3',
+ python_requires='>=3.7',
+ install_requires=[
+ 'defusedxml',
+ "python-dateutil",
+ ],
+ extras_require={
+ 'trytond': [get_require_version('trytond')],
+ 'test': [
+ get_require_version('trytond'),
+ get_require_version('trytond_party'),
+ ],
+ },
+ dependency_links=dependency_links,
+ zip_safe=True,
+ )
diff --git a/proteus/tox.ini b/proteus/tox.ini
new file mode 100644
index 0000000000..c0e3b63cbd
--- /dev/null
+++ b/proteus/tox.ini
@@ -0,0 +1,13 @@
+[tox]
+envlist = py37,py38,py39,py310
+
+[testenv]
+extras = test
+commands =
+ coverage run -m unittest discover -s proteus.tests
+ coverage report --include=./proteus/* --omit=*/tests/*
+deps = coverage
+setenv =
+ TRYTOND_DATABASE_URI={env:TRYTOND_DATBASE_URI:sqlite://}
+ DB_NAME={env:DB_NAME::memory:}
+install_command = pip install --pre --find-links https://trydevpi.tryton.org/?local_version={env:CI_JOB_ID:{env:CI_BUILD_NUMBER:}.{env:CI_JOB_NUMBER:}} {opts} {packages}
diff --git a/readthedocs/account.rst b/readthedocs/account.rst
new file mode 100644
index 0000000000..0c4099a9b9
--- /dev/null
+++ b/readthedocs/account.rst
@@ -0,0 +1,159 @@
+:orphan:
+
+.. _index-accounting:
+
+Accounting
+==========
+
+`Account `_
+ Fundamentals for most accounting needs.
+
+`Asset `_
+ Depreciation of fixed assets.
+
+`Belgian `_
+ Belgian accounting.
+
+`Budget `_
+ Budgets for accounts.
+
+`Cash Rounding `_
+ Round cash amounts.
+
+`Consolidation `_
+ Consolidate accounting of multiple companies.
+
+`Credit Limit `_
+ Manages credit limit of parties.
+
+`Deposit `_
+ Supports customer deposits.
+
+`Dunning `_
+ Manages dunning on receivables.
+
+`Dunning Email `_
+ Sends dunning emails.
+
+`Dunning Fee `_
+ Adds fees to dunnings.
+
+`Dunning Letter `_
+ Prints dunning letters.
+
+`Spanish `_
+ Spanish accounting.
+
+`Spanish SII `_
+ Sends invoices to "Subministro Inmediato de Información" (SII).
+
+`Europe `_
+ Common European requirements.
+
+`French `_
+ French accounting.
+
+`French Chorus `_
+ Sends invoices via Chorus Pro.
+
+`German `_
+ German accounting.
+
+`Invoice `_
+ Manages customer and supplier invoices.
+
+`Invoice Correction `_
+ Correct price on posted invoices.
+
+`Invoice Defer `_
+ Defer expense and revenue.
+
+`Invoice History `_
+ Historize invoice.
+
+`Invoice Line Standalone `_
+ Supports invoice line without invoice.
+
+`Invoice Secondary Unit `_
+ Adds a secondary unit of measure.
+
+`Invoice Stock `_
+ Links invoice lines and stock moves.
+
+`Invoice Watermark `_
+ Adds watermark to printed invoices.
+
+`Move Line Grouping `_
+ Show move line grouped.
+
+`Payment `_
+ Manages payments.
+
+`Payment Braintree `_
+ Receives payment from Braintree.
+
+`Payment Clearing `_
+ Uses clearing account for payments.
+
+`Payment SEPA `_
+ Genrates SEPA messages for payments.
+
+`Payment SEPA CFONB `_
+ Adds CFONB flavors to SEPA.
+
+`Payment Stripe `_
+ Receives payment from Stripe.
+
+`Product `_
+ Adds accounting on product and category.
+
+`Receivable Rule `_
+ Applies rules to receivable.
+
+`Rule `_
+ Applies rules on accounts.
+
+`Statement `_
+ Books bank statement, cash day book etc.
+
+`Statement AEB43 `_
+ Imports statements in AEB43 format.
+
+`Statement CODA `_
+ Imports statements in CODA format.
+
+`Statement OFX `_
+ Imports statements in OFX format.
+
+`Statement Rule `_
+ Applies rules on imported statements.
+
+`Statement SEPA `_
+ Imports statements in SEPA format.
+
+`Stock Anglo-Saxon `_
+ Values stock using the anglo-saxon method.
+
+`Stock Continental `_
+ Values stock using the continental method.
+
+`Stock Landed Cost `_
+ Allocates landed cost.
+
+`Stock Landed Cost Weight `_
+ Allocates landed cost based on weight.
+
+`Stock Shipment Cost `_
+ Allocates shipment cost.
+
+`Stock Shipment Cost Weight `_
+ Allocates shipment cost by weight.
+
+`Tax Cash `_
+ Reports tax on cash basis.
+
+`Tax Non-Deductible `_
+ Reports non-deductible tax.
+
+`Tax Rule Country `_
+ Applies taxes per country of origin and destination.
diff --git a/readthedocs/analytic.rst b/readthedocs/analytic.rst
new file mode 100644
index 0000000000..483a53b6c5
--- /dev/null
+++ b/readthedocs/analytic.rst
@@ -0,0 +1,21 @@
+:orphan:
+
+.. _index-analytic-accounting:
+
+Analytic Accounting
+===================
+
+`Account `_
+ Fundamentals for analytic.
+
+`Budget `_
+ Budgets for analytic accounts.
+
+`Invoice `_
+ Adds analytic on invoice.
+
+`Purchase `_
+ Adds analytic on purchase.
+
+`Sale `_
+ Adds analytic on sale.
diff --git a/readthedocs/authentication.rst b/readthedocs/authentication.rst
new file mode 100644
index 0000000000..92ad8f8448
--- /dev/null
+++ b/readthedocs/authentication.rst
@@ -0,0 +1,15 @@
+:orphan:
+
+.. _index-authentication:
+
+Authentication
+==============
+
+`SAML `_
+ Authentication per SAML.
+
+`SMS `_
+ Authentication per SMS.
+
+`LDAP `_
+ Authentication per LDAP.
diff --git a/readthedocs/carrier.rst b/readthedocs/carrier.rst
new file mode 100644
index 0000000000..98aef29a55
--- /dev/null
+++ b/readthedocs/carrier.rst
@@ -0,0 +1,21 @@
+:orphan:
+
+.. _index-carrier:
+
+Carrier
+=======
+
+`Carrier `_
+ Fundamentals to manage carriers.
+
+`Carriage `_
+ Supports multiple carriers per document.
+
+`Percentage `_
+ Computes cost based on percentage.
+
+`Subdivision `_
+ Restricts the usage of a carrier to subdivisions and ZIP codes.
+
+`Weight `_
+ Computes cost based on weight.
diff --git a/readthedocs/commission.rst b/readthedocs/commission.rst
new file mode 100644
index 0000000000..5ec64ba2aa
--- /dev/null
+++ b/readthedocs/commission.rst
@@ -0,0 +1,12 @@
+:orphan:
+
+.. _index-commission:
+
+Commission
+==========
+
+`Commission `_
+ Fundamentals to commission sale's agents.
+
+`Waiting `_
+ Creates waiting account moves.
diff --git a/readthedocs/company.rst b/readthedocs/company.rst
new file mode 100644
index 0000000000..af49cdd999
--- /dev/null
+++ b/readthedocs/company.rst
@@ -0,0 +1,12 @@
+:orphan:
+
+.. _index-company:
+
+Company
+=======
+
+`Company `_
+ Defines company and employees.
+
+`Work Time `_
+ Defines work time per company.
diff --git a/readthedocs/currency.rst b/readthedocs/currency.rst
new file mode 100644
index 0000000000..18764f9030
--- /dev/null
+++ b/readthedocs/currency.rst
@@ -0,0 +1,15 @@
+:orphan:
+
+.. _index-currency:
+
+Currency
+========
+
+`Currency `_
+ ISO 4217 list of currencies.
+
+`Romanian `_
+ Exchange rates from the Romanian National Bank.
+
+`Serbian `_
+ Exchange rates from the Serbian National Bank.
diff --git a/readthedocs/edocument.rst b/readthedocs/edocument.rst
new file mode 100644
index 0000000000..818617cb7e
--- /dev/null
+++ b/readthedocs/edocument.rst
@@ -0,0 +1,12 @@
+:orphan:
+
+.. _index-edocument:
+
+Electronic Document
+===================
+
+`UN/CEFACT `_
+ Supports UN/CEFACT format.
+
+`UNECE `_
+ Adds UNECE codes.
diff --git a/readthedocs/index.rst b/readthedocs/index.rst
new file mode 100644
index 0000000000..1ad1cd5f8d
--- /dev/null
+++ b/readthedocs/index.rst
@@ -0,0 +1,120 @@
+====================
+Tryton Documentation
+====================
+
+Main
+----
+
+`Server `_
+ The main application.
+
+`Desktop Client `_
+ The application to connect to the server.
+
+`Scripting Client `_
+ The library to access models, wizards and reports like a client.
+
+Backend
+-------
+
+`GIS `_
+ Adds GIS support.
+
+Modules
+-------
+
+Operational
+^^^^^^^^^^^
+
+:ref:`Financial Accounting `
+ Reports all transactions of your chart of accounts.
+
+:ref:`Analytic Accounting `
+ Analyze your accounts.
+
+`Attendance `_
+ Track presences.
+
+:ref:`Commission `
+ Commission sale's agents.
+
+:ref:`EDocument `
+ Electronic document format.
+
+:ref:`Marketing `
+ Communicates with your customers.
+
+:ref:`Production `
+ Transforms raw materials into finished products.
+
+:ref:`Project `
+ Checks the profitability of projects.
+
+:ref:`Purchase `
+ Follows your purchases.
+
+:ref:`Sale `
+ Follows sale orders.
+
+:ref:`Sale Point `
+ Point of Sales.
+
+:ref:`Sale Subscription `
+ Subscribes to recurring service.
+
+:ref:`Stock `
+ Tracks goods in your warehouses.
+
+:ref:`Timesheet `
+ Tracks time spend.
+
+Referential
+^^^^^^^^^^^
+
+`Banking `_
+ Adds bank and account.
+
+:ref:`Company `
+ Structure of the company.
+
+:ref:`Carrier `
+ To ship.
+
+`Country `_
+ ISO 3166 list of countries and subdivisions.
+
+:ref:`Currency `
+ Manage currencies
+
+`Customs `_
+ Defines customs duty per tariff code.
+
+`Dashboard `_
+ Customized dashboard.
+
+`Google Maps `_
+ Links address to Google map.
+
+`Incoterm `_
+ Defines incoterms.
+
+:ref:`Party `
+ Identify parties.
+
+:ref:`Product `
+ Manages products.
+
+Administration
+^^^^^^^^^^^^^^
+
+:ref:`Authentication `
+ Extends authentication mechanism.
+
+`Notification Email `_
+ Sends email.
+
+`User Role `_
+ Manage user groups with roles.
+
+:ref:`Web `
+ Manage web features.
diff --git a/readthedocs/marketing.rst b/readthedocs/marketing.rst
new file mode 100644
index 0000000000..1750be2ebe
--- /dev/null
+++ b/readthedocs/marketing.rst
@@ -0,0 +1,18 @@
+:orphan:
+
+.. _index-marketing:
+
+Marketing
+=========
+
+`Marketing `_
+ Fundamentals for marketing.
+
+`Automation `_
+ Uses scenario.
+
+`Campaign `_
+ Manage campaign.
+
+`E-mail `_
+ Manage mailing lists.
diff --git a/readthedocs/party.rst b/readthedocs/party.rst
new file mode 100644
index 0000000000..f9f3b4d755
--- /dev/null
+++ b/readthedocs/party.rst
@@ -0,0 +1,18 @@
+:orphan:
+
+.. _index-party:
+
+Party
+=====
+
+`Party `_
+ Fundamentals to store parties.
+
+`Avatar `_
+ Adds avatar.
+
+`Relationship `_
+ Defines relation between parties.
+
+`SIRET `_
+ Adds SIRET and SIREN.
diff --git a/readthedocs/product.rst b/readthedocs/product.rst
new file mode 100644
index 0000000000..2649927838
--- /dev/null
+++ b/readthedocs/product.rst
@@ -0,0 +1,48 @@
+:orphan:
+
+.. _index-product:
+
+Product
+=======
+
+`Product `_
+ Fundamentals to manage products.
+
+`Attribute `_
+ Adds attributes to products.
+
+`Classification `_
+ Classifies products.
+
+`Classification Taxonomic `_
+ Uses Taxonomic classification.
+
+`Cost FIFO `_
+ Adds FIFO cost method.
+
+`Cost History `_
+ Historize the cost.
+
+`Cost Warehouse `_
+ Calculate cost prices per warehouse.
+
+`Measurements `_
+ Adds measurements to products.
+
+`Price List `_
+ Computes price.
+
+`Price List Dates `_
+ Sets start and end date on price lists.
+
+`Price List Parent `_
+ Adds price list cascading.
+
+`Image `_
+ Adds images.
+
+`Image Attribute `_
+ Adds attributes to product images.
+
+`Kit `_
+ Add support for product kits.
diff --git a/readthedocs/production.rst b/readthedocs/production.rst
new file mode 100644
index 0000000000..bf6143143f
--- /dev/null
+++ b/readthedocs/production.rst
@@ -0,0 +1,24 @@
+:orphan:
+
+.. _index-production:
+
+Production
+==========
+
+`Production `_
+ Fundamentals for production management.
+
+`Outsourcing `_
+ Outsources the production.
+
+`Routing `_
+ Defines routings.
+
+`Split `_
+ Split production orders.
+
+`Work `_
+ Manage work order for each production.
+
+`Work Timesheet `_
+ Track time per work.
diff --git a/readthedocs/project.rst b/readthedocs/project.rst
new file mode 100644
index 0000000000..6111e22a91
--- /dev/null
+++ b/readthedocs/project.rst
@@ -0,0 +1,18 @@
+:orphan:
+
+.. _index-project:
+
+Project
+=======
+
+`Project `_
+ Fundamentals for project management.
+
+`Invoice `_
+ Invoices the projects.
+
+`Plan `_
+ Plans the projects.
+
+`Revenue `_
+ Follows cost and revenue of projects.
diff --git a/readthedocs/purchase.rst b/readthedocs/purchase.rst
new file mode 100644
index 0000000000..dbbd76be7d
--- /dev/null
+++ b/readthedocs/purchase.rst
@@ -0,0 +1,42 @@
+:orphan:
+
+.. _index-purchase:
+
+Purchase
+========
+
+`Purchase `_
+ Fundamentals to follow purchases.
+
+`Amendment `_
+ Amend purchases in processing.
+
+`Blanket Agreement `_
+ Manage blanket agreements.
+
+`History `_
+ Manages revisions.
+
+`Invoice Line Standalone `_
+ Generates invoice lines.
+
+`Price List `_
+ Applies price list.
+
+`Product Quantity `_
+ Adds constraints on quantity purchased.
+
+`Request `_
+ Collects the purchase requests.
+
+`Request Quotation `_
+ Asks quotation for the purchase requests.
+
+`Requisition `_
+ Requires purchase by employees.
+
+`Secondary Unit `_
+ Adds a secondary unit of measure.
+
+`Shipment Cost `_
+ Computes shipment cost.
diff --git a/readthedocs/sale.rst b/readthedocs/sale.rst
new file mode 100644
index 0000000000..62cc4caa24
--- /dev/null
+++ b/readthedocs/sale.rst
@@ -0,0 +1,96 @@
+:orphan:
+
+.. _index-sale:
+
+Sale
+====
+
+`Sale `_
+ Fundamentals to follow sales.
+
+`Advance Payment `_
+ Manage advance payment on sale.
+
+`Amendment `_
+ Amend sales in processing.
+
+`Blanket Agreement `_
+ Manage sale blanket agreements.
+
+`Complaint `_
+ Solves customer complaints.
+
+`Credit Limit `_
+ Adds sales to the credit limit.
+
+`Discount `_
+ Adds discount on lines.
+
+`Extra `_
+ Add extra lines.
+
+`Gift Card `_
+ Sales gift cards.
+
+`History `_
+ Manages revisions.
+
+`Invoice Date `_
+ Compute the date of invoice.
+
+`Invoice Grouping `_
+ Groups invoices.
+
+`Opportunity `_
+ Tracks leads and opportunities.
+
+`Payment `_
+ Pays sales before posting the invoice.
+
+`Price List `_
+ Applies price list.
+
+`Product Customer `_
+ Adds customer's name and code for product.
+
+`Product Quantity `_
+ Adds constraints on quantity sold.
+
+`Product Recommendation `_
+ Recommends products.
+
+`Product Recommendation Association Rule `_
+ Recommends products based on association rules.
+
+`Promotion `_
+ Applies promotions.
+
+`Promotion Coupon `_
+ Applies promotions with coupons.
+
+`Promotion Coupon Payment `_
+ Count coupon per identical payment party.
+
+`Shipment Cost `_
+ Computes shipment cost.
+
+`Shipment Grouping `_
+ Groups shipments.
+
+`Shipment Tolerance `_
+ Define tolerance for under and over shipment.
+
+`Secondary Unit `_
+ Adds a secondary unit of measure.
+
+`Stock Quantity `_
+ Checks stock level.
+
+`Supply `_
+ Supplies from the sale.
+
+`Supply Drop Shipment `_
+ Supplies with drop shipment.
+
+`Supply Production `_
+ Supplies with production.
diff --git a/readthedocs/sale_point.rst b/readthedocs/sale_point.rst
new file mode 100644
index 0000000000..615ef66ad9
--- /dev/null
+++ b/readthedocs/sale_point.rst
@@ -0,0 +1,11 @@
+:orphan:
+
+.. _index-sale-point:
+
+Point of Sale
+=============
+
+.. glossary::
+
+ `Sale Point `_
+ Fundamentals for POS.
diff --git a/readthedocs/sale_subscription.rst b/readthedocs/sale_subscription.rst
new file mode 100644
index 0000000000..2d61f04f7e
--- /dev/null
+++ b/readthedocs/sale_subscription.rst
@@ -0,0 +1,12 @@
+:orphan:
+
+.. _index-sale_subscription:
+
+Sale Subscription
+=================
+
+`Subscription `_
+ Fundamentals to manage subscriptions.
+
+`Asset `_
+ Add asset to subscribed service.
diff --git a/readthedocs/stock.rst b/readthedocs/stock.rst
new file mode 100644
index 0000000000..c38122b1b5
--- /dev/null
+++ b/readthedocs/stock.rst
@@ -0,0 +1,90 @@
+:orphan:
+
+.. _index-stock:
+
+Stock
+=====
+
+`Stock `_
+ Fundamentals to manage warehouses.
+
+`Assign Manual `_
+ Manually decide where to pick products.
+
+`Consignment `_
+ Manages consignment stock from supplier or at customer warehouse.
+
+`Forecast `_
+ Forecast the stock levels.
+
+`Inventory Location `_
+ Creates inventories for many locations.
+
+`Location Move `_
+ Makes location movable.
+
+`Location Sequence `_
+ Orders locations.
+
+`Lot `_
+ Track products with lot.
+
+`Lot Shelf Life Expiration Date `_
+ Manages expiration dates.
+
+`Lot Unit `_
+ Defines unit and quantity per lot.
+
+`Package `_
+ Store packaging on shipments.
+
+`Package Shipping `_
+ Fundamentals to interact with shipping services.
+
+`Package Shipping DPD `_
+ Connects with DPD shipping service.
+
+`Package Shipping MyGLS `_
+ Connects with MyGLS shipping service.
+
+`Package Shipping Sendcloud `_
+ Connects to the Sendcloud shipping service.
+
+`Package Shipping UPS `_
+ Connects with UPS shipping service.
+
+`Product Location `_
+ Defines preferred locations for products.
+
+`Quantity Early Planning `_
+ Consume earlier stock.
+
+`Quantity Issue `_
+ Reports quantity issues.
+
+`Secondary Unit `_
+ Adds a secondary unit of measure.
+
+`Shipment Cost `_
+ Adds shipment costs to outgoing moves.
+
+`Shipment Cost Weight `_
+ Set shipment costs based on weight.
+
+`Shipment Measurements `_
+ Adds measurements to shipments.
+
+`Split `_
+ Splits moves and shipments.
+
+`Supply `_
+ Supplies warehouses.
+
+`Supply Forecast `_
+ Uses forecast to supply warehouses.
+
+`Supply Day `_
+ Compute supply date per week day.
+
+`Supply Production `_
+ Supplies warehouses with production orders.
diff --git a/readthedocs/timesheet.rst b/readthedocs/timesheet.rst
new file mode 100644
index 0000000000..8ad45607fb
--- /dev/null
+++ b/readthedocs/timesheet.rst
@@ -0,0 +1,12 @@
+:orphan:
+
+.. _index-timesheet:
+
+Timesheet
+=========
+
+`Timesheet `_
+ Fundamentals to track time spend.
+
+`Cost `_
+ Tracks employee cost.
diff --git a/readthedocs/web.rst b/readthedocs/web.rst
new file mode 100644
index 0000000000..7210c83421
--- /dev/null
+++ b/readthedocs/web.rst
@@ -0,0 +1,24 @@
+:orphan:
+
+.. _index-web:
+
+Web
+===
+
+`Shop `_
+ Fundamentals to sale online.
+
+`Shop Shopify `_
+ Integration with Shopify.
+
+`Shop Vue Storefront `_
+ Integration with Vue Storefront.
+
+`Shop Vue Storefront Stripe `_
+ Support of Stripe Payment for Vue Storefront.
+
+`Shortener `_
+ Shortens URL and connects them to actions.
+
+`User `_
+ Manages external users.
diff --git a/sao/.bower_allow_root.sh b/sao/.bower_allow_root.sh
new file mode 100755
index 0000000000..fc17f19c58
--- /dev/null
+++ b/sao/.bower_allow_root.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo '{ "allow_root": true }' > ~/.bowerrc
diff --git a/sao/.drone.yml b/sao/.drone.yml
new file mode 100644
index 0000000000..e2a994d6b3
--- /dev/null
+++ b/sao/.drone.yml
@@ -0,0 +1,17 @@
+clone:
+ hg:
+ image: plugins/hg
+ environment:
+ - HG_SHARE_POOL=/root/.cache/hg
+ volumes:
+ - cache:/root/.cache
+
+pipeline:
+ npm:
+ image: tryton/sao-test
+ commands:
+ - sh .bower_allow_root.sh
+ - npm -s install --unsafe-perm --legacy-peer-deps
+ - npm test
+ volumes:
+ - cache-npm:/root/.npm
diff --git a/sao/CHANGELOG b/sao/CHANGELOG
new file mode 100644
index 0000000000..2171750305
--- /dev/null
+++ b/sao/CHANGELOG
@@ -0,0 +1,228 @@
+Version 6.6.0 - 2022-10-31
+--------------------------
+* Bug fixes (see mercurial logs for details)
+* Support authentication services
+* Check server version
+
+Version 6.4.0 - 2022-05-02
+* Bug fixes (see mercurial logs for details)
+* Support notification message
+* Allow Reference to be edited from tree view
+* Set ECMAScript version to 6
+* Manage optional column
+* Display the number of selected records
+* Humanize the count result
+* Add limit to search_count
+* Call view_get for board view
+* Limit board action domain to active id and ids
+* Manage creatable attribute of view
+
+Version 6.2.0 - 2021-11-01
+* Bug fixes (see mercurial logs for details)
+* Support grouping attribute
+* Add expander on tree to fold or unfold selected rows
+* Support monetary and symbol field attributes
+* Support digits from relation field
+* Add accesskey to widgets and buttons
+* Support Binary field in CSV import/export
+
+Version 6.0.0 - 2021-05-03
+* Bug fixes (see mercurial logs for details)
+* Use appropriate types for email and url widgets
+* Add completion on xxx2Many and Dict
+* Add attachment preview
+* Support document widget
+* Support icon of type URL
+* Allow sending email with existing attachments
+* Add paths and model context to action data
+* Add indentation in CSV export of tree
+* Manage which records to use for actions
+* Add drag and drop on CSV export and import
+* Remove tempusdominus dependency
+* Handle device cookie
+* Add breadcrumb as title of window form
+* Manage help for each selection
+* Display revision on dialog
+* Support empty value for timedelta converter
+* Unify PYSON string format
+
+Version 5.8.0 - 2020-11-02
+* Bug fixes (see mercurial logs for details)
+* Format timedelta in CSV export
+* Manage symbol widget
+* Fallback to model name as title
+* Set treeview footer sticky on bottom
+* Add get, in_ and contains methods to PYSON
+* Manage deletable and writable state
+* Support e-mail template
+* Always encode CSV export in UTF-8
+* Use tempusdominus and Popper for date time picker
+* Support PYSON comparison of date and datetime
+* Customize bootstrap default style
+* Set field's name as input's name attribute
+* Position copied records based on order
+* Sanitize translated RichtText fields content (issue9453)
+* Allow configuration of default colors for graph and calendar
+* Sanitize RichtText fields content (issue9405)
+* Escape external string (issue9394)
+* Keep context in sessionStorage
+* Use existing context for get_preferences
+* Escape external strings (issue9351)
+* Add context to export URL
+* Allow changes to editable tree checkboxes without first selecting the line
+
+Version 5.6.0 - 2020-05-04
+* Bug fixes (see mercurial logs for details)
+* Support link button on form
+* Add URL for the current export
+* Add option to export listed records
+* Set treeview header sticky on top
+* Add noreferrer noopener to external URL (issue9089)
+* Manage readonly dates in calendar view
+* Manage editable on calendar view
+* Manage named separator as label
+* Add MultiSelection entry to Dict field
+* Position new record based on order
+* Reset display_size of TreeView when group is cleared or changed
+* Allow relation field to be selected in CSV export
+* Hide empty cell on small screen
+* Support validate attribute of wizard's Button
+* Add infinite scroll
+
+Version 5.4.0 - 2019-11-04
+* Bug fixes (see mercurial logs for details)
+* Support visual context on tree view
+* Support multiselection field
+* Support dot notation on PYSON Eval
+* Manage sequence
+* Add drag and drop on tree views
+* Support expand on column
+* Set minimal width for columns
+* Order Dict keys by sequence
+* Support relation fields in domain parser
+* Add view modified
+* Add Dict widget for tree view
+
+Version 5.2.0 - 2019-05-06
+* Bug fixes (see mercurial logs for details)
+* Add domain inversion for reference fields
+* Add list-form view
+* Support HTML widget
+* Use locale format for data export
+* Add day view on calendar
+* Add CSV exports into print toolbar
+* Display unread and total of notes
+* Use resources method
+* Rename roundup.url configuration to bug.url
+* Use separate XML parser in Views
+* Add range selection with Shift-click
+* Use between numbers in filter box
+* Fill 'to' with 'from' value on filter box
+* Add tab domain in URL
+* Use properties
+* Allow sao classes to use javascript properties
+* Improve layout of CSV import/export
+* Add support for height and width on notebook
+* Use tab key for tab navigation
+* Use record and field properties of widget instead of method arguments
+* Reduce offset when no search result
+* Add support for plugins
+* Add support for expand, height and width attributes
+* Add drag & drop support on attachment button
+
+Version 5.0.0 - 2018-10-01
+* Bug fixes (see mercurial logs for details)
+* Prevent similar tab
+* Remove dialog for input file
+* Use dropdown for attachment
+* Manage icons in input
+* Support RTL language direction
+* Apply factor on domain parser
+* Use tab name in CSV Export/Import
+* Add bus management
+* Load custom CSS and Javascript
+* New icons
+* Support timestamp field
+* Validate dictionary items
+* Add (i)like support to domain inversion
+* Improve loading strategy by using views
+* Add support of width attribute on tree view
+* Use non conflicting keyboard shortcuts
+* Use the context to get the suffix of window name
+* Call on_change methods after setting default dtstart on calendar view
+* Allow to open in new tab Many2One and Reference with CTRL key
+* Store session in browser storage
+* Increase the space available for tab list
+* Allow to toggle menu on large screen
+* Manage URL and history
+
+Version 4.8.0 - 2018-04-23
+* Bug fixes (see mercurial logs for details)
+* Manage active field on search widget
+* Add position and length on list view
+* Reset record to its original state when discarding the popup window
+* Add support of expand attribute on group tag
+* Add the context model name in the screen context
+* Add sum of records on list view
+* Add shortcuts to Date and DateTime widgets
+* Use limit to expand tree
+* Use spellcheck and lang attributes for textbox widget
+* Support icon on page
+* Add keyword attribute to button tag
+* Support field name on image tag
+* Use input number and toLocaleString for numeric fields
+* Show related record names for all windows
+* Allow to edit Many2One from tree view
+* Use translated values when exporting Reference and Selection fields
+
+Version 4.6.0 - 2017-10-30
+* Bug fixes (see mercurial logs for details)
+* Allow to export model and record name of Reference fields
+* Re-position buttons on Binary/Image widget
+* Set focus on first visible input when modal is shown
+* Improve treeview headers
+* Add keyboard shortcuts
+* Update states of both toolbar and menu
+* Improve toolbar order
+* Use login details in title
+
+Version 4.4.0 - 2017-05-01
+* Bug fixes (see mercurial logs for details)
+* Manage help attribute on tree views
+* Manage color attribute on graph view
+* Add support for size on Many2Many
+* Allow to show plain text in password field
+
+Version 4.2.0 - 2016-11-28
+* Bug fixes (see mercurial logs for details)
+* Add PYSON Widget
+* Add CSV Import/Export
+* Manage translated field
+* Add favorites menu
+* Show records names in wizard title
+* Add support for datetime_field to Many2One, Reference
+* Add calendar view
+* Move info-bar to the top
+* Add noeval to PYSONDecoder
+* Add support for pyson_order on action window
+* Make datetimepicker locale aware
+* Restore tab default order when no manual change
+* Add support for column sorting
+* Manage confirm attribute on buttons
+* Call autocompletion when setting record value
+* Limit readonly state for xxx2Many
+* Simplify login with single database
+* Show records names in relate window title
+* Add support for count on Action Window Domains
+* Manage custom login process
+* Add erase on Many2One
+* Re-position icons on Many2One widget
+
+Version 4.0.0 - 2016-05-02
+* Bug fixes (see mercurial logs for details)
+* Timedelta uses 30 days for month
+* Manage context model of ir.action.act_window
+* Add Note
+
+Version 3.8.0 - 2015-11-02
+* Initial release
diff --git a/sao/COPYRIGHT b/sao/COPYRIGHT
new file mode 100644
index 0000000000..ae353044d7
--- /dev/null
+++ b/sao/COPYRIGHT
@@ -0,0 +1,21 @@
+Copyright (C) 2012-2022 Nicolas Évrard.
+Copyright (C) 2012-2022 Cédric Krier.
+Copyright (C) 2012-2014 Bertrand Chenal.
+Copyright (C) 2012-2022 B2CK SPRL.
+Copyright (C) 2019 Jitbit.
+Copyright (C) 2013 Thomas Park
+Copyright (C) 2020-2021 Maxime Richez
+Copyright (C) 2020-2021 SALUC SA
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
diff --git a/sao/Gruntfile.js b/sao/Gruntfile.js
new file mode 100644
index 0000000000..b4b32fdbe2
--- /dev/null
+++ b/sao/Gruntfile.js
@@ -0,0 +1,183 @@
+module.exports = function(grunt) {
+
+ var _ = grunt.util._;
+ var locales = ["bg", "ca", "cs", "de", "es", "es_419", "fr", "fa", "hu",
+ "it", "lo", "lt", "nl", "pl", "pt", "ru", "sl", "zh_CN"];
+ var jsfiles = [
+ 'src/sao.js',
+ 'src/rpc.js',
+ 'src/pyson.js',
+ 'src/session.js',
+ 'src/common.js',
+ 'src/model.js',
+ 'src/tab.js',
+ 'src/screen.js',
+ 'src/view.js',
+ 'src/view/form.js',
+ 'src/view/tree.js',
+ 'src/view/graph.js',
+ 'src/view/calendar.js',
+ 'src/view/list_form.js',
+ 'src/action.js',
+ 'src/window.js',
+ 'src/wizard.js',
+ 'src/board.js',
+ 'src/bus.js',
+ 'src/plugins.js',
+ 'src/html_sanitizer.js'
+ ];
+ var less_paths = [
+ 'src',
+ 'bower_components',
+ 'bower_components/bootstrap',
+ 'bower_components/bootstrap/less',
+ 'bower_components/bootstrap-rtl-ondemand/less',
+ ];
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ shell: {
+ options: {
+ failOnError: true
+ },
+ msgmerge: {
+ command: _.map(locales, function(locale) {
+ var po = "locale/" + locale + ".po";
+ return (
+ "msgmerge " +
+ "-U " + po + " " +
+ "--no-location " +
+ "locale/messages.pot;");
+ }).join("")
+ },
+ xgettext: {
+ command: (
+ "xgettext " +
+ "--language=JavaScript --from-code=UTF-8 " +
+ "--omit-header --no-location " +
+ "-o locale/messages.pot " +
+ jsfiles.join(" "))
+ }
+ },
+ po2json: {
+ options: {
+ format: 'raw'
+ },
+ all: {
+ src: ['locale/*.po'],
+ dest: 'locale/'
+ }
+ },
+ concat: {
+ dist: {
+ src: jsfiles,
+ dest: 'dist/<%= pkg.name %>.js'
+ }
+ },
+ jshint: {
+ dist: {
+ options: {
+ jshintrc: 'src/.jshintrc'
+ },
+ src: ['dist/<%= pkg.name %>.js']
+ },
+ grunt: {
+ src: ['Gruntfile.js']
+ },
+ tests: {
+ options: {
+ jshintrc: 'tests/.jshintrc'
+ },
+ src: ['tests/*.js']
+ }
+ },
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %>-<%= pkg.version %> | GPL-3\n' +
+ 'This file is part of Tryton. ' +
+ 'The COPYRIGHT file at the top level of\n' +
+ 'this repository contains the full copyright notices ' +
+ 'and license terms. */\n'
+ },
+ dist: {
+ src: 'dist/<%= pkg.name %>.js',
+ dest: 'dist/<%= pkg.name %>.min.js'
+ }
+ },
+ less: {
+ dev: {
+ options: {
+ paths: less_paths,
+ },
+ files: {
+ 'dist/<%= pkg.name %>.css': 'src/sao.less'
+ }
+ },
+ 'default': {
+ options: {
+ paths: less_paths,
+ yuicompress: true
+ },
+ files: {
+ 'dist/<%= pkg.name %>.min.css': 'src/sao.less'
+ }
+ }
+ },
+ watch: {
+ scripts: {
+ files: ['src/**/*.js'],
+ tasks: ['concat', 'jshint']
+ },
+ styles: {
+ files: ['src/*.less'],
+ tasks: 'less:dev'
+ }
+ },
+ qunit: {
+ options: {
+ timeout: 300000,
+ puppeteer: {
+ headless: true,
+ args: [
+ '--no-sandbox',
+ ],
+ env: {
+ TZ: 'UTC',
+ },
+ },
+ },
+ all: ['tests/*.html']
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-less');
+ grunt.loadNpmTasks('grunt-po2json');
+
+ grunt.registerTask('default', 'Build for production.', function() {
+ grunt.task.run(['concat', 'jshint', 'uglify', 'less', 'po2json']);
+ });
+ grunt.registerTask('dev', 'Build for development.', function() {
+ grunt.task.run(['concat', 'jshint', 'less:dev']);
+ });
+ grunt.registerTask('devwatch', 'Watch development', function() {
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.task.run(['watch']);
+ });
+ grunt.registerTask('msgmerge', 'Update locale messages.', function() {
+ grunt.loadNpmTasks('grunt-shell');
+ grunt.task.run(['shell:msgmerge']);
+ });
+ grunt.registerTask('xgettext', ' Extracts translatable messages', function() {
+ grunt.loadNpmTasks('grunt-shell');
+ grunt.task.run(['shell:xgettext']);
+ });
+ grunt.registerTask('test', 'Run tests', function() {
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+ grunt.task.run(['concat', 'jshint', 'less:dev', 'qunit']);
+ });
+
+};
diff --git a/sao/LICENSE b/sao/LICENSE
new file mode 100644
index 0000000000..94a9ed024d
--- /dev/null
+++ b/sao/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/sao/README.md b/sao/README.md
new file mode 100644
index 0000000000..c4bb4865ab
--- /dev/null
+++ b/sao/README.md
@@ -0,0 +1,29 @@
+sao
+===
+
+Prerequisites
+-------------
+
+ * Node.js 0.8.0 or later (http://nodejs.org/)
+
+Installation
+------------
+
+Once you've downloaded and unpacked the sao source release, enter the directory
+where the archive was unpacked, and run:
+
+ $ npm install --production --legacy-peer-deps
+
+Development
+...........
+
+For development, you have to run instead:
+
+ $ npm install --legacy-peer-deps
+ $ grunt dev
+
+Setup
+-----
+
+Note that the entry `root` in the section `[web]` of `trytond.conf` must be set
+to the directory where the package was unpacked.
diff --git a/sao/bower.json b/sao/bower.json
new file mode 100644
index 0000000000..4933c615cc
--- /dev/null
+++ b/sao/bower.json
@@ -0,0 +1,32 @@
+{
+ "name": "sao",
+ "version": "0.0.0",
+ "authors": [
+ "Tryton"
+ ],
+ "description": "Web client for Tryton",
+ "license": "GPL",
+ "homepage": "http://www.tryton.org/",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ],
+ "dependencies": {
+ "jquery": "^3",
+ "bootstrap": "^3.3.7",
+ "moment": "^2.10",
+ "gettext.js": "^0.7",
+ "c3": "^0.7",
+ "papaparse": "^5.0",
+ "fullcalendar": "^3.10.2",
+ "mousetrap": "^1.6",
+ "bootstrap-rtl-ondemand": "^3.3.4-ondemand",
+ "Sortable": "sortablejs#^1.8.4"
+ },
+ "devDependencies": {
+ "qunit": "^1.18"
+ }
+}
diff --git a/sao/images/LICENSE b/sao/images/LICENSE
new file mode 100644
index 0000000000..7a4a3ea242
--- /dev/null
+++ b/sao/images/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/sao/images/tryton-add.svg b/sao/images/tryton-add.svg
new file mode 100644
index 0000000000..08cc2308c8
--- /dev/null
+++ b/sao/images/tryton-add.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-archive.svg b/sao/images/tryton-archive.svg
new file mode 100644
index 0000000000..a5d45991b7
--- /dev/null
+++ b/sao/images/tryton-archive.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-arrow-down.svg b/sao/images/tryton-arrow-down.svg
new file mode 100644
index 0000000000..c1204da1cd
--- /dev/null
+++ b/sao/images/tryton-arrow-down.svg
@@ -0,0 +1,7 @@
+
+
+
diff --git a/sao/images/tryton-arrow-left.svg b/sao/images/tryton-arrow-left.svg
new file mode 100644
index 0000000000..e084870266
--- /dev/null
+++ b/sao/images/tryton-arrow-left.svg
@@ -0,0 +1,7 @@
+
+
+
diff --git a/sao/images/tryton-arrow-right.svg b/sao/images/tryton-arrow-right.svg
new file mode 100644
index 0000000000..0f56374381
--- /dev/null
+++ b/sao/images/tryton-arrow-right.svg
@@ -0,0 +1,7 @@
+
+
+
diff --git a/sao/images/tryton-arrow-up.svg b/sao/images/tryton-arrow-up.svg
new file mode 100644
index 0000000000..b3d21d3434
--- /dev/null
+++ b/sao/images/tryton-arrow-up.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-attach.svg b/sao/images/tryton-attach.svg
new file mode 100644
index 0000000000..23979032c2
--- /dev/null
+++ b/sao/images/tryton-attach.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-back.svg b/sao/images/tryton-back.svg
new file mode 100644
index 0000000000..7ff9f9c11a
--- /dev/null
+++ b/sao/images/tryton-back.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-bookmark-border.svg b/sao/images/tryton-bookmark-border.svg
new file mode 100644
index 0000000000..abcd01628a
--- /dev/null
+++ b/sao/images/tryton-bookmark-border.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-bookmark.svg b/sao/images/tryton-bookmark.svg
new file mode 100644
index 0000000000..8b5a0a5539
--- /dev/null
+++ b/sao/images/tryton-bookmark.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-bookmarks.svg b/sao/images/tryton-bookmarks.svg
new file mode 100644
index 0000000000..79839be669
--- /dev/null
+++ b/sao/images/tryton-bookmarks.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-cancel.svg b/sao/images/tryton-cancel.svg
new file mode 100644
index 0000000000..b2dac49d45
--- /dev/null
+++ b/sao/images/tryton-cancel.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-clear.svg b/sao/images/tryton-clear.svg
new file mode 100644
index 0000000000..289d406e75
--- /dev/null
+++ b/sao/images/tryton-clear.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-close.svg b/sao/images/tryton-close.svg
new file mode 100644
index 0000000000..289d406e75
--- /dev/null
+++ b/sao/images/tryton-close.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-copy.svg b/sao/images/tryton-copy.svg
new file mode 100644
index 0000000000..dbd8b0cfc2
--- /dev/null
+++ b/sao/images/tryton-copy.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-create.svg b/sao/images/tryton-create.svg
new file mode 100644
index 0000000000..f1b885f1c2
--- /dev/null
+++ b/sao/images/tryton-create.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-date.svg b/sao/images/tryton-date.svg
new file mode 100644
index 0000000000..1aab65c4e6
--- /dev/null
+++ b/sao/images/tryton-date.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-delete.svg b/sao/images/tryton-delete.svg
new file mode 100644
index 0000000000..9308f4df56
--- /dev/null
+++ b/sao/images/tryton-delete.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-drag.svg b/sao/images/tryton-drag.svg
new file mode 100644
index 0000000000..b8d36b16f0
--- /dev/null
+++ b/sao/images/tryton-drag.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sao/images/tryton-email.svg b/sao/images/tryton-email.svg
new file mode 100644
index 0000000000..e1560c6374
--- /dev/null
+++ b/sao/images/tryton-email.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-error.svg b/sao/images/tryton-error.svg
new file mode 100644
index 0000000000..19c6c83163
--- /dev/null
+++ b/sao/images/tryton-error.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-exit.svg b/sao/images/tryton-exit.svg
new file mode 100644
index 0000000000..dbd95bfd9c
--- /dev/null
+++ b/sao/images/tryton-exit.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-export.svg b/sao/images/tryton-export.svg
new file mode 100644
index 0000000000..41628798b2
--- /dev/null
+++ b/sao/images/tryton-export.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-filter.svg b/sao/images/tryton-filter.svg
new file mode 100644
index 0000000000..f0a2e4f31f
--- /dev/null
+++ b/sao/images/tryton-filter.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-align-center.svg b/sao/images/tryton-format-align-center.svg
new file mode 100644
index 0000000000..75873e9185
--- /dev/null
+++ b/sao/images/tryton-format-align-center.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-align-justify.svg b/sao/images/tryton-format-align-justify.svg
new file mode 100644
index 0000000000..288727edfc
--- /dev/null
+++ b/sao/images/tryton-format-align-justify.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-align-left.svg b/sao/images/tryton-format-align-left.svg
new file mode 100644
index 0000000000..97645a3295
--- /dev/null
+++ b/sao/images/tryton-format-align-left.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-align-right.svg b/sao/images/tryton-format-align-right.svg
new file mode 100644
index 0000000000..c073397046
--- /dev/null
+++ b/sao/images/tryton-format-align-right.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-bold.svg b/sao/images/tryton-format-bold.svg
new file mode 100644
index 0000000000..ca6b4b63ce
--- /dev/null
+++ b/sao/images/tryton-format-bold.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-color-text.svg b/sao/images/tryton-format-color-text.svg
new file mode 100644
index 0000000000..4bda2cb107
--- /dev/null
+++ b/sao/images/tryton-format-color-text.svg
@@ -0,0 +1,5 @@
+
diff --git a/sao/images/tryton-format-italic.svg b/sao/images/tryton-format-italic.svg
new file mode 100644
index 0000000000..fa65b97d56
--- /dev/null
+++ b/sao/images/tryton-format-italic.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-format-underline.svg b/sao/images/tryton-format-underline.svg
new file mode 100644
index 0000000000..8615187f44
--- /dev/null
+++ b/sao/images/tryton-format-underline.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-forward.svg b/sao/images/tryton-forward.svg
new file mode 100644
index 0000000000..2ca445703a
--- /dev/null
+++ b/sao/images/tryton-forward.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-history.svg b/sao/images/tryton-history.svg
new file mode 100644
index 0000000000..05f201a445
--- /dev/null
+++ b/sao/images/tryton-history.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-icon.png b/sao/images/tryton-icon.png
new file mode 100644
index 0000000000..f26821a927
Binary files /dev/null and b/sao/images/tryton-icon.png differ
diff --git a/sao/images/tryton-import.svg b/sao/images/tryton-import.svg
new file mode 100644
index 0000000000..f093479f99
--- /dev/null
+++ b/sao/images/tryton-import.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-info.svg b/sao/images/tryton-info.svg
new file mode 100644
index 0000000000..5b31235b88
--- /dev/null
+++ b/sao/images/tryton-info.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-launch.svg b/sao/images/tryton-launch.svg
new file mode 100644
index 0000000000..7479e92628
--- /dev/null
+++ b/sao/images/tryton-launch.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-link.svg b/sao/images/tryton-link.svg
new file mode 100644
index 0000000000..08d13d80da
--- /dev/null
+++ b/sao/images/tryton-link.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-log.svg b/sao/images/tryton-log.svg
new file mode 100644
index 0000000000..3bcd81e84c
--- /dev/null
+++ b/sao/images/tryton-log.svg
@@ -0,0 +1,5 @@
+
diff --git a/sao/images/tryton-menu.svg b/sao/images/tryton-menu.svg
new file mode 100644
index 0000000000..37e9cfb552
--- /dev/null
+++ b/sao/images/tryton-menu.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-note.svg b/sao/images/tryton-note.svg
new file mode 100644
index 0000000000..a10719ede4
--- /dev/null
+++ b/sao/images/tryton-note.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-ok.svg b/sao/images/tryton-ok.svg
new file mode 100644
index 0000000000..535ff0390a
--- /dev/null
+++ b/sao/images/tryton-ok.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-open.svg b/sao/images/tryton-open.svg
new file mode 100644
index 0000000000..f33176ea28
--- /dev/null
+++ b/sao/images/tryton-open.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-print.svg b/sao/images/tryton-print.svg
new file mode 100644
index 0000000000..7ffc5851fd
--- /dev/null
+++ b/sao/images/tryton-print.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-public.svg b/sao/images/tryton-public.svg
new file mode 100644
index 0000000000..24d6e503ed
--- /dev/null
+++ b/sao/images/tryton-public.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-question.svg b/sao/images/tryton-question.svg
new file mode 100644
index 0000000000..ac7a46002d
--- /dev/null
+++ b/sao/images/tryton-question.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sao/images/tryton-refresh.svg b/sao/images/tryton-refresh.svg
new file mode 100644
index 0000000000..e9618ab4f9
--- /dev/null
+++ b/sao/images/tryton-refresh.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-remove.svg b/sao/images/tryton-remove.svg
new file mode 100644
index 0000000000..ab7f7ba90e
--- /dev/null
+++ b/sao/images/tryton-remove.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-save.svg b/sao/images/tryton-save.svg
new file mode 100644
index 0000000000..3754a0cf0d
--- /dev/null
+++ b/sao/images/tryton-save.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-search.svg b/sao/images/tryton-search.svg
new file mode 100644
index 0000000000..6859898f79
--- /dev/null
+++ b/sao/images/tryton-search.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-send.svg b/sao/images/tryton-send.svg
new file mode 100644
index 0000000000..033ab7a11a
--- /dev/null
+++ b/sao/images/tryton-send.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sao/images/tryton-star-border.svg b/sao/images/tryton-star-border.svg
new file mode 100644
index 0000000000..21862f2cd7
--- /dev/null
+++ b/sao/images/tryton-star-border.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-star.svg b/sao/images/tryton-star.svg
new file mode 100644
index 0000000000..2b5e942ef8
--- /dev/null
+++ b/sao/images/tryton-star.svg
@@ -0,0 +1,5 @@
+
diff --git a/sao/images/tryton-switch.svg b/sao/images/tryton-switch.svg
new file mode 100644
index 0000000000..cc607585b9
--- /dev/null
+++ b/sao/images/tryton-switch.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-translate.svg b/sao/images/tryton-translate.svg
new file mode 100644
index 0000000000..e0ed1220a3
--- /dev/null
+++ b/sao/images/tryton-translate.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-unarchive.svg b/sao/images/tryton-unarchive.svg
new file mode 100644
index 0000000000..765b534c0a
--- /dev/null
+++ b/sao/images/tryton-unarchive.svg
@@ -0,0 +1,9 @@
+
diff --git a/sao/images/tryton-undo.svg b/sao/images/tryton-undo.svg
new file mode 100644
index 0000000000..6763ef40d0
--- /dev/null
+++ b/sao/images/tryton-undo.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/images/tryton-unfold-less.svg b/sao/images/tryton-unfold-less.svg
new file mode 100644
index 0000000000..bdbe802755
--- /dev/null
+++ b/sao/images/tryton-unfold-less.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sao/images/tryton-unfold-more.svg b/sao/images/tryton-unfold-more.svg
new file mode 100644
index 0000000000..fd70a17d43
--- /dev/null
+++ b/sao/images/tryton-unfold-more.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sao/images/tryton-warning.svg b/sao/images/tryton-warning.svg
new file mode 100644
index 0000000000..4a0fa05996
--- /dev/null
+++ b/sao/images/tryton-warning.svg
@@ -0,0 +1,4 @@
+
diff --git a/sao/index.html b/sao/index.html
new file mode 100644
index 0000000000..302f961cf4
--- /dev/null
+++ b/sao/index.html
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+ Tryton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sao/locale/bg.po b/sao/locale/bg.po
new file mode 100644
index 0000000000..5d15f43030
--- /dev/null
+++ b/sao/locale/bg.po
@@ -0,0 +1,712 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+#, fuzzy
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+#, fuzzy
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ""
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/ca.po b/sao/locale/ca.po
new file mode 100644
index 0000000000..3517a3eb49
--- /dev/null
+++ b/sao/locale/ca.po
@@ -0,0 +1,712 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Esteu segur que voleu sortir?"
+
+msgid "Incompatible version of the server."
+msgstr "El client no és compatible amb la versió del servidor."
+
+msgid "Version mismatch"
+msgstr "Versió incompatible"
+
+msgid "Could not connect to the server."
+msgstr "No s'ha pogut connectar amb el servidor."
+
+msgid "Connection error"
+msgstr "Error de connexió"
+
+msgid "Favorites"
+msgstr "Preferits"
+
+msgid "Manage..."
+msgstr "Gestiona..."
+
+msgid "Logout"
+msgstr "Sortir"
+
+msgid "Action"
+msgstr "Acció"
+
+msgid "New"
+msgstr "Nou"
+
+msgid "Save"
+msgstr "Desa"
+
+msgid "Switch"
+msgstr "Canvia la vista"
+
+msgid "Reload/Undo"
+msgstr "Recarrega/Desfés"
+
+msgid "Duplicate"
+msgstr "Duplica"
+
+msgid "Delete"
+msgstr "Elimina"
+
+msgid "Previous"
+msgstr "Anterior"
+
+msgid "Next"
+msgstr "Següent"
+
+msgid "Search"
+msgstr "Cerca"
+
+msgid "Close Tab"
+msgstr "Tanca pestanya"
+
+msgid "Attachment"
+msgstr "Adjunt"
+
+msgid "Note"
+msgstr "Nota"
+
+msgid "Relate"
+msgstr "Relacionat"
+
+msgid "Print"
+msgstr "Imprimeix"
+
+msgid "E-Mail"
+msgstr "Correu electrònic"
+
+msgid "Previous tab"
+msgstr "Pestanya anterior"
+
+msgid "Next tab"
+msgstr "Pestanya següent"
+
+msgid "Global search"
+msgstr "Cerca global"
+
+msgid "Show this help"
+msgstr "Mostra aquesta ajuda"
+
+msgid "Show/Hide access keys"
+msgstr "Mostra/Amaga les tecles ràpides"
+
+msgid "Help"
+msgstr "Ajuda"
+
+msgid "Close"
+msgstr "Tanca"
+
+msgid "Documentation..."
+msgstr "Documentació..."
+
+msgid "Keyboard shortcuts"
+msgstr "Dreceres de teclat"
+
+msgid "Global shortcuts"
+msgstr "Dreceres globals"
+
+msgid "Tab shortcuts"
+msgstr "Dreceres de la pestanya"
+
+msgid "Unable to reach the server."
+msgstr "No s'ha pogut connectar amb el servidor."
+
+msgid "Too many requests. Try again later."
+msgstr "Massa peticions. Proveu-ho de nou més tard."
+
+msgid "Login"
+msgstr "Accedeix"
+
+msgid "User name"
+msgstr "Nom d'usuari"
+
+msgid "Database"
+msgstr "Base de dades"
+
+msgid "Login with"
+msgstr "Identificar-se amb"
+
+msgid "Not found."
+msgstr "No s'han trobat."
+
+msgid "Your selection:"
+msgstr "La vostra selecció:"
+
+msgid "Cancel"
+msgstr "Cancel·la"
+
+msgid "OK"
+msgstr "D'acord"
+
+msgid "Y"
+msgstr "A"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "S"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Per: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "a"
+
+msgid "Yes"
+msgstr "Si"
+
+msgid "True"
+msgstr "Verdader"
+
+msgid "t"
+msgstr "v"
+
+msgid "False"
+msgstr "Fals"
+
+msgid "Message: "
+msgstr "Missatge: "
+
+msgid "Warning: "
+msgstr "Avs: "
+
+msgid "Always ignore this warning."
+msgstr "Ignora sempre aquest advertiment."
+
+msgid "Do you want to proceed?"
+msgstr "Voleu continuar?"
+
+msgid "No"
+msgstr "No"
+
+msgid "Confirmation: "
+msgstr "Confirmaci: "
+
+msgid "Concurrency Exception"
+msgstr "Excepció de concurrència"
+
+msgid "Write Concurrency Warning: "
+msgstr "Avís de concurrència d'escriptura: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Aquest registre ha estat modificat mentre l'editàveu."
+
+msgid "Choose:"
+msgstr "Trieu:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Cancel·la\" per no desar;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Compara\" per veure la versi modificada;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Desa de totes formes\" per desar els vostres canvis."
+
+msgid "Compare"
+msgstr "Compara"
+
+msgid "Compare: %1"
+msgstr "Compara: %1"
+
+msgid "Write Anyway"
+msgstr "Desa de totes formes"
+
+msgid "Application Error"
+msgstr "Error d'aplicació"
+
+msgid "Report Bug"
+msgstr "Informa de l'error"
+
+msgid "Processing"
+msgstr "Processant"
+
+msgid "Search..."
+msgstr "Cerca..."
+
+msgid "Create..."
+msgstr "Crea..."
+
+msgid "Download"
+msgstr "Baixa"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Negreta"
+
+msgid "Italic"
+msgstr "Cursiva"
+
+msgid "Underline"
+msgstr "Subratllat"
+
+msgid "Font"
+msgstr "Tipus de lletra"
+
+msgid "Size"
+msgstr "Mida"
+
+msgid "Justify Right"
+msgstr "Justificar a la dreta"
+
+msgid "Justify Left"
+msgstr "Justificar a l'esquerra"
+
+msgid "Justify Center"
+msgstr "Justificar al centre"
+
+msgid "Justify Full"
+msgstr "Justificar per complet"
+
+msgid "Switch view"
+msgstr "Canvia la vista"
+
+msgid "Previous Record"
+msgstr "Registre anterior"
+
+msgid "Next Record"
+msgstr "Registre següent"
+
+msgid "Create a new record"
+msgstr "Crea un nou registre"
+
+msgid "Save this record"
+msgstr "Desa aquest registre"
+
+msgid "Reload"
+msgstr "Recarrega"
+
+msgid "View Logs..."
+msgstr "Veure registre..."
+
+msgid "Show revisions..."
+msgstr "Mostra revisions..."
+
+msgid "Add an attachment to the record"
+msgstr "Afegeix un adjunt al registre"
+
+msgid "Add a note to the record"
+msgstr "Afegeix una nota al registre"
+
+msgid "E-Mail..."
+msgstr "Correu electrònic..."
+
+msgid "Send an e-mail using the record"
+msgstr "Envia un correu electrònic utilitzant el registre"
+
+msgid "Export"
+msgstr "Exporta"
+
+msgid "Import"
+msgstr "Importa"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"L'acció seleccionada requereix tancar totes les pestanyes.\n"
+"Voleu continuar?"
+
+msgid "Launch action"
+msgstr "Executa acció"
+
+msgid "Open related records"
+msgstr "Obre registres relacionats"
+
+msgid "Print report"
+msgstr "Imprimeix informe"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Aquest registre ha estat modificat.\n"
+"Voleu desar-lo?"
+
+msgid "Record saved."
+msgstr "Registre desat."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Està treballant amb un registre(s) duplicat."
+
+msgid "Are you sure to remove this record?"
+msgstr "Esteu segur que voleu eliminar aquest registre?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Esteu segur que voleu eliminar aquests registres?"
+
+msgid "Records removed."
+msgstr "Registres eliminats."
+
+msgid "Records not removed."
+msgstr "Els registres no s'han eliminat."
+
+msgid "You have to select one record."
+msgstr "Ha de seleccionar un registre."
+
+msgid "ID:"
+msgstr "Identificador:"
+
+msgid "Created by:"
+msgstr "Creat per:"
+
+msgid "Created at:"
+msgstr "Creat el:"
+
+msgid "Edited by:"
+msgstr "Editat per:"
+
+msgid "Edited at:"
+msgstr "Editat el:"
+
+msgid "Model: "
+msgstr "Model: "
+
+msgid "Add..."
+msgstr "Afegeix..."
+
+msgid "Preview"
+msgstr "Previsualitza"
+
+msgid "Template"
+msgstr "Plantilla"
+
+msgid "Attachment (%1)"
+msgstr "Adjunts (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Nota (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtres"
+
+msgid "Clear Search"
+msgstr "Netejar la cerca"
+
+msgid "Bookmarks"
+msgstr "Cerques preferides"
+
+msgid "Remove this bookmark"
+msgstr "Elimina de les cerques preferides"
+
+msgid "Bookmark this filter"
+msgstr "Desa com a cerca preferida"
+
+msgid "Bookmark Name:"
+msgstr "Nom de la cerca preferida:"
+
+msgid "Show active records"
+msgstr "Mostra registres actius"
+
+msgid "Show inactive records"
+msgstr "Mostra registres inactius"
+
+msgid "Find"
+msgstr "Cerca"
+
+msgid "From"
+msgstr "De"
+
+msgid "To"
+msgstr "A"
+
+msgid "Open the calendar"
+msgstr "Obre el calendari"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Creat per"
+
+msgid "Created at"
+msgstr "Creat el"
+
+msgid "Modified by"
+msgstr "Modificat per"
+
+msgid "Modified at"
+msgstr "Modificat el"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" s obligatori."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" no és vàlid segons el seu domini."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Els valors de \"%1\" no són vàlids."
+
+msgid "Pre-validation"
+msgstr "Prevalidació"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Tradueix"
+
+msgid "Edit"
+msgstr "Edita"
+
+msgid "Fuzzy"
+msgstr "Dubtosa"
+
+msgid "You need to save the record before adding translations."
+msgstr "Heu de desar el registre abans d'afegir traduccions."
+
+msgid "No other language available."
+msgstr "No hi ha cap altre idioma disponible."
+
+msgid "Show"
+msgstr "Mostra"
+
+msgid "Hide"
+msgstr "Amaga"
+
+msgid "Open the record"
+msgstr "Obre el registre"
+
+msgid "Clear the field"
+msgstr "Buida el camp"
+
+msgid "Search a record"
+msgstr "Cerca un registre"
+
+msgid "Add"
+msgstr "Afegeix"
+
+msgid "Remove"
+msgstr "Elimina"
+
+msgid "Open"
+msgstr "Obre"
+
+msgid "Undelete"
+msgstr "Recupera"
+
+msgid "Save As"
+msgstr "Anomena i desa"
+
+msgid "Save As..."
+msgstr "Desa com..."
+
+msgid "Select"
+msgstr "Selecciona"
+
+msgid "Select..."
+msgstr "Selecciona..."
+
+msgid "Clear"
+msgstr "Neteja"
+
+msgid "Open..."
+msgstr "Obre..."
+
+msgid "Choose a language"
+msgstr "Escull un idioma"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr "Personalitza"
+
+msgid "More"
+msgstr "Més"
+
+msgid "Today"
+msgstr "Avui"
+
+msgid "Month"
+msgstr "Mes"
+
+msgid "Week"
+msgstr "Setmana"
+
+msgid "Day"
+msgstr "Dia"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Seleccioneu la vostra acció"
+
+msgid "No action defined."
+msgstr "No s'ha definit cap acció."
+
+msgid "Attachments (%1)"
+msgstr "Adjunts (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notes (%1)"
+
+msgid "Search %1"
+msgstr "Cerca %1"
+
+msgid "Revision"
+msgstr "Revisió"
+
+msgid "All Fields"
+msgstr "Tots els camps"
+
+msgid "Fields Selected"
+msgstr "Camps seleccionats"
+
+msgid "CSV Parameters"
+msgstr "Paràmetres CSV"
+
+msgid "Delimiter:"
+msgstr "Separador:"
+
+msgid "Quote Char:"
+msgstr "Delimitador de text:"
+
+msgid "CSV Import: %1"
+msgstr "Importació CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Detecta automàticament"
+
+msgid "File to Import"
+msgstr "Fitxer a importar"
+
+msgid "Encoding:"
+msgstr "Codificació:"
+
+msgid "Lines to Skip:"
+msgstr "Línies a ometre:"
+
+msgid "You must select an import file first."
+msgstr "Primer heu de seleccionar un fitxer a importar."
+
+msgid "Detection failed"
+msgstr "Ha fallat la detecció"
+
+msgid "Error processing the file at field %1."
+msgstr "S'ha produït un error al processar el fitxer al camp %1."
+
+msgid "Error"
+msgstr "Error"
+
+msgid "Import failed"
+msgstr "Ha fallat la importació"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 registre importat"
+msgstr[1] "%1 registres importats"
+
+msgid "CSV Export: %1"
+msgstr "Exportació CSV: %1"
+
+msgid "Save Export"
+msgstr "Desa l'exportació"
+
+msgid "URL Export"
+msgstr "URL Exportació"
+
+msgid "Delete Export"
+msgstr "Elimina l'exportació"
+
+msgid "Predefined Exports"
+msgstr "Exportacions predefinides"
+
+msgid "Selected Records"
+msgstr "Registres seleccionats"
+
+msgid "Listed Records"
+msgstr "Registres llistats"
+
+msgid "Export:"
+msgstr "Exportar:"
+
+msgid "Ignore search limit"
+msgstr "Ignora límit de cerca"
+
+msgid "Use locale format"
+msgstr "Utilitza format local"
+
+msgid "Add Field Names"
+msgstr "Afegeix noms dels camps"
+
+msgid "%1 (string)"
+msgstr "%1 (cadena)"
+
+msgid "%1 (model name)"
+msgstr "%1 (nom del model)"
+
+msgid "%1/Record Name"
+msgstr "%1/Nom del registre"
+
+msgid "What is the name of this export?"
+msgstr "Quin és el nom d'aquesta exportació?"
+
+msgid "Override %1 definition?"
+msgstr "Voleu sobreescriure la definició %1?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 registre desat"
+msgstr[1] "%1 registres desats"
+
+msgid "E-mail %1"
+msgstr "Correu electrònic %1"
+
+msgid "To:"
+msgstr "A:"
+
+msgid "Cc:"
+msgstr "Cc:"
+
+msgid "Bcc:"
+msgstr "Cco:"
+
+msgid "Subject:"
+msgstr "Assumpte:"
+
+msgid "Reports"
+msgstr "Informes"
+
+msgid "Attachments"
+msgstr "Adjunts"
+
+msgid "Files"
+msgstr "Fitxers"
+
+msgid "Send"
+msgstr "Envia"
+
+msgid "Remove File"
+msgstr "Elimina fitxer"
+
+msgid "Wizard"
+msgstr "Assistent"
+
+msgid "Translate view"
+msgstr "Tradueix la vista"
diff --git a/sao/locale/cs.po b/sao/locale/cs.po
new file mode 100644
index 0000000000..5d15f43030
--- /dev/null
+++ b/sao/locale/cs.po
@@ -0,0 +1,712 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+#, fuzzy
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+#, fuzzy
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ""
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/de.po b/sao/locale/de.po
new file mode 100644
index 0000000000..8b66257bcd
--- /dev/null
+++ b/sao/locale/de.po
@@ -0,0 +1,718 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Wollen Sie die Seite wirklich verlassen?"
+
+msgid "Incompatible version of the server."
+msgstr "Inkompatible Serverversion."
+
+msgid "Version mismatch"
+msgstr "Versionskonflikt"
+
+msgid "Could not connect to the server."
+msgstr "Verbindung zum Server nicht möglich."
+
+msgid "Connection error"
+msgstr "Verbindungsfehler"
+
+msgid "Favorites"
+msgstr "Favoriten"
+
+msgid "Manage..."
+msgstr "Verwalten..."
+
+msgid "Logout"
+msgstr "Abmelden"
+
+msgid "Action"
+msgstr "Aktion"
+
+msgid "New"
+msgstr "Neu"
+
+msgid "Save"
+msgstr "Speichern"
+
+msgid "Switch"
+msgstr "Ansicht wechseln"
+
+msgid "Reload/Undo"
+msgstr "Neu laden/Rückgängig"
+
+msgid "Duplicate"
+msgstr "Duplizieren"
+
+msgid "Delete"
+msgstr "Löschen"
+
+msgid "Previous"
+msgstr "Vorheriger"
+
+msgid "Next"
+msgstr "Nächster"
+
+msgid "Search"
+msgstr "Suchen"
+
+msgid "Close Tab"
+msgstr "Registerkarte schließen"
+
+msgid "Attachment"
+msgstr "Anhang"
+
+msgid "Note"
+msgstr "Notiz"
+
+msgid "Relate"
+msgstr "Beziehung"
+
+msgid "Print"
+msgstr "Drucken"
+
+msgid "E-Mail"
+msgstr "E-Mail"
+
+msgid "Previous tab"
+msgstr "Vorherige Registerkarte"
+
+msgid "Next tab"
+msgstr "Nächste Registerkarte"
+
+msgid "Global search"
+msgstr "Globale Suche"
+
+msgid "Show this help"
+msgstr "Diese Hilfe anzeigen"
+
+msgid "Show/Hide access keys"
+msgstr "Zugriffstasten anzeigen/ausblenden"
+
+msgid "Help"
+msgstr "Hilfe"
+
+msgid "Close"
+msgstr "Schließen"
+
+msgid "Documentation..."
+msgstr "Dokumentation..."
+
+msgid "Keyboard shortcuts"
+msgstr "Tastenkombinationen"
+
+msgid "Global shortcuts"
+msgstr "Globale Tastenkombinationen"
+
+msgid "Tab shortcuts"
+msgstr "Registerkarten Tastenkombinationen"
+
+msgid "Unable to reach the server."
+msgstr "Kann nicht zum Server verbinden."
+
+msgid "Too many requests. Try again later."
+msgstr "Zu viele Anfragen. Bitte versuchen Sie es später erneut."
+
+msgid "Login"
+msgstr "Log-in"
+
+msgid "User name"
+msgstr "Benutzername"
+
+msgid "Database"
+msgstr "Datenbank"
+
+msgid "Login with"
+msgstr "Log-in mit"
+
+msgid "Not found."
+msgstr "Nicht gefunden."
+
+msgid "Your selection:"
+msgstr "Ihre Auswahl:"
+
+msgid "Cancel"
+msgstr "Abbrechen"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "J"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "W"
+
+msgid "d"
+msgstr "t"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Von: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "J"
+
+msgid "Yes"
+msgstr "Ja"
+
+msgid "True"
+msgstr "Wahr"
+
+msgid "t"
+msgstr "w"
+
+msgid "False"
+msgstr "Falsch"
+
+msgid "Message: "
+msgstr "Nachricht: "
+
+msgid "Warning: "
+msgstr "Warnung: "
+
+msgid "Always ignore this warning."
+msgstr "Diese Warnung künftig nicht mehr anzeigen."
+
+msgid "Do you want to proceed?"
+msgstr "Fortfahren?"
+
+msgid "No"
+msgstr "Nein"
+
+msgid "Confirmation: "
+msgstr "Bestätigung: "
+
+msgid "Concurrency Exception"
+msgstr "Aktualisierungskonflikt"
+
+msgid "Write Concurrency Warning: "
+msgstr "Aktualisierungskonflikt beim Schreiben des aktuellen Datensatzes: "
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+"Dieser Datensatz wurde anderweitig geändert, während Sie ihn bearbeitet "
+"haben."
+
+msgid "Choose:"
+msgstr "Lösungsmöglichkeiten:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Abbrechen\" um den Speichervorgang abzubrechen;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Vergleichen\" um die geänderte Version des Datensatzes zu betrachten;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+"- \"Überschreiben\" um die gespeicherte Version mit Ihrer Version zu "
+"überschreiben."
+
+msgid "Compare"
+msgstr "Vergleichen"
+
+msgid "Compare: %1"
+msgstr "Vergleichen: %s"
+
+msgid "Write Anyway"
+msgstr "Überschreiben"
+
+msgid "Application Error"
+msgstr "Anwendungsfehler"
+
+msgid "Report Bug"
+msgstr "Fehler melden"
+
+msgid "Processing"
+msgstr "Verarbeitung läuft…"
+
+msgid "Search..."
+msgstr "Suche..."
+
+msgid "Create..."
+msgstr "Erstellen..."
+
+msgid "Download"
+msgstr "Herunterladen"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Fett"
+
+msgid "Italic"
+msgstr "Kursiv"
+
+msgid "Underline"
+msgstr "Unterstrichen"
+
+msgid "Font"
+msgstr "Schriftart"
+
+msgid "Size"
+msgstr "Größe"
+
+msgid "Justify Right"
+msgstr "Rechtsbündig"
+
+msgid "Justify Left"
+msgstr "Linksbündig"
+
+msgid "Justify Center"
+msgstr "Zentrieren"
+
+msgid "Justify Full"
+msgstr "Blocksatz"
+
+msgid "Switch view"
+msgstr "Ansicht wechseln"
+
+msgid "Previous Record"
+msgstr "Vorheriger Datensatz"
+
+msgid "Next Record"
+msgstr "Nächster Datensatz"
+
+msgid "Create a new record"
+msgstr "Neuen Datensatz erstellen"
+
+msgid "Save this record"
+msgstr "Diesen Datensatz speichern"
+
+msgid "Reload"
+msgstr "Neu laden"
+
+msgid "View Logs..."
+msgstr "Protokoll ansehen..."
+
+msgid "Show revisions..."
+msgstr "Bearbeitungen anzeigen..."
+
+msgid "Add an attachment to the record"
+msgstr "Einen Anhang zum Datensatz hinzufügen"
+
+msgid "Add a note to the record"
+msgstr "Eine Notiz zu einem Datensatz hinzufügen"
+
+msgid "E-Mail..."
+msgstr "E-Mail..."
+
+msgid "Send an e-mail using the record"
+msgstr "Eine E-Mail basierend auf diesem Datensatz versenden"
+
+msgid "Export"
+msgstr "Export"
+
+msgid "Import"
+msgstr "Import"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Die folgende Aktion erfordert die Schließung aller Registerkarten.\n"
+"Fortfahren?"
+
+msgid "Launch action"
+msgstr "Aktion ausführen"
+
+msgid "Open related records"
+msgstr "Datensätze einer Beziehung öffnen"
+
+msgid "Print report"
+msgstr "Bericht drucken"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Datensatz geändert.\n"
+"Soll der Datensatz gespeichert werden?"
+
+msgid "Record saved."
+msgstr "Der Datensatz wurde gespeichert."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Sie arbeiten nun an dem/den duplizierten Datensatz/Datensätzen."
+
+msgid "Are you sure to remove this record?"
+msgstr "Möchten Sie diesen Datensatz wirklich löschen?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Möchten Sie diese Datensätze wirklich löschen?"
+
+msgid "Records removed."
+msgstr "Die Datensätze wurden gelöscht."
+
+msgid "Records not removed."
+msgstr "Die Datensätze wurden nicht gelöscht."
+
+msgid "You have to select one record."
+msgstr "Ein Datensatz muss ausgewählt werden."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Erstellt von:"
+
+msgid "Created at:"
+msgstr "Erstellt am:"
+
+msgid "Edited by:"
+msgstr "Bearbeitet von:"
+
+msgid "Edited at:"
+msgstr "Zuletzt bearbeitet am:"
+
+msgid "Model: "
+msgstr "Modell: "
+
+msgid "Add..."
+msgstr "Hinzufügen..."
+
+msgid "Preview"
+msgstr "Vorschau"
+
+msgid "Template"
+msgstr "Vorlage"
+
+msgid "Attachment (%1)"
+msgstr "Anhänge (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Notiz (%1/%2)"
+
+msgid "Filters"
+msgstr "Filter"
+
+msgid "Clear Search"
+msgstr "Suchfeld leeren"
+
+msgid "Bookmarks"
+msgstr "Lesezeichen"
+
+msgid "Remove this bookmark"
+msgstr "Dieses Lesezeichen entfernen"
+
+msgid "Bookmark this filter"
+msgstr "Diesen Filter als Lesezeichen hinzufügen"
+
+msgid "Bookmark Name:"
+msgstr "Lesezeichenname:"
+
+msgid "Show active records"
+msgstr "Aktive Datensätze anzeigen"
+
+msgid "Show inactive records"
+msgstr "Inaktive Datensätze anzeigen"
+
+msgid "Find"
+msgstr "Suchen"
+
+msgid "From"
+msgstr "Von"
+
+msgid "To"
+msgstr "An"
+
+msgid "Open the calendar"
+msgstr "Kalender öffnen"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Erstellt von"
+
+msgid "Created at"
+msgstr "Erstellt am"
+
+msgid "Modified by"
+msgstr "Zuletzt verändert von"
+
+msgid "Modified at"
+msgstr "Zuletzt verändert am"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" ist erforderlich."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" liegt nicht im gültigen Wertebereich (Domain)."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Die Werte von \"%1\" sind ungültig."
+
+msgid "Pre-validation"
+msgstr "Vorvalidierung"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Übersetzen"
+
+msgid "Edit"
+msgstr "Bearbeiten"
+
+msgid "Fuzzy"
+msgstr "Fuzzy"
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+"Der Datensatz muss gespeichert werden, bevor eine Übersetzung hinzugefügt "
+"werden kann."
+
+msgid "No other language available."
+msgstr "Keine weitere Sprache verfügbar."
+
+msgid "Show"
+msgstr "Anzeigen"
+
+msgid "Hide"
+msgstr "Ausblenden"
+
+msgid "Open the record"
+msgstr "Datensatz öffnen"
+
+msgid "Clear the field"
+msgstr "Feldinhalt löschen"
+
+msgid "Search a record"
+msgstr "Datensatz suchen"
+
+msgid "Add"
+msgstr "Hinzufügen"
+
+msgid "Remove"
+msgstr "Entfernen"
+
+msgid "Open"
+msgstr "Öffnen"
+
+msgid "Undelete"
+msgstr "Löschung rückgängig machen"
+
+msgid "Save As"
+msgstr "Speichern unter…"
+
+msgid "Save As..."
+msgstr "Speichern unter..."
+
+msgid "Select"
+msgstr "Auswählen"
+
+msgid "Select..."
+msgstr "Auswählen..."
+
+msgid "Clear"
+msgstr "Leeren"
+
+msgid "Open..."
+msgstr "Öffnen..."
+
+msgid "Choose a language"
+msgstr "Sprache auswählen"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr "Anpassen"
+
+msgid "More"
+msgstr "Mehr"
+
+msgid "Today"
+msgstr "Heute"
+
+msgid "Month"
+msgstr "Monat"
+
+msgid "Week"
+msgstr "Woche"
+
+msgid "Day"
+msgstr "Tag"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Aktion wählen"
+
+msgid "No action defined."
+msgstr "Keine Aktion definiert."
+
+msgid "Attachments (%1)"
+msgstr "Anhänge (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notizen (%1)"
+
+msgid "Search %1"
+msgstr "Suche %1"
+
+msgid "Revision"
+msgstr "Bearbeitung"
+
+msgid "All Fields"
+msgstr "Alle Felder"
+
+msgid "Fields Selected"
+msgstr "Ausgewählte Felder"
+
+msgid "CSV Parameters"
+msgstr "CSV-Parameter"
+
+msgid "Delimiter:"
+msgstr "Feldtrenner:"
+
+msgid "Quote Char:"
+msgstr "Anführungszeichen:"
+
+msgid "CSV Import: %1"
+msgstr "CSV-Import: %1"
+
+msgid "Auto-Detect"
+msgstr "Automatische Erkennung"
+
+msgid "File to Import"
+msgstr "Zu importierende Datei"
+
+msgid "Encoding:"
+msgstr "Zeichenkodierung:"
+
+msgid "Lines to Skip:"
+msgstr "Zu überspringende Zeilen:"
+
+msgid "You must select an import file first."
+msgstr "Es muss zuerst eine Importdatei ausgewählt werden."
+
+msgid "Detection failed"
+msgstr "Lesen der Datei fehlgeschlagen"
+
+msgid "Error processing the file at field %1."
+msgstr "Fehler bei der Verarbeitung der Datei in Feld %1."
+
+msgid "Error"
+msgstr "Fehler"
+
+msgid "Import failed"
+msgstr "Import fehlgeschlagen"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 Datensatz importiert"
+msgstr[1] "%1 Datensätze importiert"
+
+msgid "CSV Export: %1"
+msgstr "CSV-Export: %1"
+
+msgid "Save Export"
+msgstr "Exportkonfiguration speichern"
+
+msgid "URL Export"
+msgstr "URL-Export"
+
+msgid "Delete Export"
+msgstr "Exportkonfiguration löschen"
+
+msgid "Predefined Exports"
+msgstr "Vordefinierte Exporte"
+
+msgid "Selected Records"
+msgstr "Ausgewählte Datensätze"
+
+msgid "Listed Records"
+msgstr "Angezeigte Datensätze"
+
+msgid "Export:"
+msgstr "Export:"
+
+msgid "Ignore search limit"
+msgstr "Suchlimit ignorieren"
+
+msgid "Use locale format"
+msgstr "Lokales Format verwenden"
+
+msgid "Add Field Names"
+msgstr "Feldnamen hinzufügen"
+
+msgid "%1 (string)"
+msgstr "%1 (string)"
+
+msgid "%1 (model name)"
+msgstr "%1 (Bezeichnung des Datensatzes)"
+
+msgid "%1/Record Name"
+msgstr "%1/Bezeichnung des Datensatzes"
+
+msgid "What is the name of this export?"
+msgstr "Wie soll der Name des Exports lauten?"
+
+msgid "Override %1 definition?"
+msgstr "Definition von %1 nicht berücksichtigen?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 Datensatz gespeichert"
+msgstr[1] "%1 Datensätze gespeichert"
+
+msgid "E-mail %1"
+msgstr "E-Mail %1"
+
+msgid "To:"
+msgstr "An:"
+
+msgid "Cc:"
+msgstr "Cc:"
+
+msgid "Bcc:"
+msgstr "Bcc:"
+
+msgid "Subject:"
+msgstr "Betreff:"
+
+msgid "Reports"
+msgstr "Berichte"
+
+msgid "Attachments"
+msgstr "Anhänge"
+
+msgid "Files"
+msgstr "Dateien"
+
+msgid "Send"
+msgstr "Senden"
+
+msgid "Remove File"
+msgstr "Datei entfernen"
+
+msgid "Wizard"
+msgstr "Assistent"
+
+msgid "Translate view"
+msgstr "Aktuelle Sicht übersetzen"
diff --git a/sao/locale/es.po b/sao/locale/es.po
new file mode 100644
index 0000000000..f51c504aa1
--- /dev/null
+++ b/sao/locale/es.po
@@ -0,0 +1,712 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "¿Está seguro que quiere salir?"
+
+msgid "Incompatible version of the server."
+msgstr "El cliente no es compatible con la versión del servidor."
+
+msgid "Version mismatch"
+msgstr "Versión incompatible"
+
+msgid "Could not connect to the server."
+msgstr "No se ha podido conectar con el servidor."
+
+msgid "Connection error"
+msgstr "Error de conexión"
+
+msgid "Favorites"
+msgstr "Favoritos"
+
+msgid "Manage..."
+msgstr "Gestionar..."
+
+msgid "Logout"
+msgstr "Cerrar sesión"
+
+msgid "Action"
+msgstr "Acción"
+
+msgid "New"
+msgstr "Nuevo"
+
+msgid "Save"
+msgstr "Guardar"
+
+msgid "Switch"
+msgstr "Cambiar"
+
+msgid "Reload/Undo"
+msgstr "Recargar/Deshacer"
+
+msgid "Duplicate"
+msgstr "Duplicar"
+
+msgid "Delete"
+msgstr "Eliminar"
+
+msgid "Previous"
+msgstr "Anterior"
+
+msgid "Next"
+msgstr "Siguiente"
+
+msgid "Search"
+msgstr "Buscar"
+
+msgid "Close Tab"
+msgstr "Cerrar pestaña"
+
+msgid "Attachment"
+msgstr "Adjunto"
+
+msgid "Note"
+msgstr "Nota"
+
+msgid "Relate"
+msgstr "Relacionado"
+
+msgid "Print"
+msgstr "Imprimir"
+
+msgid "E-Mail"
+msgstr "Correo electrónico"
+
+msgid "Previous tab"
+msgstr "Pestaña anterior"
+
+msgid "Next tab"
+msgstr "Pestaña siguiente"
+
+msgid "Global search"
+msgstr "Búsqueda global"
+
+msgid "Show this help"
+msgstr "Muestra esta ayuda"
+
+msgid "Show/Hide access keys"
+msgstr "Mostrar/Esconder las teclas rápidas"
+
+msgid "Help"
+msgstr "Ayuda"
+
+msgid "Close"
+msgstr "Cerrar"
+
+msgid "Documentation..."
+msgstr "Documentación..."
+
+msgid "Keyboard shortcuts"
+msgstr "Atajos de teclado"
+
+msgid "Global shortcuts"
+msgstr "Atajos globales"
+
+msgid "Tab shortcuts"
+msgstr "Atajos de las pestañas"
+
+msgid "Unable to reach the server."
+msgstr "No es posible conectar con el servidor."
+
+msgid "Too many requests. Try again later."
+msgstr "Demasiadas peticiones. Inténtelo de nuevo más tarde."
+
+msgid "Login"
+msgstr "Acceder"
+
+msgid "User name"
+msgstr "Nombre de usuario"
+
+msgid "Database"
+msgstr "Base de datos"
+
+msgid "Login with"
+msgstr "Identificarse con"
+
+msgid "Not found."
+msgstr "No se ha encontrado."
+
+msgid "Your selection:"
+msgstr "Su selección:"
+
+msgid "Cancel"
+msgstr "Cancelar"
+
+msgid "OK"
+msgstr "Aceptar"
+
+msgid "Y"
+msgstr "A"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "S"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Por: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "a"
+
+msgid "Yes"
+msgstr "Sí"
+
+msgid "True"
+msgstr "Verdadero"
+
+msgid "t"
+msgstr "v"
+
+msgid "False"
+msgstr "Falso"
+
+msgid "Message: "
+msgstr "Mensaje: "
+
+msgid "Warning: "
+msgstr "Aviso: "
+
+msgid "Always ignore this warning."
+msgstr "Ignorar siempre esta advertencia."
+
+msgid "Do you want to proceed?"
+msgstr "¿Desea continuar?"
+
+msgid "No"
+msgstr "No"
+
+msgid "Confirmation: "
+msgstr "Confirmación: "
+
+msgid "Concurrency Exception"
+msgstr "Excepción de concurrencia"
+
+msgid "Write Concurrency Warning: "
+msgstr "Aviso de concurrencia de escritura: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Este registro ha sido modificado mientras lo editaba."
+
+msgid "Choose:"
+msgstr "Elija:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Cancelar\" para no guardar;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Comparar\" para ver la versión modificada;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Guardar de todas formas\" para guardar sus cambios."
+
+msgid "Compare"
+msgstr "Comparar"
+
+msgid "Compare: %1"
+msgstr "Comparar: %1"
+
+msgid "Write Anyway"
+msgstr "Guardar de todas formas"
+
+msgid "Application Error"
+msgstr "Error de aplicación"
+
+msgid "Report Bug"
+msgstr "Informar del error"
+
+msgid "Processing"
+msgstr "Procesando"
+
+msgid "Search..."
+msgstr "Buscar…"
+
+msgid "Create..."
+msgstr "Crear..."
+
+msgid "Download"
+msgstr "Descargar"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Negrita"
+
+msgid "Italic"
+msgstr "Cursiva"
+
+msgid "Underline"
+msgstr "Subrayado"
+
+msgid "Font"
+msgstr "Tipo de letra"
+
+msgid "Size"
+msgstr "Tamaño"
+
+msgid "Justify Right"
+msgstr "Justificar a la derecha"
+
+msgid "Justify Left"
+msgstr "Justificar a la izquierda"
+
+msgid "Justify Center"
+msgstr "Justificar al centro"
+
+msgid "Justify Full"
+msgstr "Justificar por completo"
+
+msgid "Switch view"
+msgstr "Cambiar de vista"
+
+msgid "Previous Record"
+msgstr "Registro anterior"
+
+msgid "Next Record"
+msgstr "Registro siguiente"
+
+msgid "Create a new record"
+msgstr "Crear un nuevo registro"
+
+msgid "Save this record"
+msgstr "Guardar este registro"
+
+msgid "Reload"
+msgstr "Recargar"
+
+msgid "View Logs..."
+msgstr "Ver registro..."
+
+msgid "Show revisions..."
+msgstr "Mostrar revisiones..."
+
+msgid "Add an attachment to the record"
+msgstr "Añadir un adjunto al registro"
+
+msgid "Add a note to the record"
+msgstr "Añadir una nota al registro"
+
+msgid "E-Mail..."
+msgstr "Correo electrónico..."
+
+msgid "Send an e-mail using the record"
+msgstr "Enviar un correo electrónico usando el registro"
+
+msgid "Export"
+msgstr "Exportar"
+
+msgid "Import"
+msgstr "Importar"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"La acción seleccionada requiere cerrar todas las pestañas.\n"
+"¿Desea continuar?"
+
+msgid "Launch action"
+msgstr "Ejecutar acción"
+
+msgid "Open related records"
+msgstr "Abrir registros relacionados"
+
+msgid "Print report"
+msgstr "Imprimir informe"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Este registro ha sido modificado.\n"
+"¿Desea guardarlo?"
+
+msgid "Record saved."
+msgstr "Registro guardado."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Ahora está trabajando en el/los registro(s) duplicado(s)."
+
+msgid "Are you sure to remove this record?"
+msgstr "¿Está seguro que quiere eliminar este registro?"
+
+msgid "Are you sure to remove those records?"
+msgstr "¿Está seguro que quiere eliminar estos registros?"
+
+msgid "Records removed."
+msgstr "Registros eliminados."
+
+msgid "Records not removed."
+msgstr "Los registros no se han eliminado."
+
+msgid "You have to select one record."
+msgstr "Debe elegir un registro."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Creado por:"
+
+msgid "Created at:"
+msgstr "Creado el:"
+
+msgid "Edited by:"
+msgstr "Editado por:"
+
+msgid "Edited at:"
+msgstr "Editado el:"
+
+msgid "Model: "
+msgstr "Modelo: "
+
+msgid "Add..."
+msgstr "Añadir..."
+
+msgid "Preview"
+msgstr "Previsualizar"
+
+msgid "Template"
+msgstr "Plantilla"
+
+msgid "Attachment (%1)"
+msgstr "Adjuntos (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Nota (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtros"
+
+msgid "Clear Search"
+msgstr "Limpiar la búsqueda"
+
+msgid "Bookmarks"
+msgstr "Búsquedas favoritas"
+
+msgid "Remove this bookmark"
+msgstr "Eliminar de las búsquedas favoritas"
+
+msgid "Bookmark this filter"
+msgstr "Guardar como búsqueda favorita"
+
+msgid "Bookmark Name:"
+msgstr "Nombre de la búsqueda favorita:"
+
+msgid "Show active records"
+msgstr "Mostrar registros activos"
+
+msgid "Show inactive records"
+msgstr "Mostrar registros inactivos"
+
+msgid "Find"
+msgstr "Buscar"
+
+msgid "From"
+msgstr "De"
+
+msgid "To"
+msgstr "A"
+
+msgid "Open the calendar"
+msgstr "Abrir el calendario"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Creado por"
+
+msgid "Created at"
+msgstr "Creado el"
+
+msgid "Modified by"
+msgstr "Modificado por"
+
+msgid "Modified at"
+msgstr "Modificado el"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" es obligatorio."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" no es válido según su dominio."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Los valores de \"%1\" no son válidos."
+
+msgid "Pre-validation"
+msgstr "Prevalidación"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Traducir"
+
+msgid "Edit"
+msgstr "Editar"
+
+msgid "Fuzzy"
+msgstr "Dudoso"
+
+msgid "You need to save the record before adding translations."
+msgstr "Debe guardar el registro antes de añadir traducciones."
+
+msgid "No other language available."
+msgstr "No hay otro idioma disponible."
+
+msgid "Show"
+msgstr "Mostrar"
+
+msgid "Hide"
+msgstr "Ocultar"
+
+msgid "Open the record"
+msgstr "Abrir el registro"
+
+msgid "Clear the field"
+msgstr "Vacíar el campo"
+
+msgid "Search a record"
+msgstr "Buscar un registro"
+
+msgid "Add"
+msgstr "Añadir"
+
+msgid "Remove"
+msgstr "Eliminar"
+
+msgid "Open"
+msgstr "Abrir"
+
+msgid "Undelete"
+msgstr "Recuperar"
+
+msgid "Save As"
+msgstr "Guardar como"
+
+msgid "Save As..."
+msgstr "Guardar como..."
+
+msgid "Select"
+msgstr "Seleccionar"
+
+msgid "Select..."
+msgstr "Seleccionar…"
+
+msgid "Clear"
+msgstr "Limpiar"
+
+msgid "Open..."
+msgstr "Abrir..."
+
+msgid "Choose a language"
+msgstr "Escoja un lenguaje"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr "Personalizar"
+
+msgid "More"
+msgstr "Más"
+
+msgid "Today"
+msgstr "Hoy"
+
+msgid "Month"
+msgstr "Mes"
+
+msgid "Week"
+msgstr "Semana"
+
+msgid "Day"
+msgstr "Día"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Seleccione su acción"
+
+msgid "No action defined."
+msgstr "No se ha definido ninguna acción."
+
+msgid "Attachments (%1)"
+msgstr "Adjuntos (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notas (%1)"
+
+msgid "Search %1"
+msgstr "Buscar %1"
+
+msgid "Revision"
+msgstr "Revisión"
+
+msgid "All Fields"
+msgstr "Todos los campos"
+
+msgid "Fields Selected"
+msgstr "Campos selecionados"
+
+msgid "CSV Parameters"
+msgstr "Parámetros CSV"
+
+msgid "Delimiter:"
+msgstr "Separador:"
+
+msgid "Quote Char:"
+msgstr "Delimitador del texto:"
+
+msgid "CSV Import: %1"
+msgstr "Importación CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Detectar automáticamente"
+
+msgid "File to Import"
+msgstr "Fichero a importar"
+
+msgid "Encoding:"
+msgstr "Codificación:"
+
+msgid "Lines to Skip:"
+msgstr "Líneas a omitir:"
+
+msgid "You must select an import file first."
+msgstr "Primero debe elegir un archivo a importar."
+
+msgid "Detection failed"
+msgstr "Ha fallado la detección"
+
+msgid "Error processing the file at field %1."
+msgstr "Error procesando el fichero en el campo %1."
+
+msgid "Error"
+msgstr "Error"
+
+msgid "Import failed"
+msgstr "Ha fallado la importación"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 registro importado"
+msgstr[1] "%1 registros importados"
+
+msgid "CSV Export: %1"
+msgstr "Exportación CSV: %1"
+
+msgid "Save Export"
+msgstr "Guardar exportación"
+
+msgid "URL Export"
+msgstr "URL exportación"
+
+msgid "Delete Export"
+msgstr "Eliminar exportación"
+
+msgid "Predefined Exports"
+msgstr "Exportaciones predefinidas"
+
+msgid "Selected Records"
+msgstr "Registros seleccionados"
+
+msgid "Listed Records"
+msgstr "Registros listados"
+
+msgid "Export:"
+msgstr "Exportar:"
+
+msgid "Ignore search limit"
+msgstr "Ignorar límite de búsqueda"
+
+msgid "Use locale format"
+msgstr "Usar formato local"
+
+msgid "Add Field Names"
+msgstr "Añadir nombres de los campos"
+
+msgid "%1 (string)"
+msgstr "%1 (cadena)"
+
+msgid "%1 (model name)"
+msgstr "%1 (nombre del modelo)"
+
+msgid "%1/Record Name"
+msgstr "%1/Nombre del registro"
+
+msgid "What is the name of this export?"
+msgstr "¿Cuál es el nombre de esta exportación?"
+
+msgid "Override %1 definition?"
+msgstr "Queréis sobrescribir la definición de %1?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 registro guardado"
+msgstr[1] "%1 registros guardados"
+
+msgid "E-mail %1"
+msgstr "Correo electrónico %1"
+
+msgid "To:"
+msgstr "A:"
+
+msgid "Cc:"
+msgstr "Cc:"
+
+msgid "Bcc:"
+msgstr "CCo:"
+
+msgid "Subject:"
+msgstr "Asunto:"
+
+msgid "Reports"
+msgstr "Informes"
+
+msgid "Attachments"
+msgstr "Adjuntos"
+
+msgid "Files"
+msgstr "Archivos"
+
+msgid "Send"
+msgstr "Enviar"
+
+msgid "Remove File"
+msgstr "Eliminar archivo"
+
+msgid "Wizard"
+msgstr "Asistente"
+
+msgid "Translate view"
+msgstr "Traducir vista"
diff --git a/sao/locale/es_419.po b/sao/locale/es_419.po
new file mode 100644
index 0000000000..4fcfbeb9e1
--- /dev/null
+++ b/sao/locale/es_419.po
@@ -0,0 +1,733 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 15 2019 16:53:42 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 01 2019 13:14:07 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Mar 01 2019 00:18:48 GMT+0100 (CET)
+# Generated by grunt-xgettext on Fri Feb 01 2019 00:07:47 GMT+0100 (CET)
+# Generated by grunt-xgettext on Tue Jan 01 2019 00:13:07 GMT+0100 (CET)
+# Generated by grunt-xgettext on Sat Dec 01 2018 00:17:31 GMT+0100 (CET)
+# Generated by grunt-xgettext on Thu Nov 01 2018 00:08:43 GMT+0100 (CET)
+# Generated by grunt-xgettext on Mon Oct 01 2018 00:07:22 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Sep 14 2018 22:59:37 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sun Sep 09 2018 10:24:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Tue Sep 04 2018 13:54:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sat Apr 14 2018 17:56:54 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Creado por:"
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+msgid ", "
+msgstr ""
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+msgid "..."
+msgstr ""
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+#, fuzzy
+msgid "Created by:"
+msgstr "Crear..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "Fecha creación:"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "Crear..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "Última fecha de modificación:"
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "Adjuntos (%1)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+#, fuzzy
+msgid "Created by"
+msgstr "Crear..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "Fecha creación:"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "Última fecha de modificación:"
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ""
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr "Revisión"
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+#, fuzzy
+msgid "Open the record"
+msgstr "Abrir registro "
+
+msgid "Clear the field"
+msgstr ""
+
+#, fuzzy
+msgid "Search a record"
+msgstr "Buscar registro "
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+msgid ": "
+msgstr ""
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+#, fuzzy
+msgid "Attachments"
+msgstr "Adjuntos (%1)"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/et.po b/sao/locale/et.po
new file mode 100644
index 0000000000..06281b9200
--- /dev/null
+++ b/sao/locale/et.po
@@ -0,0 +1,753 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 15 2019 16:53:42 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 01 2019 13:14:07 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Mar 01 2019 00:18:48 GMT+0100 (CET)
+# Generated by grunt-xgettext on Fri Feb 01 2019 00:07:47 GMT+0100 (CET)
+# Generated by grunt-xgettext on Tue Jan 01 2019 00:13:07 GMT+0100 (CET)
+# Generated by grunt-xgettext on Sat Dec 01 2018 00:17:31 GMT+0100 (CET)
+msgid "Are your sure to leave?"
+msgstr "Kas soovid lahkuda?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Serverit ei leita."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Serverit ei leita."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Looja"
+
+msgid "Favorites"
+msgstr "Lemmikud"
+
+msgid "Manage..."
+msgstr "Halda..."
+
+msgid "Logout"
+msgstr "Logi välja"
+
+msgid "Action"
+msgstr "Toiming"
+
+msgid "New"
+msgstr "Uus"
+
+msgid "Save"
+msgstr "Salvesta"
+
+msgid "Switch"
+msgstr "Vaheta"
+
+msgid "Reload/Undo"
+msgstr "Laadi uuesti/Taasta"
+
+msgid "Duplicate"
+msgstr "Kopeeri"
+
+msgid "Delete"
+msgstr "Kustuta"
+
+msgid "Previous"
+msgstr "Eelmine"
+
+msgid "Next"
+msgstr "Järgmine"
+
+msgid "Search"
+msgstr "Otsi"
+
+msgid "Close Tab"
+msgstr "Sulge vaheleht"
+
+msgid "Attachment"
+msgstr "Manus"
+
+msgid "Note"
+msgstr "Märkus"
+
+msgid "Relate"
+msgstr "Seosta"
+
+msgid "Print"
+msgstr "Prindi"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr "Eelmine vaheleht"
+
+msgid "Next tab"
+msgstr "Järgmine vaheleht"
+
+msgid "Global search"
+msgstr "Üldine otsing"
+
+msgid "Show this help"
+msgstr "Näita abiinfot"
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Sulge"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Kiirklahvid"
+
+msgid "Global shortcuts"
+msgstr "Globaalsed otseteed"
+
+msgid "Tab shortcuts"
+msgstr "Vahelehe otseteed"
+
+msgid "Unable to reach the server."
+msgstr "Serverit ei leita."
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "Logi sisse"
+
+msgid "User name"
+msgstr "Kasutaja nimi"
+
+msgid "Database"
+msgstr "Andmebaas"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Logi sisse"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Valik:"
+
+msgid "Cancel"
+msgstr "Tühista"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "A"
+
+msgid "M"
+msgstr "K"
+
+msgid "w"
+msgstr "n"
+
+msgid "d"
+msgstr "p"
+
+msgid "h"
+msgstr "t"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr ""
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr "Jah"
+
+msgid "True"
+msgstr "Tõene"
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr "Väär"
+
+msgid "Message: "
+msgstr "Teade: "
+
+msgid "Warning: "
+msgstr "Hoiatus: "
+
+msgid "Always ignore this warning."
+msgstr "Eira alati seda hoiatust."
+
+msgid "Do you want to proceed?"
+msgstr "Kas soovid jätkata?"
+
+msgid "No"
+msgstr "Ei"
+
+msgid "Confirmation: "
+msgstr "Kinnitus: "
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr "Kirje on muutunud viimasest salvestamisest alates."
+
+msgid "Choose:"
+msgstr "Vali:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Tühista\", et katkestada salvestamine;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Võrdle\", et vaadata muudetud versiooni;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Salvesta ikkagi\", et salvestada viimased muudatused."
+
+msgid "Compare"
+msgstr "Võrdle"
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "Võrdle"
+
+msgid "Write Anyway"
+msgstr "Salvesta ikkagi"
+
+msgid "Application Error"
+msgstr "Rakenduse viga"
+
+msgid "Report Bug"
+msgstr "Vearaport"
+
+#, fuzzy
+msgid "Processing"
+msgstr "Töötlemine..."
+
+msgid "Search..."
+msgstr "Otsi..."
+
+msgid "Create..."
+msgstr "Loo..."
+
+msgid "Download"
+msgstr "Allalaadimine"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "Taasta"
+
+msgid "Font"
+msgstr "Šrift"
+
+msgid "Size"
+msgstr "Suurus"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Vaheta vaadet"
+
+msgid "Previous Record"
+msgstr "Eelmine kirje"
+
+msgid "Next Record"
+msgstr "Järgmine kirje"
+
+msgid "Create a new record"
+msgstr "Loo uus kirje"
+
+msgid "Save this record"
+msgstr "Salvesta kirje"
+
+msgid "Reload"
+msgstr "Taaslae"
+
+msgid "View Logs..."
+msgstr "Vaata logisid..."
+
+msgid "Show revisions..."
+msgstr "Näita muudatusi..."
+
+msgid "Add an attachment to the record"
+msgstr "Lisa manus"
+
+msgid "Add a note to the record"
+msgstr "Lisa märkus"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "Lisa märkus"
+
+msgid "Export"
+msgstr "Eksport"
+
+msgid "Import"
+msgstr "Import"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Järgmine toiming sulgeb kõik vahelehed.\n"
+"Kas soovid jätkata?"
+
+msgid "Launch action"
+msgstr "Käivita toiming"
+
+msgid "Open related records"
+msgstr "Ava seotud kirjed"
+
+msgid "Print report"
+msgstr "Prindi aruanne"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Seda kirjet on muudetud,\n"
+"kas soovid salvestada?"
+
+msgid "Record saved."
+msgstr "Kirje salvestatud."
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr "Kas soovid selle kirje eemaldada?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Kas soovid need kirjed eemaldada?"
+
+msgid "Records removed."
+msgstr "Kirjed eemaldatud."
+
+msgid "Records not removed."
+msgstr "Kirjeid ei eemaldatud."
+
+msgid "You have to select one record."
+msgstr "Aktiveeri üks kirje."
+
+msgid "ID:"
+msgstr "ID"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "Loo..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "Loomise kuupäev"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "Loo..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "Muutmise kuupäev"
+
+msgid "Model: "
+msgstr "Mudel: "
+
+msgid "Add..."
+msgstr "Lisa..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "Eelmine"
+
+#, fuzzy
+msgid "Template"
+msgstr "Seosta"
+
+msgid "Attachment (%1)"
+msgstr "Manus (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Märkus (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtrid"
+
+msgid "Clear Search"
+msgstr "Tühjenda otsing"
+
+msgid "Bookmarks"
+msgstr "Järjehoidjad"
+
+msgid "Remove this bookmark"
+msgstr "Eemalda järjehoidja"
+
+msgid "Bookmark this filter"
+msgstr "Lisa filter järjehoidjatesse"
+
+msgid "Bookmark Name:"
+msgstr "Järjehoidja nimi:"
+
+msgid "Show active records"
+msgstr "Näita aktiivseid kirjeid"
+
+msgid "Show inactive records"
+msgstr "Näita mitteaktiivseid kirjeid"
+
+msgid "Find"
+msgstr "Leia"
+
+msgid "From"
+msgstr "Saatja"
+
+msgid "To"
+msgstr "Saaja"
+
+msgid "Open the calendar"
+msgstr "Ava kalender"
+
+msgid "ID"
+msgstr "ID"
+
+#, fuzzy
+msgid "Created by"
+msgstr "Loo..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "Loomise kuupäev"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "Muutmise kuupäev"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "\"%1\" on nõutud"
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" ei ole kehtiv selle domeeni jaoks"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "Väärtused \"%1\" ei ole kehtivad"
+
+msgid "Pre-validation"
+msgstr "Eelkontroll"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Tõlgi"
+
+msgid "Edit"
+msgstr "Muuda"
+
+msgid "Fuzzy"
+msgstr "Hägune"
+
+msgid "You need to save the record before adding translations."
+msgstr "Kirje tuleb salvestada enne tõlke lisamist."
+
+msgid "No other language available."
+msgstr "Teisi keeli pole saadaval."
+
+msgid "Show"
+msgstr "Näita"
+
+msgid "Hide"
+msgstr "Peida"
+
+msgid "Open the record"
+msgstr "Ava kirje"
+
+msgid "Clear the field"
+msgstr "Tühjenda väli"
+
+msgid "Search a record"
+msgstr "Otsi kirjet"
+
+msgid "Add"
+msgstr "Lisa"
+
+msgid "Remove"
+msgstr "Eemalda"
+
+msgid "Open"
+msgstr "Ava"
+
+msgid "Undelete"
+msgstr "Taasta"
+
+msgid "Save As"
+msgstr "Salvesta nimega"
+
+msgid "Save As..."
+msgstr "Salvesta nimega..."
+
+msgid "Select"
+msgstr "Vali"
+
+msgid "Select..."
+msgstr "Vali..."
+
+msgid "Clear"
+msgstr "Tühjenda"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Ava"
+
+msgid "Choose a language"
+msgstr "Vali keel"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "Lisaks"
+
+msgid "Today"
+msgstr "Täna"
+
+msgid "Month"
+msgstr "Kuu"
+
+msgid "Week"
+msgstr "Nädal"
+
+msgid "Day"
+msgstr "Päev"
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Vali toiming"
+
+msgid "No action defined."
+msgstr "Toiming kirjeldamata."
+
+msgid "Attachments (%1)"
+msgstr "Manused (%1)"
+
+msgid "Notes (%1)"
+msgstr "Märkused (%1)"
+
+msgid "Search %1"
+msgstr "Otsi %1"
+
+msgid "Revision"
+msgstr "Läbivaatus"
+
+msgid "All Fields"
+msgstr "Kõik väljad"
+
+msgid "Fields Selected"
+msgstr "Valitud väljad"
+
+msgid "CSV Parameters"
+msgstr "CSV parameetrid"
+
+msgid "Delimiter:"
+msgstr "Eraldaja:"
+
+msgid "Quote Char:"
+msgstr "Teksti eraldaja:"
+
+msgid "CSV Import: %1"
+msgstr "CSV import: %1"
+
+msgid "Auto-Detect"
+msgstr "Automaattuvastus"
+
+msgid "File to Import"
+msgstr "Impordi fail"
+
+msgid "Encoding:"
+msgstr "Kodeering:"
+
+msgid "Lines to Skip:"
+msgstr "Jäta vahele read:"
+
+#, fuzzy
+msgid "You must select an import file first."
+msgstr "Vali imporditav fail"
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "Faili töötlemisel tekkis väljal %1 viga."
+
+msgid "Error"
+msgstr "Viga"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Import"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (kirje nimi)"
+msgstr[1] "%1 (kirje nimi)"
+
+msgid "CSV Export: %1"
+msgstr "CSV eksport: %1"
+
+msgid "Save Export"
+msgstr "Salvesta eksport"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "Eksport"
+
+msgid "Delete Export"
+msgstr "Kustuta eksport"
+
+msgid "Predefined Exports"
+msgstr "Salvestatud ekspordid"
+
+#, fuzzy
+msgid "Selected Records"
+msgstr "Järgmine kirje"
+
+#, fuzzy
+msgid "Listed Records"
+msgstr "Järgmine kirje"
+
+#, fuzzy
+msgid "Export:"
+msgstr "Eksport"
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr "Kasuta piirkonna formaati"
+
+msgid "Add Field Names"
+msgstr "Lisa välja nimed"
+
+msgid "%1 (string)"
+msgstr "%1 (tekst)"
+
+msgid "%1 (model name)"
+msgstr "%1 (mudeli nimi)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (kirje nimi)"
+
+msgid "What is the name of this export?"
+msgstr "Ekspordi nimi?"
+
+msgid "Override %1 definition?"
+msgstr "Kirjutada üle 1% kirjeldus?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Kirje salvestatud."
+msgstr[1] "Kirje salvestatud."
+
+msgid "E-mail %1"
+msgstr ""
+
+#, fuzzy
+msgid "To:"
+msgstr "Saaja"
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "Vearaport"
+
+#, fuzzy
+msgid "Attachments"
+msgstr "Manus"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "Eemalda"
+
+msgid "Wizard"
+msgstr "Nõustaja"
+
+msgid "Translate view"
+msgstr "Tõlgi vaade"
diff --git a/sao/locale/fa.po b/sao/locale/fa.po
new file mode 100644
index 0000000000..7a456828e4
--- /dev/null
+++ b/sao/locale/fa.po
@@ -0,0 +1,763 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 15 2019 16:53:42 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 01 2019 13:14:07 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Mar 01 2019 00:18:48 GMT+0100 (CET)
+# Generated by grunt-xgettext on Fri Feb 01 2019 00:07:47 GMT+0100 (CET)
+# Generated by grunt-xgettext on Tue Jan 01 2019 00:13:07 GMT+0100 (CET)
+# Generated by grunt-xgettext on Sat Dec 01 2018 00:17:31 GMT+0100 (CET)
+# Generated by grunt-xgettext on Thu Nov 01 2018 00:08:43 GMT+0100 (CET)
+# Generated by grunt-xgettext on Mon Oct 01 2018 00:07:22 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Sep 14 2018 22:59:37 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sun Sep 09 2018 10:24:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Tue Sep 04 2018 13:54:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sat Apr 14 2018 17:56:54 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Oct 09 2017 19:35:04 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr "برای ترک برنامه، آیا مطمئن هستید؟"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "امکان دسترسی به سرور وجود ندارد."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "امکان دسترسی به سرور وجود ندارد."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "ایجاد کاربر"
+
+msgid "Favorites"
+msgstr "علاقه مندی ها"
+
+msgid "Manage..."
+msgstr "مدیریت..."
+
+msgid "Logout"
+msgstr "خروج"
+
+msgid "Action"
+msgstr "اقدام"
+
+msgid "New"
+msgstr "جدید"
+
+msgid "Save"
+msgstr "ذخیره"
+
+msgid "Switch"
+msgstr "سوئیچ"
+
+msgid "Reload/Undo"
+msgstr "بارگیری مجدد / واگرد"
+
+msgid "Duplicate"
+msgstr "تکثیر"
+
+msgid "Delete"
+msgstr "حذف"
+
+msgid "Previous"
+msgstr "قبلی"
+
+msgid "Next"
+msgstr "بعدی"
+
+msgid "Search"
+msgstr "جستجو"
+
+msgid "Close Tab"
+msgstr "بستن برگه"
+
+msgid "Attachment"
+msgstr "پیوست"
+
+msgid "Note"
+msgstr "توجه"
+
+msgid "Relate"
+msgstr "مربوط"
+
+msgid "Print"
+msgstr "چاپ"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr "برگه قبلی"
+
+msgid "Next tab"
+msgstr "برگه بعدی"
+
+msgid "Global search"
+msgstr "جستجوی سراسری"
+
+msgid "Show this help"
+msgstr "نمایش این راهنما"
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "بسته"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "میانبرهای صفحه کلید"
+
+msgid "Global shortcuts"
+msgstr "کلید های میانبر سراسری"
+
+msgid "Tab shortcuts"
+msgstr "کلید های میانبر برگه"
+
+msgid "Unable to reach the server."
+msgstr "امکان دسترسی به سرور وجود ندارد."
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "ورود"
+
+msgid "User name"
+msgstr "نام کاربری"
+
+msgid "Database"
+msgstr "پایگاه داده"
+
+#, fuzzy
+msgid "Login with"
+msgstr "ورود"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "انتخاب شما :"
+
+msgid "Cancel"
+msgstr "انصراف"
+
+msgid "OK"
+msgstr "قبول"
+
+msgid "Y"
+msgstr "Y"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "w"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "توسط : "
+
+msgid ", "
+msgstr "، "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "بله"
+
+msgid "True"
+msgstr "درست"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "غلط"
+
+msgid "Message: "
+msgstr "پیام : "
+
+msgid "Warning: "
+msgstr "هشدار: "
+
+msgid "Always ignore this warning."
+msgstr "همیشه این هشدار را نادیده بگیرید."
+
+msgid "Do you want to proceed?"
+msgstr "آیا می خواهید پردازش شود؟"
+
+msgid "No"
+msgstr "خیر"
+
+msgid "Confirmation: "
+msgstr "تأییدیه : "
+
+msgid "Concurrency Exception"
+msgstr "همزمانی استثنا"
+
+msgid "Write Concurrency Warning: "
+msgstr "نوشتن همزمانی هشدار: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "این پرونده در حالی که شما در حال ویرایش آن بودید، اصلاح شد."
+
+msgid "Choose:"
+msgstr "انتخاب :"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"لغو\" برای انصراف ذخیره کردن ؛"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"مقایسه\" برای دیدن نسخه اصلاح شده ؛"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"نوشتن بهرحال\" برای ذخیره نسخه فعلی خود."
+
+msgid "Compare"
+msgstr "مقایسه"
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "مقایسه"
+
+msgid "Write Anyway"
+msgstr "نوشتن بهرحال"
+
+msgid "Application Error"
+msgstr "خطای برنامه"
+
+msgid "Report Bug"
+msgstr "گزارش باگ"
+
+#, fuzzy
+msgid "Processing"
+msgstr "در حال پردازش..."
+
+msgid "Search..."
+msgstr "جستجو..."
+
+msgid "Create..."
+msgstr "ایجاد..."
+
+msgid "Download"
+msgstr "دانلود"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "بازگردانی"
+
+msgid "Font"
+msgstr "فونت"
+
+msgid "Size"
+msgstr "اندازه"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "تعویض نمایه"
+
+msgid "Previous Record"
+msgstr "پرونده قبلی"
+
+msgid "Next Record"
+msgstr "پرونده بعدی"
+
+msgid "Create a new record"
+msgstr "ایجاد یک پرونده جدید"
+
+msgid "Save this record"
+msgstr "ذخیره این پرونده"
+
+msgid "Reload"
+msgstr "بارگذاری مجدد"
+
+msgid "View Logs..."
+msgstr "مشاهده گزارشات..."
+
+msgid "Show revisions..."
+msgstr "مشاهده تجدیدنظر..."
+
+msgid "Add an attachment to the record"
+msgstr "پیوست را به پرونده اضافه کنید"
+
+msgid "Add a note to the record"
+msgstr "یک یادداشت به پرونده اضافه کنید"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "یک یادداشت به پرونده اضافه کنید"
+
+msgid "Export"
+msgstr "صادر کردن"
+
+msgid "Import"
+msgstr "وارد كردن"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"اقدام زیر نیاز به بستن همه برگه ها دارد.\n"
+"می خواهید ادامه دهید؟"
+
+msgid "Launch action"
+msgstr "انجام اقدام"
+
+msgid "Open related records"
+msgstr "بازکردن پرونده های مربوطه"
+
+msgid "Print report"
+msgstr "چاپ گزارش"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"این پرونده هنوز اصلاح نشده است.\n"
+"میخواهید آن را ذخیره کنید ؟"
+
+msgid "Record saved."
+msgstr "پرونده ذخیره شد."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "هم اکنون کار بر روی پرونده(ها) تکثیر شده انجام می شود."
+
+msgid "Are you sure to remove this record?"
+msgstr "برای حذف این پرونده اطمینان کامل دارید؟"
+
+msgid "Are you sure to remove those records?"
+msgstr "برای حذف این پرونده ها اطمینان کامل دارید؟"
+
+msgid "Records removed."
+msgstr "پرونده ها حذف شدند."
+
+msgid "Records not removed."
+msgstr "پرونده ها حذف نشدند."
+
+msgid "You have to select one record."
+msgstr "شما باید یک پرونده را انتخاب کنید."
+
+msgid "ID:"
+msgstr "شناسه :"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "ایجاد..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "تاریخ ایجاد"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "ایجاد..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "تاریخ اصلاح"
+
+msgid "Model: "
+msgstr "مدل : "
+
+msgid "Add..."
+msgstr "افزودن..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "قبلی"
+
+#, fuzzy
+msgid "Template"
+msgstr "مربوط"
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "پیوست ها(1%)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr "فیلترها"
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr "بوک مارک ها"
+
+msgid "Remove this bookmark"
+msgstr "حذف این بوک مارک"
+
+msgid "Bookmark this filter"
+msgstr "بوک مارک این فیلتر"
+
+msgid "Bookmark Name:"
+msgstr "نام بوک مارک :"
+
+msgid "Show active records"
+msgstr "نمایش پرونده های فعال"
+
+msgid "Show inactive records"
+msgstr "نمایش پرونده های غیرفعال"
+
+msgid "Find"
+msgstr "یافتن"
+
+msgid "From"
+msgstr "از"
+
+msgid "To"
+msgstr "به"
+
+msgid "Open the calendar"
+msgstr "بازکردن تقویم"
+
+msgid "ID"
+msgstr "شناسه"
+
+#, fuzzy
+msgid "Created by"
+msgstr "ایجاد..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "تاریخ ایجاد"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "تاریخ اصلاح"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "\"%1\" مورد نیاز است"
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" با توجه به دامنه آن معتبر نیست"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "مقادیر \"%1\" معتبر نیستند"
+
+msgid "Pre-validation"
+msgstr "پیش-اعتبارسنجی"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "ترجمه"
+
+msgid "Edit"
+msgstr "ویرایش"
+
+msgid "Fuzzy"
+msgstr "نامانوس"
+
+msgid "You need to save the record before adding translations."
+msgstr "قبل از اضافه کردن ترجمه ها شما باید پرونده را ذخیره کنید."
+
+msgid "No other language available."
+msgstr "هیچ زبان دیگری در دسترس نیست."
+
+msgid "Show"
+msgstr "نمایش"
+
+msgid "Hide"
+msgstr "مخفی"
+
+#, fuzzy
+msgid "Open the record"
+msgstr "بازکردن پرونده "
+
+msgid "Clear the field"
+msgstr ""
+
+#, fuzzy
+msgid "Search a record"
+msgstr "جستجوی یک پرونده "
+
+msgid "Add"
+msgstr "افزودن"
+
+msgid "Remove"
+msgstr "حذف"
+
+msgid "Open"
+msgstr "باز"
+
+msgid "Undelete"
+msgstr "بازگردانی"
+
+msgid "Save As"
+msgstr "ذخیره با نام"
+
+msgid "Save As..."
+msgstr "ذخیره با نام..."
+
+msgid "Select"
+msgstr "انتخاب"
+
+msgid "Select..."
+msgstr "انتخاب..."
+
+msgid "Clear"
+msgstr "پاک کردن"
+
+#, fuzzy
+msgid "Open..."
+msgstr "باز"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "بیشتر"
+
+msgid "Today"
+msgstr "امروز"
+
+msgid "Month"
+msgstr "ماه"
+
+msgid "Week"
+msgstr "هفته"
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "انتخاب اقدام شما"
+
+msgid "No action defined."
+msgstr "اقدامی تعریف نشده."
+
+msgid "Attachments (%1)"
+msgstr "پیوست ها(1%)"
+
+msgid "Notes (%1)"
+msgstr "یادداشت ها(1%)"
+
+msgid "Search %1"
+msgstr "جستجو(1%)"
+
+msgid "Revision"
+msgstr "تجدید نظر"
+
+msgid "All Fields"
+msgstr "همه فیلد ها"
+
+msgid "Fields Selected"
+msgstr "فیلد های انتخاب شده"
+
+msgid "CSV Parameters"
+msgstr "مولفه های CSV"
+
+msgid "Delimiter:"
+msgstr "جدا کننده :"
+
+msgid "Quote Char:"
+msgstr "کاراکترنقل قول :"
+
+msgid "CSV Import: %1"
+msgstr "وارد کردن (CSV) : 1%"
+
+msgid "Auto-Detect"
+msgstr "شناسایی - خودکار"
+
+msgid "File to Import"
+msgstr "فایل برای واردکردن"
+
+msgid "Encoding:"
+msgstr "رمزگذاری :"
+
+msgid "Lines to Skip:"
+msgstr "چشم پوشی ازخطوط:"
+
+#, fuzzy
+msgid "You must select an import file first."
+msgstr "شما باید ابتدا فایل ورودی را انتخاب کنید"
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "خطای پردازش فایل واقع در فیلد : \"%1\"."
+
+msgid "Error"
+msgstr "خطا"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "وارد كردن"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "\"1%\" (نام پرونده)"
+msgstr[1] "\"1%\" (نام پرونده)"
+
+msgid "CSV Export: %1"
+msgstr "صادرکردن (CSV) : 1%"
+
+msgid "Save Export"
+msgstr "ذخیره استخراج"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "صادر کردن"
+
+msgid "Delete Export"
+msgstr "حذف استخراج"
+
+msgid "Predefined Exports"
+msgstr "استخراج از پیش تعریف شده"
+
+#, fuzzy
+msgid "Selected Records"
+msgstr "پرونده بعدی"
+
+#, fuzzy
+msgid "Listed Records"
+msgstr "پرونده بعدی"
+
+#, fuzzy
+msgid "Export:"
+msgstr "صادر کردن"
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr "اضافه کردن نام های فیلد"
+
+msgid "%1 (string)"
+msgstr "\"1%\" (متنی)"
+
+msgid "%1 (model name)"
+msgstr "\"1%\" (نام مدل)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "\"1%\" (نام پرونده)"
+
+msgid "What is the name of this export?"
+msgstr "نام این فایل استخراجی چیست؟"
+
+msgid "Override %1 definition?"
+msgstr "بازنویسی \"1%\" تعاریف؟"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "پرونده ذخیره شد."
+msgstr[1] "پرونده ذخیره شد."
+
+msgid "E-mail %1"
+msgstr ""
+
+#, fuzzy
+msgid "To:"
+msgstr "به"
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "گزارش باگ"
+
+#, fuzzy
+msgid "Attachments"
+msgstr "پیوست"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "حذف"
+
+msgid "Wizard"
+msgstr "دستیار نصب"
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/fi.po b/sao/locale/fi.po
new file mode 100644
index 0000000000..d510b8d5ee
--- /dev/null
+++ b/sao/locale/fi.po
@@ -0,0 +1,713 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+#, fuzzy
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+#, fuzzy
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+#, fuzzy
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/fr.po b/sao/locale/fr.po
new file mode 100644
index 0000000000..064d508409
--- /dev/null
+++ b/sao/locale/fr.po
@@ -0,0 +1,715 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Êtes-vous sûr de quitter ?"
+
+msgid "Incompatible version of the server."
+msgstr "Version du serveur incompatible."
+
+msgid "Version mismatch"
+msgstr "Version incompatible"
+
+msgid "Could not connect to the server."
+msgstr "Impossible de se connecter au serveur."
+
+msgid "Connection error"
+msgstr "Erreur de connexion"
+
+msgid "Favorites"
+msgstr "Favoris"
+
+msgid "Manage..."
+msgstr "Gérer..."
+
+msgid "Logout"
+msgstr "Déconnexion"
+
+msgid "Action"
+msgstr "Actions"
+
+msgid "New"
+msgstr "Nouveau"
+
+msgid "Save"
+msgstr "Sauver"
+
+msgid "Switch"
+msgstr "Basculer"
+
+msgid "Reload/Undo"
+msgstr "Recharger/Annuler"
+
+msgid "Duplicate"
+msgstr "Dupliquer"
+
+msgid "Delete"
+msgstr "Supprimer"
+
+msgid "Previous"
+msgstr "Précédent"
+
+msgid "Next"
+msgstr "Suivant"
+
+msgid "Search"
+msgstr "Rechercher"
+
+msgid "Close Tab"
+msgstr "Fermer l'onglet"
+
+msgid "Attachment"
+msgstr "Attachement"
+
+msgid "Note"
+msgstr "Note"
+
+msgid "Relate"
+msgstr "Relation"
+
+msgid "Print"
+msgstr "Imprimer"
+
+msgid "E-Mail"
+msgstr "E-mail"
+
+msgid "Previous tab"
+msgstr "Onglet précédent"
+
+msgid "Next tab"
+msgstr "Onglet suivant"
+
+msgid "Global search"
+msgstr "Recherche globale"
+
+msgid "Show this help"
+msgstr "Affiche cette aide"
+
+msgid "Show/Hide access keys"
+msgstr "Afficher/Masquer les touches d'accès"
+
+msgid "Help"
+msgstr "Aide"
+
+msgid "Close"
+msgstr "Fermer"
+
+msgid "Documentation..."
+msgstr "Documentation..."
+
+msgid "Keyboard shortcuts"
+msgstr "Raccourcis clavier"
+
+msgid "Global shortcuts"
+msgstr "Raccourcis globaux"
+
+msgid "Tab shortcuts"
+msgstr "Raccourcis d'onglet"
+
+msgid "Unable to reach the server."
+msgstr "Impossible de joindre le serveur."
+
+msgid "Too many requests. Try again later."
+msgstr "Trop de demandes. Réessayez plus tard."
+
+msgid "Login"
+msgstr "Connexion"
+
+msgid "User name"
+msgstr "Nom d'utilisateur"
+
+msgid "Database"
+msgstr "Base de données"
+
+msgid "Login with"
+msgstr "Connexion avec"
+
+msgid "Not found."
+msgstr "Pas trouvé."
+
+msgid "Your selection:"
+msgstr "Votre sélection :"
+
+msgid "Cancel"
+msgstr "Annuler"
+
+msgid "OK"
+msgstr "Valider"
+
+msgid "Y"
+msgstr "A"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "S"
+
+msgid "d"
+msgstr "j"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Par : "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "Oui"
+
+msgid "True"
+msgstr "Vrai"
+
+msgid "t"
+msgstr "v"
+
+msgid "False"
+msgstr "Faux"
+
+msgid "Message: "
+msgstr "Message : "
+
+msgid "Warning: "
+msgstr "Avertissement : "
+
+msgid "Always ignore this warning."
+msgstr "Toujours ignorer cet avertissement."
+
+msgid "Do you want to proceed?"
+msgstr "Souhaitez-vous continuer ?"
+
+msgid "No"
+msgstr "Non"
+
+msgid "Confirmation: "
+msgstr "Confirmation : "
+
+msgid "Concurrency Exception"
+msgstr "Erreur d'accès concurrent"
+
+msgid "Write Concurrency Warning: "
+msgstr "Attention, accès en écriture concurrents : "
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+"Cet enregistrement a été modifié pendant que vous étiez en train de "
+"l'éditer."
+
+msgid "Choose:"
+msgstr "Choisissez :"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "« Annuler » pour annuler vos modifications ;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "« Comparer » pour voir la nouvelle version ;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "« Écraser » pour sauver vos modifications."
+
+msgid "Compare"
+msgstr "Comparer"
+
+msgid "Compare: %1"
+msgstr "Comparer : %1"
+
+msgid "Write Anyway"
+msgstr "Écraser"
+
+msgid "Application Error"
+msgstr "Erreur applicative"
+
+msgid "Report Bug"
+msgstr "Rapporter un bogue"
+
+msgid "Processing"
+msgstr "Traitement en cours"
+
+msgid "Search..."
+msgstr "Recherche..."
+
+msgid "Create..."
+msgstr "Créer..."
+
+msgid "Download"
+msgstr "Télécharger"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Gras"
+
+msgid "Italic"
+msgstr "Italique"
+
+msgid "Underline"
+msgstr "Souligné"
+
+msgid "Font"
+msgstr "Police"
+
+msgid "Size"
+msgstr "Taille"
+
+msgid "Justify Right"
+msgstr "Justifié à droite"
+
+msgid "Justify Left"
+msgstr "Justifié à gauche"
+
+msgid "Justify Center"
+msgstr "Centré"
+
+msgid "Justify Full"
+msgstr "Justifié"
+
+msgid "Switch view"
+msgstr "Basculer la vue"
+
+msgid "Previous Record"
+msgstr "Enregistrement précédent"
+
+msgid "Next Record"
+msgstr "Enregistrement suivant"
+
+msgid "Create a new record"
+msgstr "Créer un nouvel enregistrement"
+
+msgid "Save this record"
+msgstr "Sauver cet enregistrement"
+
+msgid "Reload"
+msgstr "Recharger"
+
+msgid "View Logs..."
+msgstr "Voir les Logs..."
+
+msgid "Show revisions..."
+msgstr "Afficher les révisions..."
+
+msgid "Add an attachment to the record"
+msgstr "Ajouter un attachement à l'enregistrement"
+
+msgid "Add a note to the record"
+msgstr "Ajouter une note à l'enregistrement"
+
+msgid "E-Mail..."
+msgstr "E-mail..."
+
+msgid "Send an e-mail using the record"
+msgstr "Envoyer un e-mail en utilisant l'enregistrement"
+
+msgid "Export"
+msgstr "Exporter"
+
+msgid "Import"
+msgstr "Importer"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"L'action suivante nécessite de fermer tous les onglets.\n"
+"Voulez-vous continuer ?"
+
+msgid "Launch action"
+msgstr "Lancer une action"
+
+msgid "Open related records"
+msgstr "Ouvrir les enregistrements liés"
+
+msgid "Print report"
+msgstr "Imprimer un rapport"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Cet enregistrement a été modifié\n"
+"voulez-vous le sauvegarder ?"
+
+msgid "Record saved."
+msgstr "Enregistrement sauvegardé."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Sur les enregistrement(s) dupliqué(s) maintenant."
+
+msgid "Are you sure to remove this record?"
+msgstr "Êtes-vous sûr de vouloir supprimer cet enregistrement ?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Êtes-vous sûr de vouloir supprimer ces enregistrements ?"
+
+msgid "Records removed."
+msgstr "Enregistrements supprimés."
+
+msgid "Records not removed."
+msgstr "Enregistrements non supprimés."
+
+msgid "You have to select one record."
+msgstr "Vous devez sélectionner un enregistrement."
+
+msgid "ID:"
+msgstr "ID :"
+
+msgid "Created by:"
+msgstr "Crée par :"
+
+msgid "Created at:"
+msgstr "Crée le :"
+
+msgid "Edited by:"
+msgstr "Édité par :"
+
+msgid "Edited at:"
+msgstr "Édité le :"
+
+msgid "Model: "
+msgstr "Modèle : "
+
+msgid "Add..."
+msgstr "Ajouter..."
+
+msgid "Preview"
+msgstr "Aperçu"
+
+msgid "Template"
+msgstr "Modèle"
+
+msgid "Attachment (%1)"
+msgstr "Attachement (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Note (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtres"
+
+msgid "Clear Search"
+msgstr "Effacer la recherche"
+
+msgid "Bookmarks"
+msgstr "Marques-pages"
+
+msgid "Remove this bookmark"
+msgstr "Supprimer ce marque-page"
+
+msgid "Bookmark this filter"
+msgstr "Sauver ce filtre"
+
+msgid "Bookmark Name:"
+msgstr "Nom du marque-page :"
+
+msgid "Show active records"
+msgstr "Montrer les enregistrements actifs"
+
+msgid "Show inactive records"
+msgstr "Montrer les enregistrements inactifs"
+
+msgid "Find"
+msgstr "Chercher"
+
+msgid "From"
+msgstr "De"
+
+msgid "To"
+msgstr "À"
+
+msgid "Open the calendar"
+msgstr "Ouvrir le calendrier"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Créé par"
+
+msgid "Created at"
+msgstr "Crée le"
+
+msgid "Modified by"
+msgstr "Modifié par"
+
+msgid "Modified at"
+msgstr "Modifié le"
+
+msgid "\"%1\" is required."
+msgstr "« %1 » est requis."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "« %1 » n'est pas valide selon son domaine."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Les valeurs de « %1 » ne sont pas valides."
+
+msgid "Pre-validation"
+msgstr "Pré-validation"
+
+msgid ":"
+msgstr " :"
+
+msgid "Translate"
+msgstr "Traduire"
+
+msgid "Edit"
+msgstr "Éditer"
+
+msgid "Fuzzy"
+msgstr "Floue"
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+"Vous devez sauvegarder l'enregistrement avant d'ajouter des traductions."
+
+msgid "No other language available."
+msgstr "Pas d'autre langue disponible."
+
+msgid "Show"
+msgstr "Afficher"
+
+msgid "Hide"
+msgstr "Masquer"
+
+msgid "Open the record"
+msgstr "Ouvrir l'enregistrement"
+
+msgid "Clear the field"
+msgstr "Effacer le champ"
+
+msgid "Search a record"
+msgstr "Chercher un enregistrement"
+
+msgid "Add"
+msgstr "Ajouter"
+
+msgid "Remove"
+msgstr "Enlever"
+
+msgid "Open"
+msgstr "Ouvrir"
+
+msgid "Undelete"
+msgstr "Restaurer"
+
+msgid "Save As"
+msgstr "Enregistrer sous"
+
+msgid "Save As..."
+msgstr "Enregistrer sous..."
+
+msgid "Select"
+msgstr "Sélectionner"
+
+msgid "Select..."
+msgstr "Sélectionner..."
+
+msgid "Clear"
+msgstr "Effacer"
+
+msgid "Open..."
+msgstr "Ouvrir..."
+
+msgid "Choose a language"
+msgstr "Choisir une langue"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr " : "
+
+msgid "Customize"
+msgstr "Personnaliser"
+
+msgid "More"
+msgstr "Plus"
+
+msgid "Today"
+msgstr "Aujourd'hui"
+
+msgid "Month"
+msgstr "Mois"
+
+msgid "Week"
+msgstr "Semaine"
+
+msgid "Day"
+msgstr "Jour"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Sélectionnez votre action"
+
+msgid "No action defined."
+msgstr "Pas d'action définie."
+
+msgid "Attachments (%1)"
+msgstr "Attachements (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notes (%1)"
+
+msgid "Search %1"
+msgstr "Recherche %1"
+
+msgid "Revision"
+msgstr "Révision"
+
+msgid "All Fields"
+msgstr "Tous les champs"
+
+msgid "Fields Selected"
+msgstr "Champs sélectionnés"
+
+msgid "CSV Parameters"
+msgstr "Paramètres CSV"
+
+msgid "Delimiter:"
+msgstr "Délimiteur :"
+
+msgid "Quote Char:"
+msgstr "Caractère de guillemet :"
+
+msgid "CSV Import: %1"
+msgstr "Import CSV : %1"
+
+msgid "Auto-Detect"
+msgstr "Détection automatique"
+
+msgid "File to Import"
+msgstr "Fichier à importer"
+
+msgid "Encoding:"
+msgstr "Codage :"
+
+msgid "Lines to Skip:"
+msgstr "Lignes à ignorer :"
+
+msgid "You must select an import file first."
+msgstr "Vous devez d'abord sélectionner un fichier d'import."
+
+msgid "Detection failed"
+msgstr "La détection a échoué"
+
+msgid "Error processing the file at field %1."
+msgstr "Erreur lors du traitement du fichier du champ %1."
+
+msgid "Error"
+msgstr "Erreur"
+
+msgid "Import failed"
+msgstr "L'import a échoué"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 enregistrement importé"
+msgstr[1] "%1 enregistrements importés"
+
+msgid "CSV Export: %1"
+msgstr "Export CSV : %1"
+
+msgid "Save Export"
+msgstr "Sauver l'exportation"
+
+msgid "URL Export"
+msgstr "URL d'exportation"
+
+msgid "Delete Export"
+msgstr "Supprimer l'exportation"
+
+msgid "Predefined Exports"
+msgstr "Exportations prédéfinies"
+
+msgid "Selected Records"
+msgstr "Enregistrements sélectionnés"
+
+msgid "Listed Records"
+msgstr "Enregistrements listés"
+
+msgid "Export:"
+msgstr "Exporter :"
+
+msgid "Ignore search limit"
+msgstr "Ignorer la limite de recherche"
+
+msgid "Use locale format"
+msgstr "Utiliser le format local"
+
+msgid "Add Field Names"
+msgstr "Ajouter les noms des champs"
+
+msgid "%1 (string)"
+msgstr "%1 (string)"
+
+msgid "%1 (model name)"
+msgstr "%1 (nom de l'enregistrement)"
+
+msgid "%1/Record Name"
+msgstr "%1/Nom de l'enregistrement"
+
+msgid "What is the name of this export?"
+msgstr "Quel est le nom de cet export ?"
+
+msgid "Override %1 definition?"
+msgstr "Surcharger la définition %1 ?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 enregistrement sauvegardé"
+msgstr[1] "%1 enregistrements sauvegardés"
+
+msgid "E-mail %1"
+msgstr "E-mail %1"
+
+msgid "To:"
+msgstr "À :"
+
+msgid "Cc:"
+msgstr "Cc :"
+
+msgid "Bcc:"
+msgstr "Cci :"
+
+msgid "Subject:"
+msgstr "Objet :"
+
+msgid "Reports"
+msgstr "Rapports"
+
+msgid "Attachments"
+msgstr "Pièces jointes"
+
+msgid "Files"
+msgstr "Fichiers"
+
+msgid "Send"
+msgstr "Envoyer"
+
+msgid "Remove File"
+msgstr "Supprimer le fichier"
+
+msgid "Wizard"
+msgstr "Assistant"
+
+msgid "Translate view"
+msgstr "Traduire la vue"
diff --git a/sao/locale/hu.po b/sao/locale/hu.po
new file mode 100644
index 0000000000..123713c146
--- /dev/null
+++ b/sao/locale/hu.po
@@ -0,0 +1,724 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Jegyzet hozzáadása a rekordhoz"
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Alkalmazáshiba"
+
+msgid "Favorites"
+msgstr "Könyvjelzők"
+
+msgid "Manage..."
+msgstr "Módosítás..."
+
+msgid "Logout"
+msgstr "Kilépés"
+
+msgid "Action"
+msgstr "Művelet"
+
+msgid "New"
+msgstr "Új"
+
+msgid "Save"
+msgstr "Mentés"
+
+msgid "Switch"
+msgstr "Átvált"
+
+msgid "Reload/Undo"
+msgstr "Újratöltés / Visszavonás"
+
+msgid "Duplicate"
+msgstr "Duplázás"
+
+msgid "Delete"
+msgstr "Törlés"
+
+msgid "Previous"
+msgstr "Vissza"
+
+msgid "Next"
+msgstr "Tovább"
+
+msgid "Search"
+msgstr "Keresés"
+
+msgid "Close Tab"
+msgstr "Lap bezárása"
+
+msgid "Attachment"
+msgstr "Melléklet"
+
+msgid "Note"
+msgstr "Jegyzetek"
+
+msgid "Relate"
+msgstr "Kapcsolat"
+
+msgid "Print"
+msgstr "Nyomtatás"
+
+msgid "E-Mail"
+msgstr "E-mail"
+
+msgid "Previous tab"
+msgstr "Előző lap"
+
+msgid "Next tab"
+msgstr "Következő lap"
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Bezárás"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Gyorsbillentyűk"
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "Bejelentkezés"
+
+msgid "User name"
+msgstr "Felhasználónév"
+
+msgid "Database"
+msgstr "Adatbázis"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Bejelentkezés"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Az ön választásai:"
+
+msgid "Cancel"
+msgstr "Mégse"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "É"
+
+msgid "M"
+msgstr "H"
+
+msgid "w"
+msgstr "h"
+
+msgid "d"
+msgstr "t"
+
+msgid "h"
+msgstr "ó"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr ""
+
+#, fuzzy
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "J"
+
+msgid "Yes"
+msgstr "Igen"
+
+msgid "True"
+msgstr "Igaz"
+
+msgid "t"
+msgstr "w"
+
+msgid "False"
+msgstr "Hamis"
+
+msgid "Message: "
+msgstr "Üzenet: "
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr "Ne mutassa többet ezt a figyelmeztetést"
+
+msgid "Do you want to proceed?"
+msgstr "Akarja folyatni?"
+
+msgid "No"
+msgstr "Nem"
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr "Egyidejű módosítási hiba"
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+"Ezt a rekordot valaki más módosította az idő alatt, míg Ön dolgozott rajta."
+
+msgid "Choose:"
+msgstr "Válasszon:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "„Mégse”, hogy ne mentse el;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+"„Összehasonlítás”, hogy megtekintse a másik felhasználó által módosított "
+"változatot;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "„Felülírás”, hogy a másik felhasználóét az Ön verziójával felülírja."
+
+msgid "Compare"
+msgstr "Összehasonlítás"
+
+msgid "Compare: %1"
+msgstr "Összehasonlítás: %1"
+
+msgid "Write Anyway"
+msgstr "Felülírás"
+
+msgid "Application Error"
+msgstr "Alkalmazáshiba"
+
+msgid "Report Bug"
+msgstr "A hiba jelentése"
+
+msgid "Processing"
+msgstr "Folyamatban"
+
+msgid "Search..."
+msgstr "Keresés..."
+
+msgid "Create..."
+msgstr "Létrehozás..."
+
+msgid "Download"
+msgstr "Letöltés"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr "Betűtípus"
+
+msgid "Size"
+msgstr "Méret"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Nézet váltása"
+
+msgid "Previous Record"
+msgstr "Előző rekord"
+
+msgid "Next Record"
+msgstr "Következő rekord"
+
+msgid "Create a new record"
+msgstr "Új rekord létrehozása"
+
+msgid "Save this record"
+msgstr "Rekord mentése"
+
+msgid "Reload"
+msgstr "Újratöltés"
+
+msgid "View Logs..."
+msgstr "Napló megtekintése..."
+
+msgid "Show revisions..."
+msgstr "Feldolgozások megtekintése"
+
+msgid "Add an attachment to the record"
+msgstr "Melléklet hozzáadása a rekordhoz"
+
+msgid "Add a note to the record"
+msgstr "Jegyzet hozzáadása a rekordhoz"
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr "E-mail küldése a rekord adataival"
+
+msgid "Export"
+msgstr "Exportálás"
+
+msgid "Import"
+msgstr "Importálás"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"A továbblépéshez be kell zárnia minden nyitott lapot.\n"
+"Biztosan tovább akar lépni?"
+
+msgid "Launch action"
+msgstr "Művelet indítása"
+
+msgid "Open related records"
+msgstr "Kapcsolódó rekordok megnyitása"
+
+msgid "Print report"
+msgstr "Nyomtatás"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Módosította ezt a rekordot,\n"
+"el akarja menteni?"
+
+msgid "Record saved."
+msgstr "Rekord elmentve."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Most az új másolaton(okon) dolgozik."
+
+msgid "Are you sure to remove this record?"
+msgstr "Biztos törölni szeretné?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Biztos törölni szeretné?"
+
+msgid "Records removed."
+msgstr "Rekordok törölve."
+
+msgid "Records not removed."
+msgstr "A rekordok nem lettek törölve."
+
+msgid "You have to select one record."
+msgstr "Ki kell választania egy rekordot."
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr "Létrehozta:"
+
+msgid "Created at:"
+msgstr "Létrehozás dátuma:"
+
+msgid "Edited by:"
+msgstr "Módosította:"
+
+msgid "Edited at:"
+msgstr "Módosítás dátuma:"
+
+msgid "Model: "
+msgstr "Elem: "
+
+msgid "Add..."
+msgstr "Hozzáadás..."
+
+msgid "Preview"
+msgstr "Előnézet"
+
+msgid "Template"
+msgstr "Sablon"
+
+msgid "Attachment (%1)"
+msgstr "Melléklet (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Jegyzet (%1/%2)"
+
+msgid "Filters"
+msgstr "Szűrők"
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr "Elmentett szűrők"
+
+msgid "Remove this bookmark"
+msgstr "Ez az elmentett szűrő eltávolítása"
+
+msgid "Bookmark this filter"
+msgstr "Ez a szűrő elmentése"
+
+msgid "Bookmark Name:"
+msgstr "Könyvjelző neve:"
+
+msgid "Show active records"
+msgstr "Aktív rekordok megjelenítése"
+
+msgid "Show inactive records"
+msgstr "Inaktív rekordok megjelenítése"
+
+msgid "Find"
+msgstr "Keresés"
+
+msgid "From"
+msgstr "Küldő"
+
+msgid "To"
+msgstr "Címzett"
+
+msgid "Open the calendar"
+msgstr "Naptár megnyitása"
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr "Létrehozta"
+
+msgid "Created at"
+msgstr "Létrehozás dátuma"
+
+msgid "Modified by"
+msgstr "Módosította"
+
+msgid "Modified at"
+msgstr "Módosítás dátuma"
+
+msgid "\"%1\" is required."
+msgstr "A(z) „%1” mezőt meg kell adni."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "A(z) „%1” mezőben helytelen értéket adott meg."
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr "Adatkitöltés ellenőrzése"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Fordítás"
+
+msgid "Edit"
+msgstr "Módosítás"
+
+msgid "Fuzzy"
+msgstr "Pontatlan"
+
+msgid "You need to save the record before adding translations."
+msgstr "El kell menteni a rekordot mielőtt hozzáadja a fordítást."
+
+msgid "No other language available."
+msgstr "Másik nyelv nem elérhető."
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr "Elrejtés"
+
+msgid "Open the record"
+msgstr "Rekord megnyitása"
+
+msgid "Clear the field"
+msgstr "A mező kiürítése"
+
+msgid "Search a record"
+msgstr "Rekord keresése"
+
+msgid "Add"
+msgstr "Hozzáad"
+
+msgid "Remove"
+msgstr "Eltávolítás"
+
+msgid "Open"
+msgstr "Megnyitás"
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr "Mentés másként"
+
+msgid "Save As..."
+msgstr "Mentés másként..."
+
+msgid "Select"
+msgstr "Kiválaszt"
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr "Törlés"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Megnyitás"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr "Ma"
+
+msgid "Month"
+msgstr "Hónap"
+
+msgid "Week"
+msgstr "Hét"
+
+msgid "Day"
+msgstr "Nap"
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr "Válasszon műveletet"
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr "Mellékletek (%1)"
+
+msgid "Notes (%1)"
+msgstr "Jegyzetek (%1)"
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr "Szerkesztés"
+
+msgid "All Fields"
+msgstr "Összes mező"
+
+msgid "Fields Selected"
+msgstr "Kiválasztott mezők"
+
+msgid "CSV Parameters"
+msgstr "CSV paraméterek"
+
+msgid "Delimiter:"
+msgstr "Elválasztójel:"
+
+msgid "Quote Char:"
+msgstr "Karakterlánc-elválasztó:"
+
+msgid "CSV Import: %1"
+msgstr "Importálás CSV-ből: %1"
+
+msgid "Auto-Detect"
+msgstr "Automatikus felismerés"
+
+msgid "File to Import"
+msgstr "Importadatok"
+
+msgid "Encoding:"
+msgstr "Kódolás:"
+
+msgid "Lines to Skip:"
+msgstr "Átugrandó sorok:"
+
+msgid "You must select an import file first."
+msgstr "Először adja meg a betöltendő fájlt."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr "Hiba"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Importálás"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr "Exportálás CSV-be: %1"
+
+msgid "Save Export"
+msgstr "Oszloplista elmentése"
+
+msgid "URL Export"
+msgstr "Exportálás URL-je"
+
+msgid "Delete Export"
+msgstr "Oszloplista törlése"
+
+msgid "Predefined Exports"
+msgstr "Elmentett oszloplisták"
+
+msgid "Selected Records"
+msgstr "Csak a kiválasztott rekordokat"
+
+msgid "Listed Records"
+msgstr "A listán szereplő összes rekordot"
+
+msgid "Export:"
+msgstr "Exportálás:"
+
+msgid "Ignore search limit"
+msgstr "Keresési korlát nélkül"
+
+msgid "Use locale format"
+msgstr "A felhasználó nyelvén"
+
+msgid "Add Field Names"
+msgstr "Mezőnevek hozzáadása"
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "Rekord elmentve."
+
+msgid "What is the name of this export?"
+msgstr "Mi legyen az oszloplista neve?"
+
+msgid "Override %1 definition?"
+msgstr ""
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Rekord elmentve."
+msgstr[1] "Rekord elmentve."
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr "Címzett:"
+
+msgid "Cc:"
+msgstr "Másolatot kap:"
+
+msgid "Bcc:"
+msgstr "Rejtett másolat:"
+
+msgid "Subject:"
+msgstr "Tárgy:"
+
+msgid "Reports"
+msgstr "Nyomtatványok"
+
+msgid "Attachments"
+msgstr "Mellékletek"
+
+msgid "Files"
+msgstr "Fájlok"
+
+msgid "Send"
+msgstr "Küldés"
+
+msgid "Remove File"
+msgstr "Fájl eltávolítása"
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr "Nézet fordítása."
diff --git a/sao/locale/id.po b/sao/locale/id.po
new file mode 100644
index 0000000000..efdd9000a1
--- /dev/null
+++ b/sao/locale/id.po
@@ -0,0 +1,708 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Anda yakin akan meninggalkan?"
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr "Tindakan"
+
+msgid "New"
+msgstr "Baru"
+
+msgid "Save"
+msgstr "Simpan"
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr "Hapus"
+
+msgid "Previous"
+msgstr "Sebelumnya"
+
+msgid "Next"
+msgstr "Berikutnya"
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr "Lampiran"
+
+msgid "Note"
+msgstr "Catatan"
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr "Cetak"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Tutup"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr "Terlalu banyak permintaan. Coba lagi nanti."
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Pilihan Anda:"
+
+msgid "Cancel"
+msgstr "Batal"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "Y"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "w"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Oleh: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "Ya"
+
+msgid "True"
+msgstr "Benar"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "Salah"
+
+msgid "Message: "
+msgstr "Pesan: "
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr "Selalu abaikan peringatan ini."
+
+msgid "Do you want to proceed?"
+msgstr "Apakah Anda ingin melanjutkan?"
+
+msgid "No"
+msgstr "Tidak"
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr "Rekaman ini telah diubah selagi Anda menyuntingnya."
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr "Bandingkan"
+
+msgid "Compare: %1"
+msgstr "Bandingkan: %1"
+
+msgid "Write Anyway"
+msgstr "Tetap Menulis"
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr "Melaporkan Kesalahan"
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr "Unduh"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Tebal"
+
+msgid "Italic"
+msgstr "Miring"
+
+msgid "Underline"
+msgstr "Garis Bawah"
+
+msgid "Font"
+msgstr "Huruf"
+
+msgid "Size"
+msgstr "Ukuran"
+
+msgid "Justify Right"
+msgstr "Rata Kanan"
+
+msgid "Justify Left"
+msgstr "Rata Kiri"
+
+msgid "Justify Center"
+msgstr "Rata Tengah"
+
+msgid "Justify Full"
+msgstr "Rata Penuh"
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr "E-Mail..."
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Tindakan berikut ini perlu untuk menutup semua tab.\n"
+"Apakah Anda ingin melanjutkan?"
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr "Cetak laporan"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Dibuat oleh:"
+
+msgid "Created at:"
+msgstr "Dibuat pada:"
+
+msgid "Edited by:"
+msgstr "Disunting oleh:"
+
+msgid "Edited at:"
+msgstr "Disunting pada:"
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr "Pratinjau"
+
+msgid "Template"
+msgstr "Templat"
+
+msgid "Attachment (%1)"
+msgstr "Lampiran (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Catatan (%1/%2)"
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr "Dari"
+
+msgid "To"
+msgstr "Kepada"
+
+msgid "Open the calendar"
+msgstr "Buka kalender"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Dibuat oleh"
+
+msgid "Created at"
+msgstr "Dibuat pada"
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr "Sunting"
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr "Tidak ada bahasa lain yang tersedia."
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr "Tambah"
+
+msgid "Remove"
+msgstr "Hapus"
+
+msgid "Open"
+msgstr "Buka"
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr "Simpan Sebagai"
+
+msgid "Save As..."
+msgstr "Simpan Sebagai..."
+
+msgid "Select"
+msgstr "Pilih"
+
+msgid "Select..."
+msgstr "Pilih..."
+
+msgid "Clear"
+msgstr "Bersihkan"
+
+msgid "Open..."
+msgstr "Buka..."
+
+msgid "Choose a language"
+msgstr "Pilih bahasa"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr "Hari ini"
+
+msgid "Month"
+msgstr "Bulan"
+
+msgid "Week"
+msgstr "Pekan"
+
+msgid "Day"
+msgstr "Hari"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Pilih tindakan Anda"
+
+msgid "No action defined."
+msgstr "Tidak ada tindakan yang ditentukan."
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr "Revisi"
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr "Kepada:"
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr "Laporan-Laporan"
+
+msgid "Attachments"
+msgstr "Lampiran-Lampiran"
+
+msgid "Files"
+msgstr "Berkas-Berkas"
+
+msgid "Send"
+msgstr "Kirim"
+
+msgid "Remove File"
+msgstr "Hapus Berkas"
+
+msgid "Wizard"
+msgstr "Wisaya"
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/it.po b/sao/locale/it.po
new file mode 100644
index 0000000000..784d28a9b0
--- /dev/null
+++ b/sao/locale/it.po
@@ -0,0 +1,731 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Sei sicuro di voler abbandonare?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "server non raggiungibile"
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "server non raggiungibile"
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Errore dell'applicazione"
+
+msgid "Favorites"
+msgstr "Preferiti"
+
+msgid "Manage..."
+msgstr "Gestisci..."
+
+msgid "Logout"
+msgstr "Esci"
+
+msgid "Action"
+msgstr "Azione"
+
+msgid "New"
+msgstr "Nuovo"
+
+msgid "Save"
+msgstr "Salva"
+
+msgid "Switch"
+msgstr "Cambia"
+
+msgid "Reload/Undo"
+msgstr "Ricarica/Ripristina"
+
+msgid "Duplicate"
+msgstr "Duplica"
+
+msgid "Delete"
+msgstr "Elimina"
+
+msgid "Previous"
+msgstr "Precedente"
+
+msgid "Next"
+msgstr "Successivo"
+
+msgid "Search"
+msgstr "Cerca"
+
+msgid "Close Tab"
+msgstr "Chiudi la scheda"
+
+msgid "Attachment"
+msgstr "Allegato"
+
+msgid "Note"
+msgstr "nota"
+
+msgid "Relate"
+msgstr "collega"
+
+msgid "Print"
+msgstr "Stampa"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr "Scheda precedente"
+
+msgid "Next tab"
+msgstr "Scheda successiva"
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Chiudi"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr "server non raggiungibile"
+
+msgid "Too many requests. Try again later."
+msgstr "Troppe richieste. Riprovare più tardi."
+
+msgid "Login"
+msgstr "Login"
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr "Database"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Login"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "La tua selezione:"
+
+msgid "Cancel"
+msgstr "Annulla"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "Y"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "w"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "per: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "Sì"
+
+msgid "True"
+msgstr "Vero"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "Falso"
+
+msgid "Message: "
+msgstr "messaggio: "
+
+msgid "Warning: "
+msgstr "Attenzione: "
+
+msgid "Always ignore this warning."
+msgstr "ignorare sempre questo avviso"
+
+msgid "Do you want to proceed?"
+msgstr "Continuare?"
+
+msgid "No"
+msgstr "no"
+
+msgid "Confirmation: "
+msgstr "conferma: "
+
+msgid "Concurrency Exception"
+msgstr "eccezione di concorrenza"
+
+msgid "Write Concurrency Warning: "
+msgstr "scrivi avviso di concorrenza: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Questo record è stato modificato mentre lo stavi compilando."
+
+msgid "Choose:"
+msgstr "Scegli:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Annulla\" per annullare il salvataggio;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Confronta\" per vedere la versione modificata;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Scrivi comunque\" per salvare la versione corrente"
+
+msgid "Compare"
+msgstr "Confronta"
+
+msgid "Compare: %1"
+msgstr "Confronta: %1"
+
+msgid "Write Anyway"
+msgstr "Scrivi comunque"
+
+msgid "Application Error"
+msgstr "Errore dell'applicazione"
+
+msgid "Report Bug"
+msgstr "Segnala l'errore"
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr "Cerca..."
+
+msgid "Create..."
+msgstr "Crea..."
+
+msgid "Download"
+msgstr "Scarica"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "Annullare l'eliminazione"
+
+msgid "Font"
+msgstr "Carattere"
+
+msgid "Size"
+msgstr "Dimensione"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "cambia visualizzazione"
+
+msgid "Previous Record"
+msgstr "Record precedente"
+
+msgid "Next Record"
+msgstr "Record successivo"
+
+msgid "Create a new record"
+msgstr "Crea un nuovo record"
+
+msgid "Save this record"
+msgstr "salvare il record"
+
+msgid "Reload"
+msgstr "Ricarica"
+
+msgid "View Logs..."
+msgstr "vedi logs"
+
+msgid "Show revisions..."
+msgstr "mostra revisioni"
+
+msgid "Add an attachment to the record"
+msgstr "aggiungere un allegato al record"
+
+msgid "Add a note to the record"
+msgstr "Aggiungi un appunto sul record"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "Aggiungi un appunto sul record"
+
+msgid "Export"
+msgstr "Esporta"
+
+msgid "Import"
+msgstr "Importa"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"L'azione seguente richiede la chiusura di tutte le finestre.\n"
+"Vuoi continuare?"
+
+msgid "Launch action"
+msgstr "lancia applicazione"
+
+msgid "Open related records"
+msgstr "Apri record correlati"
+
+msgid "Print report"
+msgstr "Stampa rapporto"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Questo record è stato modificato\n"
+"intendi salvarlo?"
+
+msgid "Record saved."
+msgstr "Record salvato."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Stai ora lavorando nel record duplicato."
+
+msgid "Are you sure to remove this record?"
+msgstr "sei sicuro di rimuovere questo record?"
+
+msgid "Are you sure to remove those records?"
+msgstr "sei sicuro di rimuovere questi record?"
+
+msgid "Records removed."
+msgstr "Record rimossi."
+
+msgid "Records not removed."
+msgstr "Record non rimossi."
+
+msgid "You have to select one record."
+msgstr "Devi selezionare un record."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Creato da:"
+
+msgid "Created at:"
+msgstr "Creato il:"
+
+msgid "Edited by:"
+msgstr "Modificato da:"
+
+msgid "Edited at:"
+msgstr "Modifica il:"
+
+msgid "Model: "
+msgstr "Modello: "
+
+msgid "Add..."
+msgstr "Inserisci..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "Precedente"
+
+#, fuzzy
+msgid "Template"
+msgstr "collega"
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "allegati (%1)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr "Filtri"
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr "Segnalibri"
+
+msgid "Remove this bookmark"
+msgstr "rimuovere questo segnalibro"
+
+msgid "Bookmark this filter"
+msgstr "contrassegnare questo filtro"
+
+msgid "Bookmark Name:"
+msgstr "Nome Segnalibro:"
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr "Trova"
+
+msgid "From"
+msgstr "Da"
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Creato da"
+
+msgid "Created at"
+msgstr "Creato il"
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr "Modificato il"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "\"%1\" è obbligatorio"
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" non è valido rispetto al dominio"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "i valori di \"%1\" non sono validi"
+
+msgid "Pre-validation"
+msgstr "pre-validazione"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Traduci"
+
+msgid "Edit"
+msgstr "Modifica"
+
+msgid "Fuzzy"
+msgstr "fuzzy"
+
+msgid "You need to save the record before adding translations."
+msgstr "È necessario salvare il record prima di aggiungere le traduzioni."
+
+msgid "No other language available."
+msgstr "Nessun altra lingua è disponibile."
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr "Aggiungi"
+
+msgid "Remove"
+msgstr "Rimuovi"
+
+msgid "Open"
+msgstr "Apri"
+
+msgid "Undelete"
+msgstr "Annullare l'eliminazione"
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr "Seleziona"
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr "Cancella"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Apri"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "più"
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr "Giorno"
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Seleziona l'azione"
+
+msgid "No action defined."
+msgstr "Nessuna azione definita."
+
+msgid "Attachments (%1)"
+msgstr "allegati (%1)"
+
+msgid "Notes (%1)"
+msgstr "note (%1)"
+
+msgid "Search %1"
+msgstr "Cerca %1"
+
+msgid "Revision"
+msgstr "Revisione"
+
+msgid "All Fields"
+msgstr "Ogni Campo"
+
+msgid "Fields Selected"
+msgstr "campi selezionati"
+
+msgid "CSV Parameters"
+msgstr "parametri CSV"
+
+msgid "Delimiter:"
+msgstr "Delimitatore:"
+
+msgid "Quote Char:"
+msgstr "Carattere tra virgolette:"
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr "Autorilevamento"
+
+msgid "File to Import"
+msgstr "file da importare"
+
+msgid "Encoding:"
+msgstr "Codifica:"
+
+msgid "Lines to Skip:"
+msgstr "Righe da saltare:"
+
+msgid "You must select an import file first."
+msgstr "Devi prima selezionare un file da importare."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "errore nell'elaborazione del file nel campo %1"
+
+msgid "Error"
+msgstr "Errore"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Importa"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr "salvare esportazione"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "Esporta"
+
+msgid "Delete Export"
+msgstr "eliminare esportazione"
+
+msgid "Predefined Exports"
+msgstr "esportazioni predefinite"
+
+msgid "Selected Records"
+msgstr "Record selezionati"
+
+msgid "Listed Records"
+msgstr "Record elencati"
+
+msgid "Export:"
+msgstr "Esporta:"
+
+msgid "Ignore search limit"
+msgstr "Ignora limite di ricerca"
+
+msgid "Use locale format"
+msgstr "Usa il formato locale"
+
+msgid "Add Field Names"
+msgstr "inserire nomi campo"
+
+msgid "%1 (string)"
+msgstr "%1 (stringa)"
+
+msgid "%1 (model name)"
+msgstr ""
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "Record salvato."
+
+msgid "What is the name of this export?"
+msgstr "qual è il nome di questa esportazione?"
+
+msgid "Override %1 definition?"
+msgstr "sovrascrivere definizione %1?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 record salvato"
+msgstr[1] "%1 record salvati"
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr "Cc:"
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "Segnala l'errore"
+
+msgid "Attachments"
+msgstr "Allegati"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "Rimuovi"
+
+msgid "Wizard"
+msgstr "wizard"
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/lo.po b/sao/locale/lo.po
new file mode 100644
index 0000000000..cc8797f616
--- /dev/null
+++ b/sao/locale/lo.po
@@ -0,0 +1,745 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "ບໍ່ສາມາດເຂົ້າເຖິງແມ່ຂ່າຍໄດ້"
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "ບໍ່ສາມາດເຂົ້າເຖິງແມ່ຂ່າຍໄດ້"
+
+#, fuzzy
+msgid "Connection error"
+msgstr "ຜູ້ສ້າງ"
+
+msgid "Favorites"
+msgstr "ທີ່ມັກ"
+
+msgid "Manage..."
+msgstr ""
+
+# Generated by grunt-xgettext on Thu Mar 31 2016 17:50:31 GMT+0200 (CEST)
+msgid "Logout"
+msgstr "ອອກລະບົບ"
+
+msgid "Action"
+msgstr "ດຳເນີນການ"
+
+msgid "New"
+msgstr "ໃໝ່"
+
+msgid "Save"
+msgstr "ບັນທຶກ"
+
+msgid "Switch"
+msgstr "ສະຫຼັບ"
+
+msgid "Reload/Undo"
+msgstr "ໂຫຼດຄືນໃໝ່/ຍົກເລີກ"
+
+msgid "Duplicate"
+msgstr "ຊໍ້າກັນ"
+
+msgid "Delete"
+msgstr "ລຶບ"
+
+msgid "Previous"
+msgstr "ກ່ອນໜ້າ"
+
+msgid "Next"
+msgstr "ຕໍ່ໄປ"
+
+msgid "Search"
+msgstr "ຊອກຫາ"
+
+msgid "Close Tab"
+msgstr "ອັດແຖບງານ"
+
+msgid "Attachment"
+msgstr "ຄັດຕິດ"
+
+msgid "Note"
+msgstr "ບັນທຶກຂໍ້ຄວາມ"
+
+msgid "Relate"
+msgstr "ກ່ຽວພັນກັບ"
+
+msgid "Print"
+msgstr "ພິມອອກ"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "ອັດ"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr "ບໍ່ສາມາດເຂົ້າເຖິງແມ່ຂ່າຍໄດ້"
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "ເຂົ້າສູ່ລະບົບ"
+
+msgid "User name"
+msgstr "ຊື່ຜູ້ໃຊ້"
+
+msgid "Database"
+msgstr "ຖານຂໍ້ມູນ"
+
+#, fuzzy
+msgid "Login with"
+msgstr "ເຂົ້າສູ່ລະບົບ"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "ການເລືອກຂອງທ່ານ:"
+
+msgid "Cancel"
+msgstr "ຍົກເລີກ"
+
+msgid "OK"
+msgstr "ຕົກລົງ"
+
+msgid "Y"
+msgstr "ປ"
+
+msgid "M"
+msgstr "ດ"
+
+msgid "w"
+msgstr "ອ"
+
+msgid "d"
+msgstr "ວ"
+
+msgid "h"
+msgstr "ມ"
+
+msgid "m"
+msgstr "ນ"
+
+msgid "s"
+msgstr "ວ"
+
+msgid "By: "
+msgstr "ໂດຍ: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "ມ"
+
+msgid "Yes"
+msgstr "ແມ່ນ"
+
+msgid "True"
+msgstr "ຈິງ"
+
+msgid "t"
+msgstr "ຈ"
+
+msgid "False"
+msgstr "ເທັດ"
+
+msgid "Message: "
+msgstr "ຂໍ້ຄວາມ: "
+
+msgid "Warning: "
+msgstr "ຄຳເຕືອນ: "
+
+msgid "Always ignore this warning."
+msgstr "ບໍ່ສົນກັບຄຳເຕືອນນີ້."
+
+msgid "Do you want to proceed?"
+msgstr "ທ່ານຕ້ອງການດຳເນີນບໍ່?"
+
+msgid "No"
+msgstr "ບໍ່"
+
+msgid "Confirmation: "
+msgstr "ຄຳຢັ້ງຢືນ: "
+
+msgid "Concurrency Exception"
+msgstr "ຍົກເວັ້ນສະກຸນເງິນ"
+
+msgid "Write Concurrency Warning: "
+msgstr "ຂຽນຄຳເຕືອນສະກຸນເງິນ: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "ແຖວຂໍ້ມູນນີ້ຖືກດັດແປງແລ້ວໃນຂະນະທີ່ທ່ານແກ້ໄຂມັນ."
+
+msgid "Choose:"
+msgstr "ເລືອກເອົາ:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"ຍົກເລີກ\" ເພື່ອຍົກເລີກການບັນທຶກ;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"ສົມທຽບ\" ເພື່ອເບິ່ງທຽບກັບສະບັບດັດແປງແລ້ວ;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"ຂຽນລົງເລີຍ\" ເພື່ອບັນທຶກສະບັບປັດຈຸບັນນີ້."
+
+msgid "Compare"
+msgstr "ສົມທຽບ"
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "ສົມທຽບ"
+
+msgid "Write Anyway"
+msgstr "ຂຽນລົງເລີຍ"
+
+msgid "Application Error"
+msgstr "ໂປຣແກຣມຜິດພາດ"
+
+msgid "Report Bug"
+msgstr "ລາຍງານຂໍ້ຜິດພາດ"
+
+#, fuzzy
+msgid "Processing"
+msgstr "ກຳລັງປະມວນຜົນ..."
+
+msgid "Search..."
+msgstr "ຄົ້ນຫາ..."
+
+msgid "Create..."
+msgstr "ສ້າງ..."
+
+msgid "Download"
+msgstr "ດາວໂຫຼດ"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "ເອົາກັບຄືນ"
+
+msgid "Font"
+msgstr "ໂຕໜັງສື"
+
+msgid "Size"
+msgstr "ຂະໜາດ"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "ສະຫຼັບໜ້າເບິ່ງ"
+
+msgid "Previous Record"
+msgstr "ແຖວຂໍ້ມູນກ່ອນ"
+
+msgid "Next Record"
+msgstr "ແຖວຂໍ້ມູນຕໍ່ໄປ"
+
+msgid "Create a new record"
+msgstr "ສ້າງແຖວຂໍ້ມູນໃໝ່"
+
+msgid "Save this record"
+msgstr "ບັນທຶກແຖວຂໍ້ມູນນີ້"
+
+msgid "Reload"
+msgstr "ໂຫຼດຄືນໃໝ່"
+
+msgid "View Logs..."
+msgstr "ເບິ່ງບັນທຶກ..."
+
+msgid "Show revisions..."
+msgstr "ສະແດງການແກ້ໄຂ"
+
+msgid "Add an attachment to the record"
+msgstr "ເອົາຂໍ້ມູນຄັດຕິດເຂົ້າໃນແຖວຂໍ້ມູນນີ້"
+
+msgid "Add a note to the record"
+msgstr "ບັນທຶກຂໍ້ຄວາມໃສ່ແຖວຂໍ້ມູນນີ້"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "ບັນທຶກຂໍ້ຄວາມໃສ່ແຖວຂໍ້ມູນນີ້"
+
+msgid "Export"
+msgstr "ສ່ົງອອກ"
+
+msgid "Import"
+msgstr "ນຳເຂົ້າ"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"ການດຳເນີນການຕໍ່ໄປນີ້ ຮຽກຮ້ອງໃຫ້ຕ້ອງອັດແຖບງານທັງໝົດລົງ\n"
+"ເຈົ້າຕ້ອງການດຳເນີນຕໍ່ບໍ່?"
+
+msgid "Launch action"
+msgstr "ປະຕິບັດການ"
+
+msgid "Open related records"
+msgstr "ໄຂແຖວຂໍ້ມູນທີ່ກ່ຽວພັນຂຶ້ນມາ"
+
+msgid "Print report"
+msgstr "ພິມລາຍງານອອກ"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"ແຖວຂໍ້ມູນນີ້ຖືກປ່ຽນແປງແລ້ວ\n"
+"ທ່ານຕ້ອງການບັນທຶກໄວ້ບໍ່?"
+
+msgid "Record saved."
+msgstr "ແຖວຂໍ້ມູນຖືກບັນທຶກໄວ້ແລ້ວ"
+
+msgid "Working now on the duplicated record(s)."
+msgstr "ປັດຈຸບັນເຮັດວຽກກັບແຖວຂໍ້ມູນທີ່ສ້າງຊໍ້າກັນໄວ້"
+
+msgid "Are you sure to remove this record?"
+msgstr "ທ່ານແນ່ໃຈບໍ່ທີ່ຈະລຶບແຖວຂໍ້ມູນນີ້?"
+
+msgid "Are you sure to remove those records?"
+msgstr "ທ່ານແນ່ໃຈບໍ່ທີ່ຈະລຶບແຖວຂໍ້ມູນເຫຼົ່ານີ້?"
+
+msgid "Records removed."
+msgstr "ແຖວຂໍ້ມູນເຫຼົ່ານີ້ຖືກລຶບອອກແລ້ວ"
+
+msgid "Records not removed."
+msgstr "ແຖວຂໍ້ມູນເຫຼົ່ານີ້ບໍ່ໄດ້ຖືກລຶບອອກ"
+
+msgid "You have to select one record."
+msgstr "ທ່ານຕ້ອງເລືອກເອົາໜຶ່ງແຖວຂໍ້ມູນ"
+
+msgid "ID:"
+msgstr "ເລກກຳກັບ:"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "ສ້າງ..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "ວັນທີສ້າງ"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "ສ້າງ..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "ວັນທີແກ້ໄຂ"
+
+msgid "Model: "
+msgstr "ແມ່ແບບ: "
+
+msgid "Add..."
+msgstr ""
+
+#, fuzzy
+msgid "Preview"
+msgstr "ກ່ອນໜ້າ"
+
+#, fuzzy
+msgid "Template"
+msgstr "ກ່ຽວພັນກັບ"
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "ຄັດຕິດ(%1)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr "ກັ່ນຕອງ"
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr "ໝາຍໜ້າ"
+
+msgid "Remove this bookmark"
+msgstr "ເອົາໝາຍໜ້າອອກ"
+
+msgid "Bookmark this filter"
+msgstr "ໝາຍໜ້າເອົາການກັ່ນຕອງນີ້"
+
+msgid "Bookmark Name:"
+msgstr "ຊື່ໝາຍໜ້າ:"
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr "ຄົ້ນຫາ"
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr "ເລກລຳດັບ"
+
+#, fuzzy
+msgid "Created by"
+msgstr "ສ້າງ..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "ວັນທີສ້າງ"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "ວັນທີແກ້ໄຂ"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "ຕ້ອງໃຫ້ມີ \"%1\""
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" ບໍ່ມີຄ່າທີ່ຖຶກຕ້ອງກັບ ໂດເມນຂອງມັນ"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "ຄ່າ ຂອງ \"%1\" ນີ້ ບໍ່ຖືກຕ້ອງ"
+
+msgid "Pre-validation"
+msgstr "ກ່ອນ-ການກວດສອບ"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "ແປ"
+
+msgid "Edit"
+msgstr "ແກ້ໄຂ"
+
+msgid "Fuzzy"
+msgstr "ບໍ່ຈະແຈ້ງ"
+
+msgid "You need to save the record before adding translations."
+msgstr "ທ່ານຕ້ອງໄດ້ບັນທຶກແຖວຂໍ້ມູນໄວ້ກ່ອນຈຶ່ງຈະເພີ່ມການແປເຂົ້າໄປໄດ້"
+
+msgid "No other language available."
+msgstr "ບໍ່ມີພາສາອື່ນໃຫ້ໃຊ້ໄດ້."
+
+msgid "Show"
+msgstr "ສະແດງ"
+
+msgid "Hide"
+msgstr "ເຊື່ອງ"
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr "ເອົາເຂົ້າ"
+
+msgid "Remove"
+msgstr "ເອົາອອກ"
+
+msgid "Open"
+msgstr "ໄຂ"
+
+msgid "Undelete"
+msgstr "ເອົາກັບຄືນ"
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr "ເລືອກ"
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr "ລຶບອອກ"
+
+#, fuzzy
+msgid "Open..."
+msgstr "ໄຂ"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "ເພີ່ມຕື່ມ"
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "ເລືອກການດຳເນີນການ"
+
+msgid "No action defined."
+msgstr "ບໍ່ມີການດຳເນີນການໃດຖືກກຳນົດໄວ້!"
+
+msgid "Attachments (%1)"
+msgstr "ຄັດຕິດ(%1)"
+
+msgid "Notes (%1)"
+msgstr "ບັນທຶກຂໍ້ຄວາມ(%1)"
+
+msgid "Search %1"
+msgstr "ຊອກຫາ %1"
+
+msgid "Revision"
+msgstr "ກວດກາຄືນ"
+
+msgid "All Fields"
+msgstr "ຊ່ອງຂໍ້ມູນທັງໝົດ"
+
+msgid "Fields Selected"
+msgstr "ຊ່ອງຂໍ້ມູນທີ່ເລືອກເອົາ"
+
+msgid "CSV Parameters"
+msgstr "ປາຣາແມັດເຕີຣ໌ CSV"
+
+msgid "Delimiter:"
+msgstr "ຂັ້ນ:"
+
+msgid "Quote Char:"
+msgstr "Quote Char:"
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr "ກວດພົບອັດຕະໂນມັດ"
+
+msgid "File to Import"
+msgstr "ຟາຍລ໌ທີ່ຈະນຳເຂົ້າ"
+
+msgid "Encoding:"
+msgstr "ການເຂົ້າລະຫັດ:"
+
+msgid "Lines to Skip:"
+msgstr "ແຖວທີ່ຈະຂວ້າມ:"
+
+#, fuzzy
+msgid "You must select an import file first."
+msgstr "ທ່ານຕ້ອງໄດ້ເລືອກຟາຍລ໌ທີ່ຈະນຳເຂົ້ານັ້ນກ່ອນ"
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "ມີຂໍ້ຜິດພາດໃນການປະມວນຜົນຟາຍລ໌ ໃນຊ່ອງຂໍ້ມູນ %1."
+
+msgid "Error"
+msgstr "ຜິດພາດ"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "ນຳເຂົ້າ"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr "ບັນທຶກຟາຍລ໌ທີ່ສົ່ງອອກ"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "ສ່ົງອອກ"
+
+msgid "Delete Export"
+msgstr "ລຶບຟາຍລ໌ທີ່ສົ່ງອອກ"
+
+msgid "Predefined Exports"
+msgstr "ການສົ່ງອອກທີ່ຈັດຕຽມໄວ້ກ່ອນ"
+
+#, fuzzy
+msgid "Selected Records"
+msgstr "ແຖວຂໍ້ມູນຕໍ່ໄປ"
+
+#, fuzzy
+msgid "Listed Records"
+msgstr "ແຖວຂໍ້ມູນຕໍ່ໄປ"
+
+#, fuzzy
+msgid "Export:"
+msgstr "ສ່ົງອອກ"
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr "ເພີ່ມຊື່ຊ່ອງຂໍ້ມູນ"
+
+msgid "%1 (string)"
+msgstr "%1 (string)"
+
+msgid "%1 (model name)"
+msgstr ""
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "ແຖວຂໍ້ມູນຖືກບັນທຶກໄວ້ແລ້ວ"
+
+msgid "What is the name of this export?"
+msgstr "ຊື່ຂອງການສົ່ງອອກນີ້ແມ່ນຫຍັງ?"
+
+msgid "Override %1 definition?"
+msgstr "ຂຽນທັບຄຳອະທິບາຍ %1 ນີ້ບໍ?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "ແຖວຂໍ້ມູນຖືກບັນທຶກໄວ້ແລ້ວ"
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "ລາຍງານຂໍ້ຜິດພາດ"
+
+#, fuzzy
+msgid "Attachments"
+msgstr "ຄັດຕິດ"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "ເອົາອອກ"
+
+msgid "Wizard"
+msgstr "ນໍາພາສ້າງ"
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/lt.po b/sao/locale/lt.po
new file mode 100644
index 0000000000..60d20ff062
--- /dev/null
+++ b/sao/locale/lt.po
@@ -0,0 +1,732 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Prisegti pastabą prie įrašo"
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Sukūręs naudotojas"
+
+msgid "Favorites"
+msgstr "Mėgstami"
+
+msgid "Manage..."
+msgstr "Valdyti..."
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr "Veiksmai"
+
+msgid "New"
+msgstr "Naujas"
+
+msgid "Save"
+msgstr "Išsaugoti"
+
+msgid "Switch"
+msgstr "Perjungti"
+
+msgid "Reload/Undo"
+msgstr "Perkrauti/Atšaukti"
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr "Naikinti"
+
+msgid "Previous"
+msgstr "Buvęs"
+
+msgid "Next"
+msgstr "Kitas"
+
+msgid "Search"
+msgstr "Ieškoti"
+
+msgid "Close Tab"
+msgstr "Uždaryti kortelę"
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr "Pastaba"
+
+msgid "Relate"
+msgstr "Susijęs"
+
+msgid "Print"
+msgstr "Spausdinimas"
+
+msgid "E-Mail"
+msgstr ""
+
+#, fuzzy
+msgid "Previous tab"
+msgstr "_Buvusi kortelė"
+
+#, fuzzy
+msgid "Next tab"
+msgstr "Kita kortelė"
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Užverti"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "Prisijungti"
+
+msgid "User name"
+msgstr "Naudotojo vardas"
+
+msgid "Database"
+msgstr ""
+
+#, fuzzy
+msgid "Login with"
+msgstr "Prisijungti"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Jūsų pasirinkimas:"
+
+msgid "Cancel"
+msgstr "Atsisakyti"
+
+msgid "OK"
+msgstr "Gerai"
+
+msgid "Y"
+msgstr "m."
+
+msgid "M"
+msgstr "mėn."
+
+msgid "w"
+msgstr "sav."
+
+msgid "d"
+msgstr "d."
+
+msgid "h"
+msgstr "val."
+
+msgid "m"
+msgstr "min."
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr ""
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "t"
+
+msgid "Yes"
+msgstr "Taip"
+
+msgid "True"
+msgstr "Tiesa"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "Netiesa"
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr "Daugiau nepaisyti šio pranešimo."
+
+msgid "Do you want to proceed?"
+msgstr "Ar tikrai norite vykdyti?"
+
+msgid "No"
+msgstr "Ne"
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr "Lygiagretaus duomenų rašymo klaida"
+
+msgid "Write Concurrency Warning: "
+msgstr "Lygiagretaus duomenų rašymo perspėjimas: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Kol jūs taisėte šį įrašą, jis buvo pakeistas."
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr "Palyginti"
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "Palyginti"
+
+msgid "Write Anyway"
+msgstr "Rašyti visvien"
+
+msgid "Application Error"
+msgstr "Programos klaida"
+
+msgid "Report Bug"
+msgstr "Pranešti apie klaidą"
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr "Atsisiųsti"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Perjungti rodymą"
+
+msgid "Previous Record"
+msgstr "Buvęs įrašas"
+
+msgid "Next Record"
+msgstr "Kitas įrašas"
+
+msgid "Create a new record"
+msgstr "Sukurti naują įrašą"
+
+msgid "Save this record"
+msgstr "Išsaugoti šį įrašą"
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr "Rodyti pakeitimus..."
+
+msgid "Add an attachment to the record"
+msgstr "Prisegti failą prie įrašo"
+
+msgid "Add a note to the record"
+msgstr "Prisegti pastabą prie įrašo"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "Prisegti pastabą prie įrašo"
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Atliekant šį veiksmą bus uždarytos visos kortelės.\n"
+"Ar norite tęsti?"
+
+msgid "Launch action"
+msgstr "Vykdyti veiksmą"
+
+msgid "Open related records"
+msgstr "Atverti susijusius įrašus"
+
+msgid "Print report"
+msgstr "Spausdinti ataskaitą"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Šis įrašas buvo pakeistas\n"
+"Ar norite jį išsaugoti?"
+
+msgid "Record saved."
+msgstr "Įrašas išsaugotas."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Dabar dirbate su įrašo(-ų) kopija(-omis)."
+
+msgid "Are you sure to remove this record?"
+msgstr "Ar tikrai norite ištrinti šį įrašą?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Ar tikrai norite ištrinti šiuos įrašus?"
+
+msgid "Records removed."
+msgstr "Įrašai ištrinti."
+
+msgid "Records not removed."
+msgstr "Įrašai nebuvo ištrinti."
+
+msgid "You have to select one record."
+msgstr "Pasirinkite bent vieną įrašą."
+
+msgid "ID:"
+msgstr "ID:"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "Sukūręs naudotojas"
+
+#, fuzzy
+msgid "Created at:"
+msgstr "Sukūrimo data"
+
+msgid "Edited by:"
+msgstr "Pakeitęs naudotojas:"
+
+msgid "Edited at:"
+msgstr "Keitimo data:"
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr "Sukurti naują..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "Buvęs"
+
+#, fuzzy
+msgid "Template"
+msgstr "Susijęs"
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr "Šalinti šią žymelę"
+
+msgid "Bookmark this filter"
+msgstr "Sukurti šio filtro žymelę"
+
+msgid "Bookmark Name:"
+msgstr "Žymelės pavadinimas:"
+
+msgid "Show active records"
+msgstr "Rodyti aktyvius įrašus"
+
+msgid "Show inactive records"
+msgstr "Rodyti neaktyvius įrašus"
+
+msgid "Find"
+msgstr "Rasti"
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr "Atverti kalendorių"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Sukūręs naudotojas"
+
+msgid "Created at"
+msgstr "Sukūrimo data"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "Pakeitęs naudotojas"
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr "Išankstinis patikrinimas"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr "Keisti"
+
+msgid "Fuzzy"
+msgstr "Netikslus"
+
+msgid "You need to save the record before adding translations."
+msgstr "Išsaugokite įrašą prieš pridedant vertimą."
+
+msgid "No other language available."
+msgstr "Nėra kitų kalbų."
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr "Pridėti"
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr "Atvėrimas"
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr "Įrašyti kaip"
+
+msgid "Save As..."
+msgstr "Įrašyti kaip..."
+
+msgid "Select"
+msgstr "Pasirinkti"
+
+msgid "Select..."
+msgstr "Pasirinkti..."
+
+msgid "Clear"
+msgstr "Valyti"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Atvėrimas"
+
+msgid "Choose a language"
+msgstr "Pasirinkti kalbą"
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr "Šiandien"
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr "Savaitė"
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr "Pasirinkite veiksmą"
+
+msgid "No action defined."
+msgstr "Nėra apibrėžtų veiksmų."
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr "Pastabos (%1)"
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr "Taisymas"
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr "CSV parametrai"
+
+msgid "Delimiter:"
+msgstr "Skirtukas:"
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr "Koduotė:"
+
+msgid "Lines to Skip:"
+msgstr "Praleisti eilutes:"
+
+msgid "You must select an import file first."
+msgstr "Jūs pirmiausiai turite pasirinkti importo failą."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr "Klaida"
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+msgstr[2] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr "Pasirinkti įrašai"
+
+msgid "Listed Records"
+msgstr "Rodomi įrašai"
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr "Naudoti lokalės formatą"
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "Įrašas išsaugotas."
+
+msgid "What is the name of this export?"
+msgstr "Kokiu pavadinimu išsaugoti šį eksportavimo šabloną?"
+
+msgid "Override %1 definition?"
+msgstr ""
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Įrašas išsaugotas."
+msgstr[1] "Įrašas išsaugotas."
+msgstr[2] "Įrašas išsaugotas."
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "Pranešti apie klaidą"
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr "Vedlys"
+
+msgid "Translate view"
+msgstr "Išversti rodinį"
diff --git a/sao/locale/messages.pot b/sao/locale/messages.pot
new file mode 100644
index 0000000000..e19b5aef36
--- /dev/null
+++ b/sao/locale/messages.pot
@@ -0,0 +1,704 @@
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+msgid ", "
+msgstr ""
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+msgid "..."
+msgstr ""
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ""
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+msgid ": "
+msgstr ""
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/nl.po b/sao/locale/nl.po
new file mode 100644
index 0000000000..4032efd471
--- /dev/null
+++ b/sao/locale/nl.po
@@ -0,0 +1,712 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Ben je zeker dat je weggaat?"
+
+msgid "Incompatible version of the server."
+msgstr "Onjuiste versie van de server."
+
+msgid "Version mismatch"
+msgstr "Foutieve versie"
+
+msgid "Could not connect to the server."
+msgstr "Kan geen verbinding maken met server."
+
+msgid "Connection error"
+msgstr "Verbindingsfout"
+
+msgid "Favorites"
+msgstr "Favorieten"
+
+msgid "Manage..."
+msgstr "Beheren..."
+
+msgid "Logout"
+msgstr "Uitloggen"
+
+msgid "Action"
+msgstr "Actie"
+
+msgid "New"
+msgstr "Nieuw"
+
+msgid "Save"
+msgstr "Opslaan"
+
+msgid "Switch"
+msgstr "Omschakelen"
+
+msgid "Reload/Undo"
+msgstr "Ongedaan maken / herladen"
+
+msgid "Duplicate"
+msgstr "Duplicaat"
+
+msgid "Delete"
+msgstr "Verwijderen"
+
+msgid "Previous"
+msgstr "Vorige"
+
+msgid "Next"
+msgstr "Volgende"
+
+msgid "Search"
+msgstr "Zoeken"
+
+msgid "Close Tab"
+msgstr "Tabblad sluiten"
+
+msgid "Attachment"
+msgstr "Bijlage"
+
+msgid "Note"
+msgstr "Aantekening"
+
+msgid "Relate"
+msgstr "Gerelateerd"
+
+msgid "Print"
+msgstr "Afdrukken"
+
+msgid "E-Mail"
+msgstr "E-mail"
+
+msgid "Previous tab"
+msgstr "Vorig tabblad"
+
+msgid "Next tab"
+msgstr "Volgend tabblad"
+
+msgid "Global search"
+msgstr "Algemeen zoeken"
+
+msgid "Show this help"
+msgstr "Toon deze hulp"
+
+msgid "Show/Hide access keys"
+msgstr "Toegangssleutels tonen/verbergen"
+
+msgid "Help"
+msgstr "Help"
+
+msgid "Close"
+msgstr "Sluiten"
+
+msgid "Documentation..."
+msgstr "Documentatie..."
+
+msgid "Keyboard shortcuts"
+msgstr "Toetsenbord sneltoetsen"
+
+msgid "Global shortcuts"
+msgstr "algemene snelkoppeling"
+
+msgid "Tab shortcuts"
+msgstr "Tab snelkoppelingen"
+
+msgid "Unable to reach the server."
+msgstr "Kan geen verbinding maken met server."
+
+msgid "Too many requests. Try again later."
+msgstr "Te veel verzoeken. Probeer het later nog eens."
+
+msgid "Login"
+msgstr "Inlognaam"
+
+msgid "User name"
+msgstr "Gebruikersnaam"
+
+msgid "Database"
+msgstr "Database"
+
+msgid "Login with"
+msgstr "Inloggen met"
+
+msgid "Not found."
+msgstr "Niet gevonden."
+
+msgid "Your selection:"
+msgstr "Uw selectie:"
+
+msgid "Cancel"
+msgstr "Annuleer"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "J"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "w"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "u"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Door: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "J"
+
+msgid "Yes"
+msgstr "Ja"
+
+msgid "True"
+msgstr "Waar"
+
+msgid "t"
+msgstr "w (t)"
+
+msgid "False"
+msgstr "Onwaar"
+
+msgid "Message: "
+msgstr "Bericht: "
+
+msgid "Warning: "
+msgstr "Waarschuwing: "
+
+msgid "Always ignore this warning."
+msgstr "Deze waarschuwing altijd negeren."
+
+msgid "Do you want to proceed?"
+msgstr "Doorgaan?"
+
+msgid "No"
+msgstr "Nee"
+
+msgid "Confirmation: "
+msgstr "Bevestiging: "
+
+msgid "Concurrency Exception"
+msgstr "Simultaan gebruik error"
+
+msgid "Write Concurrency Warning: "
+msgstr "Aandacht, schrijftoegang concurrenten (Write Concurrency) : "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Dit record werd gewijzigd terwijl u het aan het bewerken was."
+
+msgid "Choose:"
+msgstr "Kiezen:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Annuleren\" om het opslaan te annuleren;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Vergelijken\" om de gewijzigde versie te zien;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Overschrijven\" om de huidige versie te bewaren."
+
+msgid "Compare"
+msgstr "Vergelijk"
+
+msgid "Compare: %1"
+msgstr "Vergelijk:% 1"
+
+msgid "Write Anyway"
+msgstr "Overschrijven"
+
+msgid "Application Error"
+msgstr "Applicatiefout"
+
+msgid "Report Bug"
+msgstr "Programmafout melden"
+
+msgid "Processing"
+msgstr "Verwerking"
+
+msgid "Search..."
+msgstr "Zoeken..."
+
+msgid "Create..."
+msgstr "Maak ..."
+
+msgid "Download"
+msgstr "Download"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Vet"
+
+msgid "Italic"
+msgstr "Cursief"
+
+msgid "Underline"
+msgstr "Onderstrepen"
+
+msgid "Font"
+msgstr "lettertype"
+
+msgid "Size"
+msgstr "Grootte"
+
+msgid "Justify Right"
+msgstr "Uitvullen rechts"
+
+msgid "Justify Left"
+msgstr "Links uitvullen"
+
+msgid "Justify Center"
+msgstr "Uitvullen centrum"
+
+msgid "Justify Full"
+msgstr "Volledig uitvullen"
+
+msgid "Switch view"
+msgstr "Wissel van weergave"
+
+msgid "Previous Record"
+msgstr "Vorig record"
+
+msgid "Next Record"
+msgstr "Volgend record"
+
+msgid "Create a new record"
+msgstr "Maak een nieuw record"
+
+msgid "Save this record"
+msgstr "Record opslaan"
+
+msgid "Reload"
+msgstr "Herladen"
+
+msgid "View Logs..."
+msgstr "Bekijk logregister..."
+
+msgid "Show revisions..."
+msgstr "Revisies weergeven ..."
+
+msgid "Add an attachment to the record"
+msgstr "Voeg een bijlage toe aan het record"
+
+msgid "Add a note to the record"
+msgstr "Voeg een notitie toe aan het record"
+
+msgid "E-Mail..."
+msgstr "E-mail..."
+
+msgid "Send an e-mail using the record"
+msgstr "Stuur een e-mail met behulp van het record"
+
+msgid "Export"
+msgstr "Exporteren"
+
+msgid "Import"
+msgstr "Importeren"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"De volgende actie vereist het sluiten van alle tabbladen.\n"
+"Verder gaan?"
+
+msgid "Launch action"
+msgstr "Actie uitvoeren"
+
+msgid "Open related records"
+msgstr "Open gerelateerde records"
+
+msgid "Print report"
+msgstr "Rapport afdrukken"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Dit record is aangepast.\n"
+"Wilt u de wijzigingen opslaan?"
+
+msgid "Record saved."
+msgstr "Record opgeslagen."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Aan het werk op het(de) gekopieerde record(s)."
+
+msgid "Are you sure to remove this record?"
+msgstr "Weet u zeker dat u dit record wilt verwijderen?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Weet u zeker dat u deze records wilt verwijderen?"
+
+msgid "Records removed."
+msgstr "Records verwijderd."
+
+msgid "Records not removed."
+msgstr "Records niet verwijderd."
+
+msgid "You have to select one record."
+msgstr "U moet één record selecteren."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Aangemaakt door:"
+
+msgid "Created at:"
+msgstr "Aanmaakdatum:"
+
+msgid "Edited by:"
+msgstr "Bewerkt door:"
+
+msgid "Edited at:"
+msgstr "Bewerkt op:"
+
+msgid "Model: "
+msgstr "Model: "
+
+msgid "Add..."
+msgstr "Toevoegen..."
+
+msgid "Preview"
+msgstr "Voorbeeld"
+
+msgid "Template"
+msgstr "Sjabloon"
+
+msgid "Attachment (%1)"
+msgstr "Bijlage (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Opmerking (%1/%2)"
+
+msgid "Filters"
+msgstr "filters"
+
+msgid "Clear Search"
+msgstr "Wis zoeken"
+
+msgid "Bookmarks"
+msgstr "bladwijzers"
+
+msgid "Remove this bookmark"
+msgstr "Verwijder deze bladwijzer"
+
+msgid "Bookmark this filter"
+msgstr "Maak een bladwijzer voor dit filter"
+
+msgid "Bookmark Name:"
+msgstr "Bladwijzer naam:"
+
+msgid "Show active records"
+msgstr "Geef actieve records weer"
+
+msgid "Show inactive records"
+msgstr "Geef niet-actieve records weer"
+
+msgid "Find"
+msgstr "Zoeken"
+
+msgid "From"
+msgstr "Van"
+
+msgid "To"
+msgstr "Aan"
+
+msgid "Open the calendar"
+msgstr "Open kalender"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Aangemaakt door"
+
+msgid "Created at"
+msgstr "Aanmaakdatum"
+
+msgid "Modified by"
+msgstr "Aangepast door"
+
+msgid "Modified at"
+msgstr "Gewijzigd om"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" is vereist."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" is niet geldig volgens zijn domein."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "De waarden van \"%1\" zijn niet geldig."
+
+msgid "Pre-validation"
+msgstr "Pre-validatie"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Vertalen"
+
+msgid "Edit"
+msgstr "Bewerken"
+
+msgid "Fuzzy"
+msgstr "Onzeker"
+
+msgid "You need to save the record before adding translations."
+msgstr "U moet de record opslaan voordat u vertalingen kunt toevoegen."
+
+msgid "No other language available."
+msgstr "Geen andere taal beschikbaar."
+
+msgid "Show"
+msgstr "Toon"
+
+msgid "Hide"
+msgstr "Verbergen"
+
+msgid "Open the record"
+msgstr "Open het record"
+
+msgid "Clear the field"
+msgstr "Wis het veld"
+
+msgid "Search a record"
+msgstr "Zoek een record"
+
+msgid "Add"
+msgstr "Toevoegen"
+
+msgid "Remove"
+msgstr "Verwijderen"
+
+msgid "Open"
+msgstr "Openen"
+
+msgid "Undelete"
+msgstr "wissen ongedaan maken"
+
+msgid "Save As"
+msgstr "Opslaan als"
+
+msgid "Save As..."
+msgstr "Opslaan als..."
+
+msgid "Select"
+msgstr "Selecteer"
+
+msgid "Select..."
+msgstr "Selecteer ..."
+
+msgid "Clear"
+msgstr "Wissen"
+
+msgid "Open..."
+msgstr "Openen..."
+
+msgid "Choose a language"
+msgstr "Kies een taal"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr "Aanpassen"
+
+msgid "More"
+msgstr "Meer"
+
+msgid "Today"
+msgstr "Vandaag"
+
+msgid "Month"
+msgstr "Maand"
+
+msgid "Week"
+msgstr "Week"
+
+msgid "Day"
+msgstr "Dag"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Selecteer een actie"
+
+msgid "No action defined."
+msgstr "Geen actie gedefinieerd."
+
+msgid "Attachments (%1)"
+msgstr "Bijlagen (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notities (%1)"
+
+msgid "Search %1"
+msgstr "Zoek %1"
+
+msgid "Revision"
+msgstr "Revisie"
+
+msgid "All Fields"
+msgstr "Alle velden"
+
+msgid "Fields Selected"
+msgstr "Geselecteerde Velden"
+
+msgid "CSV Parameters"
+msgstr "CSV parameters"
+
+msgid "Delimiter:"
+msgstr "Scheidingsteken:"
+
+msgid "Quote Char:"
+msgstr "aanhalingstekens :"
+
+msgid "CSV Import: %1"
+msgstr "CSV-Import: %1"
+
+msgid "Auto-Detect"
+msgstr "Automatische detectie"
+
+msgid "File to Import"
+msgstr "Bestand om te importeren"
+
+msgid "Encoding:"
+msgstr "Codering:"
+
+msgid "Lines to Skip:"
+msgstr "Regels overslaan:"
+
+msgid "You must select an import file first."
+msgstr "U moet eerst een importbestand selecteren."
+
+msgid "Detection failed"
+msgstr "Detecteren faalde"
+
+msgid "Error processing the file at field %1."
+msgstr "Fout bij verwerken van het bestand op veld %1."
+
+msgid "Error"
+msgstr "Fout"
+
+msgid "Import failed"
+msgstr "Importeren faalde"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 record geïmporteerd"
+msgstr[1] "%1 records geïmporteerd"
+
+msgid "CSV Export: %1"
+msgstr "Exporteer CSV: %1"
+
+msgid "Save Export"
+msgstr "Export opslaan"
+
+msgid "URL Export"
+msgstr "URL Exporteren"
+
+msgid "Delete Export"
+msgstr "Export verwijderen"
+
+msgid "Predefined Exports"
+msgstr "Vooraf gedefinieerde exports"
+
+msgid "Selected Records"
+msgstr "Geselecteerde records"
+
+msgid "Listed Records"
+msgstr "Weergegeven records"
+
+msgid "Export:"
+msgstr "Exporteer:"
+
+msgid "Ignore search limit"
+msgstr "Zoeklimiet negeren"
+
+msgid "Use locale format"
+msgstr "Gebruik taalinstellingen"
+
+msgid "Add Field Names"
+msgstr "Voeg veldnamen toe"
+
+msgid "%1 (string)"
+msgstr "%1 (string)"
+
+msgid "%1 (model name)"
+msgstr "%1 (model naam)"
+
+msgid "%1/Record Name"
+msgstr "%1/Record Naam"
+
+msgid "What is the name of this export?"
+msgstr "Wat is de naam voor deze export?"
+
+msgid "Override %1 definition?"
+msgstr "Definitie van %1 overschrijven?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "%1 record opgeslagen"
+msgstr[1] "%1 records opgeslagen"
+
+msgid "E-mail %1"
+msgstr "E-mail %1"
+
+msgid "To:"
+msgstr "Aan:"
+
+msgid "Cc:"
+msgstr "Cc:"
+
+msgid "Bcc:"
+msgstr "Bcc:"
+
+msgid "Subject:"
+msgstr "Onderwerp:"
+
+msgid "Reports"
+msgstr "Rapporten"
+
+msgid "Attachments"
+msgstr "Bijlagen"
+
+msgid "Files"
+msgstr "Bestanden"
+
+msgid "Send"
+msgstr "Verzenden"
+
+msgid "Remove File"
+msgstr "Bestand verwijderen"
+
+msgid "Wizard"
+msgstr "Assistent"
+
+msgid "Translate view"
+msgstr "Vertaal weergave"
diff --git a/sao/locale/pl.po b/sao/locale/pl.po
new file mode 100644
index 0000000000..5845d01c3a
--- /dev/null
+++ b/sao/locale/pl.po
@@ -0,0 +1,741 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 15 2019 16:53:42 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 01 2019 13:14:07 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Mar 01 2019 00:18:48 GMT+0100 (CET)
+# Generated by grunt-xgettext on Fri Feb 01 2019 00:07:47 GMT+0100 (CET)
+# Generated by grunt-xgettext on Tue Jan 01 2019 00:13:07 GMT+0100 (CET)
+# Generated by grunt-xgettext on Sat Dec 01 2018 00:17:31 GMT+0100 (CET)
+# Generated by grunt-xgettext on Thu Nov 01 2018 00:08:43 GMT+0100 (CET)
+# Generated by grunt-xgettext on Mon Oct 01 2018 00:07:22 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Sep 14 2018 22:59:37 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sun Sep 09 2018 10:24:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Tue Sep 04 2018 13:54:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sat Apr 14 2018 17:56:54 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Apr 06 2018 22:57:49 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Oct 09 2017 19:35:04 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr "Czy na pewno wyjść?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Brak dostępu do serwera."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Brak dostępu do serwera."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Utworzył"
+
+msgid "Favorites"
+msgstr "Ulubione"
+
+msgid "Manage..."
+msgstr "Zarządzaj..."
+
+msgid "Logout"
+msgstr "Wyloguj"
+
+msgid "Action"
+msgstr "Akcja"
+
+msgid "New"
+msgstr "Nowy"
+
+msgid "Save"
+msgstr "Zapisz"
+
+msgid "Switch"
+msgstr "Przełącz"
+
+msgid "Reload/Undo"
+msgstr "Odśwież/Przywróć"
+
+msgid "Duplicate"
+msgstr "Duplikuj"
+
+msgid "Delete"
+msgstr "Usuń"
+
+msgid "Previous"
+msgstr "Poprzedni"
+
+msgid "Next"
+msgstr "Następny"
+
+msgid "Search"
+msgstr "Szukaj"
+
+msgid "Close Tab"
+msgstr "Zamknij kartę"
+
+msgid "Attachment"
+msgstr "Załącznik"
+
+msgid "Note"
+msgstr "Notatka"
+
+msgid "Relate"
+msgstr "Odnośnik"
+
+msgid "Print"
+msgstr "Wydruk"
+
+msgid "E-Mail"
+msgstr "E-mail"
+
+msgid "Previous tab"
+msgstr "Poprzednia karta"
+
+msgid "Next tab"
+msgstr "Następna karta"
+
+msgid "Global search"
+msgstr "Wyszukiwanie globalne"
+
+msgid "Show this help"
+msgstr "Wyświetl tę pomoc"
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Zamknij"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Skróty klawiszowe"
+
+msgid "Global shortcuts"
+msgstr "Skróty globalne"
+
+msgid "Tab shortcuts"
+msgstr "Skróty kart"
+
+msgid "Unable to reach the server."
+msgstr "Brak dostępu do serwera."
+
+msgid "Too many requests. Try again later."
+msgstr "Za dużo połączeń. Spróbuj później."
+
+msgid "Login"
+msgstr "Login"
+
+msgid "User name"
+msgstr "Nazwa użytkownika"
+
+msgid "Database"
+msgstr "Baza danych"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Login"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Twoje zaznaczenie:"
+
+msgid "Cancel"
+msgstr "Anuluj"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "R"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "t"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "g"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Przez: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "t"
+
+msgid "Yes"
+msgstr "Tak"
+
+msgid "True"
+msgstr "Tak"
+
+msgid "t"
+msgstr "p"
+
+msgid "False"
+msgstr "Nie"
+
+msgid "Message: "
+msgstr "Wiadomość: "
+
+msgid "Warning: "
+msgstr "Ostrzeżenie: "
+
+msgid "Always ignore this warning."
+msgstr "Zawsze ignoruj takie ostrzeżenie."
+
+msgid "Do you want to proceed?"
+msgstr "Czy chcesz kontynuować?"
+
+msgid "No"
+msgstr "Nie"
+
+msgid "Confirmation: "
+msgstr "Potwierdzenie: "
+
+msgid "Concurrency Exception"
+msgstr "Wyjątek równoczesnego zapisu danych"
+
+msgid "Write Concurrency Warning: "
+msgstr "Ostrzeżenie o równoczesnym zapisie danych: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Ten rekord został zmodyfikowany w trakcie twojej edycji."
+
+msgid "Choose:"
+msgstr "Wybierz:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Anuluj\" jeśli chcesz anulować zapis danych;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Porównaj\" jeśli chcesz zobaczyć zmienioną wersję danych;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Zapisz\" jeśli chcesz zapisać aktualną wersję danych."
+
+msgid "Compare"
+msgstr "Porównaj"
+
+msgid "Compare: %1"
+msgstr "Porównaj: %1"
+
+msgid "Write Anyway"
+msgstr "Zapisz"
+
+msgid "Application Error"
+msgstr "Błąd aplikacji"
+
+msgid "Report Bug"
+msgstr "Zgłoś błąd"
+
+msgid "Processing"
+msgstr "Przetwarzanie"
+
+msgid "Search..."
+msgstr "Szukaj..."
+
+msgid "Create..."
+msgstr "Utwórz..."
+
+msgid "Download"
+msgstr "Pobierz"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "Przywróć"
+
+msgid "Font"
+msgstr "Czcionka"
+
+msgid "Size"
+msgstr "Rozmiar"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Przełącz widok"
+
+msgid "Previous Record"
+msgstr "Poprzedni rekord"
+
+msgid "Next Record"
+msgstr "Następny rekord"
+
+msgid "Create a new record"
+msgstr "Utwórz nowy rekord"
+
+msgid "Save this record"
+msgstr "Zapisz rekord"
+
+msgid "Reload"
+msgstr "Odśwież"
+
+msgid "View Logs..."
+msgstr "Pokaż dziennik..."
+
+msgid "Show revisions..."
+msgstr "Pokaż rewizje..."
+
+msgid "Add an attachment to the record"
+msgstr "Dodaj załącznik do rekordu"
+
+msgid "Add a note to the record"
+msgstr "Dodaj notatkę do rekordu"
+
+msgid "E-Mail..."
+msgstr "E-mail..."
+
+msgid "Send an e-mail using the record"
+msgstr "Wyślij e-mail używając rekordu"
+
+msgid "Export"
+msgstr "Eksportuj"
+
+msgid "Import"
+msgstr "Importuj"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Wykonanie polecenia wymaga zamknięcia wszystkich kart.\n"
+"Czy chcesz kontynuować?"
+
+msgid "Launch action"
+msgstr "Uruchom akcję"
+
+msgid "Open related records"
+msgstr "Otwórz powiązane rekordy"
+
+msgid "Print report"
+msgstr "Drukuj raport"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Rekord został zmodyfikowany.\n"
+"Czy chcesz go zapisać?"
+
+msgid "Record saved."
+msgstr "Rekord został zapisany."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Pracujesz na zduplikowanym(ch) rekordzie(ch)."
+
+msgid "Are you sure to remove this record?"
+msgstr "Czy na pewno usunąć wybrany rekord?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Czy na pewno usunąć wybrane rekordy?"
+
+msgid "Records removed."
+msgstr "Rekordy zostały usunięte."
+
+msgid "Records not removed."
+msgstr "Rekordy nie zostały usunięte."
+
+msgid "You have to select one record."
+msgstr "Musisz wybrać jeden rekord."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Utworzył:"
+
+msgid "Created at:"
+msgstr "Data utworzenia:"
+
+msgid "Edited by:"
+msgstr "Zmodyfikował:"
+
+msgid "Edited at:"
+msgstr "Data modyfikacji:"
+
+msgid "Model: "
+msgstr "Model: "
+
+msgid "Add..."
+msgstr "Dodaj..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "Poprzedni"
+
+msgid "Template"
+msgstr "Szablon"
+
+msgid "Attachment (%1)"
+msgstr "Załącznik (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Notatka (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtry"
+
+msgid "Clear Search"
+msgstr "Wyczyść wyszukiwanie"
+
+msgid "Bookmarks"
+msgstr "Zakładki"
+
+msgid "Remove this bookmark"
+msgstr "Usuń zakładkę"
+
+msgid "Bookmark this filter"
+msgstr "Dodaj filtr do zakładek"
+
+msgid "Bookmark Name:"
+msgstr "Dodaj nazwę zakładek:"
+
+msgid "Show active records"
+msgstr "Pokaż aktywne rekordy"
+
+msgid "Show inactive records"
+msgstr "Pokaż nieaktywne rekordy"
+
+msgid "Find"
+msgstr "Znajdź"
+
+msgid "From"
+msgstr "Od"
+
+msgid "To"
+msgstr "Do"
+
+msgid "Open the calendar"
+msgstr "Otwórz kalendarz"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Utworzył"
+
+msgid "Created at"
+msgstr "Data utworzenia"
+
+msgid "Modified by"
+msgstr "Zmodyfikował"
+
+msgid "Modified at"
+msgstr "Data modyfikacji"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" jest wymagany."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" jest nieprawidłowy pod względem swojej domeny."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Wartości \"%1\" nie są prawidłowe."
+
+msgid "Pre-validation"
+msgstr "Wstępna walidacja"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Przetłumacz"
+
+msgid "Edit"
+msgstr "Edycja"
+
+msgid "Fuzzy"
+msgstr "Niejasne"
+
+msgid "You need to save the record before adding translations."
+msgstr "Musisz zapisać rekord przed dodaniem tłumaczeń."
+
+msgid "No other language available."
+msgstr "Brak innych języków."
+
+msgid "Show"
+msgstr "Pokaż"
+
+msgid "Hide"
+msgstr "Ukryj"
+
+msgid "Open the record"
+msgstr "Otwórz rekord"
+
+msgid "Clear the field"
+msgstr "Wyczyść pole"
+
+msgid "Search a record"
+msgstr "Szukaj rekord"
+
+msgid "Add"
+msgstr "Dodaj"
+
+msgid "Remove"
+msgstr "Usuń"
+
+msgid "Open"
+msgstr "Otwórz"
+
+msgid "Undelete"
+msgstr "Przywróć"
+
+msgid "Save As"
+msgstr "Zapisz jako"
+
+msgid "Save As..."
+msgstr "Zapisz jako..."
+
+msgid "Select"
+msgstr "Wybierz"
+
+msgid "Select..."
+msgstr "Wybierz..."
+
+msgid "Clear"
+msgstr "Wyczyść"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Otwórz"
+
+msgid "Choose a language"
+msgstr "Wybierz język"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "Więcej"
+
+msgid "Today"
+msgstr "Dzisiaj"
+
+msgid "Month"
+msgstr "Miesiąc"
+
+msgid "Week"
+msgstr "Tydzień"
+
+msgid "Day"
+msgstr "Dzień"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Wybierz akcję"
+
+msgid "No action defined."
+msgstr "Brak zdefiniowanej akcji."
+
+msgid "Attachments (%1)"
+msgstr "Załączniki (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notatki (%1)"
+
+msgid "Search %1"
+msgstr "Szukaj %1"
+
+msgid "Revision"
+msgstr "Rewizja"
+
+msgid "All Fields"
+msgstr "Wszystkie pola"
+
+msgid "Fields Selected"
+msgstr "Pola wybrane"
+
+msgid "CSV Parameters"
+msgstr "Parametry CSV"
+
+msgid "Delimiter:"
+msgstr "Separator:"
+
+msgid "Quote Char:"
+msgstr "Symbol dziesiętny:"
+
+msgid "CSV Import: %1"
+msgstr "Import z CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Automatyczne rozpoznawanie"
+
+msgid "File to Import"
+msgstr "Plik do zaimportowania"
+
+msgid "Encoding:"
+msgstr "Kodowanie:"
+
+msgid "Lines to Skip:"
+msgstr "Wiersze do ominięcia:"
+
+msgid "You must select an import file first."
+msgstr "Wybierz plik do zaimportowania."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "Błąd przetwarzania pliku w polu %1."
+
+msgid "Error"
+msgstr "Błąd"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Importuj"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (record name)"
+msgstr[1] "%1 (record name)"
+msgstr[2] "%1 (record name)"
+
+msgid "CSV Export: %1"
+msgstr "Eksport do CSV: %1"
+
+msgid "Save Export"
+msgstr "Zapisz eksport"
+
+msgid "URL Export"
+msgstr "Eksportuj URL"
+
+msgid "Delete Export"
+msgstr "Usuń eksport"
+
+msgid "Predefined Exports"
+msgstr "Predefiniowane eksporty"
+
+msgid "Selected Records"
+msgstr "Wybrane rekordy"
+
+msgid "Listed Records"
+msgstr "Wymienione rekordy"
+
+msgid "Export:"
+msgstr "Eksport:"
+
+msgid "Ignore search limit"
+msgstr "Ignoruj limit wyszukiwań"
+
+msgid "Use locale format"
+msgstr "Użyj formatu lokalnego"
+
+msgid "Add Field Names"
+msgstr "Dodaj nazwy pól"
+
+msgid "%1 (string)"
+msgstr "%1 (string)"
+
+msgid "%1 (model name)"
+msgstr "%1 (model name)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (record name)"
+
+msgid "What is the name of this export?"
+msgstr "Jaka jest nazwa tego eksportu?"
+
+msgid "Override %1 definition?"
+msgstr "Czy nadpisać definicję %1?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Rekord został zapisany."
+msgstr[1] "Rekord został zapisany."
+msgstr[2] "Rekord został zapisany."
+
+msgid "E-mail %1"
+msgstr "E-mail %1"
+
+msgid "To:"
+msgstr "Do:"
+
+msgid "Cc:"
+msgstr "DW:"
+
+msgid "Bcc:"
+msgstr "UDW:"
+
+msgid "Subject:"
+msgstr "Temat:"
+
+msgid "Reports"
+msgstr "Raporty"
+
+msgid "Attachments"
+msgstr "Załączniki"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr "Wyślij"
+
+#, fuzzy
+msgid "Remove File"
+msgstr "Usuń"
+
+msgid "Wizard"
+msgstr "Kreator"
+
+msgid "Translate view"
+msgstr "Widok tłumaczenia"
diff --git a/sao/locale/pt.po b/sao/locale/pt.po
new file mode 100644
index 0000000000..ab323f656a
--- /dev/null
+++ b/sao/locale/pt.po
@@ -0,0 +1,766 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 15 2019 16:53:42 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Apr 01 2019 13:14:07 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Mar 01 2019 00:18:48 GMT+0100 (CET)
+# Generated by grunt-xgettext on Fri Feb 01 2019 00:07:47 GMT+0100 (CET)
+# Generated by grunt-xgettext on Tue Jan 01 2019 00:13:07 GMT+0100 (CET)
+# Generated by grunt-xgettext on Sat Dec 01 2018 00:17:31 GMT+0100 (CET)
+# Generated by grunt-xgettext on Thu Nov 01 2018 00:08:43 GMT+0100 (CET)
+# Generated by grunt-xgettext on Mon Oct 01 2018 00:07:22 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Sep 14 2018 22:59:37 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sun Sep 09 2018 10:24:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Tue Sep 04 2018 13:54:29 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Sat Apr 14 2018 17:56:54 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Apr 06 2018 22:57:49 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Mon Oct 09 2017 19:35:04 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr "Tem certeza que quer sair?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Não foi possível se conectar ao servidor."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Não foi possível se conectar ao servidor."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Criado por"
+
+msgid "Favorites"
+msgstr "Favoritos"
+
+msgid "Manage..."
+msgstr "Gerenciar..."
+
+# Generated by grunt-xgettext on Thu Mar 31 2016 17:50:31 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Oct 16 2015 17:37:32 GMT+0200 (CEST)
+msgid "Logout"
+msgstr "Sair"
+
+msgid "Action"
+msgstr "Ação"
+
+msgid "New"
+msgstr "Novo"
+
+msgid "Save"
+msgstr "Gravar"
+
+msgid "Switch"
+msgstr "Alternar"
+
+msgid "Reload/Undo"
+msgstr "Recarregar/Desfazer"
+
+msgid "Duplicate"
+msgstr "Duplicar"
+
+msgid "Delete"
+msgstr "Apagar"
+
+msgid "Previous"
+msgstr "Anterior"
+
+msgid "Next"
+msgstr "Próximo"
+
+msgid "Search"
+msgstr "Buscar"
+
+msgid "Close Tab"
+msgstr "Fechar aba"
+
+msgid "Attachment"
+msgstr "Anexo"
+
+msgid "Note"
+msgstr "Nota"
+
+msgid "Relate"
+msgstr "Relacionar"
+
+msgid "Print"
+msgstr "Imprimir"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr "Aba anterior"
+
+msgid "Next tab"
+msgstr "Próxima aba"
+
+msgid "Global search"
+msgstr "Pesquisa global"
+
+msgid "Show this help"
+msgstr "Mostra esta ajuda"
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Fechar"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Teclas de atalho"
+
+msgid "Global shortcuts"
+msgstr "Atalhos Globais"
+
+msgid "Tab shortcuts"
+msgstr "Atalhos para abas"
+
+msgid "Unable to reach the server."
+msgstr "Não foi possível se conectar ao servidor."
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "Entrar"
+
+msgid "User name"
+msgstr "Usuário"
+
+msgid "Database"
+msgstr "Banco de dados"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Entrar"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Sua seleção:"
+
+msgid "Cancel"
+msgstr "Cancelar"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "A"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "s"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Por: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "a"
+
+msgid "Yes"
+msgstr "Sim"
+
+msgid "True"
+msgstr "Verdadeiro"
+
+msgid "t"
+msgstr "v"
+
+msgid "False"
+msgstr "Falso"
+
+msgid "Message: "
+msgstr "Mensagem: "
+
+msgid "Warning: "
+msgstr "Alerta: "
+
+msgid "Always ignore this warning."
+msgstr "Sempre ignorar este alerta."
+
+msgid "Do you want to proceed?"
+msgstr "Você deseja continuar?"
+
+msgid "No"
+msgstr "Não"
+
+msgid "Confirmation: "
+msgstr "Confirmação: "
+
+msgid "Concurrency Exception"
+msgstr "Exceção de concorrência"
+
+msgid "Write Concurrency Warning: "
+msgstr "Alerta de edição concorrente: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Este registro foi modificado enquanto você o editava."
+
+msgid "Choose:"
+msgstr "Escolha:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Cancelar\" para cancelar a gravação;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Comparar\" para ver a versão modificada;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Forçar Escrita\" para gravar sua versão atual."
+
+msgid "Compare"
+msgstr "\"Escrever mesmo assim\" para gravar sua versão atual."
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "\"Escrever mesmo assim\" para gravar sua versão atual."
+
+msgid "Write Anyway"
+msgstr "Forçar Escrita"
+
+msgid "Application Error"
+msgstr "Erro no Sistema"
+
+msgid "Report Bug"
+msgstr "Relatar erro"
+
+#, fuzzy
+msgid "Processing"
+msgstr "Processando..."
+
+msgid "Search..."
+msgstr "Buscar..."
+
+msgid "Create..."
+msgstr "Criar..."
+
+msgid "Download"
+msgstr "Baixar"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "Recuperar"
+
+msgid "Font"
+msgstr "Fonte"
+
+msgid "Size"
+msgstr "Tamanho"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Alternar a visão"
+
+msgid "Previous Record"
+msgstr "Registro anterior"
+
+msgid "Next Record"
+msgstr "Próximo registro"
+
+msgid "Create a new record"
+msgstr "Criar um novo registro"
+
+msgid "Save this record"
+msgstr "Gravar este registro"
+
+msgid "Reload"
+msgstr "Recarregar"
+
+msgid "View Logs..."
+msgstr "Ver logs..."
+
+msgid "Show revisions..."
+msgstr "Mostrar revisões..."
+
+msgid "Add an attachment to the record"
+msgstr "Adicionar um anexo ao registro"
+
+msgid "Add a note to the record"
+msgstr "Adicionar uma nota ao registro"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "Adicionar uma nota ao registro"
+
+msgid "Export"
+msgstr "Exportar"
+
+msgid "Import"
+msgstr "Importar"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"A seguinte ação requer que todas as abas sejam fechadas.\n"
+"Você deseja continuar?"
+
+msgid "Launch action"
+msgstr "Iniciar ação"
+
+msgid "Open related records"
+msgstr "Abrir registos relacionados"
+
+msgid "Print report"
+msgstr "Imprimir relatório"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Este registo foi modificado\n"
+"você deseja gravá-lo?"
+
+msgid "Record saved."
+msgstr "Registo gravado."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Trabalhando agora no(s) registo(s) duplicado(s)"
+
+msgid "Are you sure to remove this record?"
+msgstr "Você tem certeza que deseja apagar este registro?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Você tem certeza que deseja apagar estes registros?"
+
+msgid "Records removed."
+msgstr "Registos apagados."
+
+msgid "Records not removed."
+msgstr "Registros não apagados."
+
+msgid "You have to select one record."
+msgstr "Você precisa selecionar um registo."
+
+msgid "ID:"
+msgstr "ID:"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "Criar..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "Data de criação"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "Criar..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "Data de modificação"
+
+msgid "Model: "
+msgstr "Modelo: "
+
+msgid "Add..."
+msgstr "Adicionar..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "Anterior"
+
+#, fuzzy
+msgid "Template"
+msgstr "Relacionar"
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "Anexo (%1)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr "Filtros"
+
+msgid "Clear Search"
+msgstr "Limpar Busca"
+
+msgid "Bookmarks"
+msgstr "Favoritos"
+
+msgid "Remove this bookmark"
+msgstr "Remover este favorito"
+
+msgid "Bookmark this filter"
+msgstr "Adicionar este filtro aos favoritos"
+
+msgid "Bookmark Name:"
+msgstr "Nome do favorito:"
+
+msgid "Show active records"
+msgstr "Mostrar registros ativos"
+
+msgid "Show inactive records"
+msgstr "Mostrar registros inativos"
+
+msgid "Find"
+msgstr "Localizar"
+
+msgid "From"
+msgstr "De"
+
+msgid "To"
+msgstr "Para"
+
+msgid "Open the calendar"
+msgstr "Abrir o calendário"
+
+msgid "ID"
+msgstr "ID"
+
+#, fuzzy
+msgid "Created by"
+msgstr "Criar..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "Data de criação"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "Data de modificação"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "\"%1\" é obrigatório"
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" não é válido de acordo com seu domínio"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "Os valores para \"%1\" não são válidos"
+
+msgid "Pre-validation"
+msgstr "Pré-validação"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Traduzir"
+
+msgid "Edit"
+msgstr "Editar"
+
+msgid "Fuzzy"
+msgstr "Vago"
+
+msgid "You need to save the record before adding translations."
+msgstr "Você precisa gravar o registro antes de adicionar traduções."
+
+msgid "No other language available."
+msgstr "Não há outro idioma disponível."
+
+msgid "Show"
+msgstr "Mostrar"
+
+msgid "Hide"
+msgstr "Ocultar"
+
+#, fuzzy
+msgid "Open the record"
+msgstr "Abrir o registro "
+
+msgid "Clear the field"
+msgstr ""
+
+#, fuzzy
+msgid "Search a record"
+msgstr "Buscar um registro "
+
+msgid "Add"
+msgstr "Adicionar"
+
+msgid "Remove"
+msgstr "Remover"
+
+msgid "Open"
+msgstr "Abrir"
+
+msgid "Undelete"
+msgstr "Recuperar"
+
+msgid "Save As"
+msgstr "Salvar como"
+
+msgid "Save As..."
+msgstr "Salvar como..."
+
+msgid "Select"
+msgstr "Selecionar"
+
+msgid "Select..."
+msgstr "Selecionar..."
+
+msgid "Clear"
+msgstr "Limpar"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Abrir"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "Mais"
+
+msgid "Today"
+msgstr "Hoje"
+
+msgid "Month"
+msgstr "Mês"
+
+msgid "Week"
+msgstr "Semana"
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Selecione sua ação"
+
+msgid "No action defined."
+msgstr "Nenhuma ação definida."
+
+msgid "Attachments (%1)"
+msgstr "Anexo (%1)"
+
+msgid "Notes (%1)"
+msgstr "Notas (%1)"
+
+msgid "Search %1"
+msgstr "Buscar %1"
+
+msgid "Revision"
+msgstr "Revisão"
+
+msgid "All Fields"
+msgstr "Todos os Campos"
+
+msgid "Fields Selected"
+msgstr "Campos Selecionados"
+
+msgid "CSV Parameters"
+msgstr "Parâmetros CSV"
+
+msgid "Delimiter:"
+msgstr "Separador:"
+
+msgid "Quote Char:"
+msgstr "Caractere de Citação:"
+
+msgid "CSV Import: %1"
+msgstr "Importar CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Auto-Detectar"
+
+msgid "File to Import"
+msgstr "Arquivo a importar"
+
+msgid "Encoding:"
+msgstr "Codificação:"
+
+msgid "Lines to Skip:"
+msgstr "Linhas a Ignorar:"
+
+#, fuzzy
+msgid "You must select an import file first."
+msgstr "Primeiro você deve selecionar um arquivo para importar."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "Erro ao processar o arquivo no campo %1."
+
+msgid "Error"
+msgstr "Erro"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Importar"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (nome do modelo)"
+msgstr[1] "%1 (nome do modelo)"
+
+msgid "CSV Export: %1"
+msgstr "Exportar CSV: %1"
+
+msgid "Save Export"
+msgstr "Gravar Exportação"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "Exportar"
+
+msgid "Delete Export"
+msgstr "Apagar Exportação"
+
+msgid "Predefined Exports"
+msgstr "Exportações Pre-definidas"
+
+#, fuzzy
+msgid "Selected Records"
+msgstr "Próximo registro"
+
+#, fuzzy
+msgid "Listed Records"
+msgstr "Próximo registro"
+
+#, fuzzy
+msgid "Export:"
+msgstr "Exportar"
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr "Adicionar Campos"
+
+msgid "%1 (string)"
+msgstr "%1 (texto)"
+
+msgid "%1 (model name)"
+msgstr "%1 (nome do modelo)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (nome do modelo)"
+
+msgid "What is the name of this export?"
+msgstr "Qual é o nome desta Exportação?"
+
+msgid "Override %1 definition?"
+msgstr "Sobrescrever definição %1?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Registo gravado."
+msgstr[1] "Registo gravado."
+
+msgid "E-mail %1"
+msgstr ""
+
+#, fuzzy
+msgid "To:"
+msgstr "Para"
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "Relatar erro"
+
+#, fuzzy
+msgid "Attachments"
+msgstr "Anexo"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "Remover"
+
+msgid "Wizard"
+msgstr "Assistente"
+
+msgid "Translate view"
+msgstr "Traduzir tela"
diff --git a/sao/locale/ro.po b/sao/locale/ro.po
new file mode 100644
index 0000000000..309235d2d8
--- /dev/null
+++ b/sao/locale/ro.po
@@ -0,0 +1,722 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Sigur iesiti?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Serverul nu se poate accessa."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Serverul nu se poate accessa."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Eroare de aplicație"
+
+msgid "Favorites"
+msgstr "Favorite"
+
+msgid "Manage..."
+msgstr "Gestionare..."
+
+msgid "Logout"
+msgstr "Deconectare"
+
+msgid "Action"
+msgstr "Acțiune"
+
+msgid "New"
+msgstr "Nou"
+
+msgid "Save"
+msgstr "Salvare"
+
+msgid "Switch"
+msgstr "Schimba"
+
+msgid "Reload/Undo"
+msgstr "Reincarcare/Desfacere"
+
+msgid "Duplicate"
+msgstr "Duplicat"
+
+msgid "Delete"
+msgstr "Ștergere"
+
+msgid "Previous"
+msgstr "Anterior"
+
+msgid "Next"
+msgstr "Următor"
+
+msgid "Search"
+msgstr "Căutare"
+
+msgid "Close Tab"
+msgstr "Închidere fila"
+
+msgid "Attachment"
+msgstr "Atașament"
+
+msgid "Note"
+msgstr "Nota"
+
+msgid "Relate"
+msgstr "Relata"
+
+msgid "Print"
+msgstr "Tiparire"
+
+msgid "E-Mail"
+msgstr "E-Mail"
+
+msgid "Previous tab"
+msgstr "Fila anterioară"
+
+msgid "Next tab"
+msgstr "Fila următoare"
+
+msgid "Global search"
+msgstr "Căutare globală"
+
+msgid "Show this help"
+msgstr "Arătați acest ajutor"
+
+msgid "Show/Hide access keys"
+msgstr "Arata/Ascunde taste de access"
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Închidere"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Comenzi rapide"
+
+msgid "Global shortcuts"
+msgstr "Comenzile rapide globale"
+
+msgid "Tab shortcuts"
+msgstr "Comenzile rapide pentru file"
+
+msgid "Unable to reach the server."
+msgstr "Serverul nu se poate accessa."
+
+msgid "Too many requests. Try again later."
+msgstr "Prea multe cereri. Încercați mai târziu."
+
+msgid "Login"
+msgstr "Autentificare"
+
+msgid "User name"
+msgstr "Utilizator"
+
+msgid "Database"
+msgstr "Bază de date"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Autentificare"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Selecția dvs.:"
+
+msgid "Cancel"
+msgstr "Anulare"
+
+msgid "OK"
+msgstr "OK"
+
+msgid "Y"
+msgstr "Y"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "w"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "De: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "Da"
+
+msgid "True"
+msgstr "Adevărat"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "Fals"
+
+msgid "Message: "
+msgstr "Mesaj: "
+
+msgid "Warning: "
+msgstr "Avertizare: "
+
+msgid "Always ignore this warning."
+msgstr "Ignorați întotdeauna acest avertisment."
+
+msgid "Do you want to proceed?"
+msgstr "Doriți să continuați?"
+
+msgid "No"
+msgstr "Nu"
+
+msgid "Confirmation: "
+msgstr "Confirmare: "
+
+msgid "Concurrency Exception"
+msgstr "Excepție de concurgență"
+
+msgid "Write Concurrency Warning: "
+msgstr "Avertizare de scriere simultană: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Această înregistrare a fost modificată în timp ce o editați."
+
+msgid "Choose:"
+msgstr "Alegere:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "„Anulare” pentru a anula salvarea;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Comparație\" pentru a vedea versiunea modificată;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Scrie Oricum\" pentru a salva versiunea curentă."
+
+msgid "Compare"
+msgstr "Comparaţie"
+
+msgid "Compare: %1"
+msgstr "Comparație:% 1"
+
+msgid "Write Anyway"
+msgstr "Scrie oricum"
+
+msgid "Application Error"
+msgstr "Eroare de aplicație"
+
+msgid "Report Bug"
+msgstr "Raporteati eroare"
+
+msgid "Processing"
+msgstr "Se prelucreaza"
+
+msgid "Search..."
+msgstr "Căutare..."
+
+msgid "Create..."
+msgstr "Creare..."
+
+msgid "Download"
+msgstr "Descarca"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Text ingroșat"
+
+msgid "Italic"
+msgstr "Cursiv"
+
+msgid "Underline"
+msgstr "Subliniere"
+
+msgid "Font"
+msgstr "Font"
+
+msgid "Size"
+msgstr "Mărime"
+
+msgid "Justify Right"
+msgstr "Aliniere Dreapta"
+
+msgid "Justify Left"
+msgstr "Aliniere Stânga"
+
+msgid "Justify Center"
+msgstr "Aliniere Margini"
+
+msgid "Justify Full"
+msgstr "Aliniere Plin"
+
+msgid "Switch view"
+msgstr "Comutare vedere"
+
+msgid "Previous Record"
+msgstr "Înregistrare anterioară"
+
+msgid "Next Record"
+msgstr "Următoarea înregistrare"
+
+msgid "Create a new record"
+msgstr "Creați o înregistrare nouă"
+
+msgid "Save this record"
+msgstr "Salvare înregistrare"
+
+msgid "Reload"
+msgstr "Reîncare"
+
+msgid "View Logs..."
+msgstr "Vizualizare jurnalele ..."
+
+msgid "Show revisions..."
+msgstr "Afișați revizii..."
+
+msgid "Add an attachment to the record"
+msgstr "Adăugați un atașament la înregistrare"
+
+msgid "Add a note to the record"
+msgstr "Adăugați o notă la înregistrare"
+
+msgid "E-Mail..."
+msgstr "E-Mail..."
+
+msgid "Send an e-mail using the record"
+msgstr "Trimiteți un e-mail folosind înregistrarea"
+
+msgid "Export"
+msgstr "Export"
+
+msgid "Import"
+msgstr "Import"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Următoarea acțiune necesită închiderea tuturor filelor.\n"
+"Doriți să continuați?"
+
+msgid "Launch action"
+msgstr "Lansare acțiune"
+
+msgid "Open related records"
+msgstr "Deschidere înregistrări conexe"
+
+msgid "Print report"
+msgstr "Tipărire raport"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Această înregistrare a fost modificată\n"
+"vrei sa o salvezi?"
+
+msgid "Record saved."
+msgstr "Înregistrare salvată."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Lucrează acum la înregistrările duplicate."
+
+msgid "Are you sure to remove this record?"
+msgstr "Sigur eliminați această înregistrare?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Sigur eliminați această înregistrare?"
+
+msgid "Records removed."
+msgstr "Înregistrările au fost eliminate."
+
+msgid "Records not removed."
+msgstr "Înregistrările nu au fost eliminate."
+
+msgid "You have to select one record."
+msgstr "Trebuie selectaa o singura înregistrare."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Creat de:"
+
+msgid "Created at:"
+msgstr "Creat la:"
+
+msgid "Edited by:"
+msgstr "Editat de:"
+
+msgid "Edited at:"
+msgstr "Editat la:"
+
+msgid "Model: "
+msgstr "Model: "
+
+msgid "Add..."
+msgstr "Adăuga..."
+
+msgid "Preview"
+msgstr "Previzualizare"
+
+msgid "Template"
+msgstr "Șablon"
+
+msgid "Attachment (%1)"
+msgstr "Atachment (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Notă (%1/%2)"
+
+msgid "Filters"
+msgstr "Filtre"
+
+msgid "Clear Search"
+msgstr "Ștergeți Căutarea"
+
+msgid "Bookmarks"
+msgstr "Marcaje"
+
+msgid "Remove this bookmark"
+msgstr "Eliminare marcaj"
+
+msgid "Bookmark this filter"
+msgstr "Marcare filtru"
+
+msgid "Bookmark Name:"
+msgstr "Denumire marcaj:"
+
+msgid "Show active records"
+msgstr "Afișează înregistrări active"
+
+msgid "Show inactive records"
+msgstr "Afișează înregistrări active"
+
+msgid "Find"
+msgstr "Căutare"
+
+msgid "From"
+msgstr "De la"
+
+msgid "To"
+msgstr "La"
+
+msgid "Open the calendar"
+msgstr "Deschidere calendar"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Creat de"
+
+msgid "Created at"
+msgstr "Creat la"
+
+msgid "Modified by"
+msgstr "Modificat de"
+
+msgid "Modified at"
+msgstr "Modificat la"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" este necesar."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "\"%1\" nu este valabil dupa domeniul sau."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Valorile lui \"%s\" nu sunt valide."
+
+msgid "Pre-validation"
+msgstr "Pre-validare"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Traducere"
+
+msgid "Edit"
+msgstr "Editare"
+
+msgid "Fuzzy"
+msgstr "Cautare aproximativa"
+
+msgid "You need to save the record before adding translations."
+msgstr "Trebuie să salvați înregistrarea înainte de a adăuga traduceri."
+
+msgid "No other language available."
+msgstr "Nu există altă limbă disponibilă."
+
+msgid "Show"
+msgstr "Afișare"
+
+msgid "Hide"
+msgstr "Ascunde"
+
+msgid "Open the record"
+msgstr "Deschidere inregistrare"
+
+msgid "Clear the field"
+msgstr "Golire câmp"
+
+msgid "Search a record"
+msgstr "Cautare in inregistrare"
+
+msgid "Add"
+msgstr "Adăuga"
+
+msgid "Remove"
+msgstr "Eliminare"
+
+msgid "Open"
+msgstr "Deschidere"
+
+msgid "Undelete"
+msgstr "Anulați ștergerea"
+
+msgid "Save As"
+msgstr "Salvează ca"
+
+msgid "Save As..."
+msgstr "Salvare că..."
+
+msgid "Select"
+msgstr "Selectați"
+
+msgid "Select..."
+msgstr "Selectare..."
+
+msgid "Clear"
+msgstr "Golire"
+
+msgid "Open..."
+msgstr "Deschidere..."
+
+msgid "Choose a language"
+msgstr "Alegere limbă"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "Mai multe"
+
+msgid "Today"
+msgstr "Astăzi"
+
+msgid "Month"
+msgstr "Lună"
+
+msgid "Week"
+msgstr "Săptămână"
+
+msgid "Day"
+msgstr "Zi"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Selectați acțiunea"
+
+msgid "No action defined."
+msgstr "Nicio acțiune definită."
+
+msgid "Attachments (%1)"
+msgstr "Atașamente (%1)"
+
+msgid "Notes (%1)"
+msgstr "Note (%1)"
+
+msgid "Search %1"
+msgstr "Căutare %1"
+
+msgid "Revision"
+msgstr "Revizuire"
+
+msgid "All Fields"
+msgstr "Toate câmpurile"
+
+msgid "Fields Selected"
+msgstr "Câmpuri selectate"
+
+msgid "CSV Parameters"
+msgstr "Parametri CSV"
+
+msgid "Delimiter:"
+msgstr "Delimitator:"
+
+msgid "Quote Char:"
+msgstr "Caracter de cotatie:"
+
+msgid "CSV Import: %1"
+msgstr "Import CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Auto-detectare"
+
+msgid "File to Import"
+msgstr "Fișier de importat"
+
+msgid "Encoding:"
+msgstr "Codifiere:"
+
+msgid "Lines to Skip:"
+msgstr "Rânduri de sarit:"
+
+msgid "You must select an import file first."
+msgstr "Mai întâi trebuie să selectați un fișier de import."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "Eroare la procesarea fișierului la câmpul %1."
+
+msgid "Error"
+msgstr "Eroare"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Import"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (denmire inregistrare)"
+msgstr[1] "%1 (denmire inregistrare)"
+msgstr[2] "%1 (denmire inregistrare)"
+
+msgid "CSV Export: %1"
+msgstr "Export CSV: %1"
+
+msgid "Save Export"
+msgstr "Salvare Export"
+
+msgid "URL Export"
+msgstr "Export URL"
+
+msgid "Delete Export"
+msgstr "Ștergere Export"
+
+msgid "Predefined Exports"
+msgstr "Exporturi predefinite"
+
+msgid "Selected Records"
+msgstr "Înregistrări selectate"
+
+msgid "Listed Records"
+msgstr "Înregistrări enumerate"
+
+msgid "Export:"
+msgstr "Export:"
+
+msgid "Ignore search limit"
+msgstr "Ignorați limita de căutare"
+
+msgid "Use locale format"
+msgstr "Utilizați formatul local"
+
+msgid "Add Field Names"
+msgstr "Adăugare denumire de câmp"
+
+msgid "%1 (string)"
+msgstr "%1 (șir)"
+
+msgid "%1 (model name)"
+msgstr "%1 (denumire model)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (denmire inregistrare)"
+
+msgid "What is the name of this export?"
+msgstr "Care este numele acestui export?"
+
+msgid "Override %1 definition?"
+msgstr "Trece peste definiţia %1?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Înregistrare salvată."
+msgstr[1] "Înregistrare salvată."
+msgstr[2] "Înregistrare salvată."
+
+msgid "E-mail %1"
+msgstr "E-mail %1"
+
+msgid "To:"
+msgstr "Destinatar:"
+
+msgid "Cc:"
+msgstr "CC:"
+
+msgid "Bcc:"
+msgstr "Bcc:"
+
+msgid "Subject:"
+msgstr "Subiect:"
+
+msgid "Reports"
+msgstr "Raport"
+
+msgid "Attachments"
+msgstr "Atașamente"
+
+msgid "Files"
+msgstr "Fişiere"
+
+msgid "Send"
+msgstr "Trimite"
+
+msgid "Remove File"
+msgstr "Eliminare Fişier"
+
+msgid "Wizard"
+msgstr "Asistent"
+
+msgid "Translate view"
+msgstr "Traducere vedere"
diff --git a/sao/locale/ru.po b/sao/locale/ru.po
new file mode 100644
index 0000000000..a5963e8991
--- /dev/null
+++ b/sao/locale/ru.po
@@ -0,0 +1,714 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+#, fuzzy
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+#, fuzzy
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ""
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+#, fuzzy
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+msgstr[2] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+msgstr[2] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/sl.po b/sao/locale/sl.po
new file mode 100644
index 0000000000..f427f6bf32
--- /dev/null
+++ b/sao/locale/sl.po
@@ -0,0 +1,753 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Ni se mogoče povezati s strežnikom."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Ni se mogoče povezati s strežnikom."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Ustvaril"
+
+msgid "Favorites"
+msgstr "Zaznamki"
+
+msgid "Manage..."
+msgstr ""
+
+# Generated by grunt-xgettext on Thu Mar 31 2016 17:50:31 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Oct 16 2015 17:37:32 GMT+0200 (CEST)
+msgid "Logout"
+msgstr "Odjava"
+
+msgid "Action"
+msgstr "Ukrep"
+
+msgid "New"
+msgstr "Novo"
+
+msgid "Save"
+msgstr "Shrani"
+
+msgid "Switch"
+msgstr "Preklopi"
+
+msgid "Reload/Undo"
+msgstr "Ponovno naloži"
+
+msgid "Duplicate"
+msgstr "Podvoji"
+
+msgid "Delete"
+msgstr "Zbriši"
+
+msgid "Previous"
+msgstr "Prejšnji"
+
+msgid "Next"
+msgstr "Naslednji"
+
+msgid "Search"
+msgstr "Išči"
+
+msgid "Close Tab"
+msgstr "Zapri zavihek"
+
+msgid "Attachment"
+msgstr "Priponka"
+
+msgid "Note"
+msgstr "Zabeležka"
+
+msgid "Relate"
+msgstr "Veza"
+
+msgid "Print"
+msgstr "Tisk"
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Zapri"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr "Ni se mogoče povezati s strežnikom."
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr "Prijava"
+
+msgid "User name"
+msgstr "Uporabniško ime"
+
+msgid "Database"
+msgstr "Podatkovna baza"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Prijava"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Vaša izbira:"
+
+msgid "Cancel"
+msgstr "Prekliči"
+
+msgid "OK"
+msgstr "V redu"
+
+msgid "Y"
+msgstr "l"
+
+msgid "M"
+msgstr "M"
+
+msgid "w"
+msgstr "t"
+
+msgid "d"
+msgstr "d"
+
+msgid "h"
+msgstr "h"
+
+msgid "m"
+msgstr "m"
+
+msgid "s"
+msgstr "s"
+
+msgid "By: "
+msgstr "Od: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "d"
+
+msgid "Yes"
+msgstr "Da"
+
+msgid "True"
+msgstr "Da"
+
+msgid "t"
+msgstr "d"
+
+msgid "False"
+msgstr "Ne"
+
+msgid "Message: "
+msgstr "Sporočilo: "
+
+msgid "Warning: "
+msgstr "Opozorilo: "
+
+msgid "Always ignore this warning."
+msgstr "Vedno prezri to opozorilo."
+
+msgid "Do you want to proceed?"
+msgstr "Ali želiš nadaljevati?"
+
+msgid "No"
+msgstr "Ne"
+
+msgid "Confirmation: "
+msgstr "Potrditev: "
+
+msgid "Concurrency Exception"
+msgstr "Napaka sočasnega izvajanja"
+
+msgid "Write Concurrency Warning: "
+msgstr "Opozorilo sočasnega zapisovanja: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Ta zapis je bil spremenjen v času vašega popravljanja."
+
+msgid "Choose:"
+msgstr "Izberi:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Prekliči\" - prekliči spremembe;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Primerjaj\" - primerjaj z drugo različico;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Vseeno shrani\" - shrani trenutno različico."
+
+msgid "Compare"
+msgstr "Primerjaj"
+
+#, fuzzy
+msgid "Compare: %1"
+msgstr "Primerjaj"
+
+msgid "Write Anyway"
+msgstr "Vseeno shrani"
+
+msgid "Application Error"
+msgstr "Programska napaka"
+
+msgid "Report Bug"
+msgstr "Prijavi programsko napako"
+
+#, fuzzy
+msgid "Processing"
+msgstr "Obdelava ..."
+
+msgid "Search..."
+msgstr "Išči ..."
+
+msgid "Create..."
+msgstr "Izdelaj ..."
+
+msgid "Download"
+msgstr "Prenesi"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "Povrni"
+
+msgid "Font"
+msgstr "Pisava"
+
+msgid "Size"
+msgstr "Velikost"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "Preklopi pogled"
+
+msgid "Previous Record"
+msgstr "Prejšnji zapis"
+
+msgid "Next Record"
+msgstr "Naslednji zapis"
+
+msgid "Create a new record"
+msgstr "Ustvari nov zapis"
+
+msgid "Save this record"
+msgstr "Shrani ta zapis"
+
+msgid "Reload"
+msgstr "Ponovno naloži"
+
+msgid "View Logs..."
+msgstr "Prikaži dnevnik ..."
+
+msgid "Show revisions..."
+msgstr "Prikaži revizije ..."
+
+msgid "Add an attachment to the record"
+msgstr "Dodaj priponko zapisu"
+
+msgid "Add a note to the record"
+msgstr "Dodaj zapisu zabeležko"
+
+msgid "E-Mail..."
+msgstr ""
+
+#, fuzzy
+msgid "Send an e-mail using the record"
+msgstr "Dodaj zapisu zabeležko"
+
+msgid "Export"
+msgstr "Izvoz"
+
+msgid "Import"
+msgstr "Uvoz"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Za slednji ukrep se bodo zaprli vsi zavihki.\n"
+"Ali želiš nadaljevati?"
+
+msgid "Launch action"
+msgstr "Zaženi ukrep"
+
+msgid "Open related records"
+msgstr "Odpri povezane zapise"
+
+msgid "Print report"
+msgstr "Izpis poročila"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Ta zapis je bil spremenjen,\n"
+"ga želiš shraniti?"
+
+msgid "Record saved."
+msgstr "Zapis shranjen."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Trenutno se dela na podvojenem zapisu."
+
+msgid "Are you sure to remove this record?"
+msgstr "Ali res želiš zbrisati ta zapis?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Ali res želiš zbrisati te zapise?"
+
+msgid "Records removed."
+msgstr "Zapisi zbrisani."
+
+msgid "Records not removed."
+msgstr "Zapisi niso bili zbrisani."
+
+msgid "You have to select one record."
+msgstr "En zapis mora biti izbran."
+
+msgid "ID:"
+msgstr "ID:"
+
+#, fuzzy
+msgid "Created by:"
+msgstr "Izdelaj ..."
+
+#, fuzzy
+msgid "Created at:"
+msgstr "Ustvarjeno"
+
+#, fuzzy
+msgid "Edited by:"
+msgstr "Izdelaj ..."
+
+#, fuzzy
+msgid "Edited at:"
+msgstr "Popravljeno"
+
+msgid "Model: "
+msgstr "Model: "
+
+msgid "Add..."
+msgstr ""
+
+#, fuzzy
+msgid "Preview"
+msgstr "Prejšnji"
+
+#, fuzzy
+msgid "Template"
+msgstr "Veza"
+
+#, fuzzy
+msgid "Attachment (%1)"
+msgstr "Priponke (%1)"
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr "Filtri"
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr "Zaznamki"
+
+msgid "Remove this bookmark"
+msgstr "Zbriši ta zaznamek"
+
+msgid "Bookmark this filter"
+msgstr "Shrani ta filter"
+
+msgid "Bookmark Name:"
+msgstr "Ime zaznamka:"
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr "Najdi"
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr "ID"
+
+#, fuzzy
+msgid "Created by"
+msgstr "Izdelaj ..."
+
+#, fuzzy
+msgid "Created at"
+msgstr "Ustvarjeno"
+
+msgid "Modified by"
+msgstr ""
+
+#, fuzzy
+msgid "Modified at"
+msgstr "Popravljeno"
+
+#, fuzzy
+msgid "\"%1\" is required."
+msgstr "Polje \"%1\" je obvezno"
+
+#, fuzzy
+msgid "\"%1\" is not valid according to its domain."
+msgstr "Polje \"%1\" ni veljavno glede na svojo domeno"
+
+#, fuzzy
+msgid "The values of \"%1\" are not valid."
+msgstr "Vrednosti polja \"%1\" niso veljavne"
+
+msgid "Pre-validation"
+msgstr "Predpreverjanje"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Prevod"
+
+msgid "Edit"
+msgstr "Uredi"
+
+msgid "Fuzzy"
+msgstr "Nejasno"
+
+msgid "You need to save the record before adding translations."
+msgstr "Pred prevajanjem mora biti zapis shranjen."
+
+msgid "No other language available."
+msgstr "Drugega jezika ni na voljo."
+
+msgid "Show"
+msgstr "Pokaži"
+
+msgid "Hide"
+msgstr "Skrij"
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr "Dodaj"
+
+msgid "Remove"
+msgstr "Odstrani"
+
+msgid "Open"
+msgstr "Odpri"
+
+msgid "Undelete"
+msgstr "Povrni"
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr "Izberi"
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr "Počisti"
+
+#, fuzzy
+msgid "Open..."
+msgstr "Odpri"
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "Več"
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Izberi ukrep"
+
+msgid "No action defined."
+msgstr "Nobenega ukrepa še ni določenega."
+
+msgid "Attachments (%1)"
+msgstr "Priponke (%1)"
+
+msgid "Notes (%1)"
+msgstr "Zabeležke (%1)"
+
+msgid "Search %1"
+msgstr "Išči %1"
+
+msgid "Revision"
+msgstr "Različica"
+
+msgid "All Fields"
+msgstr "Vsa polja"
+
+msgid "Fields Selected"
+msgstr "Izbrana polja"
+
+msgid "CSV Parameters"
+msgstr "CSV parametri"
+
+msgid "Delimiter:"
+msgstr "Ločilo:"
+
+msgid "Quote Char:"
+msgstr "Narekovaj:"
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr "Samozaznava"
+
+msgid "File to Import"
+msgstr "Datoteka za uvoz"
+
+msgid "Encoding:"
+msgstr "Kodiranje:"
+
+msgid "Lines to Skip:"
+msgstr "Izpuščene vrstice:"
+
+#, fuzzy
+msgid "You must select an import file first."
+msgstr "Najprej je potrebno izbrati datoteko za uvoz"
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "Napaka pri obdelavi datoteke pri polju %1."
+
+msgid "Error"
+msgstr "Napaka"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "Uvoz"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (ime zapisa)"
+msgstr[1] "%1 (ime zapisa)"
+msgstr[2] "%1 (ime zapisa)"
+msgstr[3] "%1 (ime zapisa)"
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr "Shrani izvoz"
+
+#, fuzzy
+msgid "URL Export"
+msgstr "Izvoz"
+
+msgid "Delete Export"
+msgstr "Zbriši izvoz"
+
+msgid "Predefined Exports"
+msgstr "Prednastavljeni izvozi"
+
+#, fuzzy
+msgid "Selected Records"
+msgstr "Naslednji zapis"
+
+#, fuzzy
+msgid "Listed Records"
+msgstr "Naslednji zapis"
+
+#, fuzzy
+msgid "Export:"
+msgstr "Izvoz"
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr "Dodaj imena polj"
+
+msgid "%1 (string)"
+msgstr "%1 (niz)"
+
+msgid "%1 (model name)"
+msgstr ""
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (ime zapisa)"
+
+msgid "What is the name of this export?"
+msgstr "Ime izvoza?"
+
+msgid "Override %1 definition?"
+msgstr "Prepis definicije %1?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Zapis shranjen."
+msgstr[1] "Zapis shranjen."
+msgstr[2] "Zapis shranjen."
+msgstr[3] "Zapis shranjen."
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+#, fuzzy
+msgid "Reports"
+msgstr "Prijavi programsko napako"
+
+#, fuzzy
+msgid "Attachments"
+msgstr "Priponka"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+#, fuzzy
+msgid "Remove File"
+msgstr "Odstrani"
+
+msgid "Wizard"
+msgstr "Čarovnik"
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/tr.po b/sao/locale/tr.po
new file mode 100644
index 0000000000..f652b4ae63
--- /dev/null
+++ b/sao/locale/tr.po
@@ -0,0 +1,709 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr ""
+
+msgid "Incompatible version of the server."
+msgstr ""
+
+msgid "Version mismatch"
+msgstr ""
+
+msgid "Could not connect to the server."
+msgstr ""
+
+msgid "Connection error"
+msgstr ""
+
+msgid "Favorites"
+msgstr ""
+
+msgid "Manage..."
+msgstr ""
+
+msgid "Logout"
+msgstr ""
+
+msgid "Action"
+msgstr ""
+
+msgid "New"
+msgstr ""
+
+msgid "Save"
+msgstr ""
+
+msgid "Switch"
+msgstr ""
+
+msgid "Reload/Undo"
+msgstr ""
+
+msgid "Duplicate"
+msgstr ""
+
+msgid "Delete"
+msgstr ""
+
+msgid "Previous"
+msgstr ""
+
+msgid "Next"
+msgstr ""
+
+msgid "Search"
+msgstr ""
+
+msgid "Close Tab"
+msgstr ""
+
+msgid "Attachment"
+msgstr ""
+
+msgid "Note"
+msgstr ""
+
+msgid "Relate"
+msgstr ""
+
+msgid "Print"
+msgstr ""
+
+msgid "E-Mail"
+msgstr ""
+
+msgid "Previous tab"
+msgstr ""
+
+msgid "Next tab"
+msgstr ""
+
+msgid "Global search"
+msgstr ""
+
+msgid "Show this help"
+msgstr ""
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr ""
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr ""
+
+msgid "Global shortcuts"
+msgstr ""
+
+msgid "Tab shortcuts"
+msgstr ""
+
+msgid "Unable to reach the server."
+msgstr ""
+
+msgid "Too many requests. Try again later."
+msgstr ""
+
+msgid "Login"
+msgstr ""
+
+msgid "User name"
+msgstr ""
+
+msgid "Database"
+msgstr ""
+
+msgid "Login with"
+msgstr ""
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr ""
+
+msgid "Cancel"
+msgstr ""
+
+msgid "OK"
+msgstr ""
+
+msgid "Y"
+msgstr ""
+
+msgid "M"
+msgstr ""
+
+msgid "w"
+msgstr ""
+
+msgid "d"
+msgstr ""
+
+msgid "h"
+msgstr ""
+
+msgid "m"
+msgstr ""
+
+msgid "s"
+msgstr ""
+
+msgid "By: "
+msgstr ""
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr ""
+
+msgid "Yes"
+msgstr ""
+
+msgid "True"
+msgstr ""
+
+msgid "t"
+msgstr ""
+
+msgid "False"
+msgstr ""
+
+msgid "Message: "
+msgstr ""
+
+msgid "Warning: "
+msgstr ""
+
+msgid "Always ignore this warning."
+msgstr ""
+
+msgid "Do you want to proceed?"
+msgstr ""
+
+msgid "No"
+msgstr ""
+
+msgid "Confirmation: "
+msgstr ""
+
+msgid "Concurrency Exception"
+msgstr ""
+
+msgid "Write Concurrency Warning: "
+msgstr ""
+
+msgid "This record has been modified while you were editing it."
+msgstr ""
+
+msgid "Choose:"
+msgstr ""
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr ""
+
+msgid "\"Compare\" to see the modified version;"
+msgstr ""
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr ""
+
+msgid "Compare"
+msgstr ""
+
+msgid "Compare: %1"
+msgstr ""
+
+msgid "Write Anyway"
+msgstr ""
+
+msgid "Application Error"
+msgstr ""
+
+msgid "Report Bug"
+msgstr ""
+
+msgid "Processing"
+msgstr ""
+
+msgid "Search..."
+msgstr ""
+
+msgid "Create..."
+msgstr ""
+
+msgid "Download"
+msgstr ""
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+msgid "Underline"
+msgstr ""
+
+msgid "Font"
+msgstr ""
+
+msgid "Size"
+msgstr ""
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr ""
+
+msgid "Previous Record"
+msgstr ""
+
+msgid "Next Record"
+msgstr ""
+
+msgid "Create a new record"
+msgstr ""
+
+msgid "Save this record"
+msgstr ""
+
+msgid "Reload"
+msgstr ""
+
+msgid "View Logs..."
+msgstr ""
+
+msgid "Show revisions..."
+msgstr ""
+
+msgid "Add an attachment to the record"
+msgstr ""
+
+msgid "Add a note to the record"
+msgstr ""
+
+msgid "E-Mail..."
+msgstr ""
+
+msgid "Send an e-mail using the record"
+msgstr ""
+
+msgid "Export"
+msgstr ""
+
+msgid "Import"
+msgstr ""
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+
+msgid "Launch action"
+msgstr ""
+
+msgid "Open related records"
+msgstr ""
+
+msgid "Print report"
+msgstr ""
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+
+msgid "Record saved."
+msgstr ""
+
+msgid "Working now on the duplicated record(s)."
+msgstr ""
+
+msgid "Are you sure to remove this record?"
+msgstr ""
+
+msgid "Are you sure to remove those records?"
+msgstr ""
+
+msgid "Records removed."
+msgstr ""
+
+msgid "Records not removed."
+msgstr ""
+
+msgid "You have to select one record."
+msgstr ""
+
+msgid "ID:"
+msgstr ""
+
+msgid "Created by:"
+msgstr ""
+
+msgid "Created at:"
+msgstr ""
+
+msgid "Edited by:"
+msgstr ""
+
+msgid "Edited at:"
+msgstr ""
+
+msgid "Model: "
+msgstr ""
+
+msgid "Add..."
+msgstr ""
+
+msgid "Preview"
+msgstr ""
+
+msgid "Template"
+msgstr ""
+
+msgid "Attachment (%1)"
+msgstr ""
+
+msgid "Note (%1/%2)"
+msgstr ""
+
+msgid "Filters"
+msgstr ""
+
+msgid "Clear Search"
+msgstr ""
+
+msgid "Bookmarks"
+msgstr ""
+
+msgid "Remove this bookmark"
+msgstr ""
+
+msgid "Bookmark this filter"
+msgstr ""
+
+msgid "Bookmark Name:"
+msgstr ""
+
+msgid "Show active records"
+msgstr ""
+
+msgid "Show inactive records"
+msgstr ""
+
+msgid "Find"
+msgstr ""
+
+msgid "From"
+msgstr ""
+
+msgid "To"
+msgstr ""
+
+msgid "Open the calendar"
+msgstr ""
+
+msgid "ID"
+msgstr ""
+
+msgid "Created by"
+msgstr ""
+
+msgid "Created at"
+msgstr ""
+
+msgid "Modified by"
+msgstr ""
+
+msgid "Modified at"
+msgstr ""
+
+msgid "\"%1\" is required."
+msgstr ""
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr ""
+
+msgid "The values of \"%1\" are not valid."
+msgstr ""
+
+msgid "Pre-validation"
+msgstr ""
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr ""
+
+msgid "Edit"
+msgstr ""
+
+msgid "Fuzzy"
+msgstr ""
+
+msgid "You need to save the record before adding translations."
+msgstr ""
+
+msgid "No other language available."
+msgstr ""
+
+msgid "Show"
+msgstr ""
+
+msgid "Hide"
+msgstr ""
+
+msgid "Open the record"
+msgstr ""
+
+msgid "Clear the field"
+msgstr ""
+
+msgid "Search a record"
+msgstr ""
+
+msgid "Add"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Open"
+msgstr ""
+
+msgid "Undelete"
+msgstr ""
+
+msgid "Save As"
+msgstr ""
+
+msgid "Save As..."
+msgstr ""
+
+msgid "Select"
+msgstr ""
+
+msgid "Select..."
+msgstr ""
+
+msgid "Clear"
+msgstr ""
+
+msgid "Open..."
+msgstr ""
+
+msgid "Choose a language"
+msgstr ""
+
+#, javascript-format
+msgid "%1%"
+msgstr ""
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr ""
+
+msgid "Today"
+msgstr ""
+
+msgid "Month"
+msgstr ""
+
+msgid "Week"
+msgstr ""
+
+msgid "Day"
+msgstr ""
+
+msgid ",..."
+msgstr ""
+
+msgid "%1 (%2)"
+msgstr ""
+
+msgid "Select your action"
+msgstr ""
+
+msgid "No action defined."
+msgstr ""
+
+msgid "Attachments (%1)"
+msgstr ""
+
+msgid "Notes (%1)"
+msgstr ""
+
+msgid "Search %1"
+msgstr ""
+
+msgid "Revision"
+msgstr ""
+
+msgid "All Fields"
+msgstr ""
+
+msgid "Fields Selected"
+msgstr ""
+
+msgid "CSV Parameters"
+msgstr ""
+
+msgid "Delimiter:"
+msgstr ""
+
+msgid "Quote Char:"
+msgstr ""
+
+msgid "CSV Import: %1"
+msgstr ""
+
+msgid "Auto-Detect"
+msgstr ""
+
+msgid "File to Import"
+msgstr ""
+
+msgid "Encoding:"
+msgstr ""
+
+msgid "Lines to Skip:"
+msgstr ""
+
+msgid "You must select an import file first."
+msgstr ""
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr ""
+
+msgid "Error"
+msgstr ""
+
+msgid "Import failed"
+msgstr ""
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "CSV Export: %1"
+msgstr ""
+
+msgid "Save Export"
+msgstr ""
+
+msgid "URL Export"
+msgstr ""
+
+msgid "Delete Export"
+msgstr ""
+
+msgid "Predefined Exports"
+msgstr ""
+
+msgid "Selected Records"
+msgstr ""
+
+msgid "Listed Records"
+msgstr ""
+
+msgid "Export:"
+msgstr ""
+
+msgid "Ignore search limit"
+msgstr ""
+
+msgid "Use locale format"
+msgstr ""
+
+msgid "Add Field Names"
+msgstr ""
+
+msgid "%1 (string)"
+msgstr ""
+
+msgid "%1 (model name)"
+msgstr ""
+
+msgid "%1/Record Name"
+msgstr ""
+
+msgid "What is the name of this export?"
+msgstr ""
+
+msgid "Override %1 definition?"
+msgstr ""
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] ""
+msgstr[1] ""
+
+msgid "E-mail %1"
+msgstr ""
+
+msgid "To:"
+msgstr ""
+
+msgid "Cc:"
+msgstr ""
+
+msgid "Bcc:"
+msgstr ""
+
+msgid "Subject:"
+msgstr ""
+
+msgid "Reports"
+msgstr ""
+
+msgid "Attachments"
+msgstr ""
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr ""
+
+msgid "Remove File"
+msgstr ""
+
+msgid "Wizard"
+msgstr ""
+
+msgid "Translate view"
+msgstr ""
diff --git a/sao/locale/uk.po b/sao/locale/uk.po
new file mode 100644
index 0000000000..68ffb4ba77
--- /dev/null
+++ b/sao/locale/uk.po
@@ -0,0 +1,719 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgid "Are your sure to leave?"
+msgstr "Ви впевнені, що хочете вийти?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "Не вдається підключитися до сервера."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "Не вдається підключитися до сервера."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "Помилка програми"
+
+msgid "Favorites"
+msgstr "Вибране"
+
+msgid "Manage..."
+msgstr "Керування..."
+
+msgid "Logout"
+msgstr "Вихід"
+
+msgid "Action"
+msgstr "Дія"
+
+msgid "New"
+msgstr "Новий"
+
+msgid "Save"
+msgstr "Зберегти"
+
+msgid "Switch"
+msgstr "Переключити"
+
+msgid "Reload/Undo"
+msgstr "Оновити"
+
+msgid "Duplicate"
+msgstr "Копіювати"
+
+msgid "Delete"
+msgstr "Видалити"
+
+msgid "Previous"
+msgstr "Попередній"
+
+msgid "Next"
+msgstr "Наступний"
+
+msgid "Search"
+msgstr "Пошук"
+
+msgid "Close Tab"
+msgstr "Закрити вкладку"
+
+msgid "Attachment"
+msgstr "Вкладення"
+
+msgid "Note"
+msgstr "Примітка"
+
+msgid "Relate"
+msgstr "Пов'язані"
+
+msgid "Print"
+msgstr "Друк"
+
+msgid "E-Mail"
+msgstr "Ел.пошта"
+
+msgid "Previous tab"
+msgstr "Попередня вкладка"
+
+msgid "Next tab"
+msgstr "Наступна вкладка"
+
+msgid "Global search"
+msgstr "Глобальний пошук"
+
+msgid "Show this help"
+msgstr "Показати цю довідку"
+
+msgid "Show/Hide access keys"
+msgstr "Показати/cховати ключі доступу"
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "Закрити"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "Комбінації клавіш"
+
+msgid "Global shortcuts"
+msgstr "Глобальні комбінації клавіш"
+
+msgid "Tab shortcuts"
+msgstr "Комбінації клавіш вкладки"
+
+msgid "Unable to reach the server."
+msgstr "Не вдається підключитися до сервера."
+
+msgid "Too many requests. Try again later."
+msgstr "Дуже багато запитів. Спробуйте ще раз пізніше."
+
+msgid "Login"
+msgstr "Логін"
+
+msgid "User name"
+msgstr "Ім'я користувача"
+
+msgid "Database"
+msgstr "База даних"
+
+#, fuzzy
+msgid "Login with"
+msgstr "Логін"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "Ваш вибір:"
+
+msgid "Cancel"
+msgstr "Скасувати"
+
+msgid "OK"
+msgstr "Гаразд"
+
+msgid "Y"
+msgstr "Р"
+
+msgid "M"
+msgstr "М"
+
+msgid "w"
+msgstr "т"
+
+msgid "d"
+msgstr "д"
+
+msgid "h"
+msgstr "г"
+
+msgid "m"
+msgstr "х"
+
+msgid "s"
+msgstr "с"
+
+msgid "By: "
+msgstr "Від: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "т"
+
+msgid "Yes"
+msgstr "Так"
+
+msgid "True"
+msgstr "Правда"
+
+msgid "t"
+msgstr "п"
+
+msgid "False"
+msgstr "Неправда"
+
+msgid "Message: "
+msgstr "Повідомлення: "
+
+msgid "Warning: "
+msgstr "Попередження: "
+
+msgid "Always ignore this warning."
+msgstr "Завжди ігнорувати це попередження."
+
+msgid "Do you want to proceed?"
+msgstr "Ви бажаєте продовжити?"
+
+msgid "No"
+msgstr "Ні"
+
+msgid "Confirmation: "
+msgstr "Підтвердження: "
+
+msgid "Concurrency Exception"
+msgstr "Виняток одночасного доступу"
+
+msgid "Write Concurrency Warning: "
+msgstr "Попередження одночасного запису: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "Цей запис було змінено, поки ви його редагували."
+
+msgid "Choose:"
+msgstr "Вибрати:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"Скасувати\", щоб скасувати збереження;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"Порівняти\", щоб побачити змінену версію;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"Записати все одно\", щоб зберегти поточну версію."
+
+msgid "Compare"
+msgstr "Порівняти"
+
+msgid "Compare: %1"
+msgstr "Порівняти: %1"
+
+msgid "Write Anyway"
+msgstr "Записати все одно"
+
+msgid "Application Error"
+msgstr "Помилка програми"
+
+msgid "Report Bug"
+msgstr "Повідомити про помилку"
+
+msgid "Processing"
+msgstr "Обробка"
+
+msgid "Search..."
+msgstr "Пошук..."
+
+msgid "Create..."
+msgstr "Створити..."
+
+msgid "Download"
+msgstr "Завантажити"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr "Жирний"
+
+msgid "Italic"
+msgstr "Курсив"
+
+msgid "Underline"
+msgstr "Підкреслений"
+
+msgid "Font"
+msgstr "Шрифт"
+
+msgid "Size"
+msgstr "Розмір"
+
+msgid "Justify Right"
+msgstr "Вирівняти праворуч"
+
+msgid "Justify Left"
+msgstr "Вирівняти ліворуч"
+
+msgid "Justify Center"
+msgstr "Вирівняти по центру"
+
+msgid "Justify Full"
+msgstr "Вирівняти по ширині"
+
+msgid "Switch view"
+msgstr "Переключити вид"
+
+msgid "Previous Record"
+msgstr "Попередній запис"
+
+msgid "Next Record"
+msgstr "Наступний запис"
+
+msgid "Create a new record"
+msgstr "Створити новий запис"
+
+msgid "Save this record"
+msgstr "Зберегти цей запис"
+
+msgid "Reload"
+msgstr "Перезавантажити"
+
+msgid "View Logs..."
+msgstr "Переглянути журнали..."
+
+msgid "Show revisions..."
+msgstr "Показати ревізії..."
+
+msgid "Add an attachment to the record"
+msgstr "Додати вкладення до запису"
+
+msgid "Add a note to the record"
+msgstr "Додати примітку до запису"
+
+msgid "E-Mail..."
+msgstr "Ел.пошта..."
+
+msgid "Send an e-mail using the record"
+msgstr "Надіслати ел.лист, використовуючи запис"
+
+msgid "Export"
+msgstr "Експорт"
+
+msgid "Import"
+msgstr "Імпорт"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"Наступна дія вимагає закриття всіх вкладок.\n"
+"Продовжити?"
+
+msgid "Launch action"
+msgstr "Виконати дію"
+
+msgid "Open related records"
+msgstr "Відкрити пов'язані записи"
+
+msgid "Print report"
+msgstr "Друкувати звіт"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"Цей запис було змінено,\n"
+"ви бажаєте зберегти його?"
+
+msgid "Record saved."
+msgstr "Запис збережено."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "Зараз працюємо з дубльованим записом(записами)."
+
+msgid "Are you sure to remove this record?"
+msgstr "Ви впевнені, що бажаєте видалити цей запис?"
+
+msgid "Are you sure to remove those records?"
+msgstr "Ви впевнені, що бажаєте видалити ці записи?"
+
+msgid "Records removed."
+msgstr "Записи видалено."
+
+msgid "Records not removed."
+msgstr "Записи не видалено."
+
+msgid "You have to select one record."
+msgstr "Ви повинні вибрати один запис."
+
+msgid "ID:"
+msgstr "ID:"
+
+msgid "Created by:"
+msgstr "Ким створено:"
+
+msgid "Created at:"
+msgstr "Коли створено:"
+
+msgid "Edited by:"
+msgstr "Ким змінено:"
+
+msgid "Edited at:"
+msgstr "Коли змінено:"
+
+msgid "Model: "
+msgstr "Модель: "
+
+msgid "Add..."
+msgstr "Додати..."
+
+msgid "Preview"
+msgstr "Перегляд"
+
+msgid "Template"
+msgstr "Шаблон"
+
+msgid "Attachment (%1)"
+msgstr "Вкладення (%1)"
+
+msgid "Note (%1/%2)"
+msgstr "Примітка (%1/%2)"
+
+msgid "Filters"
+msgstr "Фільтри"
+
+msgid "Clear Search"
+msgstr "Очистити пошук"
+
+msgid "Bookmarks"
+msgstr "Закладки"
+
+msgid "Remove this bookmark"
+msgstr "Видалити цю закладку"
+
+msgid "Bookmark this filter"
+msgstr "Зберегти цей фільтр"
+
+msgid "Bookmark Name:"
+msgstr "Ім'я закладки:"
+
+msgid "Show active records"
+msgstr "Показати активні записи"
+
+msgid "Show inactive records"
+msgstr "Показати неактивні записи"
+
+msgid "Find"
+msgstr "Знайти"
+
+msgid "From"
+msgstr "Від"
+
+msgid "To"
+msgstr "До"
+
+msgid "Open the calendar"
+msgstr "Відкрити календар"
+
+msgid "ID"
+msgstr "ID"
+
+msgid "Created by"
+msgstr "Ким створено"
+
+msgid "Created at"
+msgstr "Коли створенно"
+
+msgid "Modified by"
+msgstr "Ким змінено"
+
+msgid "Modified at"
+msgstr "Коли змінено"
+
+msgid "\"%1\" is required."
+msgstr "Значення \"%1\" обов'язкове."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "Значення \"%1\" недійсне відповідно до свого домену."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "Значення \"%1\" недійсні."
+
+msgid "Pre-validation"
+msgstr "Попередня перевірка"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "Перекласти"
+
+msgid "Edit"
+msgstr "Редагувати"
+
+msgid "Fuzzy"
+msgstr "Нечіткий"
+
+msgid "You need to save the record before adding translations."
+msgstr "Треба зберегти запис перед додаванням перекладів."
+
+msgid "No other language available."
+msgstr "Немає іншої мови."
+
+msgid "Show"
+msgstr "Показати"
+
+msgid "Hide"
+msgstr "Сховати"
+
+msgid "Open the record"
+msgstr "Відкрити запис"
+
+msgid "Clear the field"
+msgstr "Очистити поле"
+
+msgid "Search a record"
+msgstr "Пошук запису"
+
+msgid "Add"
+msgstr "Додати"
+
+msgid "Remove"
+msgstr "Видалити"
+
+msgid "Open"
+msgstr "Відкрити"
+
+msgid "Undelete"
+msgstr "Відновити"
+
+msgid "Save As"
+msgstr "Зберегти як"
+
+msgid "Save As..."
+msgstr "Зберегти як..."
+
+msgid "Select"
+msgstr "Вибрати"
+
+msgid "Select..."
+msgstr "Вибрати..."
+
+msgid "Clear"
+msgstr "Очистити"
+
+msgid "Open..."
+msgstr "Відкрити..."
+
+msgid "Choose a language"
+msgstr "Вибрати мову"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr "Налаштувати"
+
+msgid "More"
+msgstr "Додатково"
+
+msgid "Today"
+msgstr "Сьогодні"
+
+msgid "Month"
+msgstr "Місяць"
+
+msgid "Week"
+msgstr "Тиждень"
+
+msgid "Day"
+msgstr "День"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "Виберіть дію"
+
+msgid "No action defined."
+msgstr "Ніяких дій не визначено."
+
+msgid "Attachments (%1)"
+msgstr "Вкладення (%1)"
+
+msgid "Notes (%1)"
+msgstr "Примітки (%1)"
+
+msgid "Search %1"
+msgstr "Пошук %1"
+
+msgid "Revision"
+msgstr "Ревізія"
+
+msgid "All Fields"
+msgstr "Усі поля"
+
+msgid "Fields Selected"
+msgstr "Вибрані поля"
+
+msgid "CSV Parameters"
+msgstr "Параметри CSV"
+
+msgid "Delimiter:"
+msgstr "Роздільник:"
+
+msgid "Quote Char:"
+msgstr "Символ цитати:"
+
+msgid "CSV Import: %1"
+msgstr "Імпорт CSV: %1"
+
+msgid "Auto-Detect"
+msgstr "Автовизначення"
+
+msgid "File to Import"
+msgstr "Файл для імпорту"
+
+msgid "Encoding:"
+msgstr "Кодування:"
+
+msgid "Lines to Skip:"
+msgstr "Рядки для пропуску:"
+
+msgid "You must select an import file first."
+msgstr "Спочатку потрібно вибрати файл імпорту."
+
+msgid "Detection failed"
+msgstr "Помилка визначення"
+
+msgid "Error processing the file at field %1."
+msgstr "Помилка обробки файлу в полі %1."
+
+msgid "Error"
+msgstr "Помилка"
+
+msgid "Import failed"
+msgstr "Помилка імпорту"
+
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "Імпортовано %1 запис"
+msgstr[1] "Імпортовано %1 записи"
+msgstr[2] "Імпортовано %1 записів"
+
+msgid "CSV Export: %1"
+msgstr "Експорт CSV: %1"
+
+msgid "Save Export"
+msgstr "Зберегти експорт"
+
+msgid "URL Export"
+msgstr "Експорт URL"
+
+msgid "Delete Export"
+msgstr "Видалити експорт"
+
+msgid "Predefined Exports"
+msgstr "Попередньо визначені експорти"
+
+msgid "Selected Records"
+msgstr "Вибрані записи"
+
+msgid "Listed Records"
+msgstr "Записи списку"
+
+msgid "Export:"
+msgstr "Експортувати:"
+
+msgid "Ignore search limit"
+msgstr "Ігнорувати обмеження пошуку"
+
+msgid "Use locale format"
+msgstr "Використовувати локальний формат"
+
+msgid "Add Field Names"
+msgstr "Додати імена полів"
+
+msgid "%1 (string)"
+msgstr "%1 (рядок)"
+
+msgid "%1 (model name)"
+msgstr "%1 (ім'я моделі)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (ім'я запису)"
+
+msgid "What is the name of this export?"
+msgstr "Як називається цей експорт?"
+
+msgid "Override %1 definition?"
+msgstr "Перевизначити визначення %1?"
+
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "Збережено %1 запис"
+msgstr[1] "Збережено %1 записи"
+msgstr[2] "Збережено %1 записів"
+
+msgid "E-mail %1"
+msgstr "Ел.лист %1"
+
+msgid "To:"
+msgstr "Кому:"
+
+msgid "Cc:"
+msgstr "Копія:"
+
+msgid "Bcc:"
+msgstr "Сліпа копія:"
+
+msgid "Subject:"
+msgstr "Тема:"
+
+msgid "Reports"
+msgstr "Звіти"
+
+msgid "Attachments"
+msgstr "Вкладення"
+
+msgid "Files"
+msgstr "Файли"
+
+msgid "Send"
+msgstr "Надіслати"
+
+msgid "Remove File"
+msgstr "Видалити файл"
+
+msgid "Wizard"
+msgstr "Майстер"
+
+msgid "Translate view"
+msgstr "Переклад вкладки"
diff --git a/sao/locale/zh_CN.po b/sao/locale/zh_CN.po
new file mode 100644
index 0000000000..eccc572735
--- /dev/null
+++ b/sao/locale/zh_CN.po
@@ -0,0 +1,725 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+# Generated by grunt-xgettext on Wed May 01 2019 00:09:20 GMT+0200 (CEST)
+msgid "Are your sure to leave?"
+msgstr "您确定要离开吗?"
+
+#, fuzzy
+msgid "Incompatible version of the server."
+msgstr "无法连接服务器."
+
+msgid "Version mismatch"
+msgstr ""
+
+#, fuzzy
+msgid "Could not connect to the server."
+msgstr "无法连接服务器."
+
+#, fuzzy
+msgid "Connection error"
+msgstr "创建者"
+
+msgid "Favorites"
+msgstr "收藏(_V)"
+
+msgid "Manage..."
+msgstr "管理..."
+
+# Generated by grunt-xgettext on Thu Mar 31 2016 17:50:31 GMT+0200 (CEST)
+# Generated by grunt-xgettext on Fri Oct 16 2015 17:37:32 GMT+0200 (CEST)
+msgid "Logout"
+msgstr "注销"
+
+msgid "Action"
+msgstr "操作"
+
+msgid "New"
+msgstr "新建"
+
+msgid "Save"
+msgstr "保存"
+
+msgid "Switch"
+msgstr "切换"
+
+msgid "Reload/Undo"
+msgstr "刷新/撤销"
+
+msgid "Duplicate"
+msgstr "复制"
+
+msgid "Delete"
+msgstr "删除"
+
+msgid "Previous"
+msgstr "向前"
+
+msgid "Next"
+msgstr "向后"
+
+msgid "Search"
+msgstr "查找"
+
+msgid "Close Tab"
+msgstr "关闭标签"
+
+msgid "Attachment"
+msgstr "附件"
+
+msgid "Note"
+msgstr "备注"
+
+msgid "Relate"
+msgstr "关联"
+
+msgid "Print"
+msgstr "打印"
+
+msgid "E-Mail"
+msgstr "电子邮件"
+
+msgid "Previous tab"
+msgstr "上一标签(_P)"
+
+msgid "Next tab"
+msgstr "下一标签(_N)"
+
+msgid "Global search"
+msgstr "全局查找"
+
+msgid "Show this help"
+msgstr "显示此帮助"
+
+msgid "Show/Hide access keys"
+msgstr ""
+
+msgid "Help"
+msgstr ""
+
+msgid "Close"
+msgstr "关闭"
+
+msgid "Documentation..."
+msgstr ""
+
+msgid "Keyboard shortcuts"
+msgstr "键盘快捷键"
+
+msgid "Global shortcuts"
+msgstr "全局快捷方式"
+
+msgid "Tab shortcuts"
+msgstr "标签快捷方式"
+
+msgid "Unable to reach the server."
+msgstr "无法连接服务器."
+
+msgid "Too many requests. Try again later."
+msgstr "请求太多,请稍后重试."
+
+msgid "Login"
+msgstr "登录"
+
+msgid "User name"
+msgstr "用户名"
+
+msgid "Database"
+msgstr "数据库"
+
+#, fuzzy
+msgid "Login with"
+msgstr "登录"
+
+msgid "Not found."
+msgstr ""
+
+msgid "Your selection:"
+msgstr "已选择:"
+
+msgid "Cancel"
+msgstr "取消"
+
+msgid "OK"
+msgstr "确定"
+
+msgid "Y"
+msgstr "年"
+
+msgid "M"
+msgstr "月"
+
+msgid "w"
+msgstr "星期"
+
+msgid "d"
+msgstr "日"
+
+msgid "h"
+msgstr "时"
+
+msgid "m"
+msgstr "分"
+
+msgid "s"
+msgstr "秒"
+
+msgid "By: "
+msgstr "By: "
+
+msgid ", "
+msgstr ", "
+
+msgid "y"
+msgstr "y"
+
+msgid "Yes"
+msgstr "是"
+
+msgid "True"
+msgstr "True"
+
+msgid "t"
+msgstr "t"
+
+msgid "False"
+msgstr "False"
+
+msgid "Message: "
+msgstr "信息: "
+
+msgid "Warning: "
+msgstr "警告: "
+
+msgid "Always ignore this warning."
+msgstr "下次不再提示."
+
+msgid "Do you want to proceed?"
+msgstr "继续此项操作 ?"
+
+msgid "No"
+msgstr "否"
+
+msgid "Confirmation: "
+msgstr "确认: "
+
+msgid "Concurrency Exception"
+msgstr "并行操作异常"
+
+msgid "Write Concurrency Warning: "
+msgstr "同步操作警告: "
+
+msgid "This record has been modified while you were editing it."
+msgstr "在你编辑的时候,这条记录已经被更改."
+
+msgid "Choose:"
+msgstr "选择:"
+
+msgid "\"Cancel\" to cancel saving;"
+msgstr "\"取消\" 不保存;"
+
+msgid "\"Compare\" to see the modified version;"
+msgstr "\"对比\" 查看变更的数据;"
+
+msgid "\"Write Anyway\" to save your current version."
+msgstr "\"覆写\" 保存当前数据."
+
+msgid "Compare"
+msgstr "比较"
+
+msgid "Compare: %1"
+msgstr "比较: %1"
+
+msgid "Write Anyway"
+msgstr "覆写"
+
+msgid "Application Error"
+msgstr "程序错误"
+
+msgid "Report Bug"
+msgstr "报告Bug"
+
+msgid "Processing"
+msgstr "正在处理"
+
+msgid "Search..."
+msgstr "查找..."
+
+msgid "Create..."
+msgstr "新建..."
+
+msgid "Download"
+msgstr "下载"
+
+msgid "..."
+msgstr "..."
+
+msgid "Bold"
+msgstr ""
+
+msgid "Italic"
+msgstr ""
+
+#, fuzzy
+msgid "Underline"
+msgstr "回滚"
+
+msgid "Font"
+msgstr "字体"
+
+msgid "Size"
+msgstr "大小"
+
+msgid "Justify Right"
+msgstr ""
+
+msgid "Justify Left"
+msgstr ""
+
+msgid "Justify Center"
+msgstr ""
+
+msgid "Justify Full"
+msgstr ""
+
+msgid "Switch view"
+msgstr "切换视图"
+
+msgid "Previous Record"
+msgstr "前一条记录"
+
+msgid "Next Record"
+msgstr "后一条记录"
+
+msgid "Create a new record"
+msgstr "新建记录"
+
+msgid "Save this record"
+msgstr "保存当前记录"
+
+msgid "Reload"
+msgstr "重载"
+
+msgid "View Logs..."
+msgstr "查看日志..."
+
+msgid "Show revisions..."
+msgstr "显示修订版本..."
+
+msgid "Add an attachment to the record"
+msgstr "为当前记录添加附件"
+
+msgid "Add a note to the record"
+msgstr "为当前记录添加注释"
+
+msgid "E-Mail..."
+msgstr "用电子邮件发送..."
+
+msgid "Send an e-mail using the record"
+msgstr "使用当前记录发送电子邮件"
+
+msgid "Export"
+msgstr "导出"
+
+msgid "Import"
+msgstr "导入"
+
+msgid ""
+"The following action requires to close all tabs.\n"
+"Do you want to continue?"
+msgstr ""
+"该操作需要关闭所有标签.\n"
+"是否继续?"
+
+msgid "Launch action"
+msgstr "执行操作"
+
+msgid "Open related records"
+msgstr "打开关联记录"
+
+msgid "Print report"
+msgstr "打印报告"
+
+msgid ""
+"This record has been modified\n"
+"do you want to save it?"
+msgstr ""
+"记录有改动\n"
+"是否保存?"
+
+msgid "Record saved."
+msgstr "记录保存成功."
+
+msgid "Working now on the duplicated record(s)."
+msgstr "正在处理重复记录."
+
+msgid "Are you sure to remove this record?"
+msgstr "确定要删除这条记录吗?"
+
+msgid "Are you sure to remove those records?"
+msgstr "确定要删除这些记录?"
+
+msgid "Records removed."
+msgstr "记录已成功删除."
+
+msgid "Records not removed."
+msgstr "所选记录未删除成功."
+
+msgid "You have to select one record."
+msgstr "需要选择一条记录."
+
+msgid "ID:"
+msgstr "标识:"
+
+msgid "Created by:"
+msgstr "创建者:"
+
+msgid "Created at:"
+msgstr "创建日期:"
+
+msgid "Edited by:"
+msgstr "编辑者:"
+
+msgid "Edited at:"
+msgstr "编辑于:"
+
+msgid "Model: "
+msgstr "模型: "
+
+msgid "Add..."
+msgstr "添加..."
+
+#, fuzzy
+msgid "Preview"
+msgstr "向前"
+
+msgid "Template"
+msgstr "模板"
+
+msgid "Attachment (%1)"
+msgstr "附件(%1)"
+
+msgid "Note (%1/%2)"
+msgstr "备注 (%1/%2)"
+
+msgid "Filters"
+msgstr "筛选"
+
+msgid "Clear Search"
+msgstr "清除搜索"
+
+msgid "Bookmarks"
+msgstr "书签"
+
+msgid "Remove this bookmark"
+msgstr "移除书签"
+
+msgid "Bookmark this filter"
+msgstr "收藏当前筛选器"
+
+msgid "Bookmark Name:"
+msgstr "书签名称:"
+
+msgid "Show active records"
+msgstr "显示已启用记录"
+
+msgid "Show inactive records"
+msgstr "显示未启用记录"
+
+msgid "Find"
+msgstr "查找"
+
+msgid "From"
+msgstr "从"
+
+msgid "To"
+msgstr "至"
+
+msgid "Open the calendar"
+msgstr "打开日历"
+
+msgid "ID"
+msgstr "标识"
+
+msgid "Created by"
+msgstr "创建者"
+
+msgid "Created at"
+msgstr "创建日期"
+
+msgid "Modified by"
+msgstr "修改者"
+
+msgid "Modified at"
+msgstr "修改于"
+
+msgid "\"%1\" is required."
+msgstr "\"%1\" 是必填项."
+
+msgid "\"%1\" is not valid according to its domain."
+msgstr "根据域设置,\"%1\" 不可用."
+
+msgid "The values of \"%1\" are not valid."
+msgstr "\"%1\" 的取值不可用."
+
+msgid "Pre-validation"
+msgstr "预校验"
+
+msgid ":"
+msgstr ":"
+
+msgid "Translate"
+msgstr "翻译"
+
+msgid "Edit"
+msgstr "编辑"
+
+msgid "Fuzzy"
+msgstr "模糊"
+
+msgid "You need to save the record before adding translations."
+msgstr "请先保存已翻译条目,然后再增加新翻译 ."
+
+msgid "No other language available."
+msgstr "没有其他可翻译语言."
+
+msgid "Show"
+msgstr "显示"
+
+msgid "Hide"
+msgstr "隐藏"
+
+msgid "Open the record"
+msgstr "打开记录"
+
+msgid "Clear the field"
+msgstr "清除字段 "
+
+msgid "Search a record"
+msgstr "搜索记录"
+
+msgid "Add"
+msgstr "添加"
+
+msgid "Remove"
+msgstr "删除"
+
+msgid "Open"
+msgstr "打开"
+
+msgid "Undelete"
+msgstr "回滚"
+
+msgid "Save As"
+msgstr "另存为"
+
+msgid "Save As..."
+msgstr "另存为..."
+
+msgid "Select"
+msgstr "选择"
+
+msgid "Select..."
+msgstr "选择..."
+
+msgid "Clear"
+msgstr "清除"
+
+#, fuzzy
+msgid "Open..."
+msgstr "打开"
+
+msgid "Choose a language"
+msgstr "选择一种语言"
+
+#, javascript-format
+msgid "%1%"
+msgstr "%1%"
+
+msgid ": "
+msgstr ": "
+
+msgid "Customize"
+msgstr ""
+
+msgid "More"
+msgstr "更多"
+
+msgid "Today"
+msgstr "今天"
+
+msgid "Month"
+msgstr "月"
+
+msgid "Week"
+msgstr "周"
+
+msgid "Day"
+msgstr "天"
+
+msgid ",..."
+msgstr ",..."
+
+msgid "%1 (%2)"
+msgstr "%1 (%2)"
+
+msgid "Select your action"
+msgstr "选择一项操作"
+
+msgid "No action defined."
+msgstr "没有定义任何操作 ."
+
+msgid "Attachments (%1)"
+msgstr "附件(%1)"
+
+msgid "Notes (%1)"
+msgstr "注释(%s)"
+
+msgid "Search %1"
+msgstr "搜索 %1"
+
+msgid "Revision"
+msgstr "修订版本"
+
+msgid "All Fields"
+msgstr "所有字段"
+
+msgid "Fields Selected"
+msgstr "所选字段"
+
+msgid "CSV Parameters"
+msgstr "CSV 参数"
+
+msgid "Delimiter:"
+msgstr "分隔符:"
+
+msgid "Quote Char:"
+msgstr "限定符:"
+
+msgid "CSV Import: %1"
+msgstr "CSV导入: %s"
+
+msgid "Auto-Detect"
+msgstr "自动侦测"
+
+msgid "File to Import"
+msgstr "导入文件"
+
+msgid "Encoding:"
+msgstr "编码:"
+
+msgid "Lines to Skip:"
+msgstr "跳过行:"
+
+msgid "You must select an import file first."
+msgstr "必须先选择要导入的文件."
+
+msgid "Detection failed"
+msgstr ""
+
+msgid "Error processing the file at field %1."
+msgstr "处理字段 %s 对应的文件时出错."
+
+msgid "Error"
+msgstr "错误"
+
+#, fuzzy
+msgid "Import failed"
+msgstr "导入"
+
+#, fuzzy
+msgid "%1 record imported"
+msgid_plural "%1 records imported"
+msgstr[0] "%1 (记录名称)"
+
+msgid "CSV Export: %1"
+msgstr "CSV导出:%s"
+
+msgid "Save Export"
+msgstr "保存导出"
+
+msgid "URL Export"
+msgstr "URL 导出"
+
+msgid "Delete Export"
+msgstr "删除导出"
+
+msgid "Predefined Exports"
+msgstr "预定义导出"
+
+msgid "Selected Records"
+msgstr "已选记录"
+
+msgid "Listed Records"
+msgstr "已列出记录"
+
+msgid "Export:"
+msgstr "导出:"
+
+msgid "Ignore search limit"
+msgstr "忽略搜索限制"
+
+msgid "Use locale format"
+msgstr "使用 locale 格式"
+
+msgid "Add Field Names"
+msgstr "添加字段名称"
+
+msgid "%1 (string)"
+msgstr "%1 (字符串)"
+
+msgid "%1 (model name)"
+msgstr "%1 (模型名称)"
+
+#, fuzzy
+msgid "%1/Record Name"
+msgstr "%1 (记录名称)"
+
+msgid "What is the name of this export?"
+msgstr "导出设置的名称是?"
+
+msgid "Override %1 definition?"
+msgstr "覆盖 %1 的定义?"
+
+#, fuzzy
+msgid "%1 record saved"
+msgid_plural "%1 records saved"
+msgstr[0] "记录保存成功."
+
+msgid "E-mail %1"
+msgstr "电子邮件 %1"
+
+msgid "To:"
+msgstr "收件人:"
+
+msgid "Cc:"
+msgstr "抄送:"
+
+msgid "Bcc:"
+msgstr "私下抄送:"
+
+msgid "Subject:"
+msgstr "主题:"
+
+msgid "Reports"
+msgstr "报告(_R)"
+
+msgid "Attachments"
+msgstr "附件"
+
+msgid "Files"
+msgstr ""
+
+msgid "Send"
+msgstr "发送"
+
+#, fuzzy
+msgid "Remove File"
+msgstr "删除"
+
+msgid "Wizard"
+msgstr "向导"
+
+msgid "Translate view"
+msgstr "翻译视图"
diff --git a/sao/package.json b/sao/package.json
new file mode 100644
index 0000000000..7371c2a5e8
--- /dev/null
+++ b/sao/package.json
@@ -0,0 +1,57 @@
+{
+ "name": "tryton-sao",
+ "title": "sao",
+ "description": "Tryton webclient",
+ "version": "6.7.0",
+ "homepage": "http://www.tryton.org/",
+ "author": {
+ "name": "Tryton"
+ },
+ "repository": {
+ "type": "hg",
+ "url": "http://hg.tryton.org/sao"
+ },
+ "bugs": {
+ "url": "http://bugs.tryton.org/",
+ "email": "bugs@tryton.org"
+ },
+ "license": "GPL-3.0+",
+ "files": [
+ "COPYRIGHT",
+ "CHANGELOG",
+ "Gruntfile.js",
+ "LICENSE",
+ "README.md",
+ "bower.json",
+ "dist",
+ "images",
+ "index.html",
+ "locale",
+ "package.json",
+ "src",
+ "tests"
+ ],
+ "scripts": {
+ "test": "npx grunt test",
+ "postinstall": "npx bower install"
+ },
+ "devDependencies": {
+ "grunt-contrib-nodeunit": "^2.0",
+ "grunt-contrib-qunit": "^3.1",
+ "grunt-contrib-watch": "^1.1",
+ "grunt-shell": "^3.0",
+ "grunt-po2json": "^0.3"
+ },
+ "keywords": [
+ "tryton"
+ ],
+ "dependencies": {
+ "bower": "^1.8.4",
+ "grunt": "^1.0",
+ "grunt-cli": "^1.3",
+ "grunt-contrib-concat": "^1.0",
+ "grunt-contrib-jshint": "^2.1",
+ "grunt-contrib-less": "^2.0",
+ "grunt-contrib-uglify": "^5.0"
+ }
+}
diff --git a/sao/src/.jshintrc b/sao/src/.jshintrc
new file mode 100644
index 0000000000..e95d2a3226
--- /dev/null
+++ b/sao/src/.jshintrc
@@ -0,0 +1,6 @@
+{
+ "browser": true,
+ "devel": true,
+ "esversion": 6,
+ "jquery": true
+}
diff --git a/sao/src/action.js b/sao/src/action.js
new file mode 100644
index 0000000000..1b388ef1ec
--- /dev/null
+++ b/sao/src/action.js
@@ -0,0 +1,237 @@
+/* This file is part of Tryton. The COPYRIGHT file at the top level of
+ this repository contains the full copyright notices and license terms. */
+(function() {
+ 'use strict';
+
+ Sao.Action = {
+ report_blob_url: undefined
+ };
+
+ Sao.Action.exec_action = function(action, data, context) {
+ if (!context) {
+ context = {};
+ } else {
+ context = jQuery.extend({}, context);
+ }
+ var session = Sao.Session.current_session;
+ if (data === undefined) {
+ data = {};
+ } else {
+ data = jQuery.extend({}, data);
+ }
+
+ delete context.active_id;
+ delete context.active_ids;
+ delete context.active_model;
+
+ function add_name_suffix(name, context){
+ if (!data.model || !data.ids) {
+ return jQuery.when(name);
+ }
+ var max_records = 5;
+ var ids = data.ids.filter(function(id){
+ return id >= 0;
+ }).slice(0, max_records);
+ if (!ids.length) {
+ return jQuery.when(name);
+ }
+ return Sao.rpc({
+ 'method': 'model.' + data.model + '.read',
+ 'params': [ids, ['rec_name'], context]
+ }, Sao.Session.current_session).then(function(result) {
+ var name_suffix = result.map(function(record){
+ return record.rec_name;
+ }).join(Sao.i18n.gettext(', '));
+
+ if (data.ids.length > ids.length) {
+ name_suffix += Sao.i18n.gettext(',...');
+ }
+ if (name_suffix) {
+ return Sao.i18n.gettext('%1 (%2)', name, name_suffix);
+ } else {
+ return name;
+ }
+ });
+ }
+ data.action_id = action.id;
+ var params = {};
+ var name_prm;
+ switch (action.type) {
+ case 'ir.action.act_window':
+ params.view_ids = [];
+ params.mode = null;
+ if (!jQuery.isEmptyObject(action.views)) {
+ params.view_ids = [];
+ params.mode = [];
+ for (const view of action.views) {
+ params.view_ids.push(view[0]);
+ params.mode.push(view[1]);
+ }
+ } else if (!jQuery.isEmptyObject(action.view_id)) {
+ params.view_ids = [action.view_id[0]];
+ }
+
+ if (action.pyson_domain === undefined) {
+ action.pyson_domain = '[]';
+ }
+ var ctx = {
+ active_model: data.model || null,
+ active_id: data.id || null,
+ active_ids: data.ids || [],
+ };
+ ctx = jQuery.extend(ctx, session.context);
+ ctx._user = session.user_id;
+ var decoder = new Sao.PYSON.Decoder(ctx);
+ params.context = jQuery.extend(
+ {}, context,
+ decoder.decode( action.pyson_context || '{}'));
+ ctx = jQuery.extend(ctx, params.context);
+
+ ctx.context = ctx;
+ decoder = new Sao.PYSON.Decoder(ctx);
+ params.domain = decoder.decode(action.pyson_domain);
+ params.order = decoder.decode(action.pyson_order);
+ params.search_value = decoder.decode(
+ action.pyson_search_value || '[]');
+ params.tab_domain = [];
+ for (const element of action.domains) {
+ params.tab_domain.push(
+ [element[0], decoder.decode(element[1]), element[2]]);
+ }
+ name_prm = jQuery.when(action.name);
+ params.model = action.res_model || data.res_model;
+ params.res_id = action.res_id || data.res_id;
+ params.context_model = action.context_model;
+ params.context_domain = action.context_domain;
+ if (action.limit !== null) {
+ params.limit = action.limit;
+ } else {
+ params.limit = Sao.config.limit;
+ }
+ params.icon = action['icon.rec_name'] || '';
+
+ if (action.keyword) {
+ name_prm = add_name_suffix(action.name, params.context);
+ }
+ name_prm.then(function(name) {
+ params.name = name;
+ Sao.Tab.create(params);
+ });
+ return;
+ case 'ir.action.wizard':
+ params.action = action.wiz_name;
+ params.data = data;
+ params.context = context;
+ params.window = action.window;
+ name_prm = jQuery.when(action.name);
+ if ((action.keyword || 'form_action') === 'form_action') {
+ name_prm = add_name_suffix(action.name, context);
+ }
+ name_prm.done(function(name) {
+ params.name = name;
+ Sao.Wizard.create(params);
+ });
+ return;
+ case 'ir.action.report':
+ params.name = action.report_name;
+ params.data = data;
+ params.direct_print = action.direct_print;
+ params.context = context;
+ Sao.Action.exec_report(params);
+ return;
+ case 'ir.action.url':
+ window.open(action.url, '_blank', 'noreferrer,noopener');
+ return;
+ }
+ };
+
+ Sao.Action.exec_keyword = function(
+ keyword, data, context, warning=true, alwaysask=false) {
+ var actions = [];
+ var model_id = data.id;
+ var args = {
+ 'method': 'model.' + 'ir.action.keyword.get_keyword',
+ 'params': [keyword, [data.model, model_id], {}]
+ };
+ var prm = Sao.rpc(args, Sao.Session.current_session);
+ var exec_action = function(actions) {
+ var keyact = {};
+ for (var i in actions) {
+ var action = actions[i];
+ keyact[action.name.split(' / ').pop()] = action;
+ }
+ var prm = Sao.common.selection(
+ Sao.i18n.gettext('Select your action'),
+ keyact, alwaysask);
+ return prm.then(function(action) {
+ Sao.Action.exec_action(action, data, context);
+ }, function() {
+ if (jQuery.isEmptyObject(keyact) && warning) {
+ alert(Sao.i18n.gettext('No action defined.'));
+ }
+ });
+ };
+ return prm.pipe(exec_action);
+ };
+
+ Sao.Action.exec_report = function(attributes) {
+ if (!attributes.context) {
+ attributes.context = {};
+ }
+ var data = jQuery.extend({}, attributes.data);
+ var context = jQuery.extend({}, Sao.Session.current_session.context);
+ jQuery.extend(context, attributes.context);
+ context.direct_print = attributes.direct_print;
+
+ var prm = Sao.rpc({
+ 'method': 'report.' + attributes.name + '.execute',
+ 'params': [data.ids || [], data, context]
+ }, Sao.Session.current_session);
+ prm.done(function(result) {
+ var report_type = result[0];
+ var data = result[1];
+ var print = result[2];
+ var name = result[3];
+
+ // TODO direct print
+ var file_name = name + '.' + report_type;
+ Sao.common.download_file(data, file_name);
+ });
+ };
+
+ Sao.Action.execute = function(action, data, context, keyword) {
+ if (typeof action == 'number') {
+ action = Sao.rpc({
+ 'method': 'model.ir.action.get_action_value',
+ 'params': [action, context],
+ }, Sao.Session.current_session, false);
+ }
+ if (keyword) {
+ var keywords = {
+ 'ir.action.report': 'form_report',
+ 'ir.action.wizard': 'form_action',
+ 'ir.action.act_window': 'form_relate'
+ };
+ if (!action.keyword) {
+ action.keyword = keywords[action.type];
+ }
+ }
+ Sao.Action.exec_action(action, data, context);
+ };
+
+ Sao.Action.evaluate = function(action, atype, record) {
+ action = jQuery.extend({}, action);
+ var email = {};
+ if ('pyson_email' in action) {
+ email = record.expr_eval(action.pyson_email);
+ if (jQuery.isEmptyObject(email)) {
+ email = {};
+ }
+ }
+ if (!('subject' in email)) {
+ email.subject = action.name.replace(/_/g, '');
+ }
+ action.email = email;
+ return action;
+ };
+}());
diff --git a/sao/src/board.js b/sao/src/board.js
new file mode 100644
index 0000000000..be89a144bc
--- /dev/null
+++ b/sao/src/board.js
@@ -0,0 +1,227 @@
+/* This file is part of Tryton. The COPYRIGHT file at the top level of
+ this repository contains the full copyright notices and license terms. */
+(function() {
+ 'use strict';
+
+ Sao.View.BoardXMLViewParser = Sao.class_(Sao.View.FormXMLViewParser, {
+ _parse_board: function(node, attributes) {
+ var container = new Sao.View.Form.Container(
+ Number(node.getAttribute('col') || 4));
+ this.view.el.append(container.el);
+ this.parse_child(node, container);
+ if (this._containers.length > 0) {
+ throw 'AssertionError';
+ }
+ },
+ _parse_action: function(node, attributes) {
+ var action;
+ if (attributes.yexpand === undefined) {
+ attributes.yexpand = true;
+ }
+ if (attributes.yfill === undefined) {
+ attributes.yfill = true;
+ }
+ action = new Sao.View.Board.Action(this.view, attributes);
+ this.view.actions.push(action);
+ this.container.add(action, attributes);
+ },
+ });
+
+ Sao.View.Board = Sao.class_(Object, {
+ xml_parser: Sao.View.BoardXMLViewParser,
+ init: function(xml, context) {
+ var attributes, attribute, node, actions_prms;
+
+ this.context = context;
+ this.actions = [];
+ this.containers = [];
+ this.state_widgets = [];
+ this.el = jQuery('', {
+ 'class': 'board'
+ });
+ new this.xml_parser(this, null, {}).parse(xml.children()[0]);
+
+ actions_prms = [];
+ for (const action of this.actions) {
+ actions_prms.push(action.action_prm);
+ }
+ this.actions_prms = jQuery.when.apply(jQuery, actions_prms);
+ },
+ reload: function() {
+ var i;
+ for (i = 0; i < this.actions.length; i++) {
+ this.actions[i].display();
+ }
+ for (i = 0; i < this.state_widgets.length; i++) {
+ this.state_widgets[i].set_state(null);
+ }
+ },
+ active_changed: function(event_action) {
+ for (const action of this.actions) {
+ if (action !== event_action) {
+ action.update_domain(this.actions);
+ }
+ }
+ },
+ });
+
+ Sao.View.Board.Action = Sao.class_(Object, {
+ init: function(view, attributes) {
+ var session = Sao.Session.current_session;
+ this.name = attributes.name;
+ this.view = view;
+
+ this.el = jQuery('', {
+ 'class': 'board-action panel panel-default',
+ });
+ this.title = jQuery('', {
+ 'class': 'panel-heading',
+ });
+ this.el.append(this.title);
+ this.body = jQuery('', {
+ 'class': 'panel-body',
+ });
+ this.el.append(this.body);
+
+ var act_window = new Sao.Model('ir.action.act_window');
+ this.action_prm = act_window.execute('get', [this.name], {});
+ this.action_prm.done(action => {
+ var params = {};
+ this.action = action;
+ params.view_ids = [];
+ params.mode = null;
+ if (!jQuery.isEmptyObject(action.views)) {
+ params.view_ids = [];
+ params.mode = [];
+ for (const view of action.views) {
+ params.view_ids.push(view[0]);
+ params.mode.push(view[1]);
+ }
+ } else if (!jQuery.isEmptyObject(action.view_id)) {
+ params.view_ids = [action.view_id[0]];
+ }
+
+ if (!('pyson_domain' in this.action)) {
+ this.action.pyson_domain = '[]';
+ }
+ var ctx = {};
+ ctx = jQuery.extend(ctx, session.context);
+ ctx._user = session.user_id;
+ var decoder = new Sao.PYSON.Decoder(ctx);
+ params.context = jQuery.extend(
+ {}, this.view.context,
+ decoder.decode(action.pyson_context || '{}'));
+ ctx = jQuery.extend(ctx, params.context);
+
+ ctx.context = ctx;
+ decoder = new Sao.PYSON.Decoder(ctx);
+ params.order = decoder.decode(action.pyson_order);
+ params.search_value = decoder.decode(
+ action.pyson_search_value || '[]');
+ params.tab_domain = [];
+ for (const element of action.domains) {
+ params.tab_domain.push(
+ [element[0], decoder.decode(element[1]), element[2]]);
+ }
+ params.context_model = action.context_model;
+ params.context_domain = action.context_domain;
+ if (action.limit !== null) {
+ params.limit = action.limit;
+ } else {
+ params.limit = Sao.config.limit;
+ }
+
+ this.context = ctx;
+ this.domain = [];
+ this.update_domain([]);
+
+ params.row_activate = this.row_activate.bind(this);
+
+ this.screen = new Sao.Screen(this.action.res_model,
+ params);
+
+ if (attributes.string) {
+ this.title.text(attributes.string);
+ } else {
+ this.title.text(this.action.name);
+ }
+ this.screen.switch_view().done(() => {
+ this.body.append(this.screen.screen_container.el);
+ this.screen.search_filter();
+ });
+ });
+ },
+ row_activate: function() {
+ var record_ids, win;
+
+ if (!this.screen.current_record) {
+ return;
+ }
+
+ if (this.screen.current_view.view_type == 'tree' &&
+ (this.screen.current_view.attributes.keyword_open == 1)) {
+ record_ids = this.screen.current_view.selected_records.map(
+ function(record) { return record.id; });
+ Sao.Action.exec_keyword('tree_open', {
+ model: this.screen.model_name,
+ id: this.screen.current_record.id,
+ ids: record_ids
+ }, jQuery.extend({}, this.screen.group._context), false);
+ } else {
+ win = new Sao.Window.Form(this.screen, result => {
+ if (result) {
+ this.screen.current_record.save();
+ } else {
+ this.screen.current_record.cancel();
+ }
+ }, {
+ 'title': this.title.text(),
+ });
+ }
+ },
+ set_value: function() {
+ },
+ display: function() {
+ this.screen.search_filter(this.screen.screen_container.get_text());
+ },
+ record_message: function() {
+ this.view.active_changed(this);
+ },
+ get active() {
+ if (this.screen && this.screen.current_record) {
+ return {
+ 'active_id': this.screen.current_record.id,
+ 'active_ids': this.screen.selected_records.map(
+ function(r) {
+ return r.id;
+ }),
+ };
+ } else {
+ return {
+ 'active_id': null,
+ 'active_ids': [],
+ };
+ }
+ },
+ update_domain: function(actions) {
+ var i, len;
+ var active, domain_ctx, decoder, new_domain;
+
+ domain_ctx = jQuery.extend({}, this.context);
+ domain_ctx._actions = {};
+ for (i = 0, len = actions.length; i < len; i++) {
+ domain_ctx._actions[actions[i].name] = actions[i].active;
+ }
+ decoder = new Sao.PYSON.Decoder(domain_ctx);
+ new_domain = decoder.decode(this.action.pyson_domain);
+ if (Sao.common.compare(this.domain, new_domain)) {
+ return;
+ }
+ this.domain.splice(0, this.domain.length);
+ jQuery.extend(this.domain, new_domain);
+ if (this.screen) {
+ this.display();
+ }
+ }
+ });
+}());
diff --git a/sao/src/bus.js b/sao/src/bus.js
new file mode 100644
index 0000000000..dbdd1afa1c
--- /dev/null
+++ b/sao/src/bus.js
@@ -0,0 +1,93 @@
+/* This file is part of Tryton. The COPYRIGHT file at the top level of
+ this repository contains the full copyright notices and license terms. */
+(function() {
+ 'use strict';
+
+ Sao.Bus = {};
+
+ // Bus Identifier
+ Sao.Bus.id = Sao.common.uuid4();
+ Sao.Bus.channels = ['client:' + Sao.Bus.id];
+
+ Sao.Bus.listen = function(last_message, wait) {
+ wait = wait || 1;
+ var session = Sao.Session.current_session;
+ if (!session) {
+ return;
+ }
+
+ var prm = jQuery.ajax({
+ headers: {
+ Authorization: 'Session ' + session.get_auth(),
+ },
+ contentType: 'application/json',
+ data: JSON.stringify({
+ last_message: last_message,
+ channels: Sao.Bus.channels
+ }),
+ dataType: 'json',
+ url: '/' + session.database + '/bus',
+ type: 'POST',
+ timeout: Sao.config.bus_timeout,
+ });
+
+ prm.done(function(response) {
+ if (Sao.Session.current_session != session) {
+ return;
+ }
+ if (response.message) {
+ last_message = response.message.message_id;
+ Sao.Logger.info(
+ "poll channels %s with last message",
+ Sao.Bus.channels, last_message);
+ Sao.Bus.handle(response.message);
+ }
+ Sao.Bus.listen(last_message, 1);
+ });
+
+ prm.fail(function(response, status, error) {
+ if (Sao.Session.current_session != session) {
+ return;
+ }
+ if (error === "timeout") {
+ Sao.Bus.listen(last_message, 1);
+ } else if (response.status == 501) {
+ Sao.Logger.info("Bus not supported");
+ return;
+ } else {
+ Sao.Logger.error(
+ "An exception occured while connection to the bus. " +
+ "Sleeping for %s seconds",
+ wait, error);
+ window.setTimeout(
+ Sao.Bus.listen,
+ Math.min(wait * 1000, Sao.config.bus_timeout),
+ last_message, wait * 2);
+ }
+ });
+ };
+
+ Sao.Bus.handle = function(message) {
+ var notify = function(message) {
+ try {
+ if (Notification.permission != "granted") {
+ return;
+ }
+ } catch (e) {
+ Sao.Logger.error(e.message, e.stack);
+ return;
+ }
+
+ new Notification(message.title, {
+ body: message.body || '',
+ });
+ };
+
+ switch (message.type) {
+ case 'notification':
+ notify(message);
+ break;
+ }
+ };
+
+}());
diff --git a/sao/src/common.js b/sao/src/common.js
new file mode 100644
index 0000000000..0f96d2895e
--- /dev/null
+++ b/sao/src/common.js
@@ -0,0 +1,4229 @@
+/* This file is part of Tryton. The COPYRIGHT file at the top level of
+ this repository contains the full copyright notices and license terms. */
+(function() {
+ 'use strict';
+
+ Sao.common = {};
+
+ Sao.common.BACKSPACE_KEYCODE = 8;
+ Sao.common.TAB_KEYCODE = 9;
+ Sao.common.RETURN_KEYCODE = 13;
+ Sao.common.ESC_KEYCODE = 27;
+ Sao.common.UP_KEYCODE = 38;
+ Sao.common.DOWN_KEYCODE = 40;
+ Sao.common.DELETE_KEYCODE = 46;
+ Sao.common.F2_KEYCODE = 113;
+ Sao.common.F3_KEYCODE = 114;
+
+ Sao.common.SELECTION_NONE = 1;
+ Sao.common.SELECTION_SINGLE = 2;
+ Sao.common.SELECTION_MULTIPLE = 3;
+
+ Sao.common.compare = function(arr1, arr2) {
+ if (arr1.length != arr2.length) {
+ return false;
+ }
+ for (var i = 0; i < arr1.length; i++) {
+ var a = arr1[i], b = arr2[i];
+ if ((a instanceof Array) && (b instanceof Array)) {
+ if (!Sao.common.compare(a, b)) {
+ return false;
+ }
+ } else if (moment.isMoment(a) && moment.isMoment(b)) {
+ if ((a.isDate != b.isDate) &&
+ (a.isDateTime != b.isDateTime) &&
+ (a.valueOf() != b.valueOf())) {
+ return false;
+ }
+ } else if ((a instanceof Number) || (b instanceof Number)) {
+ if (Number(a) !== Number(b)) {
+ return false;
+ }
+ } else if (a != b) {
+ return false;
+ }
+ }
+ return true;
+ };
+
+ Sao.common.contains = function(array1, array2) {
+ for (var i = 0; i < array1.length; i++) {
+ if (Sao.common.compare(array1[i], array2)) {
+ return true;
+ }
+ }
+ return false;
+ };
+
+ // Find the intersection of two arrays.
+ // The arrays must be sorted.
+ Sao.common.intersect = function(a, b) {
+ var ai = 0, bi = 0;
+ var result = [];
+ while (ai < a.length && bi < b.length) {
+ if (a[ai] < b[bi]) {
+ ai++;
+ } else if (a[ai] > b[bi]) {
+ bi++;
+ } else {
+ result.push(a[ai]);
+ ai++;
+ bi++;
+ }
+ }
+ return result;
+ };
+
+ Sao.common.scrollIntoViewIfNeeded = function(element) {
+ element = element[0];
+ var rect = element.getBoundingClientRect();
+ if (rect.bottom > window.innerHeight) {
+ element.scrollIntoView(false);
+ }
+ if (rect.top < 0) {
+ element.scrollIntoView();
+ }
+ };
+
+ // Handle click and Return press event
+ // If one, the handler is executed at most once for both events
+ Sao.common.click_press = function(func, one) {
+ return function handler(evt) {
+ if (evt.type != 'keypress' ||
+ evt.which == Sao.common.RETURN_KEYCODE) {
+ if (one) {
+ jQuery(this).off('click keypress', null, handler);
+ }
+ return func(evt);
+ }
+ };
+ };
+
+ // Cartesian product
+ Sao.common.product = function(array, repeat) {
+ repeat = repeat || 1;
+ var pools = [];
+ var i = 0;
+ while (i < repeat) {
+ pools = pools.concat(array);
+ i++;
+ }
+ var result = [[]];
+ for (const pool of pools) {
+ var tmp = [];
+ for (const x of result) {
+ for (const y of pool) {
+ tmp.push(x.concat([y]));
+ }
+ }
+ result = tmp;
+ }
+ return result;
+ };
+
+ Sao.common.selection = function(title, values, alwaysask=false) {
+ var prm = jQuery.Deferred();
+ if (jQuery.isEmptyObject(values)) {
+ prm.reject();
+ return prm;
+ }
+ var keys = Object.keys(values).sort();
+ if ((keys.length == 1) && (!alwaysask)) {
+ var key = keys[0];
+ prm.resolve(values[key]);
+ return prm;
+ }
+ var dialog = new Sao.Dialog(
+ title || Sao.i18n.gettext('Your selection:'),
+ 'selection-dialog');
+
+ keys.forEach(function(k, i) {
+ jQuery('', {
+ 'class': 'radio'
+ }).append(jQuery('')
+ .text(' ' + k)
+ .prepend(jQuery('', {
+ 'type': 'radio',
+ 'name': 'selection',
+ 'value': i
+ })))
+ .appendTo(dialog.body);
+ });
+ dialog.body.find('input').first().prop('checked', true);
+
+ jQuery('', {
+ 'class': 'btn btn-link',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Cancel"),
+ }).text(Sao.i18n.gettext('Cancel')).click(function() {
+ dialog.modal.modal('hide');
+ prm.reject();
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("OK"),
+ }).text(Sao.i18n.gettext('OK')).click(function() {
+ var i = dialog.body.find('input:checked').attr('value');
+ dialog.modal.modal('hide');
+ prm.resolve(values[keys[i]]);
+ }).appendTo(dialog.footer);
+ dialog.modal.on('hidden.bs.modal', function(e) {
+ jQuery(this).remove();
+ });
+ dialog.modal.modal('show');
+ return prm;
+ };
+
+ Sao.common.moment_format = function(format) {
+ return format
+ .replace('%a', 'ddd')
+ .replace('%A', 'dddd')
+ .replace('%w', 'd')
+ .replace('%d', 'DD')
+ .replace('%b', 'MMM')
+ .replace('%B', 'MMMM')
+ .replace('%m', 'MM')
+ .replace('%y', 'YY')
+ .replace('%Y', 'YYYY')
+ .replace('%H', 'HH')
+ .replace('%I', 'hh')
+ .replace('%p', 'A')
+ .replace('%M', 'mm')
+ .replace('%S', 'ss')
+ .replace('%f', 'SSS')
+ .replace('%z', 'ZZ')
+ .replace('%Z', 'zz')
+ .replace('%j', 'DDDD')
+ .replace('%U', 'ww')
+ .replace('%W', 'WW')
+ .replace('%c', 'llll')
+ .replace('%x', 'L')
+ .replace('%X', 'LTS')
+ .replace('%', '%%')
+ ;
+ };
+
+ Sao.common.DATE_OPERATORS = [
+ ['S', moment.duration(-1, 'seconds')],
+ ['s', moment.duration(1, 'seconds')],
+ ['I', moment.duration(-1, 'minutes')],
+ ['i', moment.duration(1, 'minutes')],
+ ['H', moment.duration(-1, 'hours')],
+ ['h', moment.duration(1, 'hours')],
+ ['D', moment.duration(-1, 'days')],
+ ['d', moment.duration(1, 'days')],
+ ['W', moment.duration(-1, 'weeks')],
+ ['w', moment.duration(1, 'weeks')],
+ ['M', moment.duration(-1, 'months')],
+ ['m', moment.duration(1, 'months')],
+ ['Y', moment.duration(-1, 'years')],
+ ['y', moment.duration(1, 'years')],
+ ];
+
+ Sao.common.date_format = function(format) {
+ if (jQuery.isEmptyObject(format)) {
+ format = '%x';
+ if (Sao.Session.current_session) {
+ var context = Sao.Session.current_session.context;
+ if (context.locale && context.locale.date) {
+ format = context.locale.date;
+ }
+ }
+ }
+ return Sao.common.moment_format(format);
+ };
+
+ Sao.common.format_time = function(format, date) {
+ if (!date) {
+ return '';
+ }
+ return date.format(Sao.common.moment_format(format));
+ };
+
+ Sao.common.parse_time = function(format, value) {
+ if (!value) {
+ return null;
+ }
+ var getNumber = function(pattern) {
+ var i = format.indexOf(pattern);
+ if (~i) {
+ var number = parseInt(value.slice(i, i + pattern.length), 10);
+ if (!isNaN(number)) {
+ return number;
+ }
+ }
+ return 0;
+ };
+ return Sao.Time(getNumber('%H'), getNumber('%M'), getNumber('%S'),
+ getNumber('%f'));
+ };
+
+ Sao.common.format_date = function(date_format, date) {
+ if (!date) {
+ return '';
+ }
+ return date.format(Sao.common.moment_format(date_format));
+ };
+
+ Sao.common.parse_date = function(date_format, value) {
+ var date = moment(value,
+ Sao.common.moment_format(date_format));
+ if (date.isValid()) {
+ date = Sao.Date(date.year(), date.month(), date.date());
+ } else {
+ date = null;
+ }
+ return date;
+ };
+
+ Sao.common.format_datetime = function(datetime_format, date) {
+ if (!date) {
+ return '';
+ }
+ return date.format(Sao.common.moment_format(datetime_format));
+ };
+
+ Sao.common.parse_datetime = function(datetime_format, value) {
+ var date = moment(value, Sao.common.moment_format(datetime_format));
+ if (date.isValid()) {
+ date = Sao.DateTime(date.year(), date.month(), date.date(),
+ date.hour(), date.minute(), date.second(),
+ date.millisecond());
+ } else {
+ date = null;
+ }
+ return date;
+ };
+
+ Sao.common.timedelta = {};
+ Sao.common.timedelta.DEFAULT_CONVERTER = {
+ 's': 1
+ };
+ Sao.common.timedelta.DEFAULT_CONVERTER.m =
+ Sao.common.timedelta.DEFAULT_CONVERTER.s * 60;
+ Sao.common.timedelta.DEFAULT_CONVERTER.h =
+ Sao.common.timedelta.DEFAULT_CONVERTER.m * 60;
+ Sao.common.timedelta.DEFAULT_CONVERTER.d =
+ Sao.common.timedelta.DEFAULT_CONVERTER.h * 24;
+ Sao.common.timedelta.DEFAULT_CONVERTER.w =
+ Sao.common.timedelta.DEFAULT_CONVERTER.d * 7;
+ Sao.common.timedelta.DEFAULT_CONVERTER.M =
+ Sao.common.timedelta.DEFAULT_CONVERTER.d * 30;
+ Sao.common.timedelta.DEFAULT_CONVERTER.Y =
+ Sao.common.timedelta.DEFAULT_CONVERTER.d * 365;
+ Sao.common.timedelta._get_separator = function() {
+ return {
+ Y: Sao.i18n.gettext('Y'),
+ M: Sao.i18n.gettext('M'),
+ w: Sao.i18n.gettext('w'),
+ d: Sao.i18n.gettext('d'),
+ h: Sao.i18n.gettext('h'),
+ m: Sao.i18n.gettext('m'),
+ s: Sao.i18n.gettext('s')
+ };
+ };
+ Sao.common.timedelta.format = function(value, converter) {
+ if (!value) {
+ return '';
+ }
+ if (!converter) {
+ converter = Sao.common.timedelta.DEFAULT_CONVERTER;
+ }
+ var text = [];
+ value = value.asSeconds();
+ var sign = '';
+ if (value < 0) {
+ sign = '-';
+ }
+ value = Math.abs(value);
+ converter = Object.keys(
+ Sao.common.timedelta._get_separator()).map(function(key) {
+ return [key, converter[key]];
+ });
+ var values = [];
+ var k, v;
+ for (var i = 0; i < converter.length; i++) {
+ k = converter[i][0];
+ v = converter[i][1];
+ if (v) {
+ var part = Math.floor(value / v);
+ value -= part * v;
+ values.push(part);
+ } else {
+ values.push(0);
+ }
+ }
+ for (i = 0; i < converter.length - 3; i++) {
+ k = converter[i][0];
+ v = values[i];
+ if (v) {
+ text.push(v + Sao.common.timedelta._get_separator()[k]);
+ }
+ }
+ if (jQuery(values.slice(-3)).is(function(i, v) { return v; }) ||
+ jQuery.isEmptyObject(text)) {
+ var time_values = values.slice(-3);
+ var time = time_values[0].toString().padStart(2, "0");
+ time += ":" + time_values[1].toString().padStart(2, "0");
+ if (time_values[2] || value) {
+ time += ':' + time_values[2].toString().padStart(2, "0");
+ }
+ text.push(time);
+ }
+ text = sign + text.reduce(function(p, c) {
+ if (p) {
+ return p + ' ' + c;
+ } else {
+ return c;
+ }
+ });
+ if (value) {
+ if (!jQuery(values.slice(-3)).is(function(i, v) { return v; })) {
+ // Add space if no time
+ text += ' ';
+ }
+ text += ('' + value.toFixed(6)).slice(1);
+ }
+ return text;
+ };
+ Sao.common.timedelta.parse = function(text, converter) {
+ if (!text) {
+ return null;
+ }
+ if (!converter) {
+ converter = Sao.common.timedelta.DEFAULT_CONVERTER;
+ }
+ var separators = Sao.common.timedelta._get_separator();
+ var separator;
+ for (var k in separators) {
+ separator = separators[k];
+ text = text.replace(separator, separator + ' ');
+ }
+
+ var seconds = 0;
+ var sec;
+ var parts = text.split(' ');
+ for (var i = 0; i < parts.length; i++) {
+ var part = parts[i];
+ if (part.contains(':')) {
+ var subparts = part.split(':');
+ var subconverter = [
+ converter.h, converter.m, converter.s];
+ for (var j = 0;
+ j < Math.min(subparts.length, subconverter.length);
+ j ++) {
+ var t = subparts[j];
+ var v = subconverter[j];
+ sec = Math.abs(parseFloat(t)) * v;
+ if (!isNaN(sec)) {
+ seconds += sec;
+ }
+ }
+ } else {
+ var found = false;
+ for (var key in separators) {
+ separator =separators[key];
+ if (part.endsWith(separator)) {
+ part = part.slice(0, -separator.length);
+ sec = Math.abs(parseFloat(part)) * converter[key];
+ if (!isNaN(sec)) {
+ seconds += sec;
+ }
+ found = true;
+ break;
+ }
+ }
+ if (!found) {
+ sec = Math.abs(parseFloat(part));
+ if (!isNaN(sec)) {
+ seconds += sec;
+ }
+ }
+ }
+ }
+ if (text.contains('-')) {
+ seconds *= -1;
+ }
+ return Sao.TimeDelta(null, seconds);
+ };
+
+ Sao.common.btoa = function(value) {
+ var strings = [], chunksize = 0xffff;
+ // JavaScript Core has hard-coded argument limit of 65536
+ // String.fromCharCode can not be called with too many
+ // arguments
+ for (var j = 0; j * chunksize < value.length; j++) {
+ strings.push(String.fromCharCode.apply(
+ null, value.subarray(
+ j * chunksize, (j + 1) * chunksize)));
+ }
+ return btoa(strings.join(''));
+ };
+
+ Sao.common.atob = function(value) {
+ // javascript's atob does not understand linefeed
+ // characters
+ var byte_string = atob(value.base64.replace(/\s/g, ''));
+ // javascript decodes base64 string as a "DOMString", we
+ // need to convert it to an array of bytes
+ var array_buffer = new ArrayBuffer(byte_string.length);
+ var uint_array = new Uint8Array(array_buffer);
+ for (var j=0; j < byte_string.length; j++) {
+ uint_array[j] = byte_string.charCodeAt(j);
+ }
+ return uint_array;
+ };
+
+ Sao.common.ModelAccess = Sao.class_(Object, {
+ init: function() {
+ this.batchnum = 100;
+ this._models = [];
+ this._access = {};
+ },
+ load_models: function(refresh) {
+ if (!refresh) {
+ this._access = {};
+ }
+ this._models = Sao.rpc({
+ 'method': 'model.ir.model.list_models',
+ 'params': [{}]
+ }, Sao.Session.current_session, false);
+ },
+ get: function(model) {
+ if (this._access[model] !== undefined) {
+ return this._access[model];
+ }
+ var idx = this._models.indexOf(model);
+ if (idx < 0) {
+ this.load_models(false);
+ idx = this._models.indexOf(model);
+ }
+ var to_load = this._models.slice(
+ Math.max(0, idx - Math.floor(this.batchnum / 2)),
+ idx + Math.floor(this.batchnum / 2));
+ var access = Sao.rpc({
+ 'method': 'model.ir.model.access.get_access',
+ 'params': [to_load, {}]
+ }, Sao.Session.current_session, false);
+ this._access = jQuery.extend(this._access, access);
+ return this._access[model];
+ }
+ });
+ Sao.common.MODELACCESS = new Sao.common.ModelAccess();
+
+ Sao.common.ModelHistory = Sao.class_(Object, {
+ init: function() {
+ this._models = [];
+ },
+ load_history: function() {
+ this._models = [];
+ return Sao.rpc({
+ 'method': 'model.ir.model.list_history',
+ 'params': [{}]
+ }, Sao.Session.current_session).then(models => {
+ this._models = models;
+ });
+ },
+ contains: function(model) {
+ return ~this._models.indexOf(model);
+ }
+ });
+ Sao.common.MODELHISTORY = new Sao.common.ModelHistory();
+
+ Sao.common.ModelName = Sao.class_(Object, {
+ init: function() {
+ this._names = {};
+ },
+ load_names: function() {
+ this._names = Sao.rpc({
+ 'method':'model.ir.model.get_names',
+ 'params': [{}],
+ }, Sao.Session.current_session, false);
+ },
+ get: function(model) {
+ if (jQuery.isEmptyObject(this._names)) {
+ this.load_names();
+ }
+ return this._names[model] || '';
+ },
+ clear: function() {
+ this._names = {};
+ },
+ });
+ Sao.common.MODELNAME = new Sao.common.ModelName();
+
+ Sao.common.ModelNotification = Sao.class_(Object, {
+ init: function() {
+ this._depends = null;
+ },
+ load_names: function() {
+ this._depends = Sao.rpc({
+ 'method': 'model.ir.model.get_notification',
+ 'params': [{}],
+ }, Sao.Session.current_session, false);
+ },
+ get: function(model) {
+ if (!this._depends) {
+ this.load_names();
+ }
+ return this._depends[model] || [];
+ },
+ });
+ Sao.common.MODELNOTIFICATION = new Sao.common.ModelNotification();
+
+ Sao.common.ViewSearch = Sao.class_(Object, {
+ init: function() {
+ this.encoder = new Sao.PYSON.Encoder();
+ },
+ load_searches: function() {
+ this.searches = {};
+ return Sao.rpc({
+ 'method': 'model.ir.ui.view_search.get_search',
+ 'params': [{}]
+ }, Sao.Session.current_session).then(searches => {
+ this.searches = searches;
+ });
+ },
+ get: function(model) {
+ return this.searches[model] || [];
+ },
+ add: function(model, name, domain) {
+ return Sao.rpc({
+ 'method': 'model.ir.ui.view_search.create',
+ 'params': [[{
+ 'model': model,
+ 'name': name,
+ 'domain': this.encoder.encode(domain)
+ }], {}]
+ }, Sao.Session.current_session).then(ids => {
+ var id = ids[0];
+ if (this.searches[model] === undefined) {
+ this.searches[model] = [];
+ }
+ this.searches[model].push([id, name, domain, true]);
+ });
+ },
+ remove: function(model, id) {
+ return Sao.rpc({
+ 'method': 'model.ir.ui.view_search.delete',
+ 'params': [[id], {}]
+ }, Sao.Session.current_session).then(() => {
+ for (var i = 0; i < this.searches[model].length; i++) {
+ var domain = this.searches[model][i];
+ if (domain[0] === id) {
+ this.searches[model].splice(i, 1);
+ break;
+ }
+ }
+ });
+ }
+ });
+ Sao.common.VIEW_SEARCH = new Sao.common.ViewSearch();
+
+ Sao.common.humanize = function(size, suffix) {
+ suffix = suffix || '';
+ var sizes = ['', 'K', 'M', 'G', 'T', 'P'];
+ for (var i =0, len = sizes.length; i < len; i++) {
+ if (size <= 1000) {
+ if (size % 1 === 0) {
+ size = '' + size;
+ } else {
+ size = size.toLocaleString(
+ Sao.i18n.BC47(Sao.i18n.getlang()), {
+ 'minimumFractionDigits': 0,
+ 'maximumFractionDigits': 2,
+ });
+ }
+ return size + sizes[i] + suffix;
+ }
+ size /= 1000;
+ }
+ };
+
+ Sao.common.EvalEnvironment = function(parent_, eval_type='eval') {
+ var environment;
+ if (eval_type == 'eval') {
+ environment = parent_.get_eval();
+ } else {
+ environment = {};
+ for (var key in parent_.model.fields) {
+ var field = parent_.model.fields[key];
+ environment[key] = field.get_on_change_value(parent_);
+ }
+ }
+ environment.id = parent_.id;
+ if (parent_.group.parent)
+ Object.defineProperty(environment, '_parent_' +
+ parent_.group.parent_name, {
+ 'enumerable': true,
+ 'get': function() {
+ return Sao.common.EvalEnvironment(parent_.group.parent,
+ eval_type);
+ }
+ });
+ environment.get = function(item, default_) {
+ if (this.hasOwnProperty(item))
+ return this[item];
+ return default_;
+ };
+
+ return environment;
+ };
+
+ Sao.common.selection_mixin = {};
+ Sao.common.selection_mixin.init = function() {
+ this.selection = null;
+ this.help = null;
+ this.inactive_selection = [];
+ this._last_domain = null;
+ this._values2selection = {};
+ this._domain_cache = {};
+ if (this.nullable_widget === undefined) {
+ this.nullable_widget = true;
+ }
+ };
+ Sao.common.selection_mixin.init_selection = function(value, callback) {
+ if (!value) {
+ value = {};
+ for (const e of (this.attributes.selection_change_with || [])) {
+ value[e] = null;
+ }
+ }
+ var key = JSON.stringify(value);
+ var selection = this.attributes.selection || [];
+ var help = this.attributes.help_selection || {};
+ var prm;
+ let prepare_selection = selection => {
+ selection = jQuery.extend([], selection);
+ if (this.attributes.sort === undefined || this.attributes.sort) {
+ selection.sort(function(a, b) {
+ return a[1].localeCompare(b[1]);
+ });
+ }
+ this.selection = jQuery.extend([], selection);
+ this.help = this.attributes.help_selection || {};
+ if (callback) callback(this.selection, this.help);
+ };
+ if (!(selection instanceof Array) &&
+ !(key in this._values2selection)) {
+ if (!jQuery.isEmptyObject(this.attributes.selection_change_with)) {
+ prm = this.model.execute(selection, [value]);
+ } else {
+ prm = this.model.execute(selection, []);
+ }
+ prm = prm.then(selection => {
+ this._values2selection[key] = selection;
+ return selection;
+ });
+ prm = prm.then(prepare_selection);
+ } else {
+ if (key in this._values2selection) {
+ selection = this._values2selection[key];
+ }
+ prepare_selection(selection);
+ prm = jQuery.when();
+ }
+ this.inactive_selection = [];
+ this._selection_prm = prm;
+ };
+ Sao.common.selection_mixin.update_selection = function(record, field,
+ callback) {
+ const _update_selection = () => {
+ if (!field) {
+ if (callback) {
+ callback(this.selection, this.help);
+ }
+ return;
+ }
+ var domain = field.get_domain(record);
+ if (!('relation' in this.attributes)) {
+ var change_with = this.attributes.selection_change_with || [];
+ var value = record._get_on_change_args(change_with);
+ delete value.id;
+ Sao.common.selection_mixin.init_selection.call(
+ this, value, () => {
+ Sao.common.selection_mixin.filter_selection.call(
+ this, domain, record, field);
+ if (callback) {
+ callback(this.selection, this.help);
+ }
+ });
+ } else {
+ var context = field.get_context(record);
+ var jdomain = JSON.stringify([domain, context]);
+ if (jdomain in this._domain_cache) {
+ this.selection = this._domain_cache[jdomain];
+ this._last_domain = [domain, context];
+ }
+ if ((this._last_domain !== null) &&
+ Sao.common.compare(domain, this._last_domain[0]) &&
+ (JSON.stringify(context) ==
+ JSON.stringify(this._last_domain[1]))) {
+ if (callback) {
+ callback(this.selection, this.help);
+ }
+ return;
+ }
+ var fields = ['rec_name'];
+ var help_field = this.attributes.help_field;
+ if (help_field) {
+ fields.push(help_field);
+ }
+ var prm = Sao.rpc({
+ 'method': 'model.' + this.attributes.relation +
+ '.search_read',
+ 'params': [domain, 0, null, null, fields, context]
+ }, record.model.session);
+ prm.done(result => {
+ var selection = [];
+ for (const x of result) {
+ selection.push([x.id, x.rec_name]);
+ }
+ if (this.nullable_widget) {
+ selection.push([null, '']);
+ }
+ var help = {};
+ if (help_field){
+ for (const x of result) {
+ help[x.id] = x[help_field];
+ }
+ }
+ this._last_domain = [domain, context];
+ this._domain_cache[jdomain] = selection;
+ this.selection = jQuery.extend([], selection);
+ this.help = help;
+ if (callback) {
+ callback(this.selection, this.help);
+ }
+ });
+ prm.fail(() => {
+ this._last_domain = null;
+ this.selection = [];
+ if (callback) {
+ callback(this.selection, this.help);
+ }
+ });
+ }
+ };
+ this._selection_prm.done(_update_selection);
+ };
+ Sao.common.selection_mixin.filter_selection = function(
+ domain, record, field) {
+ if (jQuery.isEmptyObject(domain)) {
+ return;
+ }
+
+ var inversion = new Sao.common.DomainInversion();
+ const _value_evaluator = value => {
+ var context = {};
+ context[this.field_name] = value[0];
+ return inversion.eval_domain(domain, context);
+ };
+
+ var _model_evaluator = function(allowed_models) {
+ return function(value) {
+ return ~allowed_models.indexOf(value[0]) ||
+ jQuery.isEmptyObject(allowed_models);
+ };
+ };
+
+ var evaluator;
+ var type_ = field.description.type;
+ if (type_ == 'reference') {
+ var allowed_models = field.get_models(record);
+ evaluator = _model_evaluator(allowed_models);
+ } else if (type_ == 'multiselection') {
+ return;
+ } else {
+ evaluator = _value_evaluator;
+ }
+
+ this.selection = this.selection.filter(evaluator);
+ };
+ Sao.common.selection_mixin.get_inactive_selection = function(value) {
+ if (!this.attributes.relation) {
+ return jQuery.when([]);
+ }
+ for (var i = 0, len = this.inactive_selection.length; i < len; i++) {
+ if (value == this.inactive_selection[i][0]) {
+ return jQuery.when(this.inactive_selection[i]);
+ }
+ }
+ var prm = Sao.rpc({
+ 'method': 'model.' + this.attributes.relation + '.read',
+ 'params': [[value], ['rec_name'], {}]
+ }, Sao.Session.current_session);
+ return prm.then(result => {
+ this.inactive_selection.push([result[0].id, result[0].rec_name]);
+ return [result[0].id, result[0].rec_name];
+ });
+ };
+
+ Sao.common.Button = Sao.class_(Object, {
+ init: function(attributes, el, size, style) {
+ this.attributes = attributes;
+ if (el) {
+ this.el = el;
+ } else {
+ this.el = jQuery('', {
+ title: attributes.string || '',
+ name: attributes.name || '',
+ });
+ this.el.text(attributes.string || '');
+ if (this.attributes.rule) {
+ this.el.append(' ').append(jQuery('', {
+ 'class': 'badge'
+ }));
+ }
+ this.el.attr(
+ 'accesskey',
+ Sao.common.accesskey(attributes.string || ''));
+ }
+ this.icon = this.el.children('img');
+ if (!this.icon.length) {
+ this.icon = jQuery('', {
+ 'class': 'icon',
+ }).prependTo(this.el);
+ this.icon.hide();
+ }
+ this.el.addClass([
+ 'btn', 'btn-horizontal',
+ (style || 'btn-default'), (size || '')].join(' '));
+ this.el.attr('type', 'button');
+ this.icon.attr('aria-hidden', true);
+ this.set_icon(attributes.icon);
+ },
+ set_icon: function(icon_name) {
+ if (!icon_name) {
+ this.icon.attr('src', '');
+ this.icon.hide();
+ return;
+ }
+ Sao.common.ICONFACTORY.get_icon_url(icon_name).done(url => {
+ this.icon.attr('src', url);
+ this.icon.show();
+ });
+ },
+ set_state: function(record) {
+ var states;
+ if (record) {
+ states = record.expr_eval(this.attributes.states || {});
+ } else {
+ states = {};
+ }
+ if (states.invisible) {
+ this.el.hide();
+ } else {
+ this.el.show();
+ }
+ this.el.prop('disabled', Boolean(states.readonly));
+ this.set_icon(states.icon || this.attributes.icon);
+
+ if (this.attributes.rule) {
+ var prm;
+ if (record) {
+ prm = record.get_button_clicks(this.attributes.name);
+ } else {
+ prm = jQuery.when();
+ }
+ prm.then(clicks => {
+ var counter = this.el.children('.badge');
+ var users = [];
+ var tip = '';
+ if (!jQuery.isEmptyObject(clicks)) {
+ for (var u in clicks) {
+ users.push(clicks[u]);
+ }
+ tip = Sao.i18n.gettext('By: ') +
+ users.join(Sao.i18n.gettext(', '));
+ }
+ counter.text(users.length || '');
+ counter.attr('title', tip);
+ });
+ }
+
+ if (((this.attributes.type === undefined) ||
+ (this.attributes.type === 'class')) && (record)) {
+ var parent = record.group.parent;
+ while (parent) {
+ if (parent.modified) {
+ this.el.prop('disabled', true);
+ break;
+ }
+ parent = parent.group.parent;
+ }
+ }
+ }
+ });
+
+ Sao.common.udlex = Sao.class_(Object, {
+ init: function(instream) {
+
+ var Stream = Sao.class_(Object, {
+ init: function(stream) {
+ this.stream = stream.split('');
+ this.i = 0;
+ },
+ read: function(length=1) {
+ if (this.i >= this.stream.length) {
+ return null;
+ }
+ var value = this.stream
+ .slice(this.i, this.i + length).join();
+ this.i += length;
+ return value;
+ }
+ });
+ this.instream = new Stream(instream);
+ this.eof = null;
+ this.commenters = '';
+ this.nowordchars = [':', '>', '<', '=', '!', '"', ';', '(', ')'];
+ this.whitespace = ' \t\r\n';
+ this.whitespace_split = false;
+ this.quotes = '"';
+ this.escape = '\\';
+ this.escapedquotes = '"';
+ this.state = ' ';
+ this.pushback = [];
+ this.token = '';
+ },
+ get_token: function() {
+ if (this.pushback.length > 0) {
+ return this.pushback.shift();
+ }
+ var raw = this.read_token();
+ return raw;
+ },
+ read_token: function() {
+ var quoted = false;
+ var escapedstate = ' ';
+ while (true) {
+ var nextchar = this.instream.read(1);
+ if (this.state === null) {
+ this.token = ''; // past en of file
+ break;
+ } else if (this.state == ' ') {
+ if (!nextchar) {
+ this.state = null; // end of file
+ break;
+ } else if (this.whitespace.contains(nextchar)) {
+ if (this.token || quoted) {
+ break; // emit current token
+ } else {
+ continue;
+ }
+ } else if (this.commenters.contains(nextchar)) {
+ // TODO readline
+ } else if (this.escape.contains(nextchar)) {
+ escapedstate = 'a';
+ this.state = nextchar;
+ } else if (!~this.nowordchars.indexOf(nextchar)) {
+ this.token = nextchar;
+ this.state = 'a';
+ } else if (this.quotes.contains(nextchar)) {
+ this.state = nextchar;
+ } else if (this.whitespace_split) {
+ this.token = nextchar;
+ this.state = 'a';
+ } else {
+ this.token = nextchar;
+ if (this.token || quoted) {
+ break; // emit current token
+ } else {
+ continue;
+ }
+ }
+ } else if (this.quotes.contains(this.state)) {
+ quoted = true;
+ if (!nextchar) { // end of file
+ throw 'no closing quotation';
+ }
+ if (nextchar == this.state) {
+ this.state = 'a';
+ } else if (this.escape.contains(nextchar) &&
+ this.escapedquotes.contains(this.state)) {
+ escapedstate = this.state;
+ this.state = nextchar;
+ } else {
+ this.token = this.token + nextchar;
+ }
+ } else if (this.escape.contains(this.state)) {
+ if (!nextchar) { // end of file
+ throw 'no escaped character';
+ }
+ if (this.quotes.contains(escapedstate) &&
+ (nextchar != this.state) &&
+ (nextchar != escapedstate)) {
+ this.token = this.token + this.state;
+ }
+ this.token = this.token + nextchar;
+ this.state = escapedstate;
+ } else if (this.state == 'a') {
+ if (!nextchar) {
+ this.state = null; // end of file
+ break;
+ } else if (this.whitespace.contains(nextchar)) {
+ this.state = ' ';
+ if (this.token || quoted) {
+ break; // emit current token
+ } else {
+ continue;
+ }
+ } else if (this.commenters.contains(nextchar)) {
+ // TODO
+ } else if (this.quotes.contains(nextchar)) {
+ this.state = nextchar;
+ } else if (this.escape.contains(nextchar)) {
+ escapedstate = 'a';
+ this.state = nextchar;
+ } else if ((!~this.nowordchars.indexOf(nextchar)) ||
+ this.quotes.contains(nextchar) ||
+ this.whitespace_split) {
+ this.token = this.token + nextchar;
+ } else {
+ this.pushback.unshift(nextchar);
+ this.state = ' ';
+ if (this.token) {
+ break; // emit current token
+ } else {
+ continue;
+ }
+ }
+ }
+ }
+ var result = this.token;
+ this.token = '';
+ if (!quoted && result === '') {
+ result = null;
+ }
+ return result;
+ },
+ next: function() {
+ var token = this.get_token();
+ if (token == this.eof) {
+ return null;
+ }
+ return token;
+ }
+ });
+
+ Sao.common.DomainParser = Sao.class_(Object, {
+ OPERATORS: ['!=', '<=', '>=', '=', '!', '<', '>'],
+ init: function(fields, context) {
+ this.fields = {};
+ this.strings = {};
+ this.context = context;
+ this.update_fields(fields);
+ },
+ update_fields: function(fields, prefix, string_prefix) {
+ prefix = prefix || '';
+ string_prefix = string_prefix || '';
+ for (var name in fields) {
+ var field = fields[name];
+ if ((field.searchable || (field.searchable === undefined)) &&
+ (name !== 'rec_name')) {
+ field = jQuery.extend({}, field);
+ var fullname = prefix ? prefix + '.' + name : name;
+ var string = string_prefix ?
+ string_prefix + '.' + field.string : field.string;
+ field.string = string;
+ field.name = fullname;
+ this.fields[fullname] = field;
+ this.strings[field.string.toLowerCase()] = field;
+ var rfields = field.relation_fields;
+ if (rfields) {
+ this.update_fields(rfields, fullname, string);
+ }
+ }
+ }
+ },
+ parse: function(input) {
+ try {
+ var lex = new Sao.common.udlex(input);
+ var tokens = [];
+ while (true) {
+ var token = lex.next();
+ if (token === null) {
+ break;
+ }
+ tokens.push(token);
+ }
+ tokens = this.group_operator(tokens);
+ tokens = this.parenthesize(tokens);
+ tokens = this.group(tokens);
+ tokens = this.operatorize(tokens, 'or');
+ tokens = this.operatorize(tokens, 'and');
+ tokens = this.parse_clause(tokens);
+ return this.simplify(tokens);
+ } catch (e) {
+ if (e == 'no closing quotation') {
+ return this.parse(input + '"');
+ }
+ throw e;
+ }
+ },
+ stringable: function(domain) {
+ const stringable_ = clause => {
+ if (!clause) {
+ return true;
+ }
+ var is_array = function(e) {
+ return e instanceof Array;
+ };
+ if ((~['AND', 'OR'].indexOf(clause[0]) ||
+ (is_array(clause[0]))) &&
+ clause.slice(1).every(is_array)) {
+ return this.stringable(clause);
+ }
+ var name = clause[0];
+ var value = clause[2];
+ if (name.endsWith('.rec_name')) {
+ name = name.slice(0, -9);
+ }
+ if (name in this.fields) {
+ var field = this.fields[name];
+ if (~['many2one', 'one2one', 'one2many', 'many2many']
+ .indexOf(field.type)) {
+ var test = function(value) {
+ return ((typeof value == 'string') ||
+ (value === null));
+ };
+ if (value instanceof Array) {
+ return value.every(test);
+ } else {
+ return test(value);
+ }
+ } else if (field.type == 'multiselection') {
+ return (!value ||
+ jQuery.isEmptyObject(value) ||
+ (value instanceof Array));
+ } else {
+ return true;
+ }
+ } else if (name == 'rec_name') {
+ return true;
+ }
+ return false;
+ };
+ if (!domain) {
+ return true;
+ }
+ if (~['AND', 'OR'].indexOf(domain[0])) {
+ domain = domain.slice(1);
+ }
+ return domain.every(stringable_);
+ },
+ string: function(domain) {
+
+ const string = clause => {
+ if (jQuery.isEmptyObject(clause)) {
+ return '';
+ }
+ if ((typeof clause[0] != 'string') ||
+ ~['AND', 'OR'].indexOf(clause[0])) {
+ return '(' + this.string(clause) + ')';
+ }
+ var escaped;
+ var name = clause[0];
+ var operator = clause[1];
+ var value = clause[2];
+ if (name.endsWith('.rec_name')) {
+ name = name.slice(0, -9);
+ }
+ if (!(name in this.fields)) {
+ if (this.is_full_text(value)) {
+ value = value.slice(1, -1);
+ }
+ return this.quote(value);
+ }
+ var field = this.fields[name];
+ var target = null;
+ if (clause.length > 3) {
+ target = clause[3];
+ }
+ if (operator.contains('ilike')) {
+ if (this.is_full_text(value)) {
+ value = value.slice(1, -1);
+ } else if (!this.is_like(value)) {
+ if (operator == 'ilike') {
+ operator = '=';
+ } else {
+ operator = '!';
+ }
+ value = this.unescape(value);
+ }
+ }
+ var def_operator = this.default_operator(field);
+ if (def_operator == operator.trim()) {
+ operator = '';
+ if (~this.OPERATORS.indexOf(value)) {
+ // As the value could be interpreted as an operator
+ // the default operator must be forced
+ operator = '"" ';
+ }
+ } else if ((operator.contains(def_operator) &&
+ (operator.contains('not') ||
+ operator.contains('!')))) {
+ operator = operator.replace(def_operator, '')
+ .replace('not', '!').trim();
+ }
+ if (operator.endsWith('in')) {
+ if (operator == 'not in') {
+ operator = '!';
+ } else {
+ operator = '';
+ }
+ }
+ var formatted_value = this.format_value(field, value, target);
+ if (~this.OPERATORS.indexOf(operator) &&
+ ~['char', 'text', 'selection']
+ .indexOf(field.type) &&
+ (value === '')) {
+ formatted_value = '""';
+ }
+ return (this.quote(field.string) + ': ' +
+ operator + formatted_value);
+ };
+
+ if (jQuery.isEmptyObject(domain)) {
+ return '';
+ }
+ var nary = ' ';
+ if ((domain[0] == 'AND') || (domain[0] == 'OR')) {
+ if (domain[0] == 'OR') {
+ nary = ' or ';
+ }
+ domain = domain.slice(1);
+ }
+ return domain.map(string).join(nary);
+ },
+ completion: function(input) {
+ var results = [];
+ var domain = this.parse(input);
+ var closing = 0;
+ var i, len;
+ for (i=input.length; i>0; i--) {
+ if (input[i] == ')' || input[i] == ' ') {
+ break;
+ }
+ if (input[i] == ')') {
+ closing += 1;
+ }
+ }
+ var endings = this.ending_clause(domain);
+ var ending = endings[0];
+ var deep_ending = endings[1];
+ var deep = deep_ending - closing;
+ var string_domain = this.string(domain);
+
+ if (deep > 0) {
+ string_domain = string_domain.substring(0,
+ string_domain.length - deep);
+ }
+ if (string_domain != input) {
+ results.push(string_domain);
+ }
+
+ var pslice = function(string, depth) {
+ if (depth > 0) {
+ return string.substring(0, string.length - depth);
+ }
+ return string;
+ };
+ var complete, complete_string;
+ if (ending !== null && closing === 0) {
+ var completes = this.complete(ending);
+ for (i=0, len=completes.length; i < len; i++) {
+ complete = completes[i];
+ complete_string = this.string(
+ this.replace_ending_clause(domain, complete));
+ results.push(pslice(complete_string, deep));
+ }
+ }
+ if (input.length > 0) {
+ if (input.substr(input.length - 1, 1) != ' ') {
+ return results;
+ }
+ if (input.length >= 2 ||
+ input.substr(input.length - 2, 1) == ':') {
+ return results;
+ }
+ }
+ var field, operator, value;
+ for (var key in this.strings) {
+ field = this.strings[key];
+ operator = this.default_operator(field);
+ value = '';
+ if ((operator == 'ilike') || (operator == 'not ilike')) {
+ value = this.likify(value);
+ }
+ var new_domain = this.append_ending_clause(domain,
+ [field.name, operator, value], deep);
+ var new_domain_string = this.string(new_domain);
+ results.push(pslice(new_domain_string, deep));
+ }
+ return results;
+ },
+ complete: function(clause) {
+ var results = [];
+ var name, operator, value, target;
+ if (clause.length == 1) {
+ name = clause[0];
+ } else if (clause.length == 3) {
+ name = clause[0];
+ operator = clause[1];
+ value = clause[2];
+ } else {
+ name = clause[0];
+ operator = clause[1];
+ value = clause[2];
+ target = clause[3];
+ if (name.endsWith('.rec_name')) {
+ name = name.substring(0, name.length - 9);
+ }
+ }
+ var escaped;
+ if (name == "rec_name") {
+ if (operator == "ilike") {
+ escaped = value.replace(/%%/g, '__');
+ if (escaped.startsWith('%') || escaped.endsWith('%')) {
+ value = escaped.substring(1, escaped.length - 1);
+ } else if (~escaped.indexOf('%')) {
+ value = value.replace(/%%/g, '%');
+ }
+ operator = null;
+ }
+ name = value;
+ value = '';
+ }
+ if (name === undefined || name === null) {
+ name = '';
+ }
+ var field;
+ if (!(name.toLowerCase() in this.strings) &&
+ !(name in this.fields)) {
+ for (var key in this.strings) {
+ field = this.strings[key];
+ if (field.string.toLowerCase()
+ .startsWith(name.toLowerCase())) {
+ operator = this.default_operator(field);
+ value = '';
+ if (operator == 'ilike') {
+ value = this.likify(value);
+ }
+ results.push([field.name, operator, value]);
+ }
+ }
+ return results;
+ }
+ if (name in this.fields) {
+ field = this.fields[name];
+ } else {
+ field = this.strings[name.toLowerCase()];
+ }
+ if (!operator) {
+ operator = this.default_operator(field);
+ value = '';
+ if ((operator == 'ilike') || (operator == 'not ilike')) {
+ value = this.likify(value);
+ }
+ results.push([field.name, operator, value]);
+ } else {
+ var completes = this.complete_value(field, value);
+ for (var i=0, len=completes.length; i < len; i++) {
+ results.push([field.name, operator, completes[i]]);
+ }
+ }
+ return results;
+ },
+ is_subdomain: function(element) {
+ return (element instanceof Array) && !element.clause;
+ },
+ ending_clause: function(domain, depth=0) {
+ if (domain.length === 0) {
+ return [null, depth];
+ }
+ var last_element = domain[domain.length - 1];
+ if (this.is_subdomain(last_element)) {
+ return this.ending_clause(last_element, depth + 1);
+ }
+ return [last_element, depth];
+ },
+ replace_ending_clause: function(domain, clause) {
+ var results = [];
+ var i, len;
+ for (i = 0, len=domain.length - 1; i < len; i++) {
+ results.push(domain[i]);
+ }
+ if (this.is_subdomain(domain[i])) {
+ results.push(
+ this.replace_ending_clause(domain[i], clause));
+ } else {
+ results.push(clause);
+ }
+ return results;
+ },
+ append_ending_clause: function(domain, clause, depth) {
+ if (domain.length === 0) {
+ return [clause];
+ }
+ var results = domain.slice(0, -1);
+ var last_element = domain[domain.length - 1];
+ if (this.is_subdomain(last_element)) {
+ results.push(this.append_ending_clause(last_element, clause,
+ depth - 1));
+ } else {
+ results.push(last_element);
+ if (depth === 0) {
+ results.push(clause);
+ }
+ }
+ return results;
+ },
+ complete_value: function(field, value) {
+ var complete_boolean = function() {
+ if ((value === null) || (value === undefined)) {
+ return [true, false];
+ } else if (value) {
+ return [false];
+ } else {
+ return [true];
+ }
+ };
+
+ var complete_selection = function() {
+ var results = [];
+ var test_value = value !== null ? value : '';
+ if (value instanceof Array) {
+ test_value = value[value.length - 1] || '';
+ }
+ test_value = test_value.replace(/^%*|%*$/g, '');
+ var i, len, svalue, test;
+ for (i=0, len=field.selection.length; i {
+ var results = [];
+ var test_value = value !== null ? value : '';
+ if (value instanceof Array) {
+ test_value = value[value.length - 1];
+ }
+ test_value = test_value.replace(/^%*|%*$/g, '');
+ var i, len, svalue, test;
+ for (i=0, len=field.selection.length; i {
+ var result = [];
+ var push_result = function(part) {
+ var clause = [part];
+ clause.clause = true;
+ result.push(clause);
+ };
+ var i = parts.indexOf(':');
+ if (!~i) {
+ parts.forEach(push_result);
+ return result;
+ }
+ var sub_group = function(name, lvalue) {
+ return function(part) {
+ if (!jQuery.isEmptyObject(name)) {
+ var clause;
+ if (!jQuery.isEmptyObject(lvalue)) {
+ if (part[0] !== null) {
+ lvalue.push(part[0]);
+ }
+ clause = name.concat([lvalue]);
+ clause.clause = true;
+ result.push(clause);
+ } else {
+ clause = name.concat(part);
+ clause.clause = true;
+ result.push(clause);
+ }
+ name.splice(0, name.length);
+ } else {
+ result.push(part);
+ }
+ };
+ };
+ for (var j = 0; j < i; j++) {
+ var name = parts.slice(j, i).join(' ');
+ if (name.toLowerCase() in this.strings) {
+ if (!jQuery.isEmptyObject(parts.slice(0, j))) {
+ parts.slice(0, j).forEach(push_result);
+ } else {
+ push_result(null);
+ }
+ name = [name];
+ // empty string is also the default operator
+ var operators = [''].concat(this.OPERATORS);
+ if (((i + 1) < parts.length) &&
+ (~operators.indexOf(parts[i + 1]))) {
+ name = name.concat([parts[i + 1]]);
+ i += 1;
+ } else {
+ name = name.concat([null]);
+ }
+ var lvalue = [];
+ while ((i + 2) < parts.length) {
+ if (parts[i + 2] == ';') {
+ lvalue.push(parts[i + 1]);
+ i += 2;
+ } else {
+ break;
+ }
+ }
+ _group(parts.slice(i + 1)).forEach(
+ sub_group(name, lvalue));
+ if (!jQuery.isEmptyObject(name)) {
+ var clause;
+ if (!jQuery.isEmptyObject(lvalue)) {
+ clause = name.concat([lvalue]);
+ clause.clause = true;
+ result.push(clause);
+ } else {
+ clause = name.concat([null]);
+ clause.clause = true;
+ result.push(clause);
+ }
+ }
+ break;
+ }
+ }
+ return result;
+ };
+
+ var parts = [];
+ for (const token of tokens) {
+ if (this.is_generator(token)) {
+ for (const group of _group(parts)) {
+ if (!Sao.common.compare(group, [null])) {
+ result.push(group);
+ }
+ }
+ parts = [];
+ result.push(this.group(token));
+ } else {
+ parts.push(token);
+ }
+ }
+ for (const group of _group(parts)) {
+ if (!Sao.common.compare(group, [null])) {
+ result.push(group);
+ }
+ }
+ return result;
+ },
+ is_generator: function(value) {
+ return (value instanceof Array) && (value.clause === undefined);
+ },
+ operatorize: function(tokens, operator) {
+ var result = [];
+ operator = operator || 'or';
+ tokens = jQuery.extend([], tokens);
+ var test = function(value) {
+ if (value instanceof Array) {
+ return Sao.common.compare(value, [operator]);
+ } else {
+ return value == operator;
+ }
+ };
+ var cur = tokens.shift();
+ while (test(cur)) {
+ cur = tokens.shift();
+ }
+ if (cur === undefined) {
+ return result;
+ }
+ if (this.is_generator(cur)) {
+ cur = this.operatorize(cur, operator);
+ }
+ var nex = null;
+ while (!jQuery.isEmptyObject(tokens)) {
+ nex = tokens.shift();
+ if ((this.is_generator(nex)) && !test(nex)) {
+ nex = this.operatorize(nex, operator);
+ }
+ if (test(nex)) {
+ nex = tokens.shift();
+ while (test(nex)) {
+ nex = tokens.shift();
+ }
+ if (this.is_generator(nex)) {
+ nex = this.operatorize(nex, operator);
+ }
+ if (nex !== undefined) {
+ cur = [operator.toUpperCase(), cur, nex];
+ } else {
+ if (!test(cur)) {
+ result.push([operator.toUpperCase(), cur]);
+ cur = null;
+ }
+ }
+ nex = null;
+ } else {
+ if (!test(cur)) {
+ result.push(cur);
+ }
+ cur = nex;
+ }
+ }
+ if (jQuery.isEmptyObject(tokens)) {
+ if ((nex !== null) && !test(nex)) {
+ result.push(nex);
+ } else if ((cur !== null) && !test(cur)) {
+ result.push(cur);
+ }
+ }
+ return result;
+ },
+ _clausify: function(e) {
+ e.clause = true;
+ return e;
+ },
+ parse_clause: function(tokens) {
+ var result = [];
+ tokens.forEach(clause => {
+ if (this.is_generator(clause)) {
+ result.push(this.parse_clause(clause));
+ } else if ((clause === 'OR') || (clause === 'AND')) {
+ result.push(clause);
+ } else if ((clause.length == 1) &&
+ !(clause[0] instanceof Array)) {
+ result.push(this._clausify(['rec_name', 'ilike',
+ this.likify(clause[0])]));
+ } else if ((clause.length == 3) &&
+ (clause[0].toLowerCase() in this.strings)) {
+ var name = clause[0];
+ var operator = clause[1];
+ var value = clause[2];
+ var field = this.strings[clause[0].toLowerCase()];
+ var field_name = field.name;
+
+ var target = null;
+ if (field.type == 'reference') {
+ var split = this.split_target_value(field, value);
+ target = split[0];
+ value = split[1];
+ if (target) {
+ field_name += '.rec_name';
+ }
+ } else if (field.type == 'multiselection') {
+ if ((value !== null) && !(value instanceof Array)) {
+ value = [value];
+ }
+ }
+
+ if (!operator) {
+ operator = this.default_operator(field);
+ }
+ if ((value instanceof Array) &&
+ (field.type != 'multiselection')) {
+ if (operator == '!') {
+ operator = 'not in';
+ } else {
+ operator = 'in';
+ }
+ }
+ if (operator == '!') {
+ operator = this.negate_operator(
+ this.default_operator(field));
+ }
+ if ((value === null) && operator.endsWith('in')) {
+ if (operator.startsWith('not')) {
+ operator = '!=';
+ } else {
+ operator = '=';
+ }
+ }
+ if (~['integer', 'float', 'numeric', 'datetime', 'date',
+ 'time'].indexOf(field.type)) {
+ if ((typeof value == 'string') && value.contains('..')) {
+ var values = value.split('..', 2);
+ var lvalue = this.convert_value(field, values[0], this.context);
+ var rvalue = this.convert_value(field, values[1], this.context);
+ result.push([
+ this._clausify([field_name, '>=', lvalue]),
+ this._clausify([field_name, '<=', rvalue])
+ ]);
+ return;
+ }
+ }
+ if (value instanceof Array) {
+ value = value.map(
+ v => this.convert_value(field, v, this.context));
+ if (~['many2one', 'one2many', 'many2many', 'one2one',
+ 'many2many', 'one2one'].indexOf(field.type)) {
+ field_name += '.rec_name';
+ }
+ } else {
+ value = this.convert_value(field, value, this.context);
+ }
+ if (operator.contains('like')) {
+ value = this.likify(value);
+ }
+ if (target) {
+ result.push(this._clausify(
+ [field_name, operator, value, target]));
+ } else {
+ result.push(this._clausify(
+ [field_name, operator, value]));
+ }
+ }
+ });
+ return result;
+ },
+ likify: function(value, escape) {
+ escape = escape || '\\';
+ if (!value) {
+ return '%';
+ }
+ var escaped = value
+ .replace(escape + '%', '')
+ .replace(escape + '_', '');
+ if (escaped.contains('%') || escaped.contains('_')) {
+ return value;
+ } else {
+ return '%' + value + '%';
+ }
+ },
+ is_full_text: function(value, escape) {
+ escape = escape || '\\';
+ var escaped = value;
+ if ((escaped.charAt(0) == '%') &&
+ (escaped.charAt(escaped.length - 1) == '%')) {
+ escaped = escaped.slice(1, -1);
+ }
+ escaped = escaped
+ .replace(escape + '%', '')
+ .replace(escape + '_', '');
+ if (escaped.contains('%') || escaped.contains('_')) {
+ return false;
+ }
+ return value.startsWith('%') && value.endsWith('%');
+ },
+ is_like: function(value, escape) {
+ escape = escape || '\\';
+ var escaped = value
+ .replace(escape + '%', '')
+ .replace(escape + '_', '');
+ return escaped.contains('%') || escaped.contains('_');
+ },
+ unescape: function(value, escape) {
+ escape = escape || '\\';
+ return value
+ .replace(escape + '%', '%')
+ .replace(escape + '_', '_');
+ },
+ quote: function(value) {
+ if (typeof value != 'string') {
+ return value;
+ }
+ if (value.contains('\\')) {
+ value = value.replace(new RegExp('\\\\', 'g'), '\\\\');
+ }
+ if (value.contains('"')) {
+ value = value.replace(new RegExp('"', 'g'), '\\"');
+ }
+ var tests = [':', ' ', '(', ')'].concat(this.OPERATORS);
+ for (var i = 0; i < tests.length; i++) {
+ var test = tests[i];
+ if (value.contains(test)) {
+ return '"' + value + '"';
+ }
+ }
+ return value;
+ },
+ default_operator: function(field) {
+ if (~['char', 'text', 'many2one', 'many2many', 'one2many',
+ 'reference', 'one2one'].indexOf(field.type)) {
+ return 'ilike';
+ } else if (field.type == 'multiselection') {
+ return 'in';
+ } else {
+ return '=';
+ }
+ },
+ negate_operator: function(operator) {
+ switch (operator) {
+ case 'ilike':
+ return 'not ilike';
+ case '=':
+ return '!=';
+ case 'in':
+ return 'not in';
+ }
+ },
+ time_format: function(field) {
+ return new Sao.PYSON.Decoder({}).decode(field.format);
+ },
+ split_target_value: function(field, value) {
+ var target = null;
+ if (typeof value == 'string') {
+ for (var i = 0; i < field.selection.length; i++) {
+ var selection = field.selection[i];
+ var key = selection[0];
+ var text = selection[1];
+ if (value.toLowerCase().startsWith(
+ text.toLowerCase() + ',')) {
+ target = key;
+ value = value.slice(text.length + 1);
+ break;
+ }
+ }
+ }
+ return [target, value];
+ },
+ convert_value: function(field, value, context) {
+ if (!context) {
+ context = {};
+ }
+ var convert_selection = function() {
+ if (typeof value == 'string') {
+ for (var i = 0; i < field.selection.length; i++) {
+ var selection = field.selection[i];
+ var key = selection[0];
+ var text = selection[1];
+ if (value.toLowerCase() == text.toLowerCase()) {
+ return key;
+ }
+ }
+ }
+ return value;
+ };
+
+ var converts = {
+ 'boolean': function() {
+ if (typeof value == 'string') {
+ return [Sao.i18n.gettext('y'),
+ Sao.i18n.gettext('Yes'),
+ Sao.i18n.gettext('True'),
+ Sao.i18n.gettext('t'),
+ '1'].some(
+ function(test) {
+ return test.toLowerCase().startsWith(
+ value.toLowerCase());
+ });
+ }
+ return null;
+ },
+ 'float': function() {
+ var factor = Number(field.factor || 1);
+ var result = Number(value);
+ if (isNaN(result) || value === '' || value === null) {
+ return null;
+ } else {
+ return result / factor;
+ }
+ },
+ 'integer': function() {
+ var factor = Number(field.factor || 1, 10);
+ var result = parseInt(value, 10);
+ if (isNaN(result)) {
+ return null;
+ } else {
+ return result / factor;
+ }
+ },
+ 'numeric': function() {
+ var factor = Number(field.factor || 1);
+ var result = Number(value);
+ if (isNaN(result.valueOf()) ||
+ value === '' || value === null) {
+ return null;
+ } else {
+ return new Sao.Decimal(result / factor);
+ }
+ },
+ 'selection': convert_selection,
+ 'multiselection': convert_selection,
+ 'reference': convert_selection,
+ 'datetime': () => Sao.common.parse_datetime(
+ Sao.common.date_format(context.date_format) + ' ' +
+ this.time_format(field), value),
+ 'date': function() {
+ return Sao.common.parse_date(
+ Sao.common.date_format(context.date_format),
+ value);
+ },
+ 'time': () => {
+ try {
+ return Sao.common.parse_time(this.time_format(field),
+ value);
+ } catch (e) {
+ return null;
+ }
+ },
+ 'timedelta': () => {
+ var converter = null;
+ if (field.converter) {
+ converter = this.context[field.converter];
+ }
+ return Sao.common.timedelta.parse(value, converter);
+ },
+ 'many2one': function() {
+ if (value === '') {
+ return null;
+ } else {
+ return value;
+ }
+ }
+ };
+ var func = converts[field.type];
+ if (func) {
+ return func();
+ } else {
+ return value;
+ }
+ },
+ format_value: function(field, value, target=null, context={}) {
+ var format_float = function() {
+ if (!value && value !== 0 && value !== new Sao.Decimal(0)) {
+ return '';
+ }
+ var digit = 0;
+ var factor = Number(field.factor || 1);
+ var string = String(value * factor);
+ if (string.contains('e')) {
+ var exp = string.split('e')[1];
+ string = string.split('e')[0];
+ digit -= parseInt(exp);
+ }
+ if (string.contains('.')) {
+ digit += string.replace(/0+$/, '').split('.')[1].length;
+ }
+ return (value * factor).toFixed(digit);
+ };
+ var format_selection = function() {
+ if (field.selection instanceof Array) {
+ for (var i = 0; i < field.selection.length; i++) {
+ if (field.selection[i][0] == value) {
+ return field.selection[i][1];
+ }
+ }
+ }
+ return value || '';
+ };
+
+ var format_reference = function() {
+ if (!target) {
+ return format_selection();
+ }
+ for (var i = 0; i < field.selection.length; i++) {
+ if (field.selection[i][0] == target) {
+ target = field.selection[i][1];
+ break;
+ }
+ }
+ return target + ',' + value;
+ };
+
+ var converts = {
+ 'boolean': function() {
+ if (value === false) {
+ return Sao.i18n.gettext('False');
+ } else if (value) {
+ return Sao.i18n.gettext('True');
+ } else {
+ return '';
+ }
+ },
+ 'integer': function() {
+ var factor = Number(field.factor || 1);
+ if (value || value === 0) {
+ return '' + parseInt(parseInt(value, 10) * factor, 10);
+ } else {
+ return '';
+ }
+ },
+ 'float': format_float,
+ 'numeric': format_float,
+ 'selection': format_selection,
+ 'multiselection': format_selection,
+ 'reference': format_reference,
+ 'datetime': () => {
+ if (!value) {
+ return '';
+ }
+ if (value.isDate ||
+ !(value.hour() ||
+ value.minute() ||
+ value.second())) {
+ return Sao.common.format_date(
+ Sao.common.date_format(context.date_format),
+ value);
+ }
+ return Sao.common.format_datetime(
+ Sao.common.date_format(context.date_format) + ' ' +
+ this.time_format(field), value);
+ },
+ 'date': () => Sao.common.format_date(
+ Sao.common.date_format(context.date_format), value),
+ 'time': () => {
+ if (!value) {
+ return '';
+ }
+ return Sao.common.format_time(
+ this.time_format(field),
+ value);
+ },
+ 'timedelta': () => {
+ if (!value || !value.valueOf()) {
+ return '';
+ }
+ var converter = null;
+ if (field.converter) {
+ converter = this.context[field.converter];
+ }
+ return Sao.common.timedelta.format(value, converter);
+ },
+ 'many2one': function() {
+ if (value === null) {
+ return '';
+ } else {
+ return value;
+ }
+ }
+ };
+ if (value instanceof Array) {
+ return value.map(v => this.format_value(field, v)).join(';');
+ } else {
+ var func = converts[field.type];
+ if (func) {
+ return this.quote(func(value));
+ } else if (value === null) {
+ return '';
+ } else {
+ return this.quote(value);
+ }
+ }
+ },
+ simplify: function(value) {
+ if (this.is_subdomain(value)) {
+ if ((value.length == 1) && this.is_subdomain(value[0])) {
+ return this.simplify(value[0]);
+ } else if ((value.length == 2) &&
+ ((value[0] == 'AND') || (value[0] == 'OR')) &&
+ this.is_subdomain(value[1])) {
+ return this.simplify(value[1]);
+ } else if ((value.length == 3) &&
+ ((value[0] == 'AND') || (value[0] == 'OR')) &&
+ this.is_subdomain(value[1]) &&
+ (value[0] == value[1][0])) {
+ value = this.simplify(value[1]).concat([value[2]]);
+ }
+ return value.map(v => this.simplify(v));
+ }
+ return value;
+ }
+ });
+
+ Sao.common.DomainInversion = Sao.class_(Object, {
+ and: function(a, b) {return a && b;},
+ or: function(a, b) {return a || b;},
+ OPERATORS: {
+ '=': function(a, b) {
+ return Sao.common.DomainInversion.equals(a, b);
+ },
+ '>': function(a, b) {return (a > b);},
+ '<': function(a, b) {return (a < b);},
+ '<=': function(a, b) {return (a <= b);},
+ '>=': function(a, b) {return (a >= b);},
+ '!=': function(a, b) {
+ return !Sao.common.DomainInversion.equals(a, b);
+ },
+ 'in': function(a, b) {
+ return Sao.common.DomainInversion.in_(a, b);
+ },
+ 'not in': function(a, b) {
+ return !Sao.common.DomainInversion.in_(a, b);
+ },
+ 'like': function(a, b) {
+ return Sao.common.DomainInversion.sql_like(a, b, false);
+ },
+ 'ilike': function(a, b) {
+ return Sao.common.DomainInversion.sql_like(a, b, true);
+ },
+ 'not like': function(a, b) {
+ return !Sao.common.DomainInversion.sql_like(a, b, false);
+ },
+ 'not ilike': function(a, b) {
+ return !Sao.common.DomainInversion.sql_like(a, b, true);
+ },
+ // Those operators are not supported (yet ?)
+ 'child_of': function() {return true;},
+ 'not child_of': function() {return true;}
+ },
+ locale_part: function(expression, field_name, locale_name='id') {
+ if (expression === field_name) {
+ return locale_name;
+ }
+ if (expression.contains('.')) {
+ return expression.split('.').slice(1).join('.');
+ }
+ return expression;
+ },
+ is_leaf: function(expression) {
+ return ((expression instanceof Array) &&
+ (expression.length > 2) &&
+ (typeof expression[1] == 'string'));
+ },
+ constrained_leaf: function(part, boolop) {
+ if (boolop === undefined) {
+ boolop = this.and;
+ }
+ var field = part[0];
+ var operand = part[1];
+ var value = part[2];
+ if ((operand === '=') & (boolop === this.and)) {
+ // We should consider that other domain inversion will set a
+ // correct value to this field
+ return true;
+ }
+ return false;
+ },
+ eval_leaf: function(part, context, boolop) {
+ if (boolop === undefined) {
+ boolop = this.and;
+ }
+ var field = part[0];
+ var operand = part[1];
+ var value = part[2];
+ if (field.contains('.')) {
+ // In the case where the leaf concerns a m2o then having a
+ // value in the evaluation context is deemed suffisant
+ return Boolean(context[field.split('.')[0]]);
+ }
+ var context_field = context[field];
+ if (!~['=', '!='].indexOf(operand) &&
+ ((context_field === null) ||
+ (context_field === undefined) ||
+ (value === null) ||
+ (value === undefined)) &&
+ !(~['in', 'not in'].indexOf(operand) &&
+ ((context_field === null) ||
+ (context_field === undefined)) &&
+ ((value instanceof Array) && ~value.indexOf(null)))) {
+ return;
+ }
+ if ((context_field && context_field._isAMomentObject) && !value) {
+ if (context_field.isDateTime) {
+ value = Sao.DateTime.min;
+ } else {
+ value = Sao.Date.min;
+ }
+ }
+ if ((value && value._isAMomentObject) && !context_field) {
+ if (value.isDateTime) {
+ context_field = Sao.DateTime.min;
+ } else {
+ context_field = Sao.Date.min;
+ }
+ }
+ if ((context_field instanceof Array) & (value === null)) {
+ value = [];
+ }
+ if ((typeof context_field == 'string') &&
+ (value instanceof Array) && value.length == 2) {
+ value = value.join(',');
+ } else if ((context_field instanceof Array) &&
+ (typeof value == 'string') && context_field.length == 2) {
+ context_field = context_field.join(',');
+ }
+ if (~['=', '!='].indexOf(operand) &&
+ context_field instanceof Array &&
+ typeof value == 'number') {
+ operand = {
+ '=': 'in',
+ '!=': 'not in'
+ }[operand];
+ }
+ if (operand in this.OPERATORS) {
+ return this.OPERATORS[operand](context_field, value);
+ } else {
+ return true;
+ }
+ },
+ inverse_leaf: function(domain) {
+ if (~['AND', 'OR'].indexOf(domain)) {
+ return domain;
+ } else if (this.is_leaf(domain)) {
+ if (domain[1].contains('child_of') && !domain[0].contains('.')) {
+ if (domain.length == 3) {
+ return domain;
+ } else {
+ return [domain[3]].concat(domain.slice(1));
+ }
+ }
+ return domain;
+ } else {
+ return domain.map(d => this.inverse_leaf(d));
+ }
+ },
+ filter_leaf: function(domain, field, model) {
+ if (~['AND', 'OR'].indexOf(domain)) {
+ return domain;
+ } else if (this.is_leaf(domain)) {
+ if (domain[0].startsWith(field) && (domain.length > 3)) {
+ if (domain[3] !== model) {
+ return ['id', '=', null];
+ }
+ }
+ return domain;
+ } else {
+ return domain.map(d => this.filter_leaf(d, field, model));
+ }
+ },
+ eval_domain: function(domain, context, boolop) {
+ if (boolop === undefined) {
+ boolop = this.and;
+ }
+ if (this.is_leaf(domain)) {
+ return this.eval_leaf(domain, context, boolop);
+ } else if (jQuery.isEmptyObject(domain) && boolop == this.and) {
+ return true;
+ } else if (jQuery.isEmptyObject(domain) && boolop == this.or) {
+ return false;
+ } else if (domain[0] == 'AND') {
+ return this.eval_domain(domain.slice(1), context);
+ } else if (domain[0] == 'OR') {
+ return this.eval_domain(domain.slice(1), context, this.or);
+ } else {
+ return boolop(Boolean(this.eval_domain(domain[0], context)),
+ Boolean(this.eval_domain(domain.slice(1), context, boolop))
+ );
+ }
+ },
+ localize_domain: function(domain, field_name, strip_target) {
+ if (~['AND', 'OR', true, false].indexOf(domain)) {
+ return domain;
+ } else if (this.is_leaf(domain)) {
+ if (domain[1].contains('child_of')) {
+ if (domain[0].split('.').length > 1) {
+ var target = domain[0].split('.').slice(1).join('.');
+ return [target].concat(domain.slice(1));
+ }
+ if (domain.length == 3) {
+ return domain;
+ } else {
+ return [domain[3]].concat(domain.slice(1, -1));
+ }
+ }
+ var local_name = 'id';
+ if (typeof domain[2] == 'string') {
+ local_name = 'rec_name';
+ }
+ var n = strip_target ? 3 : 4;
+ return [this.locale_part(domain[0], field_name, local_name)]
+ .concat(domain.slice(1, n)).concat(domain.slice(4));
+ } else {
+ return domain.map(
+ e => this.localize_domain(e, field_name, strip_target));
+ }
+ },
+ prepare_reference_domain: function(domain, reference) {
+
+ var value2reference = function(value) {
+ var model = null;
+ var ref_id = null;
+ if ((typeof(value) == 'string') && value.contains(',')) {
+ var split = value.split(',');
+ var result = split.splice(0, 1);
+ result.push(split.join(','));
+ model = result[0];
+ ref_id = result[1];
+ if (ref_id != '%') {
+ ref_id = parseInt(ref_id, 10);
+ if (isNaN(ref_id)) {
+ model = null;
+ ref_id = value;
+ }
+ }
+ } else if ((value instanceof Array) &&
+ (value.length == 2) &&
+ (typeof(value[0]) == 'string') &&
+ ((typeof(value[1]) == 'number') ||
+ (value[1] == '%'))) {
+ model = value[0];
+ ref_id = value[1];
+ } else {
+ ref_id = value;
+ }
+ return [model, ref_id];
+ };
+
+ if (~['AND', 'OR'].indexOf(domain)) {
+ return domain;
+ } else if (this.is_leaf(domain)) {
+ if (domain[0] == reference) {
+ var model, ref_id, splitted;
+ if ((domain[1] == '=') || (domain[1] == '!=')) {
+ splitted = value2reference(domain[2]);
+ model = splitted[0];
+ ref_id = splitted[1];
+ if (model) {
+ if (ref_id == '%') {
+ if (domain[1] == '=') {
+ return [
+ reference + '.id', '!=', null, model];
+ } else {
+ return [reference, 'not like', domain[2]];
+ }
+ }
+ return [
+ reference + '.id', domain[1], ref_id, model];
+ }
+ } else if ((domain[1] == 'in') || (domain[1] == 'not in')) {
+ var model_values = {};
+ var break_p = false;
+ for (var i=0; i < domain[2].length; i++) {
+ splitted = value2reference(domain[2][i]);
+ model = splitted[0];
+ ref_id = splitted[1];
+ if (!model) {
+ break_p = true;
+ break;
+ }
+ if (!(model in model_values)) {
+ model_values[model] = [];
+ }
+ model_values[model].push(ref_id);
+ }
+
+ if (!break_p) {
+ var ref_ids;
+ var new_domain;
+ if (domain[1] == 'in') {
+ new_domain = ['OR'];
+ } else {
+ new_domain = ['AND'];
+ }
+ for (model in model_values) {
+ ref_ids = model_values[model];
+ if (~ref_ids.indexOf('%')) {
+ if (domain[1] == 'in') {
+ new_domain.push(
+ [reference + '.id', '!=', null,
+ model]);
+ } else {
+ new_domain.push(
+ [reference, 'not like',
+ model + ',%']);
+ }
+ } else {
+ new_domain.push(
+ [reference + '.id', domain[1],
+ ref_ids.map(Number), model]);
+ }
+ }
+ return new_domain;
+ }
+ }
+ return [];
+ }
+ return domain;
+ } else {
+ return domain.map(
+ d => this.prepare_reference_domain(d, reference));
+ }
+ },
+ extract_reference_models: function(domain, field_name) {
+ if (~['AND', 'OR'].indexOf(domain)) {
+ return [];
+ } else if (this.is_leaf(domain)) {
+ var local_part = domain[0].split('.', 1)[0];
+ if ((local_part == field_name) &&
+ (domain.length > 3)) {
+ return [domain[3]];
+ }
+ return [];
+ } else {
+ var models = [];
+ domain.map(d => {
+ var new_models = this.extract_reference_models(
+ d, field_name);
+ for (var i=0, len=new_models.length; i < len; i++) {
+ var model = new_models[i];
+ if (!~models.indexOf(model)) {
+ models.push(model);
+ }
+ }
+ });
+ return models;
+ }
+ },
+ _bool_operator: function(domain) {
+ var bool_op = 'AND';
+ if ((domain.length > 0) &&
+ ((domain[0] == 'AND') || (domain[0] == 'OR'))) {
+ bool_op = domain[0];
+ }
+ return bool_op;
+ },
+ simplify_nested: function(domain) {
+ if (!domain.length) {
+ return [];
+ } else if (this.is_leaf(domain)) {
+ return [domain];
+ } else if ((domain == 'AND') || (domain == 'OR')) {
+ return [domain];
+ } else if ((domain instanceof Array) && (domain.length == 1)) {
+ return this.simplify_nested(domain[0]);
+ } else {
+ var simplified = [];
+ for (var branch of domain) {
+ var simplified_branch = this.simplify_nested(branch);
+ if ((this._bool_operator(simplified_branch) ==
+ this._bool_operator(simplified)) ||
+ (simplified_branch.length == 1)) {
+ if ((simplified.length > 0) &&
+ (simplified_branch.length > 0) &&
+ ((simplified_branch[0] == 'AND') ||
+ (simplified_branch[0] == 'OR'))) {
+ simplified.push(...simplified_branch.slice(1));
+ } else {
+ simplified.push(...simplified_branch);
+ }
+ } else {
+ simplified.push(simplified_branch);
+ }
+ }
+ return simplified;
+ }
+ },
+ simplify_duplicate: function(domain) {
+ var dedup_branches = [];
+ var bool_op = null;
+ if (~['AND', 'OR'].indexOf(domain[0])) {
+ bool_op = domain[0];
+ domain = domain.slice(1);
+ }
+ for (var branch of domain) {
+ var simplified_branch = this.simplify(branch);
+ if (simplified_branch.length == 0) {
+ if (bool_op === 'OR') {
+ return [];
+ } else {
+ continue;
+ }
+ }
+ var found_branch = false;
+ for (var duped_branch of dedup_branches) {
+ if (Sao.common.compare(
+ simplified_branch, duped_branch)) {
+ found_branch = true;
+ break;
+ }
+ }
+ if (!found_branch) {
+ dedup_branches.push(simplified_branch);
+ }
+ }
+
+ if (bool_op && (dedup_branches.length > 1)) {
+ dedup_branches.unshift(bool_op);
+ }
+ return dedup_branches;
+ },
+ simplify: function(domain) {
+ if (this.is_leaf(domain)) {
+ return [domain];
+ } else if (!domain.length) {
+ return [];
+ } else {
+ return this.simplify_nested(this.simplify_duplicate(domain));
+ }
+ },
+ merge: function(domain, domoperator) {
+ if (jQuery.isEmptyObject(domain) ||
+ ~['AND', 'OR'].indexOf(domain)) {
+ return [];
+ }
+ var domain_type = domain[0] == 'OR' ? 'OR' : 'AND';
+ if (this.is_leaf(domain)) {
+ return [domain];
+ } else if (domoperator === undefined) {
+ return [domain_type].concat([].concat.apply(
+ [], domain.map(e => this.merge(e, domain_type))));
+ } else if (domain_type == domoperator) {
+ return [].concat.apply(
+ [], domain.map(e => this.merge(e, domain_type)));
+ } else {
+ // without setting the domoperator
+ return [this.merge(domain)];
+ }
+ },
+ concat: function(domains, domoperator) {
+ var result = [];
+ if (domoperator) {
+ result.push(domoperator);
+ }
+ for (const domain of domains) {
+ if (!jQuery.isEmptyObject(domain)) {
+ result.push(domain);
+ }
+ }
+ return this.simplify(this.merge(result));
+ },
+ unique_value: function(domain) {
+ if ((domain instanceof Array) &&
+ (domain.length == 1)) {
+ domain = domain[0];
+ var name = domain[0];
+ var value = domain[2];
+ var count = 0;
+ if (domain.length == 4 && name.endsWith('.id')) {
+ count = 1;
+ var model = domain[3];
+ value = [model, value];
+ }
+ if ((name.split('.').length - 1) == count &&
+ (domain[1] == '=')) {
+ return [true, domain[1], value];
+ }
+ }
+ return [false, null, null];
+ },
+ parse: function(domain) {
+ var And = Sao.common.DomainInversion.And;
+ var Or = Sao.common.DomainInversion.Or;
+ if (this.is_leaf(domain)) {
+ return domain;
+ } else if (jQuery.isEmptyObject(domain)) {
+ return new And([]);
+ } else if (domain[0] === 'OR') {
+ return new Or(domain.slice(1));
+ } else {
+ var begin = 0;
+ if (domain[0] === 'AND') {
+ begin = 1;
+ }
+ return new And(domain.slice(begin));
+ }
+ },
+ domain_inversion: function(domain, symbol, context={}) {
+ var expression = this.parse(domain);
+ if (!~expression.variables.indexOf(symbol)) {
+ return true;
+ }
+ return expression.inverse(symbol, context);
+ }
+ });
+ Sao.common.DomainInversion.equals = function(a, b) {
+ if ((a instanceof Array) && (b instanceof Array)) {
+ return Sao.common.compare(a, b);
+ } else if (moment.isMoment(a) && moment.isMoment(b)) {
+ return ((a.isDate == b.isDate) &&
+ (a.isDateTime == b.isDateTime) &&
+ (a.valueOf() == b.valueOf()));
+ } else if ((a instanceof Number) || (b instanceof Number)) {
+ return (Number(a) === Number(b));
+ } else {
+ return (a === b);
+ }
+ };
+ Sao.common.DomainInversion.in_ = function(a, b) {
+ if (a instanceof Array) {
+ if (b instanceof Array) {
+ for (var i = 0, len = a.length; i < len; i++) {
+ if (~b.indexOf(a[i])) {
+ return true;
+ }
+ }
+ return false;
+ } else {
+ return Boolean(~a.indexOf(b));
+ }
+ } else {
+ return Boolean(~b.indexOf(a));
+ }
+ };
+ Sao.common.DomainInversion.sql_like = function(value, pattern, ignore_case)
+ {
+ var escape = false;
+ var chars = [];
+ var splitted = pattern.split(/(.|\\)/);
+ var char;
+ for (var i=1, len=splitted.length; i < len; i = i+2) {
+ char = splitted[i];
+ if (escape) {
+ if ((char == '%') || (char == '_')) {
+ chars.push(char);
+ } else {
+ chars.push('\\', char);
+ }
+ escape = false;
+ } else if (char == '\\') {
+ escape = true;
+ } else if (char == '_') {
+ chars.push('.');
+ } else if (char == '%') {
+ chars.push('.*');
+ } else {
+ chars.push(char);
+ }
+ }
+
+ if (!pattern.startsWith('%')) {
+ chars.splice(0, 0, '^');
+ }
+ if (!pattern.endsWith('%')) {
+ chars.push('$');
+ }
+
+ var flags = ignore_case ? 'i' : '';
+ var regexp = new RegExp(chars.join(''), flags);
+ return regexp.test(value);
+ };
+ Sao.common.DomainInversion.And = Sao.class_(Object, {
+ init: function(expressions) {
+ this.domain_inversion = new Sao.common.DomainInversion();
+ this.branches = expressions.map(this.domain_inversion.parse.bind(
+ this.domain_inversion));
+ this.variables = [];
+ for (var i = 0, len = this.branches.length; i < len; i++) {
+ var expression = this.branches[i];
+ if (this.domain_inversion.is_leaf(expression)) {
+ this.variables.push(this.base(expression[0]));
+ } else if (expression instanceof
+ Sao.common.DomainInversion.And) {
+ this.variables = this.variables.concat(
+ expression.variables);
+ }
+ }
+ },
+ base: function(expression) {
+ if (!expression.contains('.')) {
+ return expression;
+ } else {
+ return expression.split('.')[0];
+ }
+ },
+ inverse: function(symbol, context) {
+ var DomainInversion = Sao.common.DomainInversion;
+ var result = [];
+ for (var i = 0, len = this.branches.length; i < len; i++) {
+ var part = this.branches[i];
+ if (part instanceof DomainInversion.And) {
+ var part_inversion = part.inverse(symbol, context);
+ var evaluated = typeof part_inversion == 'boolean';
+ if (!~part.variables.indexOf(symbol)) {
+ continue;
+ }
+ if (!evaluated) {
+ result.push(part_inversion);
+ } else if (part_inversion) {
+ continue;
+ } else {
+ return false;
+ }
+ } else if (this.domain_inversion.is_leaf(part) &&
+ (this.base(part[0]) === symbol)) {
+ result.push(part);
+ } else {
+ var field = part[0];
+ if ((!(field in context)) ||
+ ((field in context) &&
+ (this.domain_inversion.eval_leaf(
+ part, context, this.domain_inversion.and) ||
+ this.domain_inversion.constrained_leaf(
+ part, this.domain_inversion.and)))) {
+ result.push(true);
+ } else {
+ return false;
+ }
+ }
+ }
+ result = result.filter(function(e) {
+ return e !== true;
+ });
+ if (jQuery.isEmptyObject(result)) {
+ return true;
+ } else {
+ return this.domain_inversion.simplify(result);
+ }
+ }
+ });
+ Sao.common.DomainInversion.Or = Sao.class_(Sao.common.DomainInversion.And, {
+ inverse: function(symbol, context) {
+ var DomainInversion = Sao.common.DomainInversion;
+ var result = [];
+ if (!jQuery.isEmptyObject(this.variables.filter(function(e) {
+ return (!(e in context)) && (e != symbol);
+ }))) {
+ // In this case we don't know enough about this OR part, we
+ // consider it to be True (because people will have the
+ // constraint on this part later).
+ return true;
+ }
+ for (var i = 0, len = this.branches.length; i < len; i++) {
+ var part = this.branches[i];
+ if (part instanceof DomainInversion.And) {
+ var part_inversion = part.inverse(symbol, context);
+ var evaluated = typeof part_inversion == 'boolean';
+ if (!~part.variables.indexOf(symbol)) {
+ if (evaluated && part_inversion) {
+ return true;
+ }
+ continue;
+ }
+ if (!evaluated) {
+ result.push(part_inversion);
+ } else if (part_inversion) {
+ return true;
+ } else {
+ continue;
+ }
+ } else if (this.domain_inversion.is_leaf(part) &&
+ (this.base(part[0]) == symbol)) {
+ result.push(part);
+ } else {
+ var field = part[0];
+ field = this.base(field);
+ if ((field in context) &&
+ (this.domain_inversion.eval_leaf(
+ part, context, this.domain_inversion.or)) ||
+ this.domain_inversion.constrained_leaf(
+ part, this.domain_inversion.or)) {
+ return true;
+ } else if ((field in context) &&
+ !this.domain_inversion.eval_leaf(part, context,
+ this.domain_inversion.or)) {
+ result.push(false);
+ }
+ }
+ }
+ result = result.filter(function(e) {
+ return e !== false;
+ });
+ if (jQuery.isEmptyObject(result)) {
+ return false;
+ } else {
+ return this.domain_inversion.simplify(['OR'].concat(result));
+ }
+ }
+ });
+
+ Sao.common.mimetypes = {
+ 'csv': 'text/csv',
+ 'doc': 'application/msword',
+ 'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'gif': 'image/gif',
+ 'html': 'text/html',
+ 'jpeg': 'image/jpeg',
+ 'jpg': 'image/jpeg',
+ 'mpeg': 'video/mpeg',
+ 'mpg': 'video/mpeg',
+ 'ods': 'application/vnd.oasis.opendocument.spreadsheet',
+ 'odt': 'application/vnd.oasis.opendocument.text',
+ 'ogg': 'audio/ogg',
+ 'pdf': 'application/pdf',
+ 'png': 'image/png',
+ 'svg': 'image/svg+xml',
+ 'text': 'text/plain',
+ 'tif': 'image/tif',
+ 'tiff': 'image/tif',
+ 'txt': 'text/plain',
+ 'webp': 'image/webp',
+ 'xls': 'application/vnd.ms-excel',
+ 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'xml': 'application/xml',
+ 'xpm': 'image/x-xpixmap',
+ };
+
+ Sao.common.guess_mimetype = function(filename) {
+ for (var ext in Sao.common.mimetypes) {
+ var re = new RegExp('.*\.' + ext + '$', 'i');
+ if (re.test(filename)) {
+ return Sao.common.mimetypes[ext];
+ }
+ }
+ return 'application/octet-binary';
+ };
+
+ Sao.common.LOCAL_ICONS = [
+ 'tryton-add',
+ 'tryton-archive',
+ 'tryton-attach',
+ 'tryton-back',
+ 'tryton-bookmark-border',
+ 'tryton-bookmark',
+ 'tryton-bookmarks',
+ 'tryton-cancel',
+ 'tryton-clear',
+ 'tryton-close',
+ 'tryton-copy',
+ 'tryton-create',
+ 'tryton-date',
+ 'tryton-delete',
+ 'tryton-email',
+ 'tryton-error',
+ 'tryton-exit',
+ 'tryton-export',
+ 'tryton-filter',
+ 'tryton-format-align-center',
+ 'tryton-format-align-justify',
+ 'tryton-format-align-left',
+ 'tryton-format-align-right',
+ 'tryton-format-bold',
+ 'tryton-format-color-text',
+ 'tryton-format-italic',
+ 'tryton-format-underline',
+ 'tryton-forward',
+ 'tryton-history',
+ 'tryton-import',
+ 'tryton-info',
+ 'tryton-launch',
+ 'tryton-link',
+ 'tryton-log',
+ 'tryton-menu',
+ 'tryton-note',
+ 'tryton-ok',
+ 'tryton-open',
+ 'tryton-print',
+ 'tryton-public',
+ 'tryton-question',
+ 'tryton-refresh',
+ 'tryton-remove',
+ 'tryton-save',
+ 'tryton-search',
+ 'tryton-send',
+ 'tryton-star-border',
+ 'tryton-star',
+ 'tryton-switch',
+ 'tryton-translate',
+ 'tryton-unarchive',
+ 'tryton-undo',
+ 'tryton-warning',
+ ];
+
+ Sao.common.IconFactory = Sao.class_(Object, {
+ batchnum: 10,
+ name2id: {},
+ loaded_icons: {},
+ tryton_icons: [],
+ register_prm: jQuery.when(),
+ load_icons: function(refresh) {
+ refresh = refresh || false;
+ if (!refresh) {
+ for (var icon_name in this.load_icons) {
+ if (!this.load_icons.hasOwnProperty(icon_name)) {
+ continue;
+ }
+ window.URL.revokeObjectURL(this.load_icons[icon_name]);
+ }
+ }
+
+ var icon_model = new Sao.Model('ir.ui.icon');
+ return icon_model.execute('list_icons', [], {})
+ .then(icons => {
+ if (!refresh) {
+ this.name2id = {};
+ this.loaded_icons = {};
+ }
+ this.tryton_icons = [];
+
+ var icon_id, icon_name;
+ for (var i=0, len=icons.length; i < len; i++) {
+ icon_id = icons[i][0];
+ icon_name = icons[i][1];
+ if (refresh && (icon_name in this.loaded_icons)) {
+ continue;
+ }
+ this.tryton_icons.push([icon_id, icon_name]);
+ this.name2id[icon_name] = icon_id;
+ }
+ });
+ },
+ register_icon: function(icon_name) {
+ if (!icon_name) {
+ return jQuery.when();
+ } else if ((icon_name in this.loaded_icons) ||
+ ~Sao.common.LOCAL_ICONS.indexOf(icon_name)) {
+ return jQuery.when();
+ }
+ if (this.register_prm.state() == 'pending') {
+ return this.register_prm.then(
+ () => this.register_icon(icon_name));
+ }
+ var loaded_prm;
+ if (!(icon_name in this.name2id)) {
+ loaded_prm = this.load_icons(true);
+ } else {
+ loaded_prm = jQuery.when();
+ }
+
+ var icon_model = new Sao.Model('ir.ui.icon');
+ this.register_prm = loaded_prm.then(() => {
+ const find_array = array => {
+ var idx, l;
+ for (idx=0, l=this.tryton_icons.length; idx < l; idx++) {
+ var icon = this.tryton_icons[idx];
+ if (Sao.common.compare(icon, array)) {
+ break;
+ }
+ }
+ return idx;
+ };
+ var idx = find_array([this.name2id[icon_name], icon_name]);
+ var from = Math.round(idx - this.batchnum / 2);
+ from = (from < 0) ? 0 : from;
+ var to = Math.round(idx + this.batchnum / 2);
+ var ids = [];
+ for (const e of this.tryton_icons.slice(from, to)) {
+ ids.push(e[0]);
+ }
+
+ var read_prm = icon_model.execute('read',
+ [ids, ['name', 'icon']], {});
+ return read_prm.then(icons => {
+ for (const icon of icons) {
+ var img_url = this._convert(icon.icon);
+ this.loaded_icons[icon.name] = img_url;
+ delete this.name2id[icon.name];
+ this.tryton_icons.splice(
+ find_array([icon.id, icon.name]), 1);
+ }
+ });
+ });
+ return this.register_prm;
+ },
+ _convert: function(data) {
+ var xml = jQuery.parseXML(data);
+ jQuery(xml).find('svg').attr('fill', Sao.config.icon_colors[0]);
+ data = new XMLSerializer().serializeToString(xml);
+ var blob = new Blob([data],
+ {type: 'image/svg+xml'});
+ return window.URL.createObjectURL(blob);
+ },
+ get_icon_url: function(icon_name) {
+ if (!icon_name) {
+ return jQuery.when('');
+ }
+ return this.register_icon(icon_name).then(() => {
+ if (icon_name in this.loaded_icons) {
+ return this.loaded_icons[icon_name];
+ } else {
+ return jQuery.get('images/' + icon_name + '.svg', null, null, 'text')
+ .then(icon => {
+ var img_url = this._convert(icon);
+ this.loaded_icons[icon_name] = img_url;
+ return img_url;
+ })
+ .fail(() => {
+ Sao.error("Unknown icon %s", icon_name);
+ });
+ }
+ });
+ },
+ get_icon_img: function(icon_name, attrs) {
+ attrs = attrs || {};
+ if (!attrs['class']) {
+ attrs['class'] = 'icon';
+ }
+ var img = jQuery('', attrs);
+ if (icon_name) {
+ this.get_icon_url(icon_name).then(function(url) {
+ img.attr('src', url);
+ });
+ }
+ return img;
+ },
+ });
+
+ Sao.common.ICONFACTORY = new Sao.common.IconFactory();
+
+ Sao.common.UniqueDialog = Sao.class_(Object, {
+ init: function() {
+ this.running = false;
+ },
+ build_dialog: function() {
+ var dialog = new Sao.Dialog('', this.class_, undefined, false);
+ return dialog;
+ },
+ run: function() {
+ if (this.running) {
+ return jQuery.when();
+ }
+ var args = Array.prototype.slice.call(arguments);
+ var prm = jQuery.Deferred();
+ args.push(prm);
+ var dialog = this.build_dialog.apply(this, args);
+ dialog.content.submit(evt => {
+ dialog.footer.find('button.btn-primary').first().click();
+ evt.preventDefault();
+ });
+ this.running = true;
+ dialog.modal.modal('show');
+ dialog.modal.on('shown.bs.modal', function() {
+ dialog.modal.find('input,select')
+ .filter(':visible').first().focus();
+ });
+ dialog.modal.on('keydown', e => {
+ if (e.which == Sao.common.ESC_KEYCODE) {
+ this.close(dialog);
+ prm.reject();
+ }
+ });
+ return prm;
+ },
+ close: function(dialog) {
+ dialog.modal.on('hidden.bs.modal', function(event) {
+ jQuery(this).remove();
+ });
+ dialog.modal.modal('hide');
+ this.running = false;
+ }
+ });
+
+ Sao.common.MessageDialog = Sao.class_(Sao.common.UniqueDialog, {
+ class_: 'message-dialog',
+ build_dialog: function(message, icon, prm) {
+ var dialog = Sao.common.MessageDialog._super.build_dialog.call(
+ this);
+ dialog.header.remove();
+ dialog.body.append(jQuery('', {
+ 'class': 'alert alert-info',
+ role: 'alert'
+ }).append(Sao.common.ICONFACTORY.get_icon_img(icon, {
+ 'aria-hidden': true,
+ })).append(jQuery('', {
+ 'class': 'sr-only'
+ }).text(Sao.i18n.gettext('Message: '))
+ ).append(jQuery('')
+ .text(message)
+ .css('white-space', 'pre-wrap')));
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("OK"),
+ }).text(Sao.i18n.gettext('OK')).click(() => {
+ this.close(dialog);
+ prm.resolve('ok');
+ }).appendTo(dialog.footer);
+ return dialog;
+ },
+ run: function(message, icon) {
+ return Sao.common.MessageDialog._super.run.call(
+ this, message, icon || 'tryton-info');
+ }
+ });
+ Sao.common.message = new Sao.common.MessageDialog();
+
+ Sao.common.WarningDialog = Sao.class_(Sao.common.UniqueDialog, {
+ class_: 'warning-dialog',
+ build_dialog: function(message, title, prm) {
+ var dialog = Sao.common.WarningDialog._super.build_dialog.call(
+ this);
+ var content = jQuery('', {
+ 'class': 'alert alert-warning',
+ role: 'alert'
+ }).append(Sao.common.ICONFACTORY.get_icon_img('tryton-warning', {
+ 'aria-hidden': true,
+ })).append(jQuery('', {
+ 'class': 'sr-only'
+ }).text(Sao.i18n.gettext('Warning: '))
+ ).append(jQuery('')
+ .text(title)
+ .css('white-space', 'pre-wrap'));
+ if (message) {
+ content.append(jQuery('')
+ .text(message)
+ .css('white-space', 'pre-wrap'));
+ }
+ dialog.body.append(content);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("OK"),
+ }).text(Sao.i18n.gettext('OK')).click(() => {
+ this.close(dialog);
+ prm.resolve('ok');
+ }).appendTo(dialog.footer);
+ return dialog;
+ }
+ });
+ Sao.common.warning = new Sao.common.WarningDialog();
+
+ Sao.common.UserWarningDialog = Sao.class_(Sao.common.WarningDialog, {
+ class_: 'user-warning-dialog',
+ build_dialog: function(message, title, prm) {
+ var dialog = Sao.common.UserWarningDialog._super.build_dialog.call(
+ this, message, title, prm);
+ var always = jQuery('', {
+ 'type': 'checkbox'
+ });
+ dialog.body.append(jQuery('', {
+ 'class': 'checkbox',
+ }).append(jQuery('')
+ .text(Sao.i18n.gettext("Always ignore this warning."))
+ .prepend(always))
+ );
+ dialog.body.append(jQuery('')
+ .text(Sao.i18n.gettext('Do you want to proceed?')));
+ dialog.footer.empty();
+ jQuery('', {
+ 'class': 'btn btn-link',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("No"),
+ }).text(Sao.i18n.gettext('No')).click(() => {
+ this.close(dialog);
+ prm.reject();
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Yes"),
+ }).text(Sao.i18n.gettext('Yes')).click(() => {
+ this.close(dialog);
+ if (always.prop('checked')) {
+ prm.resolve('always');
+ }
+ prm.resolve('ok');
+ }).appendTo(dialog.footer);
+ return dialog;
+ }
+ });
+ Sao.common.userwarning = new Sao.common.UserWarningDialog();
+
+ Sao.common.ConfirmationDialog = Sao.class_(Sao.common.UniqueDialog, {
+ class_: 'confirmation-dialog',
+ build_dialog: function(message) {
+ var dialog = Sao.common.ConfirmationDialog._super.build_dialog.call(
+ this);
+ dialog.header.remove();
+ dialog.body.append(jQuery('', {
+ 'class': 'alert alert-info',
+ role: 'alert'
+ }).append(Sao.common.ICONFACTORY.get_icon_img('tryton-info', {
+ 'aria-hidden': true,
+ })).append(jQuery('', {
+ 'class': 'sr-only'
+ }).text(Sao.i18n.gettext('Confirmation: '))
+ ).append(jQuery('')
+ .text(message)
+ .css('white-space', 'pre-wrap')));
+ return dialog;
+ }
+ });
+
+ Sao.common.SurDialog = Sao.class_(Sao.common.ConfirmationDialog, {
+ build_dialog: function(message, prm) {
+ var dialog = Sao.common.SurDialog._super.build_dialog.call(
+ this, message);
+ jQuery('', {
+ 'class': 'btn btn-link',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Cancel"),
+ }).text(Sao.i18n.gettext('Cancel')).click(() => {
+ this.close(dialog);
+ prm.reject();
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("OK"),
+ }).text(Sao.i18n.gettext('OK')).click(() => {
+ this.close(dialog);
+ prm.resolve();
+ }).appendTo(dialog.footer);
+ return dialog;
+ }
+ });
+ Sao.common.sur = new Sao.common.SurDialog();
+
+ Sao.common.Sur3BDialog = Sao.class_(Sao.common.ConfirmationDialog, {
+ build_dialog: function(message, prm) {
+ var dialog = Sao.common.SurDialog._super.build_dialog.call(
+ this, message);
+ jQuery('', {
+ 'class': 'btn btn-link',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Cancel"),
+ }).text(Sao.i18n.gettext('Cancel')).click(() => {
+ this.close(dialog);
+ prm.resolve('cancel');
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-default',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("No"),
+ }).text(Sao.i18n.gettext('No')).click(() => {
+ this.close(dialog);
+ prm.resolve('ko');
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Yes"),
+ }).text(Sao.i18n.gettext('Yes')).click(() => {
+ this.close(dialog);
+ prm.resolve('ok');
+ }).appendTo(dialog.footer);
+ return dialog;
+ }
+ });
+ Sao.common.sur_3b = new Sao.common.Sur3BDialog();
+
+ Sao.common.AskDialog = Sao.class_(Sao.common.UniqueDialog, {
+ class_: 'ask-dialog',
+ run: function() {
+ var args = Array.prototype.slice.call(arguments);
+ if (args.length == 2) {
+ args.push(true);
+ }
+ return Sao.common.AskDialog._super.run.apply(this, args);
+ },
+ build_dialog: function(question, name, visibility, prm) {
+ var dialog = Sao.common.AskDialog._super.build_dialog.call(this);
+ dialog.header.remove();
+ var entry = jQuery('', {
+ 'class': 'form-control',
+ 'type': visibility ? 'input' : 'password',
+ 'id': 'ask-dialog-entry',
+ 'name': name,
+ });
+ dialog.body.append(jQuery('', {
+ 'class': 'form-group'
+ }).append(jQuery('', {
+ 'for': 'ask-dialog-entry'
+ }).text(question)).append(entry));
+ jQuery('', {
+ 'class': 'btn btn-link',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("Cancel"),
+ }).text(Sao.i18n.gettext('Cancel')).click(() => {
+ this.close(dialog);
+ prm.reject();
+ }).appendTo(dialog.footer);
+ jQuery('', {
+ 'class': 'btn btn-primary',
+ 'type': 'button',
+ 'title': Sao.i18n.gettext("OK"),
+ }).text(Sao.i18n.gettext('OK')).click(() => {
+ this.close(dialog);
+ prm.resolve(entry.val());
+ }).appendTo(dialog.footer);
+ return dialog;
+ }
+ });
+ Sao.common.ask = new Sao.common.AskDialog();
+
+ Sao.common.ConcurrencyDialog = Sao.class_(Sao.common.UniqueDialog, {
+ class_: 'ask-dialog',
+ build_dialog: function(model, record_id, context, prm) {
+ var dialog = Sao.common.ConcurrencyDialog._super.build_dialog.call(
+ this);
+ dialog.modal.find('.modal-dialog'
+ ).removeClass('modal-sm').addClass('modal-lg');
+ dialog.add_title(Sao.i18n.gettext('Concurrency Exception'));
+ dialog.body.append(jQuery('', {
+ 'class': 'alert alert-info',
+ role: 'alert'
+ }).append(jQuery('')
+ .append(Sao.common.ICONFACTORY.get_icon_img('tryton-info', {
+ 'aria-hidden': true,
+ })).append(jQuery('', {
+ 'class': 'sr-only'
+ }).text(Sao.i18n.gettext('Write Concurrency Warning: '))
+ ).text(Sao.i18n.gettext('This record has been modified ' +
+ 'while you were editing it.')))
+ .append(jQuery('').text(Sao.i18n.gettext('Choose:')))
+ .append(jQuery('