[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 1a50eb54fefa in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=1a50eb54fefa
description:
Translated using Weblate (Indonesian)

Currently translated at 13.0% (21 of 161 strings)

Translation: Tryton/sale_point
Translate-URL: 
https://translate.tryton.org/projects/tryton/sale_point/id/
diffstat:

 modules/sale_point/locale/id.po |  57 +---
 1 files changed, 36 insertions(+), 21 deletions(-)

diffs (171 lines):

diff -r d87f728c0e3e -r 1a50eb54fefa modules/sale_point/locale/id.po
--- a/modules/sale_point/locale/id.po   Sat Feb 26 08:29:51 2022 +
+++ b/modules/sale_point/locale/id.po   Sat Feb 26 02:26:42 2022 +
@@ -1,3 +1,18 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:product.gross_price,company:"
 msgid "Company"
 msgstr ""
@@ -28,7 +43,7 @@
 
 msgctxt "field:sale.point,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:sale.point,customer_location:"
 msgid "To Location"
@@ -36,11 +51,11 @@
 
 msgctxt "field:sale.point,journal:"
 msgid "Journal"
-msgstr ""
+msgstr "Jurnal"
 
 msgctxt "field:sale.point,name:"
 msgid "Name"
-msgstr ""
+msgstr "Nama"
 
 msgctxt "field:sale.point,return_location:"
 msgid "Return Location"
@@ -48,11 +63,11 @@
 
 msgctxt "field:sale.point,sequence:"
 msgid "Sequence"
-msgstr ""
+msgstr "Urutan"
 
 msgctxt "field:sale.point,storage_location:"
 msgid "Storage Location"
-msgstr ""
+msgstr "Lokasi Penyimpanan"
 
 msgctxt "field:sale.point,tax_included:"
 msgid "Tax Included"
@@ -60,11 +75,11 @@
 
 msgctxt "field:sale.point.cash.session,balance:"
 msgid "Balance"
-msgstr ""
+msgstr "Saldo"
 
 msgctxt "field:sale.point.cash.session,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.point.cash.session,end_amount:"
 msgid "End Amount"
@@ -92,7 +107,7 @@
 
 msgctxt "field:sale.point.cash.session,state:"
 msgid "State"
-msgstr ""
+msgstr "Status"
 
 msgctxt "field:sale.point.cash.session,transfers:"
 msgid "Transfers"
@@ -116,11 +131,11 @@
 
 msgctxt "field:sale.point.cash.transfer,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.point.cash.transfer,date:"
 msgid "Date"
-msgstr ""
+msgstr "Tanggal"
 
 msgctxt "field:sale.point.cash.transfer,move:"
 msgid "Move"
@@ -136,7 +151,7 @@
 
 msgctxt "field:sale.point.cash.transfer,state:"
 msgid "State"
-msgstr ""
+msgstr "Status"
 
 msgctxt "field:sale.point.cash.transfer,type:"
 msgid "Type"
@@ -148,7 +163,7 @@
 
 msgctxt "field:sale.point.cash.transfer.type,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:sale.point.cash.transfer.type,journal:"
 msgid "Journal"
@@ -168,15 +183,15 @@
 
 msgctxt "field:sale.point.payment,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:sale.point.payment,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.point.payment,method:"
 msgid "Method"
-msgstr ""
+msgstr "Metode"
 
 msgctxt "field:sale.point.payment,point:"
 msgid "Point"
@@ -204,11 +219,11 @@
 
 msgctxt "field:sale.point.payment.method,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:sale.point.payment.method,name:"
 msgid "Name"
-msgstr ""
+msgstr "Nama"
 
 msgctxt "field:sale.point.sale,amount_paid:"
 msgid "Paid"
@@ -220,19 +235,19 @@
 
 msgctxt "field:sale.point.sale,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:sale.point.sale,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.point.sale,date:"
 msgid "Date"
-msgstr ""
+msgstr "Tanggal"
 
 msgctxt "field:sale.point.sale,employee:"
 msgid "Employee"
-msgstr ""
+msgstr "Karyawan"
 
 msgctxt "field:sale.point.sale,lines:"
 msgid "Lines"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset d87f728c0e3e in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=d87f728c0e3e
description:
Translated using Weblate (Indonesian)

Currently translated at 8.6% (8 of 93 strings)

Translation: Tryton/account_budget
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_budget/id/
diffstat:

 modules/account_budget/locale/id.po |  14 +++---
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 63407e038d9a -r d87f728c0e3e modules/account_budget/locale/id.po
--- a/modules/account_budget/locale/id.po   Sat Feb 26 08:26:43 2022 +
+++ b/modules/account_budget/locale/id.po   Sat Feb 26 08:29:51 2022 +
@@ -3,7 +3,7 @@
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2022-01-31 15:15+\n"
-"PO-Revision-Date: 2022-01-31 15:15+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language-Team: LANGUAGE \n"
 "Language: id\n"
@@ -11,7 +11,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.budget,company:"
 msgid "Company"
@@ -119,11 +119,11 @@
 
 msgctxt "field:account.budget.line,percentage:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "field:account.budget.line,periods:"
 msgid "Periods"
-msgstr ""
+msgstr "Periode"
 
 msgctxt "field:account.budget.line,right:"
 msgid "Right"
@@ -342,11 +342,11 @@
 
 msgctxt "view:account.budget.copy.start:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:account.budget.line.period:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:account.budget.line.period:"
 msgid "Actual Amount"
@@ -362,7 +362,7 @@
 
 msgctxt "view:account.budget.line:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:account.budget.line:"
 msgid "Name"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 63407e038d9a in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=63407e038d9a
description:
Translated using Weblate (Indonesian)

Currently translated at 12.7% (7 of 55 strings)

Translation: Tryton/analytic_budget
Translate-URL: 
https://translate.tryton.org/projects/tryton/analytic_budget/id/
diffstat:

 modules/analytic_budget/locale/id.po |  29 ++---
 1 files changed, 22 insertions(+), 7 deletions(-)

diffs (62 lines):

diff -r 3118a661122f -r 63407e038d9a modules/analytic_budget/locale/id.po
--- a/modules/analytic_budget/locale/id.po  Sat Feb 26 02:35:37 2022 +
+++ b/modules/analytic_budget/locale/id.po  Sat Feb 26 08:26:43 2022 +
@@ -1,3 +1,18 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:analytic_account.budget,company:"
 msgid "Company"
 msgstr ""
@@ -96,7 +111,7 @@
 
 msgctxt "field:analytic_account.budget.line,percentage:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "field:analytic_account.budget.line,right:"
 msgid "Right"
@@ -196,24 +211,24 @@
 
 msgctxt "view:analytic_account.budget.copy.start:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:analytic_account.budget.line:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:analytic_account.budget.line:"
 msgid "Name"
-msgstr ""
+msgstr "Nama"
 
 msgctxt "view:analytic_account.budget.line:"
 msgid "Name:"
-msgstr ""
+msgstr "Nama:"
 
 msgctxt "wizard_button:analytic_account.budget.copy,start,copy:"
 msgid "Copy"
-msgstr ""
+msgstr "Salin"
 
 msgctxt "wizard_button:analytic_account.budget.copy,start,end:"
 msgid "Cancel"
-msgstr ""
+msgstr "Batal"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 3118a661122f in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=3118a661122f
description:
Translated using Weblate (Indonesian)

Currently translated at 2.2% (1 of 44 strings)

Translation: Tryton/account_invoice_defer
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_invoice_defer/id/
diffstat:

 modules/account_invoice_defer/locale/id.po |  17 -
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 75a657ecd1a8 -r 3118a661122f modules/account_invoice_defer/locale/id.po
--- a/modules/account_invoice_defer/locale/id.poSat Feb 26 03:12:59 
2022 +
+++ b/modules/account_invoice_defer/locale/id.poSat Feb 26 02:35:37 
2022 +
@@ -1,3 +1,18 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:account.configuration,deferred_account_expense:"
 msgid "Deferred Account Expense"
 msgstr ""
@@ -24,7 +39,7 @@
 
 msgctxt "field:account.invoice.deferred,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:account.invoice.deferred,end_date:"
 msgid "End Date"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 75a657ecd1a8 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=75a657ecd1a8
description:
Translated using Weblate (Indonesian)

Currently translated at 25.9% (14 of 54 strings)

Translation: Tryton/web_shop
Translate-URL: https://translate.tryton.org/projects/tryton/web_shop/id/
diffstat:

 modules/web_shop/locale/id.po |  43 +--
 1 files changed, 29 insertions(+), 14 deletions(-)

diffs (105 lines):

diff -r e2f16cc8b91c -r 75a657ecd1a8 modules/web_shop/locale/id.po
--- a/modules/web_shop/locale/id.po Sat Feb 26 03:14:00 2022 +
+++ b/modules/web_shop/locale/id.po Sat Feb 26 03:12:59 2022 +
@@ -1,3 +1,18 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:product.attribute,web_shops:"
 msgid "Web Shops"
 msgstr ""
@@ -48,11 +63,11 @@
 
 msgctxt "field:web.shop,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:web.shop,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:web.shop,guest_party:"
 msgid "Guest Party"
@@ -60,11 +75,11 @@
 
 msgctxt "field:web.shop,language:"
 msgid "Language"
-msgstr ""
+msgstr "Bahasa"
 
 msgctxt "field:web.shop,name:"
 msgid "Name"
-msgstr ""
+msgstr "Nama"
 
 msgctxt "field:web.shop,products:"
 msgid "Products"
@@ -88,35 +103,35 @@
 
 msgctxt "field:web.shop-product.attribute,shop:"
 msgid "Shop"
-msgstr ""
+msgstr "Toko"
 
 msgctxt "field:web.shop-product.category,category:"
 msgid "Category"
-msgstr ""
+msgstr "Kategori"
 
 msgctxt "field:web.shop-product.category,shop:"
 msgid "Shop"
-msgstr ""
+msgstr "Toko"
 
 msgctxt "field:web.shop-product.product,product:"
 msgid "Product"
-msgstr ""
+msgstr "Produk"
 
 msgctxt "field:web.shop-product.product,shop:"
 msgid "Shop"
-msgstr ""
+msgstr "Toko"
 
 msgctxt "field:web.shop-stock.location,shop:"
 msgid "Shop"
-msgstr ""
+msgstr "Toko"
 
 msgctxt "field:web.shop-stock.location,warehouse:"
 msgid "Warehouse"
-msgstr ""
+msgstr "Gudang"
 
 msgctxt "field:web.user,invoice_address:"
 msgid "Invoice Address"
-msgstr ""
+msgstr "Alamat Faktur"
 
 msgctxt "field:web.user,shipment_address:"
 msgid "Shipment Address"
@@ -210,8 +225,8 @@
 
 msgctxt "view:product.template:"
 msgid "Edit"
-msgstr ""
+msgstr "Sunting"
 
 msgctxt "view:web.shop:"
 msgid "Products"
-msgstr ""
+msgstr "Produk-Produk"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset e2f16cc8b91c in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=e2f16cc8b91c
description:
Translated using Weblate (Indonesian)

Currently translated at 15.7% (3 of 19 strings)

Translation: Tryton/web_shop_vue_storefront
Translate-URL: 
https://translate.tryton.org/projects/tryton/web_shop_vue_storefront/id/
diffstat:

 modules/web_shop_vue_storefront/locale/id.po |  21 ++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 16895d1ba02b -r e2f16cc8b91c 
modules/web_shop_vue_storefront/locale/id.po
--- a/modules/web_shop_vue_storefront/locale/id.po  Sat Feb 26 08:28:47 
2022 +
+++ b/modules/web_shop_vue_storefront/locale/id.po  Sat Feb 26 03:14:00 
2022 +
@@ -1,6 +1,21 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:party.address,vsf_telephone:"
 msgid "Telephone"
-msgstr ""
+msgstr "Telepon"
 
 msgctxt "field:product.product,vsf_sku:"
 msgid "SKU"
@@ -48,11 +63,11 @@
 
 msgctxt "model:ir.message,text:msg_tax"
 msgid "Tax"
-msgstr ""
+msgstr "Pajak"
 
 msgctxt "model:ir.message,text:msg_unknown_country_code"
 msgid "The country code \"%(code)s\" is not known."
-msgstr ""
+msgstr "Kode negara \"%(code)s\" tidak diketahui."
 
 msgctxt "model:ir.message,text:msg_vsf_identifier"
 msgid "Vue Storefront Identifier"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 16895d1ba02b in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=16895d1ba02b
description:
Translated using Weblate (Indonesian)

Currently translated at 16.6% (1 of 6 strings)

Translation: Tryton/sale_discount
Translate-URL: 
https://translate.tryton.org/projects/tryton/sale_discount/id/
diffstat:

 modules/sale_discount/locale/id.po |  17 -
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 7bc57f98f6d5 -r 16895d1ba02b modules/sale_discount/locale/id.po
--- a/modules/sale_discount/locale/id.poSat Feb 26 02:49:17 2022 +
+++ b/modules/sale_discount/locale/id.poSat Feb 26 08:28:47 2022 +
@@ -1,3 +1,18 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-02-27 03:14+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
+"Last-Translator: Ferry \n"
+"Language-Team: LANGUAGE \n"
+"Language: id\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11\n"
+
 msgctxt "field:sale.line,base_price:"
 msgid "Base Price"
 msgstr ""
@@ -16,7 +31,7 @@
 
 msgctxt "view:sale.line:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:sale.line:"
 msgid "Discount"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 7bc57f98f6d5 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=7bc57f98f6d5
description:
Translated using Weblate (Indonesian)

Currently translated at 43.3% (26 of 60 strings)

Translation: Tryton/attendance
Translate-URL: 
https://translate.tryton.org/projects/tryton/attendance/id/
diffstat:

 modules/attendance/locale/id.po |  28 +---
 1 files changed, 17 insertions(+), 11 deletions(-)

diffs (115 lines):

diff -r 4e8e25cb797d -r 7bc57f98f6d5 modules/attendance/locale/id.po
--- a/modules/attendance/locale/id.po   Sat Feb 26 03:00:17 2022 +
+++ b/modules/attendance/locale/id.po   Sat Feb 26 02:49:17 2022 +
@@ -3,7 +3,7 @@
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2020-07-12 15:57+\n"
-"PO-Revision-Date: 2021-06-12 10:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language-Team: LANGUAGE \n"
 "Language: id\n"
@@ -11,7 +11,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.6.2\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:attendance.line,at:"
 msgid "At"
@@ -19,7 +19,7 @@
 
 msgctxt "field:attendance.line,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:attendance.line,date:"
 msgid "Date"
@@ -27,7 +27,7 @@
 
 msgctxt "field:attendance.line,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:attendance.line,type:"
 msgid "Type"
@@ -43,11 +43,11 @@
 
 msgctxt "field:attendance.period,state:"
 msgid "State"
-msgstr ""
+msgstr "Status"
 
 msgctxt "field:attendance.sheet,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:attendance.sheet,date:"
 msgid "Date"
@@ -55,11 +55,11 @@
 
 msgctxt "field:attendance.sheet,duration:"
 msgid "Duration"
-msgstr ""
+msgstr "Durasi"
 
 msgctxt "field:attendance.sheet,employee:"
 msgid "Employee"
-msgstr ""
+msgstr "Karyawan"
 
 msgctxt "field:attendance.sheet,lines:"
 msgid "Lines"
@@ -71,7 +71,7 @@
 
 msgctxt "field:attendance.sheet.line,company:"
 msgid "Company"
-msgstr ""
+msgstr "Perusahaan"
 
 msgctxt "field:attendance.sheet.line,date:"
 msgid "Date"
@@ -79,11 +79,11 @@
 
 msgctxt "field:attendance.sheet.line,duration:"
 msgid "Duration"
-msgstr ""
+msgstr "Durasi"
 
 msgctxt "field:attendance.sheet.line,employee:"
 msgid "Employee"
-msgstr ""
+msgstr "Karyawan"
 
 msgctxt "field:attendance.sheet.line,from_:"
 msgid "From"
@@ -141,18 +141,24 @@
 msgid ""
 "To close period \"%(period)s\" you must first close \"%(other_period)s\"."
 msgstr ""
+"Untuk menutup periode \"%(period)s\" Anda harus terlebih dahulu menutup \""
+"%(other_period)s\"."
 
 msgctxt "model:ir.message,text:msg_delete_period_close"
 msgid ""
 "To delete attendance \"%(attendance)s\" you must reopen period \"%(period)s"
 "\"."
 msgstr ""
+"Untuk menghapus kehadiran \"%(attendance)s\" Anda harus membuka kembali "
+"periode \"%(period)s\"."
 
 msgctxt "model:ir.message,text:msg_draft_period_previous_closed"
 msgid ""
 "To change period \"%(period)s\" you must first change \"%(other_period)s\" "
 "to draft."
 msgstr ""
+"Untuk mengubah periode \"%(period)s\" Anda harus terlebih dahulu mengubah \""
+"(other_period)s\" menjadi rancangan."
 
 msgctxt "model:ir.message,text:msg_modify_period_close"
 msgid ""



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 4e8e25cb797d in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=4e8e25cb797d
description:
Translated using Weblate (Indonesian)

Currently translated at 35.9% (133 of 370 strings)

Translation: Tryton/tryton
Translate-URL: https://translate.tryton.org/projects/tryton/tryton/id/
diffstat:

 tryton/tryton/data/locale/id/LC_MESSAGES/tryton.po |  8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 23099d4a42e0 -r 4e8e25cb797d 
tryton/tryton/data/locale/id/LC_MESSAGES/tryton.po
--- a/tryton/tryton/data/locale/id/LC_MESSAGES/tryton.poSat Feb 26 
02:58:47 2022 +
+++ b/tryton/tryton/data/locale/id/LC_MESSAGES/tryton.poSat Feb 26 
03:00:17 2022 +
@@ -3,7 +3,7 @@
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2019-07-02 09:11+\n"
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language-Team: LANGUAGE \n"
 "Language: id\n"
@@ -11,7 +11,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgid "specify alternate config file"
 msgstr "tentukan file konfigurasi alternatif"
@@ -562,10 +562,10 @@
 msgstr ""
 
 msgid "Subject:"
-msgstr "Subject:"
+msgstr ""
 
 msgid "Body"
-msgstr "Body"
+msgstr ""
 
 msgid "Reports"
 msgstr "Laporan-Laporan"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 23099d4a42e0 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=23099d4a42e0
description:
Translated using Weblate (Indonesian)

Currently translated at 16.6% (2 of 12 strings)

Translation: Tryton/timesheet_cost
Translate-URL: 
https://translate.tryton.org/projects/tryton/timesheet_cost/id/
diffstat:

 modules/timesheet_cost/locale/id.po |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 10dc28336ff5 -r 23099d4a42e0 modules/timesheet_cost/locale/id.po
--- a/modules/timesheet_cost/locale/id.po   Sat Feb 26 02:48:57 2022 +
+++ b/modules/timesheet_cost/locale/id.po   Sat Feb 26 02:58:47 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2019-08-10 04:21+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 3.7.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:company.employee,cost_price:"
 msgid "Cost Price"
@@ -27,7 +27,7 @@
 
 msgctxt "field:company.employee_cost_price,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.line,cost_price:"
 msgid "Cost Price"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 10dc28336ff5 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=10dc28336ff5
description:
Translated using Weblate (Indonesian)

Currently translated at 31.8% (29 of 91 strings)

Translation: Tryton/timesheet
Translate-URL: 
https://translate.tryton.org/projects/tryton/timesheet/id/
diffstat:

 modules/timesheet/locale/id.po |  18 +-
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r ef9e1c45f12c -r 10dc28336ff5 modules/timesheet/locale/id.po
--- a/modules/timesheet/locale/id.poSat Feb 26 08:27:15 2022 +
+++ b/modules/timesheet/locale/id.poSat Feb 26 02:48:57 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-12 10:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.6.2\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:timesheet.hours_employee,duration:"
 msgid "Duration"
@@ -15,7 +15,7 @@
 
 msgctxt "field:timesheet.hours_employee,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.hours_employee.context,end_date:"
 msgid "End Date"
@@ -31,7 +31,7 @@
 
 msgctxt "field:timesheet.hours_employee_monthly,employee:"
 msgid "Employee"
-msgstr ""
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.hours_employee_monthly,month:"
 msgid "Month"
@@ -43,11 +43,11 @@
 
 msgctxt "field:timesheet.hours_employee_weekly,duration:"
 msgid "Duration"
-msgstr ""
+msgstr "Durasi"
 
 msgctxt "field:timesheet.hours_employee_weekly,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.hours_employee_weekly,week:"
 msgid "Week"
@@ -71,11 +71,11 @@
 
 msgctxt "field:timesheet.line,duration:"
 msgid "Duration"
-msgstr ""
+msgstr "Durasi"
 
 msgctxt "field:timesheet.line,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.line,uuid:"
 msgid "UUID"
@@ -91,7 +91,7 @@
 
 msgctxt "field:timesheet.line.enter.start,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:timesheet.work,company:"
 msgid "Company"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset ef9e1c45f12c in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=ef9e1c45f12c
description:
Translated using Weblate (Indonesian)

Currently translated at 19.4% (154 of 790 strings)

Translation: Tryton/stock
Translate-URL: https://translate.tryton.org/projects/tryton/stock/id/
diffstat:

 modules/stock/locale/id.po |  24 
 1 files changed, 12 insertions(+), 12 deletions(-)

diffs (73 lines):

diff -r e28b83b8e527 -r ef9e1c45f12c modules/stock/locale/id.po
--- a/modules/stock/locale/id.poSat Feb 26 03:00:31 2022 +
+++ b/modules/stock/locale/id.poSat Feb 26 08:27:15 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-23 08:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.7\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:party.address,delivery:"
 msgid "Delivery"
@@ -3241,43 +3241,43 @@
 
 msgctxt "view:stock.reporting.margin.category.time_series:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:stock.reporting.margin.category.time_series:"
 msgid "Cost"
-msgstr ""
+msgstr "Biaya"
 
 msgctxt "view:stock.reporting.margin.category.time_series:"
 msgid "Revenue"
-msgstr ""
+msgstr "Pendapatan"
 
 msgctxt "view:stock.reporting.margin.category.tree:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:stock.reporting.margin.main.time_series:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:stock.reporting.margin.main.time_series:"
 msgid "Cost"
-msgstr ""
+msgstr "Biaya"
 
 msgctxt "view:stock.reporting.margin.main.time_series:"
 msgid "Revenue"
-msgstr ""
+msgstr "Pendapatan"
 
 msgctxt "view:stock.reporting.margin.main:"
 msgid "%"
-msgstr ""
+msgstr "%"
 
 msgctxt "view:stock.reporting.margin.main:"
 msgid "Cost"
-msgstr ""
+msgstr "Biaya"
 
 msgctxt "view:stock.reporting.margin.main:"
 msgid "Revenue"
-msgstr ""
+msgstr "Pendapatan"
 
 msgctxt "view:stock.shipment.assign.partial:"
 msgid "Unable to assign these products:"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset e28b83b8e527 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=e28b83b8e527
description:
Translated using Weblate (Indonesian)

Currently translated at 40.1% (88 of 219 strings)

Translation: Tryton/sao
Translate-URL: https://translate.tryton.org/projects/tryton/sao/id/
diffstat:

 sao/locale/id.po |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r c9c06e2a6a81 -r e28b83b8e527 sao/locale/id.po
--- a/sao/locale/id.po  Sat Feb 26 02:42:27 2022 +
+++ b/sao/locale/id.po  Sat Feb 26 03:00:31 2022 +
@@ -3,7 +3,7 @@
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2021-12-26 12:08+\n"
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language-Team: LANGUAGE \n"
 "Language: id\n"
@@ -11,7 +11,7 @@
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 # Generated by grunt-xgettext on Sat Jun 01 2019 23:48:54 GMT+0200 (CEST)
 msgid "Are your sure to leave?"
@@ -663,7 +663,7 @@
 msgstr ""
 
 msgid "Subject:"
-msgstr "Subject:"
+msgstr ""
 
 msgid "Reports"
 msgstr "Laporan-Laporan"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset c9c06e2a6a81 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=c9c06e2a6a81
description:
Translated using Weblate (Indonesian)

Currently translated at 33.6% (42 of 125 strings)

Translation: Tryton/sale_opportunity
Translate-URL: 
https://translate.tryton.org/projects/tryton/sale_opportunity/id/
diffstat:

 modules/sale_opportunity/locale/id.po |  16 
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r e011b255f7d8 -r c9c06e2a6a81 modules/sale_opportunity/locale/id.po
--- a/modules/sale_opportunity/locale/id.po Sat Feb 26 02:21:57 2022 +
+++ b/modules/sale_opportunity/locale/id.po Sat Feb 26 02:42:27 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2020-10-20 08:56+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.2.2\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:sale.configuration,sale_opportunity_sequence:"
 msgid "Opportunity Sequence"
@@ -56,7 +56,7 @@
 
 msgctxt "field:sale.opportunity,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:sale.opportunity,end_date:"
 msgid "End Date"
@@ -144,11 +144,11 @@
 
 msgctxt "field:sale.opportunity_employee,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:sale.opportunity_employee,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:sale.opportunity_employee,lost:"
 msgid "Lost"
@@ -208,11 +208,11 @@
 
 msgctxt "field:sale.opportunity_employee_monthly,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:sale.opportunity_employee_monthly,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:sale.opportunity_employee_monthly,lost:"
 msgid "Lost"
@@ -272,7 +272,7 @@
 
 msgctxt "field:sale.opportunity_monthly,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:sale.opportunity_monthly,lost:"
 msgid "Lost"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset e011b255f7d8 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=e011b255f7d8
description:
Translated using Weblate (Indonesian)

Currently translated at 37.5% (9 of 24 strings)

Translation: Tryton/sale_extra
Translate-URL: 
https://translate.tryton.org/projects/tryton/sale_extra/id/
diffstat:

 modules/sale_extra/locale/id.po |  8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r c2c439bd81e5 -r e011b255f7d8 modules/sale_extra/locale/id.po
--- a/modules/sale_extra/locale/id.po   Sat Feb 26 02:45:09 2022 +
+++ b/modules/sale_extra/locale/id.po   Sat Feb 26 02:21:57 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2019-09-23 03:23+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 3.8\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:sale.extra,company:"
 msgid "Company"
@@ -15,7 +15,7 @@
 
 msgctxt "field:sale.extra,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.extra,end_date:"
 msgid "End Date"
@@ -43,7 +43,7 @@
 
 msgctxt "field:sale.extra.line,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.extra.line,extra:"
 msgid "Extra"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset c2c439bd81e5 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=c2c439bd81e5
description:
Translated using Weblate (Indonesian)

Currently translated at 57.1% (52 of 91 strings)

Translation: Tryton/sale_complaint
Translate-URL: 
https://translate.tryton.org/projects/tryton/sale_complaint/id/
diffstat:

 modules/sale_complaint/locale/id.po |  13 ++---
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r feb459b9b479 -r c2c439bd81e5 modules/sale_complaint/locale/id.po
--- a/modules/sale_complaint/locale/id.po   Sat Feb 26 02:16:28 2022 +
+++ b/modules/sale_complaint/locale/id.po   Sat Feb 26 02:45:09 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-23 08:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.7\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:sale.complaint,actions:"
 msgid "Actions"
@@ -35,7 +35,7 @@
 
 msgctxt "field:sale.complaint,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:sale.complaint,number:"
 msgid "Number"
@@ -77,14 +77,13 @@
 msgid "Complaint"
 msgstr "Keluhan"
 
-#, fuzzy
 msgctxt "field:sale.complaint.action,complaint_state:"
 msgid "Complaint State"
-msgstr "Keluhan"
+msgstr "Status Keluhan"
 
 msgctxt "field:sale.complaint.action,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.complaint.action,invoice_lines:"
 msgid "Invoice Lines"
@@ -130,7 +129,7 @@
 
 msgctxt "field:sale.complaint.action-account.invoice.line,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:sale.complaint.action-account.invoice.line,line:"
 msgid "Invoice Line"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset feb459b9b479 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=feb459b9b479
description:
Translated using Weblate (Indonesian)

Currently translated at 32.1% (121 of 376 strings)

Translation: Tryton/sale
Translate-URL: https://translate.tryton.org/projects/tryton/sale/id/
diffstat:

 modules/sale/locale/id.po |  14 +-
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r c2198d2c6de4 -r feb459b9b479 modules/sale/locale/id.po
--- a/modules/sale/locale/id.po Sat Feb 26 02:15:42 2022 +
+++ b/modules/sale/locale/id.po Sat Feb 26 02:16:28 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-23 08:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.7\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.invoice,sale_exception_state:"
 msgid "Exception State"
@@ -394,29 +394,25 @@
 msgid "Children"
 msgstr "Cabang"
 
-#, fuzzy
 msgctxt "field:sale.reporting.customer.category.tree,currency:"
 msgid "Currency"
-msgstr "Mata uang"
-
-#, fuzzy
+msgstr "Mata Uang"
+
 msgctxt "field:sale.reporting.customer.category.tree,name:"
 msgid "Name"
 msgstr "Nama"
 
-#, fuzzy
 msgctxt "field:sale.reporting.customer.category.tree,parent:"
 msgid "Parent"
 msgstr "Induk"
 
-#, fuzzy
 msgctxt "field:sale.reporting.customer.category.tree,revenue:"
 msgid "Revenue"
 msgstr "Pendapatan"
 
 msgctxt "field:sale.reporting.customer.time_series,customer:"
 msgid "Customer"
-msgstr ""
+msgstr "Pelanggan"
 
 msgctxt "field:sale.reporting.customer.time_series,date:"
 msgid "Date"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset c2198d2c6de4 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=c2198d2c6de4
description:
Translated using Weblate (Indonesian)

Currently translated at 37.4% (100 of 267 strings)

Translation: Tryton/purchase
Translate-URL: https://translate.tryton.org/projects/tryton/purchase/id/
diffstat:

 modules/purchase/locale/id.po |  13 ++---
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 8d62665f103f -r c2198d2c6de4 modules/purchase/locale/id.po
--- a/modules/purchase/locale/id.po Sat Feb 26 02:42:06 2022 +
+++ b/modules/purchase/locale/id.po Sat Feb 26 02:15:42 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-23 08:07+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.7\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.invoice,purchase_exception_state:"
 msgid "Exception State"
@@ -275,7 +275,7 @@
 
 msgctxt "field:purchase.product_supplier,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:purchase.product_supplier,lead_time:"
 msgid "Lead Time"
@@ -305,10 +305,9 @@
 msgid "UOM"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:purchase.product_supplier.price,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:purchase.product_supplier.price,product_supplier:"
 msgid "Supplier"
@@ -324,7 +323,7 @@
 
 msgctxt "field:purchase.product_supplier.price,uom:"
 msgid "UOM"
-msgstr ""
+msgstr "UOM"
 
 msgctxt "field:purchase.purchase,comment:"
 msgid "Comment"
@@ -345,7 +344,7 @@
 
 msgctxt "field:purchase.purchase,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:purchase.purchase,delivery_date:"
 msgid "Delivery Date"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 8d62665f103f in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=8d62665f103f
description:
Translated using Weblate (Indonesian)

Currently translated at 3.1% (1 of 32 strings)

Translation: Tryton/project_plan
Translate-URL: 
https://translate.tryton.org/projects/tryton/project_plan/id/
diffstat:

 modules/project_plan/locale/id.po |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r a73900bd20ae -r 8d62665f103f modules/project_plan/locale/id.po
--- a/modules/project_plan/locale/id.po Sat Feb 26 02:59:18 2022 +
+++ b/modules/project_plan/locale/id.po Sat Feb 26 02:42:06 2022 +
@@ -1,17 +1,17 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2019-08-19 06:04+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 3.7.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:project.allocation,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:project.allocation,percentage:"
 msgid "Percentage"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset a73900bd20ae in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=a73900bd20ae
description:
Translated using Weblate (Indonesian)

Currently translated at 37.5% (89 of 237 strings)

Translation: Tryton/product
Translate-URL: https://translate.tryton.org/projects/tryton/product/id/
diffstat:

 modules/product/locale/id.po |  8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r b6a80bd674ad -r a73900bd20ae modules/product/locale/id.po
--- a/modules/product/locale/id.po  Sat Feb 26 03:05:34 2022 +
+++ b/modules/product/locale/id.po  Sat Feb 26 02:59:18 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-01-31 15:15+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:ir.configuration,product_price_decimal:"
 msgid "Product Price Decimal"
@@ -949,7 +949,7 @@
 
 msgctxt "selection:product.product,type:"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "selection:product.product,type:"
 msgid "Goods"
@@ -969,7 +969,7 @@
 
 msgctxt "selection:product.template,type:"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "selection:product.template,type:"
 msgid "Goods"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset b6a80bd674ad in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=b6a80bd674ad
description:
Translated using Weblate (Indonesian)

Currently translated at 72.1% (57 of 79 strings)

Translation: Tryton/company
Translate-URL: https://translate.tryton.org/projects/tryton/company/id/
diffstat:

 modules/company/locale/id.po |  30 +-
 1 files changed, 13 insertions(+), 17 deletions(-)

diffs (133 lines):

diff -r e35bcab10535 -r b6a80bd674ad modules/company/locale/id.po
--- a/modules/company/locale/id.po  Sat Feb 26 02:57:01 2022 +
+++ b/modules/company/locale/id.po  Sat Feb 26 03:05:34 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:company.company,currency:"
 msgid "Currency"
@@ -15,7 +15,7 @@
 
 msgctxt "field:company.company,employees:"
 msgid "Employees"
-msgstr "Pegawai-Pegawai"
+msgstr "Para Karyawan"
 
 msgctxt "field:company.company,footer:"
 msgid "Footer"
@@ -59,7 +59,7 @@
 
 msgctxt "field:ir.cron,companies:"
 msgid "Companies"
-msgstr "Perusahaan-perusahaan"
+msgstr "Perusahaan-Perusahaan"
 
 msgctxt "field:ir.cron-company.company,company:"
 msgid "Company"
@@ -81,7 +81,6 @@
 msgid "Company"
 msgstr "Perusahaan"
 
-#, fuzzy
 msgctxt "field:party.contact_mechanism.language,company:"
 msgid "Company"
 msgstr "Perusahaan"
@@ -111,19 +110,17 @@
 msgid "Employees"
 msgstr "Pegawai-Pegawai"
 
-#, fuzzy
 msgctxt "field:res.user-company.company,company:"
 msgid "Company"
 msgstr "Perusahaan"
 
-#, fuzzy
 msgctxt "field:res.user-company.company,user:"
 msgid "User"
 msgstr "Pengguna"
 
 msgctxt "field:res.user-company.employee,employee:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "field:res.user-company.employee,user:"
 msgid "User"
@@ -223,7 +220,7 @@
 
 msgctxt "model:company.employee,name:"
 msgid "Employee"
-msgstr "Pegawai"
+msgstr "Karyawan"
 
 msgctxt "model:ir.action,name:act_company_config"
 msgid "Configure Company"
@@ -235,7 +232,7 @@
 
 msgctxt "model:ir.action,name:act_employee_form"
 msgid "Employees"
-msgstr "Pegawai-Pegawai"
+msgstr "Para Karyawan"
 
 msgctxt "model:ir.action,name:act_employee_subordinates"
 msgid "Supervised by"
@@ -265,11 +262,11 @@
 
 msgctxt "model:ir.ui.menu,name:menu_company_list"
 msgid "Companies"
-msgstr "Perusahaan-perusahaan"
+msgstr "Perusahaan-Perusahaan"
 
 msgctxt "model:ir.ui.menu,name:menu_employee_form"
 msgid "Employees"
-msgstr "Pegawai-Pegawai"
+msgstr "Para Karyawan"
 
 msgctxt "model:res.group,name:group_company_admin"
 msgid "Company Administration"
@@ -286,7 +283,7 @@
 
 msgctxt "model:res.user-company.employee,name:"
 msgid "User - Employee"
-msgstr "Pengguna - Pegawai"
+msgstr "Pengguna - Karyawan"
 
 msgctxt "report:party.letter:"
 msgid "Best Regards,"
@@ -308,10 +305,9 @@
 msgid "All"
 msgstr ""
 
-#, fuzzy
 msgctxt "selection:res.user,company_filter:"
 msgid "Current"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "view:company.company.config.start:"
 msgid "You can now add your company into the system."
@@ -319,11 +315,11 @@
 
 msgctxt "view:company.company:"
 msgid "Reports"
-msgstr "Laporan"
+msgstr "Laporan-Laporan"
 
 msgctxt "wizard_button:company.company.config,company,add:"
 msgid "Add"
-msgstr "Tambahkan"
+msgstr "Tambah"
 
 msgctxt "wizard_button:company.company.config,company,end:"
 msgid "Cancel"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset e35bcab10535 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=e35bcab10535
description:
Translated using Weblate (Indonesian)

Currently translated at 26.1% (41 of 157 strings)

Translation: Tryton/commission
Translate-URL: 
https://translate.tryton.org/projects/tryton/commission/id/
diffstat:

 modules/commission/locale/id.po |  17 +++--
 1 files changed, 7 insertions(+), 10 deletions(-)

diffs (67 lines):

diff -r a90da91a8faf -r e35bcab10535 modules/commission/locale/id.po
--- a/modules/commission/locale/id.po   Sat Feb 26 08:05:59 2022 +
+++ b/modules/commission/locale/id.po   Sat Feb 26 02:57:01 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-01-31 15:15+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.invoice,agent:"
 msgid "Commission Agent"
@@ -109,7 +109,7 @@
 
 msgctxt "field:commission.agent.selection,employee:"
 msgid "Employee"
-msgstr ""
+msgstr "Karyawan"
 
 #, fuzzy
 msgctxt "field:commission.agent.selection,end_date:"
@@ -192,14 +192,13 @@
 msgid "Base Amount Trend"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:commission.reporting.agent,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:commission.reporting.agent,number:"
 msgid "Number"
-msgstr ""
+msgstr "Nomor"
 
 msgctxt "field:commission.reporting.agent,time_series:"
 msgid "Time Series"
@@ -223,19 +222,17 @@
 msgid "Base Amount Trend"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:commission.reporting.agent.time_series,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
-#, fuzzy
 msgctxt "field:commission.reporting.agent.time_series,date:"
 msgid "Date"
 msgstr "Tanggal"
 
 msgctxt "field:commission.reporting.agent.time_series,number:"
 msgid "Number"
-msgstr ""
+msgstr "Nomor"
 
 #, fuzzy
 msgctxt "field:commission.reporting.context,from_date:"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset a90da91a8faf in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=a90da91a8faf
description:
Translated using Weblate (Indonesian)

Currently translated at 66.6% (2 of 3 strings)

Translation: Tryton/carrier_percentage
Translate-URL: 
https://translate.tryton.org/projects/tryton/carrier_percentage/id/
diffstat:

 modules/carrier_percentage/locale/id.po |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 9c3440e2a4d2 -r a90da91a8faf modules/carrier_percentage/locale/id.po
--- a/modules/carrier_percentage/locale/id.po   Sat Feb 26 02:17:23 2022 +
+++ b/modules/carrier_percentage/locale/id.po   Sat Feb 26 08:05:59 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2021-06-12 10:08+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.6.2\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:carrier,percentage:"
 msgid "Percentage"
@@ -19,4 +19,4 @@
 
 msgctxt "selection:carrier,carrier_cost_method:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 9c3440e2a4d2 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=9c3440e2a4d2
description:
Translated using Weblate (Indonesian)

Currently translated at 53.5% (75 of 140 strings)

Translation: Tryton/account_statement
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_statement/id/
diffstat:

 modules/account_statement/locale/id.po |  14 ++
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r d8ddfe5352ff -r 9c3440e2a4d2 modules/account_statement/locale/id.po
--- a/modules/account_statement/locale/id.poSat Feb 26 02:24:25 2022 +
+++ b/modules/account_statement/locale/id.poSat Feb 26 02:17:23 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-02-10 04:02+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.statement,balance:"
 msgid "Balance"
@@ -108,7 +108,7 @@
 
 msgctxt "field:account.statement.journal,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.statement.journal,journal:"
 msgid "Journal"
@@ -134,10 +134,9 @@
 msgid "Company"
 msgstr "Perusahaan"
 
-#, fuzzy
 msgctxt "field:account.statement.line,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.statement.line,date:"
 msgid "Date"
@@ -181,7 +180,7 @@
 
 msgctxt "field:account.statement.line.group,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.statement.line.group,date:"
 msgid "Date"
@@ -219,10 +218,9 @@
 msgid "Company"
 msgstr "Perusahaan"
 
-#, fuzzy
 msgctxt "field:account.statement.origin,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.statement.origin,date:"
 msgid "Date"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset d8ddfe5352ff in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=d8ddfe5352ff
description:
Translated using Weblate (Indonesian)

Currently translated at 48.3% (75 of 155 strings)

Translation: Tryton/account_payment
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_payment/id/
diffstat:

 modules/account_payment/locale/id.po |  16 ++--
 1 files changed, 6 insertions(+), 10 deletions(-)

diffs (65 lines):

diff -r d460a87a0b27 -r d8ddfe5352ff modules/account_payment/locale/id.po
--- a/modules/account_payment/locale/id.po  Sat Feb 26 07:10:02 2022 +
+++ b/modules/account_payment/locale/id.po  Sat Feb 26 02:24:25 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2020-07-12 15:57+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.1.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.configuration,payment_group_sequence:"
 msgid "Payment Group Sequence"
@@ -136,7 +136,7 @@
 
 msgctxt "field:account.payment,state:"
 msgid "State"
-msgstr ""
+msgstr "Status"
 
 #, fuzzy
 msgctxt "field:account.payment,succeeded_by:"
@@ -197,7 +197,7 @@
 
 msgctxt "field:account.payment.journal,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.payment.journal,name:"
 msgid "Name"
@@ -237,25 +237,21 @@
 msgid "Company"
 msgstr "Perusahaan"
 
-#, fuzzy
 msgctxt "field:party.party.reception_direct_debit,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
-#, fuzzy
 msgctxt "field:party.party.reception_direct_debit,journal:"
 msgid "Journal"
 msgstr "Jurnal"
 
-#, fuzzy
 msgctxt "field:party.party.reception_direct_debit,party:"
 msgid "Party"
 msgstr "Pihak"
 
-#, fuzzy
 msgctxt "field:party.party.reception_direct_debit,process_method:"
 msgid "Process Method"
-msgstr "Metode proses"
+msgstr "Metode Proses"
 
 msgctxt "help:account.invoice,payment_direct_debit:"
 msgid "Check if the invoice is paid by direct debit."



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset d460a87a0b27 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=d460a87a0b27
description:
Translated using Weblate (Indonesian)

Currently translated at 62.4% (193 of 309 strings)

Translation: Tryton/account_invoice
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_invoice/id/
diffstat:

 modules/account_invoice/locale/id.po |  12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 141ae0efbabe -r d460a87a0b27 modules/account_invoice/locale/id.po
--- a/modules/account_invoice/locale/id.po  Sat Feb 26 07:12:01 2022 +
+++ b/modules/account_invoice/locale/id.po  Sat Feb 26 07:10:02 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 #, fuzzy
 msgctxt "field:account.configuration,default_customer_payment_term:"
@@ -99,7 +99,7 @@
 
 msgctxt "field:account.invoice,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.invoice,currency_date:"
 msgid "Currency Date"
@@ -276,7 +276,7 @@
 
 msgctxt "field:account.invoice.line,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.invoice.line,description:"
 msgid "Description"
@@ -332,7 +332,7 @@
 
 msgctxt "field:account.invoice.line,taxes:"
 msgid "Taxes"
-msgstr "Pajak-pajak"
+msgstr "Pajak-Pajak"
 
 msgctxt "field:account.invoice.line,taxes_date:"
 msgid "Taxes Date"
@@ -532,7 +532,7 @@
 
 msgctxt "field:account.invoice.payment_term.test,currency:"
 msgid "Currency"
-msgstr "Mata uang"
+msgstr "Mata Uang"
 
 msgctxt "field:account.invoice.payment_term.test,date:"
 msgid "Date"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 141ae0efbabe in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=141ae0efbabe
description:
Translated using Weblate (Indonesian)

Currently translated at 21.2% (20 of 94 strings)

Translation: Tryton/account_es
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_es/id/
diffstat:

 modules/account_es/locale/id.po |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 50904a7698f5 -r 141ae0efbabe modules/account_es/locale/id.po
--- a/modules/account_es/locale/id.po   Sat Feb 26 08:06:22 2022 +
+++ b/modules/account_es/locale/id.po   Sat Feb 26 07:12:01 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2020-04-26 10:40+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 3.11.3\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.payment.journal,es_sepa_bank_account_country_code:"
 msgid "Bank Account Country Code"
@@ -81,7 +81,7 @@
 
 msgctxt "field:account.reporting.vat_book_es,invoice:"
 msgid "Invoice"
-msgstr ""
+msgstr "Faktur"
 
 #, fuzzy
 msgctxt "field:account.reporting.vat_book_es,invoice_date:"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 50904a7698f5 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=50904a7698f5
description:
Translated using Weblate (Indonesian)

Currently translated at 42.8% (9 of 21 strings)

Translation: Tryton/account_dunning_fee
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_dunning_fee/id/
diffstat:

 modules/account_dunning_fee/locale/id.po |  8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r e88a7efcd325 -r 50904a7698f5 modules/account_dunning_fee/locale/id.po
--- a/modules/account_dunning_fee/locale/id.po  Sat Feb 26 02:05:53 2022 +
+++ b/modules/account_dunning_fee/locale/id.po  Sat Feb 26 08:06:22 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2019-11-10 16:11+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 3.8\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.dunning,fees:"
 msgid "Fees"
@@ -27,7 +27,7 @@
 
 msgctxt "field:account.dunning.fee,percentage:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "field:account.dunning.fee,product:"
 msgid "Product"
@@ -87,7 +87,7 @@
 
 msgctxt "selection:account.dunning.fee,compute_method:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "view:account.dunning.fee:"
 msgid "%"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset e88a7efcd325 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=e88a7efcd325
description:
Translated using Weblate (Indonesian)

Currently translated at 49.4% (97 of 196 strings)

Translation: Tryton/account_asset
Translate-URL: 
https://translate.tryton.org/projects/tryton/account_asset/id/
diffstat:

 modules/account_asset/locale/id.po |  23 +++
 1 files changed, 11 insertions(+), 12 deletions(-)

diffs (85 lines):

diff -r 97e0205e7235 -r e88a7efcd325 modules/account_asset/locale/id.po
--- a/modules/account_asset/locale/id.poSat Feb 26 08:29:37 2022 +
+++ b/modules/account_asset/locale/id.poSat Feb 26 02:05:53 2022 +
@@ -1,21 +1,21 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2020-11-09 07:06+\n"
+"PO-Revision-Date: 2022-02-27 03:14+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.2.2\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.account.type,fixed_asset:"
 msgid "Fixed Asset"
-msgstr "Aset tetap"
+msgstr "Aset Tetap"
 
 msgctxt "field:account.account.type.template,fixed_asset:"
 msgid "Fixed Asset"
-msgstr "Aset tetap"
+msgstr "Aset Tetap"
 
 msgctxt "field:account.asset,account_journal:"
 msgid "Journal"
@@ -31,7 +31,7 @@
 
 msgctxt "field:account.asset,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
 msgctxt "field:account.asset,customer_invoice_line:"
 msgid "Customer Invoice Line"
@@ -176,12 +176,11 @@
 
 msgctxt "field:account.asset.revision,currency:"
 msgid "Currency"
-msgstr ""
+msgstr "Mata Uang"
 
-#, fuzzy
 msgctxt "field:account.asset.revision,description:"
 msgid "Description"
-msgstr "Penyusutan"
+msgstr "Deskripsi"
 
 #, fuzzy
 msgctxt "field:account.asset.revision,end_date:"
@@ -406,7 +405,7 @@
 
 msgctxt "model:ir.action,name:act_asset_form"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "model:ir.action,name:report_depreciation_table"
 msgid "Depreciation Table"
@@ -517,11 +516,11 @@
 
 msgctxt "model:ir.ui.menu,name:menu_asset"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "model:ir.ui.menu,name:menu_asset_form"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "model:ir.ui.menu,name:menu_create_depreciation_table"
 msgid "Print Depreciation Table"
@@ -565,7 +564,7 @@
 
 msgctxt "report:account.asset.depreciation_table:"
 msgid "Assets"
-msgstr "Aktiva"
+msgstr "Aset-Aset"
 
 msgctxt "report:account.asset.depreciation_table:"
 msgid "Closing Value"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 97e0205e7235 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=97e0205e7235
description:
Translated using Weblate (Indonesian)

Currently translated at 57.0% (620 of 1086 strings)

Translation: Tryton/account
Translate-URL: https://translate.tryton.org/projects/tryton/account/id/
diffstat:

 modules/account/locale/id.po |  10 +-
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 2ae27e49dc33 -r 97e0205e7235 modules/account/locale/id.po
--- a/modules/account/locale/id.po  Sat Feb 26 12:34:24 2022 +
+++ b/modules/account/locale/id.po  Sat Feb 26 08:29:37 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:13+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:account.account,active:"
 msgid "Active"
@@ -4226,7 +4226,7 @@
 
 msgctxt "selection:account.tax,type:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "selection:account.tax.code.line,amount:"
 msgid "Base"
@@ -4346,11 +4346,11 @@
 
 msgctxt "selection:account.tax.template,type:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "view:account.account.type:"
 msgid "Comparison"
-msgstr ""
+msgstr "Perbandingan"
 
 msgctxt "view:account.account:"
 msgid "Children"



[tryton-commits] changeset in weblate:default Translated using Weblate (Indonesian)

2022-02-26 Thread Ferry
changeset 2ae27e49dc33 in weblate:default
details: https://hg.tryton.org/weblate?cmd=changeset=2ae27e49dc33
description:
Translated using Weblate (Indonesian)

Currently translated at 39.9% (369 of 924 strings)

Translation: Tryton/ir
Translate-URL: https://translate.tryton.org/projects/tryton/ir/id/
diffstat:

 trytond/trytond/ir/locale/id.po |  54 ++--
 1 files changed, 25 insertions(+), 29 deletions(-)

diffs (230 lines):

diff -r 4b085f521c84 -r 2ae27e49dc33 trytond/trytond/ir/locale/id.po
--- a/trytond/trytond/ir/locale/id.po   Wed Feb 23 03:15:41 2022 +
+++ b/trytond/trytond/ir/locale/id.po   Sat Feb 26 12:34:24 2022 +
@@ -1,13 +1,13 @@
 #
 msgid ""
 msgstr ""
-"PO-Revision-Date: 2022-02-23 11:35+\n"
+"PO-Revision-Date: 2022-02-27 03:13+\n"
 "Last-Translator: Ferry \n"
 "Language: id\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.11\n"
 
 msgctxt "field:ir.action,icon:"
 msgid "Icon"
@@ -15,7 +15,7 @@
 
 msgctxt "field:ir.action,keywords:"
 msgid "Keywords"
-msgstr "Kata kunci"
+msgstr "Kata Kunci"
 
 msgctxt "field:ir.action,name:"
 msgid "Name"
@@ -71,7 +71,7 @@
 
 msgctxt "field:ir.action.act_window,keywords:"
 msgid "Keywords"
-msgstr "Kata kunci"
+msgstr "Kata Kunci"
 
 msgctxt "field:ir.action.act_window,limit:"
 msgid "Limit"
@@ -156,7 +156,7 @@
 
 msgctxt "field:ir.action.keyword,keyword:"
 msgid "Keyword"
-msgstr "Kata kunci"
+msgstr "Kata Kunci"
 
 msgctxt "field:ir.action.keyword,model:"
 msgid "Model"
@@ -184,7 +184,7 @@
 
 msgctxt "field:ir.action.report,keywords:"
 msgid "Keywords"
-msgstr "Kata kunci"
+msgstr "Kata Kunci"
 
 msgctxt "field:ir.action.report,model:"
 msgid "Model"
@@ -241,7 +241,7 @@
 
 msgctxt "field:ir.action.report,translatable:"
 msgid "Translatable"
-msgstr "Dapat diterjemahkan"
+msgstr "Dapat Diterjemahkan"
 
 msgctxt "field:ir.action.report,type:"
 msgid "Type"
@@ -507,7 +507,7 @@
 
 msgctxt "field:ir.email,addresses:"
 msgid "Addresses"
-msgstr ""
+msgstr "Alamat-Alamat"
 
 msgctxt "field:ir.email,at:"
 msgid "At"
@@ -545,7 +545,7 @@
 
 msgctxt "field:ir.email.address,address:"
 msgid "Address"
-msgstr ""
+msgstr "Alamat"
 
 #, fuzzy
 msgctxt "field:ir.email.address,email:"
@@ -595,10 +595,9 @@
 msgid "Secondary Recipients"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:ir.email.template,reports:"
 msgid "Reports"
-msgstr "Laporan"
+msgstr "Laporan-Laporan"
 
 msgctxt "field:ir.email.template,subject:"
 msgid "Subject"
@@ -1033,7 +1032,7 @@
 
 msgctxt "field:ir.module.config_wizard.other,percentage:"
 msgid "Percentage"
-msgstr ""
+msgstr "Persentase"
 
 msgctxt "field:ir.module.dependency,module:"
 msgid "Module"
@@ -1298,6 +1297,7 @@
 msgid "Overriding Module"
 msgstr ""
 
+#, fuzzy
 msgctxt "field:ir.translation,res_id:"
 msgid "Resource ID"
 msgstr "ID Sumber daya"
@@ -1318,10 +1318,9 @@
 msgid "File"
 msgstr "Berkas"
 
-#, fuzzy
 msgctxt "field:ir.translation.export.result,filename:"
 msgid "Filename"
-msgstr "Berkas"
+msgstr "Nama Berkas"
 
 #, fuzzy
 msgctxt "field:ir.translation.export.result,language:"
@@ -1604,7 +1603,7 @@
 
 msgctxt "help:ir.action.wizard,window:"
 msgid "Run wizard in a new window."
-msgstr ""
+msgstr "Jalankan wisaya pada jendela baru."
 
 msgctxt "help:ir.email.template,recipients:"
 msgid "The field that contains the recipient(s)."
@@ -1751,15 +1750,15 @@
 
 msgctxt "model:ir.action,name:act_action_form"
 msgid "Actions"
-msgstr "Tindakan"
+msgstr "Tindakan-Tindakan"
 
 msgctxt "model:ir.action,name:act_action_report_form"
 msgid "Reports"
-msgstr "Laporan"
+msgstr "Laporan-Laporan"
 
 msgctxt "model:ir.action,name:act_action_url_form"
 msgid "URLs"
-msgstr "URLs"
+msgstr "URL-URL"
 
 msgctxt "model:ir.action,name:act_action_wizard_form"
 msgid "Wizards"
@@ -1767,7 +1766,7 @@
 
 msgctxt "model:ir.action,name:act_attachment_form"
 msgid "Attachments"
-msgstr "Lampiran"
+msgstr "Lampiran-Lampiran"
 
 msgctxt "model:ir.action,name:act_config_wizard_item_form"
 msgid "Config Wizard Items"
@@ -1871,11 +1870,11 @@
 
 msgctxt "model:ir.action,name:act_module_config_wizard"
 msgid "Module Configuration"
-msgstr ""
+msgstr "Konfigurasi Modul"
 
 msgctxt "model:ir.action,name:act_module_form"
 msgid "Modules"
-msgstr ""
+msgstr "Modul-Modul"
 
 msgctxt "model:ir.action,name:act_note_form"
 msgid "Notes"
@@ -1887,7 +1886,7 @@
 
 msgctxt "model:ir.action,name:act_sequence_form"
 msgid "Sequences"
-msgstr ""
+msgstr "Urutan-Urutan"
 
 msgctxt "model:ir.action,name:act_sequence_strict_form"
 msgid "Sequences Strict"
@@ -2218,7 +2217,7 @@
 
 msgctxt "model:ir.email.address,name:"
 msgid "Email Address"
-msgstr ""
+msgstr "Alamat Email"
 
 msgctxt "model:ir.email.template,name:"
 msgid "Email Template"
@@ -2456,10 +2455,9 @@
 msgid "You are not allowed to delete this record."
 msgstr "Anda tidak diizinkan untuk menghapus catatan ini."
 

[tryton-commits] changeset in trytond:6.2 Recompute path if part of the old path ...

2022-02-26 Thread Cédric Krier
changeset 30706ae6b23b in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset=30706ae6b23b
description:
Recompute path if part of the old path has already been updated

This happens when multiple parent are modified at the same time.
In such case the new path previously computed is no more correct.

issue11266
review368141002
(grafted from 822db4b23ad13ec11db5d70f3f92fc2f4b252a6e)
diffstat:

 trytond/model/modelsql.py  |  31 +--
 trytond/tests/test_tree.py |  17 +
 2 files changed, 38 insertions(+), 10 deletions(-)

diffs (75 lines):

diff -r c4681bed22fb -r 30706ae6b23b trytond/model/modelsql.py
--- a/trytond/model/modelsql.py Fri Feb 18 13:06:20 2022 +0100
+++ b/trytond/model/modelsql.py Tue Feb 22 22:57:03 2022 +0100
@@ -1621,6 +1621,24 @@
 update = transaction.connection.cursor()
 table = cls.__table__()
 parent = cls.__table__()
+
+def update_path(query, column, sub_ids):
+updated = set()
+query.where = reduce_ids(table.id, sub_ids)
+cursor.execute(*query)
+for old_path, new_path in cursor:
+if old_path == new_path:
+continue
+if any(old_path.startswith(p) for p in updated):
+return False
+update.execute(*table.update(
+[column],
+[Concat(new_path,
+Substring(table.path, len(old_path) + 1))],
+where=table.path.like(old_path + '%')))
+updated.add(old_path)
+return True
+
 for field_name, ids in zip(field_names, list_ids):
 field = cls._fields[field_name]
 parent_column = Column(table, field_name)
@@ -1633,16 +1651,9 @@
 Concat(Concat(
 Coalesce(parent_path_column, ''), table.id), '/')))
 for sub_ids in grouped_slice(ids):
-query.where = reduce_ids(table.id, sub_ids)
-cursor.execute(*query)
-for old_path, new_path in cursor:
-if old_path == new_path:
-continue
-update.execute(*table.update(
-[path_column],
-[Concat(new_path,
-Substring(table.path, len(old_path) + 1))],
-where=table.path.like(old_path + '%')))
+sub_ids = list(sub_ids)
+while not update_path(query, path_column, sub_ids):
+pass
 
 @classmethod
 def _update_mptt(cls, field_names, list_ids, values=None):
diff -r c4681bed22fb -r 30706ae6b23b trytond/tests/test_tree.py
--- a/trytond/tests/test_tree.pyFri Feb 18 13:06:20 2022 +0100
+++ b/trytond/tests/test_tree.pyTue Feb 22 22:57:03 2022 +0100
@@ -140,6 +140,23 @@
 Model.delete(records)
 self.check_tree()
 
+@with_transaction()
+def test_write_multiple_parents(self):
+"Test write multiple parents"
+pool = Pool()
+Model = pool.get(self.model_name)
+
+record1 = Model(name="Root")
+record1.save()
+record2 = Model(name="Child", parent=record1)
+record2.save()
+record3 = Model(name="Grand Child", parent=record2)
+record3.save()
+self.check_tree()
+
+Model.write([record2, record3], {'parent': None})
+self.check_tree()
+
 def rebuild(self):
 raise NotImplementedError
 



[tryton-commits] changeset in trytond:6.0 Catch UnicodeEncodeError when autocompl...

2022-02-26 Thread Sergi Almacellas Abellana
changeset 5e4d361b1f35 in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset=5e4d361b1f35
description:
Catch UnicodeEncodeError when autocompleting emails

issue11261
review38036100
(grafted from 24c1b56da072c6585b45f74e3d7c39410aaf5063)
diffstat:

 trytond/ir/email_.py |  10 --
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 55eb684fcab8 -r 5e4d361b1f35 trytond/ir/email_.py
--- a/trytond/ir/email_.py  Wed Feb 16 11:07:19 2022 +0100
+++ b/trytond/ir/email_.py  Fri Feb 18 13:06:20 2022 +0100
@@ -211,11 +211,17 @@
 if not name and not email:
 return []
 s = StringMatcher()
-s.set_seq2(_formataddr((name, email)))
+try:
+s.set_seq2(_formataddr((name, email)))
+except UnicodeEncodeError:
+return []
 
 def generate(name, email):
 for name, email in cls._match(name, email):
-address = _formataddr((name, email))
+try:
+address = _formataddr((name, email))
+except UnicodeEncodeError:
+continue
 s.set_seq1(address)
 yield (
 s.ratio(), address,



[tryton-commits] changeset in trytond:6.2 Catch UnicodeEncodeError when autocompl...

2022-02-26 Thread Sergi Almacellas Abellana
changeset c4681bed22fb in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset=c4681bed22fb
description:
Catch UnicodeEncodeError when autocompleting emails

issue11261
review38036100
(grafted from 24c1b56da072c6585b45f74e3d7c39410aaf5063)
diffstat:

 trytond/ir/email_.py |  10 --
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 07e8f676d635 -r c4681bed22fb trytond/ir/email_.py
--- a/trytond/ir/email_.py  Wed Feb 16 11:07:19 2022 +0100
+++ b/trytond/ir/email_.py  Fri Feb 18 13:06:20 2022 +0100
@@ -206,11 +206,17 @@
 if not name and not email:
 return []
 s = StringMatcher()
-s.set_seq2(_formataddr((name, email)))
+try:
+s.set_seq2(_formataddr((name, email)))
+except UnicodeEncodeError:
+return []
 
 def generate(name, email):
 for name, email in cls._match(name, email):
-address = _formataddr((name, email))
+try:
+address = _formataddr((name, email))
+except UnicodeEncodeError:
+continue
 s.set_seq1(address)
 yield (
 s.ratio(), address,



[tryton-commits] changeset in trytond:6.0 Do not update field definition with Fun...

2022-02-26 Thread Cédric Krier
changeset 55eb684fcab8 in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset=55eb684fcab8
description:
Do not update field definition with Function field definition

issue11225
review360871002
(grafted from 557937450ca90e41c4a8d4dd729c6d723a47ef6a)
diffstat:

 trytond/model/fields/function.py |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r c35bbc670aef -r 55eb684fcab8 trytond/model/fields/function.py
--- a/trytond/model/fields/function.py  Mon Feb 14 23:12:00 2022 +0100
+++ b/trytond/model/fields/function.py  Wed Feb 16 11:07:19 2022 +0100
@@ -142,7 +142,6 @@
 
 def definition(self, model, language):
 definition = self._field.definition(model, language)
-definition.update(super().definition(model, language))
 definition['searchable'] &= (
 bool(self.searcher) or hasattr(model, 'domain_' + self.name))
 definition['sortable'] &= hasattr(model, 'order_' + self.name)



[tryton-commits] changeset in trytond:6.2 Do not update field definition with Fun...

2022-02-26 Thread Cédric Krier
changeset 07e8f676d635 in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset=07e8f676d635
description:
Do not update field definition with Function field definition

issue11225
review360871002
(grafted from 557937450ca90e41c4a8d4dd729c6d723a47ef6a)
diffstat:

 trytond/model/fields/function.py |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r ec16c835b92e -r 07e8f676d635 trytond/model/fields/function.py
--- a/trytond/model/fields/function.py  Mon Feb 14 23:12:00 2022 +0100
+++ b/trytond/model/fields/function.py  Wed Feb 16 11:07:19 2022 +0100
@@ -142,7 +142,6 @@
 
 def definition(self, model, language):
 definition = self._field.definition(model, language)
-definition.update(super().definition(model, language))
 definition['searchable'] &= (
 bool(self.searcher) or hasattr(model, 'domain_' + self.name))
 definition['sortable'] &= hasattr(model, 'order_' + self.name)



[tryton-commits] changeset in trytond:6.0 Avoid concurrency failure in cache with...

2022-02-26 Thread Cédric Krier
changeset c35bbc670aef in trytond:6.0
details: https://hg.tryton.org/trytond?cmd=changeset=c35bbc670aef
description:
Avoid concurrency failure in cache with channel test

We need to ensure that the listener is running on the return of the 
transaction
start otherwise notification can be missed.
We must also just from time to time check that the listener is still the
current listener.
And finally we can not wait an arbitrary time for cache sync, instead 
we must
rely on the _clean_last being reset with the sync happens.

issue9413
review364831002
(grafted from a32b84d9664917df3274663c06ab57fd5a7789ef)
diffstat:

 trytond/cache.py|   7 ++-
 trytond/tests/test_cache.py |  19 +++
 2 files changed, 17 insertions(+), 9 deletions(-)

diffs (92 lines):

diff -r 37a409b66d14 -r c35bbc670aef trytond/cache.py
--- a/trytond/cache.py  Tue Feb 08 18:44:55 2022 +0100
+++ b/trytond/cache.py  Mon Feb 14 23:12:00 2022 +0100
@@ -6,6 +6,7 @@
 import os
 import select
 import threading
+import time
 from collections import OrderedDict, defaultdict
 from datetime import datetime
 from weakref import WeakKeyDictionary
@@ -216,6 +217,9 @@
 cls._listener[pid, dbname] = listener = threading.Thread(
 target=cls._listen, args=(dbname,), daemon=True)
 listener.start()
+while (not getattr(listener, 'listening', False)
+and listener.is_alive()):
+time.sleep(.01)
 return
 if (datetime.now() - cls._clean_last).total_seconds() < _clear_timeout:
 return
@@ -354,9 +358,10 @@
 try:
 cursor = conn.cursor()
 cursor.execute('LISTEN "%s"' % cls._channel)
+current_thread.listening = True
 
 while cls._listener.get((pid, dbname)) == current_thread:
-readable, _, _ = select.select([conn], [], [])
+readable, _, _ = select.select([conn], [], [], 60)
 if not readable:
 continue
 
diff -r 37a409b66d14 -r c35bbc670aef trytond/tests/test_cache.py
--- a/trytond/tests/test_cache.py   Tue Feb 08 18:44:55 2022 +0100
+++ b/trytond/tests/test_cache.py   Mon Feb 14 23:12:00 2022 +0100
@@ -1,6 +1,7 @@
 # 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 as dt
 import time
 import unittest
 
@@ -58,7 +59,7 @@
 def tearDown(self):
 MemoryCache.drop(DB_NAME)
 
-def wait_cache_sync(self):
+def wait_cache_sync(self, after=None):
 pass
 
 @with_transaction()
@@ -96,11 +97,9 @@
 with Transaction().set_current_transaction(transaction1):
 self.assertEqual(cache.get('foo'), 'bar')
 
+commit_time = dt.datetime.now()
 transaction2.commit()
-for n in range(10):
-if cache.get('foo') == 'baz':
-break
-self.wait_cache_sync()
+self.wait_cache_sync(after=commit_time)
 self.assertEqual(cache.get('foo'), 'baz')
 
 def test_memory_cache_nested_transactions(self):
@@ -135,8 +134,9 @@
 transaction2 = transaction1.new_transaction()
 self.addCleanup(transaction2.stop)
 cache.clear()
+commit_time = dt.datetime.now()
 transaction2.commit()
-self.wait_cache_sync()
+self.wait_cache_sync(after=commit_time)
 
 # Set value from old transaction
 Transaction().set_current_transaction(transaction1)
@@ -168,8 +168,11 @@
 self.addCleanup(
 setattr, cache_mod, '_clear_timeout', clear_timeout)
 
-def wait_cache_sync(self):
-time.sleep(1)
+def wait_cache_sync(self, after=None):
+if after is None:
+after = dt.datetime.now()
+while MemoryCache._clean_last < after:
+time.sleep(.01)
 
 @unittest.skip("No cache sync on transaction start with channel")
 def test_memory_cache_sync(self):



[tryton-commits] changeset in trytond:6.2 Avoid concurrency failure in cache with...

2022-02-26 Thread Cédric Krier
changeset ec16c835b92e in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset=ec16c835b92e
description:
Avoid concurrency failure in cache with channel test

We need to ensure that the listener is running on the return of the 
transaction
start otherwise notification can be missed.
We must also just from time to time check that the listener is still the
current listener.
And finally we can not wait an arbitrary time for cache sync, instead 
we must
rely on the _clean_last being reset with the sync happens.

issue9413
review364831002
(grafted from a32b84d9664917df3274663c06ab57fd5a7789ef)
diffstat:

 trytond/cache.py|   7 ++-
 trytond/tests/test_cache.py |  19 +++
 2 files changed, 17 insertions(+), 9 deletions(-)

diffs (92 lines):

diff -r 76e4643f098f -r ec16c835b92e trytond/cache.py
--- a/trytond/cache.py  Tue Feb 08 18:44:55 2022 +0100
+++ b/trytond/cache.py  Mon Feb 14 23:12:00 2022 +0100
@@ -6,6 +6,7 @@
 import os
 import select
 import threading
+import time
 from collections import OrderedDict, defaultdict
 from datetime import datetime
 from weakref import WeakKeyDictionary
@@ -218,6 +219,9 @@
 cls._listener[pid, dbname] = listener = threading.Thread(
 target=cls._listen, args=(dbname,), daemon=True)
 listener.start()
+while (not getattr(listener, 'listening', False)
+and listener.is_alive()):
+time.sleep(.01)
 return
 if (datetime.now() - cls._clean_last).total_seconds() < _clear_timeout:
 return
@@ -353,9 +357,10 @@
 try:
 cursor = conn.cursor()
 cursor.execute('LISTEN "%s"' % cls._channel)
+current_thread.listening = True
 
 while cls._listener.get((pid, dbname)) == current_thread:
-readable, _, _ = select.select([conn], [], [])
+readable, _, _ = select.select([conn], [], [], 60)
 if not readable:
 continue
 
diff -r 76e4643f098f -r ec16c835b92e trytond/tests/test_cache.py
--- a/trytond/tests/test_cache.py   Tue Feb 08 18:44:55 2022 +0100
+++ b/trytond/tests/test_cache.py   Mon Feb 14 23:12:00 2022 +0100
@@ -1,6 +1,7 @@
 # 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 as dt
 import time
 import unittest
 
@@ -81,7 +82,7 @@
 def tearDown(self):
 MemoryCache.drop(DB_NAME)
 
-def wait_cache_sync(self):
+def wait_cache_sync(self, after=None):
 pass
 
 @with_transaction()
@@ -119,11 +120,9 @@
 with Transaction().set_current_transaction(transaction1):
 self.assertEqual(cache.get('foo'), 'bar')
 
+commit_time = dt.datetime.now()
 transaction2.commit()
-for n in range(10):
-if cache.get('foo') == 'baz':
-break
-self.wait_cache_sync()
+self.wait_cache_sync(after=commit_time)
 self.assertEqual(cache.get('foo'), 'baz')
 
 def test_memory_cache_nested_transactions(self):
@@ -158,8 +157,9 @@
 transaction2 = transaction1.new_transaction()
 self.addCleanup(transaction2.stop)
 cache.clear()
+commit_time = dt.datetime.now()
 transaction2.commit()
-self.wait_cache_sync()
+self.wait_cache_sync(after=commit_time)
 
 # Set value from old transaction
 Transaction().set_current_transaction(transaction1)
@@ -191,8 +191,11 @@
 self.addCleanup(
 setattr, cache_mod, '_clear_timeout', clear_timeout)
 
-def wait_cache_sync(self):
-time.sleep(1)
+def wait_cache_sync(self, after=None):
+if after is None:
+after = dt.datetime.now()
+while MemoryCache._clean_last < after:
+time.sleep(.01)
 
 @unittest.skip("No cache sync on transaction start with channel")
 def test_memory_cache_sync(self):



[tryton-commits] changeset in sao:6.0 Wait promise completion before triggering c...

2022-02-26 Thread Raphaël Valéry
changeset f5050dc4f41d in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset=f5050dc4f41d
description:
Wait promise completion before triggering click on next row in editable 
list

issue11247
review393681026
(grafted from b4dd36f6f59883a787f118765b2a6da99c822f60)
diffstat:

 src/view/tree.js |  10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2e966bcdb7cd -r f5050dc4f41d src/view/tree.js
--- a/src/view/tree.js  Tue Feb 22 23:01:11 2022 +0100
+++ b/src/view/tree.js  Sat Feb 12 14:03:55 2022 +0100
@@ -1965,9 +1965,13 @@
 }.bind(this));
 }
 } else {
-this._get_column_td(next_column, next_row)
-.trigger('click')
-.find(':input,[tabindex=0]').focus();
+prm.then(function() {
+this._get_column_td(
+next_column, next_row)
+.trigger('click')
+.find(':input,[tabindex=0]')
+.focus();
+}.bind(this));
 }
 }
 }.bind(this));



[tryton-commits] changeset in sao:6.2 Wait promise completion before triggering c...

2022-02-26 Thread Raphaël Valéry
changeset 4ce2d3b9e0b7 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset=4ce2d3b9e0b7
description:
Wait promise completion before triggering click on next row in editable 
list

issue11247
review393681026
(grafted from b4dd36f6f59883a787f118765b2a6da99c822f60)
diffstat:

 src/view/tree.js |  10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 4a390f1ab123 -r 4ce2d3b9e0b7 src/view/tree.js
--- a/src/view/tree.js  Tue Feb 22 23:01:11 2022 +0100
+++ b/src/view/tree.js  Sat Feb 12 14:03:55 2022 +0100
@@ -2057,9 +2057,13 @@
 }.bind(this));
 }
 } else {
-this._get_column_td(next_column, next_row)
-.trigger('click')
-.find(':input,[tabindex=0]').focus();
+prm.then(function() {
+this._get_column_td(
+next_column, next_row)
+.trigger('click')
+.find(':input,[tabindex=0]')
+.focus();
+}.bind(this));
 }
 }
 }.bind(this));



[tryton-commits] changeset in sao:5.0 Remove store_rec_name function and use sync...

2022-02-26 Thread Cédric Krier
changeset 21acb78ca090 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset=21acb78ca090
description:
Remove store_rec_name function and use synchronous RPC call

issue11249
review397321002
(grafted from 7e806a5beef6f67904860e9e54cebd2731d90d80)
diffstat:

 src/model.js |  26 ++
 1 files changed, 6 insertions(+), 20 deletions(-)

diffs (60 lines):

diff -r 5c064d99853e -r 21acb78ca090 src/model.js
--- a/src/model.js  Tue Feb 08 18:55:25 2022 +0100
+++ b/src/model.js  Tue Feb 22 23:01:11 2022 +0100
@@ -1892,24 +1892,15 @@
 },
 set: function(record, value) {
 var rec_name = record._values[this.name + '.rec_name'] || '';
-var store_rec_name = function(rec_name) {
-record._values[this.name + '.rec_name'] = rec_name[0].rec_name;
-};
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-var remote_rec_name = Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session, false);
-store_rec_name(remote_rec_name);
-record.group.root_group().screens.forEach(
-function (screen) {
-screen.display();
-});
-} else {
-store_rec_name.call(this, [{'rec_name': rec_name}]);
+}, record.model.session, false)[0].rec_name;
 }
+record._values[this.name + '.rec_name'] = rec_name;
 record._values[this.name] = value;
 },
 set_client: function(record, value, force_change) {
@@ -2433,25 +2424,20 @@
 ref_id = value[1];
 }
 var rec_name = record._values[this.name + '.rec_name'] || '';
-var store_rec_name = function(rec_name) {
-record._values[this.name + '.rec_name'] = rec_name;
-}.bind(this);
 if (ref_model && ref_id !== null && ref_id >= 0) {
 if (!rec_name && ref_id >= 0) {
-Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + ref_model + '.read',
 'params': [[ref_id], ['rec_name'], 
record.get_context()]
-}, record.model.session).done(function(result) {
-store_rec_name(result[0].rec_name);
-});
+}, record.model.session, false)[0].rec_name;
 }
 } else if (ref_model) {
 rec_name = '';
 } else {
 rec_name = ref_id;
 }
+record._values[this.name + '.rec_name'] = rec_name;
 record._values[this.name] = [ref_model, ref_id];
-store_rec_name(rec_name);
 },
 get_on_change_value: function(record) {
 if ((record.group.parent_name == this.name) &&



[tryton-commits] changeset in sao:5.0 Return rec_name RPC call promise when avail...

2022-02-26 Thread Nicolas Évrard
changeset 5c064d99853e in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset=5c064d99853e
description:
Return rec_name RPC call promise when available in M2O field set and 
set_default

issue11030
review374421002
(grafted from 4585dcb48a1a96f78c776ac9612d4c8fb4e6d265)
diffstat:

 src/model.js |  15 +++
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r af9424826d00 -r 5c064d99853e src/model.js
--- a/src/model.js  Wed Feb 16 22:00:07 2022 +0100
+++ b/src/model.js  Tue Feb 08 18:55:25 2022 +0100
@@ -1898,16 +1898,15 @@
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-Sao.rpc({
+var remote_rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session).done(store_rec_name.bind(this)).done(
-function() {
-record.group.root_group().screens.forEach(
-function(screen) {
-screen.display();
-});
-   });
+}, record.model.session, false);
+store_rec_name(remote_rec_name);
+record.group.root_group().screens.forEach(
+function (screen) {
+screen.display();
+});
 } else {
 store_rec_name.call(this, [{'rec_name': rec_name}]);
 }



[tryton-commits] changeset in sao:6.0 Remove store_rec_name function and use sync...

2022-02-26 Thread Cédric Krier
changeset 2e966bcdb7cd in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset=2e966bcdb7cd
description:
Remove store_rec_name function and use synchronous RPC call

issue11249
review397321002
(grafted from 7e806a5beef6f67904860e9e54cebd2731d90d80)
diffstat:

 src/model.js |  31 ---
 1 files changed, 8 insertions(+), 23 deletions(-)

diffs (65 lines):

diff -r d9b1352a9a5b -r 2e966bcdb7cd src/model.js
--- a/src/model.js  Tue Feb 08 18:55:25 2022 +0100
+++ b/src/model.js  Tue Feb 22 23:01:11 2022 +0100
@@ -2046,26 +2046,16 @@
 set: function(record, value) {
 var rec_name = (
 record._values[this.name + '.'] || {}).rec_name || '';
-var store_rec_name = function(rec_name) {
-Sao.setdefault(
-record._values, this.name + '.', {})
-.rec_name = rec_name[0].rec_name;
-};
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-var remote_rec_name = Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session, false);
-store_rec_name(remote_rec_name);
-record.group.root_group.screens.forEach(
-function (screen) {
-screen.display();
-});
-} else {
-store_rec_name.call(this, [{'rec_name': rec_name}]);
+}, record.model.session, false)[0].rec_name;
 }
+Sao.setdefault(
+record._values, this.name + '.', {}).rec_name = rec_name;
 record._values[this.name] = value;
 },
 set_client: function(record, value, force_change) {
@@ -2616,26 +2606,21 @@
 }
 var rec_name = (
 record._values[this.name + '.'] || {}).rec_name || '';
-var store_rec_name = function(rec_name) {
-Sao.setdefault(
-record._values, this.name + '.', {}).rec_name = rec_name;
-}.bind(this);
 if (ref_model && ref_id !== null && ref_id >= 0) {
 if (!rec_name && ref_id >= 0) {
-Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + ref_model + '.read',
 'params': [[ref_id], ['rec_name'], 
record.get_context()]
-}, record.model.session).done(function(result) {
-store_rec_name(result[0].rec_name);
-});
+}, record.model.session, false)[0].rec_name;
 }
 } else if (ref_model) {
 rec_name = '';
 } else {
 rec_name = ref_id;
 }
+Sao.setdefault(
+record._values, this.name + '.', {}).rec_name = rec_name;
 record._values[this.name] = [ref_model, ref_id];
-store_rec_name(rec_name);
 },
 get_on_change_value: function(record) {
 if ((record.group.parent_name == this.name) &&



[tryton-commits] changeset in sao:6.0 Return rec_name RPC call promise when avail...

2022-02-26 Thread Nicolas Évrard
changeset d9b1352a9a5b in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset=d9b1352a9a5b
description:
Return rec_name RPC call promise when available in M2O field set and 
set_default

issue11030
review374421002
(grafted from 4585dcb48a1a96f78c776ac9612d4c8fb4e6d265)
diffstat:

 src/model.js |  15 +++
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r 143b7aeabd08 -r d9b1352a9a5b src/model.js
--- a/src/model.js  Wed Feb 16 21:59:31 2022 +0100
+++ b/src/model.js  Tue Feb 08 18:55:25 2022 +0100
@@ -2054,16 +2054,15 @@
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-Sao.rpc({
+var remote_rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session).done(store_rec_name.bind(this)).done(
-function() {
-record.group.root_group.screens.forEach(
-function(screen) {
-screen.display();
-});
-   });
+}, record.model.session, false);
+store_rec_name(remote_rec_name);
+record.group.root_group.screens.forEach(
+function (screen) {
+screen.display();
+});
 } else {
 store_rec_name.call(this, [{'rec_name': rec_name}]);
 }



[tryton-commits] changeset in sao:6.2 Remove store_rec_name function and use sync...

2022-02-26 Thread Cédric Krier
changeset 4a390f1ab123 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset=4a390f1ab123
description:
Remove store_rec_name function and use synchronous RPC call

issue11249
review397321002
(grafted from 7e806a5beef6f67904860e9e54cebd2731d90d80)
diffstat:

 src/model.js |  31 ---
 1 files changed, 8 insertions(+), 23 deletions(-)

diffs (65 lines):

diff -r 1fa900154756 -r 4a390f1ab123 src/model.js
--- a/src/model.js  Tue Feb 08 18:55:25 2022 +0100
+++ b/src/model.js  Tue Feb 22 23:01:11 2022 +0100
@@ -2067,26 +2067,16 @@
 set: function(record, value) {
 var rec_name = (
 record._values[this.name + '.'] || {}).rec_name || '';
-var store_rec_name = function(rec_name) {
-Sao.setdefault(
-record._values, this.name + '.', {})
-.rec_name = rec_name[0].rec_name;
-};
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-var remote_rec_name = Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session, false);
-store_rec_name(remote_rec_name);
-record.group.root_group.screens.forEach(
-function (screen) {
-screen.display();
-});
-} else {
-store_rec_name.call(this, [{'rec_name': rec_name}]);
+}, record.model.session, false)[0].rec_name;
 }
+Sao.setdefault(
+record._values, this.name + '.', {}).rec_name = rec_name;
 record._values[this.name] = value;
 },
 set_client: function(record, value, force_change) {
@@ -2637,26 +2627,21 @@
 }
 var rec_name = (
 record._values[this.name + '.'] || {}).rec_name || '';
-var store_rec_name = function(rec_name) {
-Sao.setdefault(
-record._values, this.name + '.', {}).rec_name = rec_name;
-}.bind(this);
 if (ref_model && ref_id !== null && ref_id >= 0) {
 if (!rec_name && ref_id >= 0) {
-Sao.rpc({
+rec_name = Sao.rpc({
 'method': 'model.' + ref_model + '.read',
 'params': [[ref_id], ['rec_name'], 
record.get_context()]
-}, record.model.session).done(function(result) {
-store_rec_name(result[0].rec_name);
-});
+}, record.model.session, false)[0].rec_name;
 }
 } else if (ref_model) {
 rec_name = '';
 } else {
 rec_name = ref_id;
 }
+Sao.setdefault(
+record._values, this.name + '.', {}).rec_name = rec_name;
 record._values[this.name] = [ref_model, ref_id];
-store_rec_name(rec_name);
 },
 get_on_change_value: function(record) {
 if ((record.group.parent_name == this.name) &&



[tryton-commits] changeset in sao:6.2 Return rec_name RPC call promise when avail...

2022-02-26 Thread Nicolas Évrard
changeset 1fa900154756 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset=1fa900154756
description:
Return rec_name RPC call promise when available in M2O field set and 
set_default

issue11030
review374421002
(grafted from 4585dcb48a1a96f78c776ac9612d4c8fb4e6d265)
diffstat:

 src/model.js |  15 +++
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r ea8f5d48d503 -r 1fa900154756 src/model.js
--- a/src/model.js  Wed Feb 16 21:59:03 2022 +0100
+++ b/src/model.js  Tue Feb 08 18:55:25 2022 +0100
@@ -2075,16 +2075,15 @@
 if (!rec_name && (value >= 0) && (value !== null)) {
 var model_name = record.model.fields[this.name].description
 .relation;
-Sao.rpc({
+var remote_rec_name = Sao.rpc({
 'method': 'model.' + model_name + '.read',
 'params': [[value], ['rec_name'], record.get_context()]
-}, record.model.session).done(store_rec_name.bind(this)).done(
-function() {
-record.group.root_group.screens.forEach(
-function(screen) {
-screen.display();
-});
-   });
+}, record.model.session, false);
+store_rec_name(remote_rec_name);
+record.group.root_group.screens.forEach(
+function (screen) {
+screen.display();
+});
 } else {
 store_rec_name.call(this, [{'rec_name': rec_name}]);
 }



[tryton-commits] changeset in modules/stock_package_shipping_dpd:6.2 Test length ...

2022-02-26 Thread Cédric Krier
changeset f2c858840b4e in modules/stock_package_shipping_dpd:6.2
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=f2c858840b4e
description:
Test length of email value

issue11237
(grafted from d53e184f945aa81bfb29ff8fcc224307c871b912)
diffstat:

 stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3b7881b7d36a -r f2c858840b4e stock.py
--- a/stock.py  Thu Feb 17 00:39:44 2022 +0100
+++ b/stock.py  Sat Feb 26 11:18:15 2022 +0100
@@ -224,7 +224,7 @@
 if phone:
 shipping_party['phone'] = phone.value[:30]
 email = party.contact_mechanism_get('email')
-if email and len(email) <= 50:
+if email and len(email.value) <= 50:
 shipping_party['email'] = email.value
 
 return shipping_party



[tryton-commits] changeset in modules/stock_package_shipping_dpd:default Do not t...

2022-02-26 Thread Cédric Krier
changeset ff9c68696959 in modules/stock_package_shipping_dpd:default
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=ff9c68696959
description:
Do not truncate phone number

If the number is too long, we must not fill it.

issue11237
diffstat:

 stock.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r d53e184f945a -r ff9c68696959 stock.py
--- a/stock.py  Sat Feb 26 11:18:15 2022 +0100
+++ b/stock.py  Sat Feb 26 11:19:43 2022 +0100
@@ -223,8 +223,8 @@
 shipping_party['name2'] = party.full_name[:35]
 
 phone = party.contact_mechanism_get({'phone', 'mobile'})
-if phone:
-shipping_party['phone'] = phone.value[:30]
+if phone and len(phone.value) <= 30:
+shipping_party['phone'] = phone.value
 email = party.contact_mechanism_get('email')
 if email and len(email.value) <= 50:
 shipping_party['email'] = email.value



[tryton-commits] changeset in modules/stock_package_shipping_dpd:default Test len...

2022-02-26 Thread Cédric Krier
changeset d53e184f945a in modules/stock_package_shipping_dpd:default
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=d53e184f945a
description:
Test length of email value

issue11237
diffstat:

 stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f1b43df4a83d -r d53e184f945a stock.py
--- a/stock.py  Thu Feb 17 00:39:44 2022 +0100
+++ b/stock.py  Sat Feb 26 11:18:15 2022 +0100
@@ -226,7 +226,7 @@
 if phone:
 shipping_party['phone'] = phone.value[:30]
 email = party.contact_mechanism_get('email')
-if email and len(email) <= 50:
+if email and len(email.value) <= 50:
 shipping_party['email'] = email.value
 
 return shipping_party



[tryton-commits] changeset in modules/stock_package_shipping_dpd:5.0 Do not trunc...

2022-02-26 Thread Cédric Krier
changeset 4762296c56c4 in modules/stock_package_shipping_dpd:5.0
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=4762296c56c4
description:
Do not truncate email address

If the address is too long, we must not fill it.

issue11237
review387901002
(grafted from f1b43df4a83d7316d098b7d7c09fc9b3ae5d6c1a)
diffstat:

 stock.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r c7cbc698f72b -r 4762296c56c4 stock.py
--- a/stock.py  Sat Jan 01 18:05:50 2022 +0100
+++ b/stock.py  Thu Feb 17 00:39:44 2022 +0100
@@ -195,8 +195,8 @@
 email = mechanism.value
 if phone:
 shipping_party['phone'] = phone[:30]
-if email:
-shipping_party['email'] = email[:50]
+if len(email) <= 50:
+shipping_party['email'] = email
 
 return shipping_party
 



[tryton-commits] changeset in modules/stock_package_shipping_dpd:6.0 Do not trunc...

2022-02-26 Thread Cédric Krier
changeset 1a70e8c3346d in modules/stock_package_shipping_dpd:6.0
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=1a70e8c3346d
description:
Do not truncate email address

If the address is too long, we must not fill it.

issue11237
review387901002
(grafted from f1b43df4a83d7316d098b7d7c09fc9b3ae5d6c1a)
diffstat:

 stock.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 442c5d0bf952 -r 1a70e8c3346d stock.py
--- a/stock.py  Sat Jan 01 18:01:21 2022 +0100
+++ b/stock.py  Thu Feb 17 00:39:44 2022 +0100
@@ -224,8 +224,8 @@
 email = mechanism.value
 if phone:
 shipping_party['phone'] = phone[:30]
-if email:
-shipping_party['email'] = email[:50]
+if len(email) <= 50:
+shipping_party['email'] = email
 
 return shipping_party
 



[tryton-commits] changeset in modules/stock_package_shipping_dpd:6.2 Do not trunc...

2022-02-26 Thread Cédric Krier
changeset 3b7881b7d36a in modules/stock_package_shipping_dpd:6.2
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset=3b7881b7d36a
description:
Do not truncate email address

If the address is too long, we must not fill it.

issue11237
review387901002
(grafted from f1b43df4a83d7316d098b7d7c09fc9b3ae5d6c1a)
diffstat:

 stock.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r fd30f92c1065 -r 3b7881b7d36a stock.py
--- a/stock.py  Sat Jan 01 17:57:47 2022 +0100
+++ b/stock.py  Thu Feb 17 00:39:44 2022 +0100
@@ -224,8 +224,8 @@
 if phone:
 shipping_party['phone'] = phone.value[:30]
 email = party.contact_mechanism_get('email')
-if email:
-shipping_party['email'] = email.value[:50]
+if email and len(email) <= 50:
+shipping_party['email'] = email.value
 
 return shipping_party
 



[tryton-commits] changeset in modules/stock:6.0 Round quantity computing in searc...

2022-02-26 Thread Cédric Krier
changeset ce7fdbe43c41 in modules/stock:6.0
details: https://hg.tryton.org/modules/stock?cmd=changeset=ce7fdbe43c41
description:
Round quantity computing in search clause

The internal quantity is stored without precision constraint and so the 
sum
result of many rows cumulate the rounding issue.
So the quantity must be rounded to return correct result when operator 
is
equality.
But as getting the digits from the product default uom would require to 
make
many joins, the simplest and more efficient solution is to use the 
highest
digits of the units.

issue11235
review390001002
(grafted from 4b8495cb0efdfb71f11a7520967ed5ef9d9dfca9)
diffstat:

 move.py |  12 ++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 825771a92e9a -r ce7fdbe43c41 move.py
--- a/move.py   Wed Feb 16 23:48:06 2022 +0100
+++ b/move.py   Thu Feb 17 00:37:39 2022 +0100
@@ -8,8 +8,9 @@
 from itertools import groupby
 
 from sql import Literal, Union, Column, Null, For
-from sql.aggregate import Sum
+from sql.aggregate import Max, Sum
 from sql.conditionals import Coalesce, Case
+from sql.functions import Round
 
 from trytond.i18n import gettext
 from trytond.model import Workflow, Model, ModelView, ModelSQL, fields, Check
@@ -119,6 +120,8 @@
 pool = Pool()
 Product = pool.get('product.product')
 Move = pool.get('stock.move')
+Uom = pool.get('product.uom')
+uom = Uom.__table__()
 
 if not location_ids or not domain:
 return []
@@ -136,7 +139,12 @@
 query = Move.compute_quantities_query(
 location_ids, with_childs, grouping=grouping)
 col_id = Column(query, grouping[position])
-quantity = Sum(query.quantity)
+# We need to round the result to have same result as
+# products_by_location but as we do not have the unit, we use
+# the biggest digits of all unit as best approximation.
+quantity = Round(
+fields.Numeric('quantity').sql_cast(Sum(query.quantity)),
+uom.select(Max(uom.digits)))
 group_by = [Column(query, key).as_(key) for key in grouping]
 return [('id', 'in', query.select(
 col_id,



[tryton-commits] changeset in modules/stock:6.2 Round quantity computing in searc...

2022-02-26 Thread Cédric Krier
changeset 1959ef598f28 in modules/stock:6.2
details: https://hg.tryton.org/modules/stock?cmd=changeset=1959ef598f28
description:
Round quantity computing in search clause

The internal quantity is stored without precision constraint and so the 
sum
result of many rows cumulate the rounding issue.
So the quantity must be rounded to return correct result when operator 
is
equality.
But as getting the digits from the product default uom would require to 
make
many joins, the simplest and more efficient solution is to use the 
highest
digits of the units.

issue11235
review390001002
(grafted from 4b8495cb0efdfb71f11a7520967ed5ef9d9dfca9)
diffstat:

 move.py |  12 ++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r b7294ddff0e5 -r 1959ef598f28 move.py
--- a/move.py   Wed Feb 16 23:47:36 2022 +0100
+++ b/move.py   Thu Feb 17 00:37:39 2022 +0100
@@ -8,8 +8,9 @@
 from itertools import groupby
 
 from sql import Literal, Union, Column, Null, For
-from sql.aggregate import Sum
+from sql.aggregate import Max, Sum
 from sql.conditionals import Coalesce, Case
+from sql.functions import Round
 
 from trytond.i18n import gettext
 from trytond.model import Workflow, Model, ModelView, ModelSQL, fields, Check
@@ -119,6 +120,8 @@
 pool = Pool()
 Product = pool.get('product.product')
 Move = pool.get('stock.move')
+Uom = pool.get('product.uom')
+uom = Uom.__table__()
 
 if not location_ids or not domain:
 return []
@@ -136,7 +139,12 @@
 query = Move.compute_quantities_query(
 location_ids, with_childs, grouping=grouping)
 col_id = Column(query, grouping[position])
-quantity = Sum(query.quantity)
+# We need to round the result to have same result as
+# products_by_location but as we do not have the unit, we use
+# the biggest digits of all unit as best approximation.
+quantity = Round(
+fields.Numeric('quantity').sql_cast(Sum(query.quantity)),
+uom.select(Max(uom.digits)))
 group_by = [Column(query, key).as_(key) for key in grouping]
 return [('id', 'in', query.select(
 col_id,



[tryton-commits] changeset in modules/sale_supply_production:6.0 Plan production ...

2022-02-26 Thread Adrià Tarroja Caubet
changeset 12da10733024 in modules/sale_supply_production:6.0
details: 
https://hg.tryton.org/modules/sale_supply_production?cmd=changeset=12da10733024
description:
Plan production for today when there is no shipping date

issue11258
review356031002
(grafted from 947ef95c15d70bc3c30670f9898b3dd897aee62f)
diffstat:

 sale.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cd39b13a5377 -r 12da10733024 sale.py
--- a/sale.py   Mon May 03 16:06:09 2021 +0200
+++ b/sale.py   Fri Feb 18 09:40:35 2022 +0100
@@ -85,7 +85,7 @@
 for l in invoice_lines)):
 return
 
-date = self.shipping_date
+date = self.shipping_date or today
 if date <= today:
 date = today
 else:



[tryton-commits] changeset in modules/sale_supply_production:6.2 Plan production ...

2022-02-26 Thread Adrià Tarroja Caubet
changeset fcf8e2994421 in modules/sale_supply_production:6.2
details: 
https://hg.tryton.org/modules/sale_supply_production?cmd=changeset=fcf8e2994421
description:
Plan production for today when there is no shipping date

issue11258
review356031002
(grafted from 947ef95c15d70bc3c30670f9898b3dd897aee62f)
diffstat:

 sale.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 598405106d82 -r fcf8e2994421 sale.py
--- a/sale.py   Mon Nov 01 17:32:38 2021 +0100
+++ b/sale.py   Fri Feb 18 09:40:35 2022 +0100
@@ -89,7 +89,7 @@
 for l in invoice_lines)):
 return
 
-date = self.shipping_date
+date = self.shipping_date or today
 if date <= today:
 date = today
 else:



[tryton-commits] changeset in modules/sale:5.0 Reuse planned shipping date when a...

2022-02-26 Thread Adrià Tarroja Caubet
changeset a8fd858ca41d in modules/sale:5.0
details: https://hg.tryton.org/modules/sale?cmd=changeset=a8fd858ca41d
description:
Reuse planned shipping date when all moves are cancelled

issue11258
review366751002
(grafted from 3bfef79b48cbaad9b4832c89dd081a37bbb07b57)
diffstat:

 sale.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r 2b298943cc39 -r a8fd858ca41d sale.py
--- a/sale.py   Wed Feb 16 23:52:13 2022 +0100
+++ b/sale.py   Fri Feb 18 09:34:30 2022 +0100
@@ -1280,10 +1280,10 @@
 def on_change_with_shipping_date(self, name=None):
 pool = Pool()
 Date = pool.get('ir.date')
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancel']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancel'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 if self.product and self.quantity is not None and self.quantity > 0:
 date = self.sale.sale_date if self.sale else None



[tryton-commits] changeset in modules/sale:6.0 Reuse planned shipping date when a...

2022-02-26 Thread Adrià Tarroja Caubet
changeset 7d1c5191a580 in modules/sale:6.0
details: https://hg.tryton.org/modules/sale?cmd=changeset=7d1c5191a580
description:
Reuse planned shipping date when all moves are cancelled

issue11258
review366751002
(grafted from 3bfef79b48cbaad9b4832c89dd081a37bbb07b57)
diffstat:

 sale.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r f6cb77954888 -r 7d1c5191a580 sale.py
--- a/sale.py   Wed Feb 16 23:51:54 2022 +0100
+++ b/sale.py   Fri Feb 18 09:34:30 2022 +0100
@@ -1418,10 +1418,10 @@
 
 @fields.depends('moves', methods=['planned_shipping_date'])
 def on_change_with_shipping_date(self, name=None):
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancelled']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancelled'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 return self.planned_shipping_date
 



[tryton-commits] changeset in modules/sale:6.2 Reuse planned shipping date when a...

2022-02-26 Thread Adrià Tarroja Caubet
changeset 06852e6de3f3 in modules/sale:6.2
details: https://hg.tryton.org/modules/sale?cmd=changeset=06852e6de3f3
description:
Reuse planned shipping date when all moves are cancelled

issue11258
review366751002
(grafted from 3bfef79b48cbaad9b4832c89dd081a37bbb07b57)
diffstat:

 sale.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r f35d1ae82e33 -r 06852e6de3f3 sale.py
--- a/sale.py   Wed Feb 16 23:51:31 2022 +0100
+++ b/sale.py   Fri Feb 18 09:34:30 2022 +0100
@@ -1434,10 +1434,10 @@
 
 @fields.depends('moves', methods=['planned_shipping_date'])
 def on_change_with_shipping_date(self, name=None):
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancelled']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancelled'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 return self.planned_shipping_date
 



[tryton-commits] changeset in modules/purchase_request:6.0 Remove company context...

2022-02-26 Thread Sergi Almacellas Abellana
changeset 65ac65fd2671 in modules/purchase_request:6.0
details: 
https://hg.tryton.org/modules/purchase_request?cmd=changeset=65ac65fd2671
description:
Remove company context domain

issue11222
review393641002
(grafted from 3b11b7aa9bb0dacb239c6699ad09ae97270cc563)
diffstat:

 purchase_request.py |  7 ++-
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r b99f1828c6e1 -r 65ac65fd2671 purchase_request.py
--- a/purchase_request.py   Mon May 03 15:57:04 2021 +0200
+++ b/purchase_request.py   Fri Feb 18 13:20:44 2022 +0100
@@ -9,7 +9,7 @@
 from trytond.model import ModelView, ModelSQL, fields
 from trytond.model.exceptions import AccessError
 from trytond.wizard import Wizard, StateView, StateTransition, Button
-from trytond.pyson import If, In, Eval, Bool
+from trytond.pyson import If, Eval, Bool
 from trytond.tools import sortable_values, firstline
 from trytond.transaction import Transaction
 from trytond.pool import Pool
@@ -89,10 +89,7 @@
 purchase = fields.Function(fields.Many2One('purchase.purchase',
 'Purchase'), 'get_purchase', searcher='search_purchase')
 company = fields.Many2One('company.company', 'Company', required=True,
-readonly=True, domain=[
-('id', If(In('company', Eval('context', {})), '=', '!='),
-Eval('context', {}).get('company', -1)),
-])
+readonly=True)
 origin = fields.Reference('Origin', selection='get_origin', readonly=True)
 exception_ignored = fields.Boolean('Ignored Exception')
 



[tryton-commits] changeset in modules/purchase_request:6.2 Remove company context...

2022-02-26 Thread Sergi Almacellas Abellana
changeset 7e0f2b4ffb03 in modules/purchase_request:6.2
details: 
https://hg.tryton.org/modules/purchase_request?cmd=changeset=7e0f2b4ffb03
description:
Remove company context domain

issue11222
review393641002
(grafted from 3b11b7aa9bb0dacb239c6699ad09ae97270cc563)
diffstat:

 purchase_request.py |  7 ++-
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r cd5312c98d47 -r 7e0f2b4ffb03 purchase_request.py
--- a/purchase_request.py   Mon Nov 01 17:23:15 2021 +0100
+++ b/purchase_request.py   Fri Feb 18 13:20:44 2022 +0100
@@ -9,7 +9,7 @@
 from trytond.model import ModelView, ModelSQL, fields
 from trytond.model.exceptions import AccessError
 from trytond.wizard import Wizard, StateView, StateTransition, Button
-from trytond.pyson import If, In, Eval, Bool
+from trytond.pyson import If, Eval, Bool
 from trytond.tools import sortable_values, firstline
 from trytond.transaction import Transaction
 from trytond.pool import Pool
@@ -89,10 +89,7 @@
 purchase = fields.Function(fields.Many2One('purchase.purchase',
 'Purchase'), 'get_purchase', searcher='search_purchase')
 company = fields.Many2One('company.company', 'Company', required=True,
-readonly=True, domain=[
-('id', If(In('company', Eval('context', {})), '=', '!='),
-Eval('context', {}).get('company', -1)),
-])
+readonly=True)
 origin = fields.Reference('Origin', selection='get_origin', readonly=True)
 exception_ignored = fields.Boolean('Ignored Exception')
 



[tryton-commits] changeset in modules/purchase:5.0 Reuse planned delivery date wh...

2022-02-26 Thread Cédric Krier
changeset 1b3a4ea77517 in modules/purchase:5.0
details: https://hg.tryton.org/modules/purchase?cmd=changeset=1b3a4ea77517
description:
Reuse planned delivery date when all moves are cancelled

issue11258
(grafted from 55722fc603cd002a5324127a523ed8d5c4689662)
diffstat:

 purchase.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r ea01dd1a8dc4 -r 1b3a4ea77517 purchase.py
--- a/purchase.py   Wed Feb 16 23:55:34 2022 +0100
+++ b/purchase.py   Fri Feb 18 09:40:01 2022 +0100
@@ -1313,10 +1313,10 @@
 def on_change_with_delivery_date(self, name=None):
 pool = Pool()
 Date = pool.get('ir.date')
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancel']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancel'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 delivery_date = None
 if self.delivery_date_edit:



[tryton-commits] changeset in modules/purchase:6.0 Reuse planned delivery date wh...

2022-02-26 Thread Cédric Krier
changeset ad533e2134d1 in modules/purchase:6.0
details: https://hg.tryton.org/modules/purchase?cmd=changeset=ad533e2134d1
description:
Reuse planned delivery date when all moves are cancelled

issue11258
(grafted from 55722fc603cd002a5324127a523ed8d5c4689662)
diffstat:

 purchase.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r adfeb0181261 -r ad533e2134d1 purchase.py
--- a/purchase.py   Wed Feb 16 23:55:11 2022 +0100
+++ b/purchase.py   Fri Feb 18 09:40:01 2022 +0100
@@ -1445,10 +1445,10 @@
 
 @fields.depends('moves', methods=['planned_delivery_date'])
 def on_change_with_delivery_date(self, name=None):
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancelled']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancelled'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 return self.planned_delivery_date
 



[tryton-commits] changeset in modules/purchase:6.2 Reuse planned delivery date wh...

2022-02-26 Thread Cédric Krier
changeset 6d2f795bb851 in modules/purchase:6.2
details: https://hg.tryton.org/modules/purchase?cmd=changeset=6d2f795bb851
description:
Reuse planned delivery date when all moves are cancelled

issue11258
(grafted from 55722fc603cd002a5324127a523ed8d5c4689662)
diffstat:

 purchase.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r b48ec8d99589 -r 6d2f795bb851 purchase.py
--- a/purchase.py   Wed Feb 16 23:54:46 2022 +0100
+++ b/purchase.py   Fri Feb 18 09:40:01 2022 +0100
@@ -1452,10 +1452,10 @@
 
 @fields.depends('moves', methods=['planned_delivery_date'])
 def on_change_with_delivery_date(self, name=None):
-if self.moves:
+moves = [m for m in self.moves if m.state != 'cancelled']
+if moves:
 dates = filter(
-None, (m.effective_date or m.planned_date for m in self.moves
-if m.state != 'cancelled'))
+None, (m.effective_date or m.planned_date for m in moves))
 return min(dates, default=None)
 return self.planned_delivery_date
 



[tryton-commits] changeset in modules/notification_email:6.2 Use record as recipi...

2022-02-26 Thread Sergi Almacellas Abellana
changeset 5b238116083d in modules/notification_email:6.2
details: 
https://hg.tryton.org/modules/notification_email?cmd=changeset=5b238116083d
description:
Use record as recipient for id fields

issue11033
review383751002
(grafted from cce8a58fa33ca1f2033776b17bfffa444b8cba69)
diffstat:

 notification.py |  16 +++-
 1 files changed, 11 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r b818b9674cb6 -r 5b238116083d notification.py
--- a/notification.py   Mon Nov 01 17:27:07 2021 +0100
+++ b/notification.py   Fri Feb 18 13:17:45 2022 +0100
@@ -246,11 +246,17 @@
 if logs:
 Log.create(logs)
 
+def _get_recipients(self, record, name):
+if name == 'id':
+return record
+else:
+return getattr(record, name, None)
+
 def _get_to(self, record):
 to = []
 languagues = set()
 if self.recipients:
-recipients = getattr(record, self.recipients.name, None)
+recipients = self._get_recipients(record, self.recipients.name)
 if recipients:
 languagues.update(self._get_languages(recipients))
 to = self._get_addresses(recipients)
@@ -264,8 +270,8 @@
 cc = []
 languagues = set()
 if self.recipients_secondary:
-recipients_secondary = getattr(
-record, self.recipients_secondary.name, None)
+recipients_secondary = self._get_recipients(
+record, self.recipients_secondary.name)
 if recipients_secondary:
 languagues.update(
 self._get_languages(recipients_secondary))
@@ -280,8 +286,8 @@
 bcc = []
 languagues = set()
 if self.recipients_hidden:
-recipients_hidden = getattr(
-record, self.recipients_hidden.name, None)
+recipients_hidden = self._get_recipients(
+record, self.recipients_hidden.name)
 if recipients_hidden:
 languagues.update(self._get_languages(recipients_hidden))
 bcc = self._get_addresses(recipients_hidden)



[tryton-commits] changeset in modules/marketing_automation:6.0 Return redirect an...

2022-02-26 Thread Cédric Krier
changeset 8f665a846612 in modules/marketing_automation:6.0
details: 
https://hg.tryton.org/modules/marketing_automation?cmd=changeset=8f665a846612
description:
Return redirect and execute report with id

issue11227
review366731002
(grafted from 712dd652a666525e056f8ce985ea9e0a3e8d7434)
diffstat:

 routes.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0bf0253b5917 -r 8f665a846612 routes.py
--- a/routes.py Sat May 15 22:36:08 2021 +0200
+++ b/routes.py Sat Feb 12 02:35:41 2022 +0100
@@ -21,12 +21,12 @@
 record.block()
 next_ = request.args.get('next')
 if next_:
-redirect(next_)
+return redirect(next_)
 data = {
 'model': Record.__name__,
 }
 with Transaction().set_context(language=record.language):
-ext, content, _, _ = Report.execute([record], data)
+ext, content, _, _ = Report.execute([record.id], data)
 assert ext == 'html'
 return Response(content, 200, content_type='text/html')
 



[tryton-commits] changeset in modules/marketing_automation:6.2 Return redirect an...

2022-02-26 Thread Cédric Krier
changeset 99d880f868c9 in modules/marketing_automation:6.2
details: 
https://hg.tryton.org/modules/marketing_automation?cmd=changeset=99d880f868c9
description:
Return redirect and execute report with id

issue11227
review366731002
(grafted from 712dd652a666525e056f8ce985ea9e0a3e8d7434)
diffstat:

 routes.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ff3d82c51495 -r 99d880f868c9 routes.py
--- a/routes.py Mon Nov 01 17:22:13 2021 +0100
+++ b/routes.py Sat Feb 12 02:35:41 2022 +0100
@@ -21,12 +21,12 @@
 record.block()
 next_ = request.args.get('next')
 if next_:
-redirect(next_)
+return redirect(next_)
 data = {
 'model': Record.__name__,
 }
 with Transaction().set_context(language=record.language):
-ext, content, _, _ = Report.execute([record], data)
+ext, content, _, _ = Report.execute([record.id], data)
 assert ext == 'html'
 return Response(content, 200, content_type='text/html')
 



[tryton-commits] changeset in modules/account_rule:6.2 Use today when context dat...

2022-02-26 Thread Cédric Krier
changeset 2aacacb4efdb in modules/account_rule:6.2
details: 
https://hg.tryton.org/modules/account_rule?cmd=changeset=2aacacb4efdb
description:
Use today when context date is empty

issue10983
review389951002
(grafted from 0b70dbf225437e75c15a1b937120beeb399ce1c3)
diffstat:

 account.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1f4deeb8691a -r 2aacacb4efdb account.py
--- a/account.pyMon Nov 01 17:35:49 2021 +0100
+++ b/account.pySat Feb 12 02:30:18 2022 +0100
@@ -105,7 +105,7 @@
 'type': context.get('account_type'),
 'return_': context.get('return_', False),
 }
-date = context.get('date', today)
+date = context.get('date') or today
 rules = cls.search([
 ('company', '=', context.get('company', -1)),
 ['OR',



[tryton-commits] changeset in modules/account_payment_stripe:6.0 Backport

2022-02-26 Thread Cédric Krier
changeset 8cb4fe63452a in modules/account_payment_stripe:6.0
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset=8cb4fe63452a
description:
Backport
diffstat:

 payment.py|  41 +
 view/account_form.xml |   3 +++
 2 files changed, 32 insertions(+), 12 deletions(-)

diffs (85 lines):

diff -r e1679c1f2355 -r 8cb4fe63452a payment.py
--- a/payment.pyFri Nov 05 00:17:15 2021 +0100
+++ b/payment.pySat Feb 26 11:41:26 2022 +0100
@@ -1,5 +1,6 @@
 # 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 as dt
 import uuid
 import logging
 import urllib.parse
@@ -974,6 +975,9 @@
 depends=['webhook_identifier'],
 help="The Stripe's signing secret of the webhook.")
 last_event = fields.Char("Last Event", readonly=True)
+setup_intent_delay = fields.TimeDelta(
+"Setup Intent Delay", required=True,
+help="The delay before cancelling setup intent not succeeded.")
 
 @classmethod
 def __setup__(cls):
@@ -1003,6 +1007,10 @@
 % url_part))
 
 @classmethod
+def default_setup_intent_delay(cls):
+return dt.timedelta(days=30)
+
+@classmethod
 def fetch_events(cls):
 """Fetch last events of each account without webhook and process them
 
@@ -1715,21 +1723,30 @@
 # Use clear cache after commit
 customer = cls(customer.id)
 setup_intent = customer.stripe_setup_intent
-if not setup_intent or setup_intent.status != 'succeeded':
+if not setup_intent:
+continue
+if setup_intent.status not in {'succeeded', 'canceled'}:
+delay = customer.stripe_account.setup_intent_delay
+expiration = dt.datetime.now() - delay
+if dt.datetime.fromtimstamp(setup_intent.created) < expiration:
+stripe.SetupIntent.cancel(
+customer.stripe_customer_id,
+api_key=customer.stripe_account.secret_key)
 continue
 customer.lock()
 try:
-if customer.stripe_customer_id:
-stripe.PaymentMethod.attach(
-setup_intent.payment_method,
-customer=customer.stripe_customer_id,
-api_key=customer.stripe_account.secret_key)
-else:
-cu = stripe.Customer.create(
-api_key=customer.stripe_account.secret_key,
-payment_method=setup_intent.payment_method,
-**customer._customer_parameters())
-customer.stripe_customer_id = cu.id
+if setup_intent.status == 'succeeded':
+if customer.stripe_customer_id:
+stripe.PaymentMethod.attach(
+setup_intent.payment_method,
+customer=customer.stripe_customer_id,
+api_key=customer.stripe_account.secret_key)
+else:
+cu = stripe.Customer.create(
+api_key=customer.stripe_account.secret_key,
+payment_method=setup_intent.payment_method,
+**customer._customer_parameters())
+customer.stripe_customer_id = cu.id
 except (stripe.error.RateLimitError,
 stripe.error.APIConnectionError) as e:
 logger.warning(str(e))
diff -r e1679c1f2355 -r 8cb4fe63452a view/account_form.xml
--- a/view/account_form.xml Fri Nov 05 00:17:15 2021 +0100
+++ b/view/account_form.xml Sat Feb 26 11:41:26 2022 +0100
@@ -13,4 +13,7 @@
 
 
 
+
+
+
 



[tryton-commits] changeset in modules/account:5.0 Invert sign of credit instead o...

2022-02-26 Thread Cédric Krier
changeset 778d46f36be0 in modules/account:5.0
details: https://hg.tryton.org/modules/account?cmd=changeset=778d46f36be0
description:
Invert sign of credit instead of using absolute value of tax code

Since issue9743 the summed amounts of tax line can have different signs 
so we
can not use anymore the absolute value.

issue11242
review360901002
(grafted from 75866feec26664d4165dcb845fe2c9d9c5be738f)
diffstat:

 tax.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r bdaa217a1ba9 -r 778d46f36be0 tax.py
--- a/tax.pyThu Feb 17 00:08:33 2022 +0100
+++ b/tax.pyMon Feb 21 00:57:41 2022 +0100
@@ -374,7 +374,8 @@
 @property
 def value(self):
 value = getattr(self.tax, '%s_%s_amount' % (self.type, self.amount))
-value = abs(value)
+if self.type == 'credit':
+value *= -1
 if self.operator == '-':
 value *= -1
 return value



[tryton-commits] changeset in modules/account:6.0 Invert sign of credit instead o...

2022-02-26 Thread Cédric Krier
changeset f1a3f09741d6 in modules/account:6.0
details: https://hg.tryton.org/modules/account?cmd=changeset=f1a3f09741d6
description:
Invert sign of credit instead of using absolute value of tax code

Since issue9743 the summed amounts of tax line can have different signs 
so we
can not use anymore the absolute value.

issue11242
review360901002
(grafted from 75866feec26664d4165dcb845fe2c9d9c5be738f)
diffstat:

 tax.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r a1732fb6caad -r f1a3f09741d6 tax.py
--- a/tax.pyThu Feb 17 00:08:07 2022 +0100
+++ b/tax.pyMon Feb 21 00:57:41 2022 +0100
@@ -411,7 +411,8 @@
 @property
 def value(self):
 value = getattr(self.tax, '%s_%s_amount' % (self.type, self.amount))
-value = abs(value)
+if self.type == 'credit':
+value *= -1
 if self.operator == '-':
 value *= -1
 return value



[tryton-commits] changeset in modules/account:6.2 Invert sign of credit instead o...

2022-02-26 Thread Cédric Krier
changeset a453b7a16eba in modules/account:6.2
details: https://hg.tryton.org/modules/account?cmd=changeset=a453b7a16eba
description:
Invert sign of credit instead of using absolute value of tax code

Since issue9743 the summed amounts of tax line can have different signs 
so we
can not use anymore the absolute value.

issue11242
review360901002
(grafted from 75866feec26664d4165dcb845fe2c9d9c5be738f)
diffstat:

 tax.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r cade63a3980c -r a453b7a16eba tax.py
--- a/tax.pyThu Feb 17 00:07:45 2022 +0100
+++ b/tax.pyMon Feb 21 00:57:41 2022 +0100
@@ -380,7 +380,8 @@
 @property
 def value(self):
 value = getattr(self.tax, '%s_%s_amount' % (self.type, self.amount))
-value = abs(value)
+if self.type == 'credit':
+value *= -1
 if self.operator == '-':
 value *= -1
 return value