From f97a29b2bc5727acf5d53b7fee38dc3c16661377 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 19:13:07 +0200 Subject: [PATCH 01/14] [ADD] #141 show child company name beneath logo --- bankayma_base/views/templates.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/bankayma_base/views/templates.xml b/bankayma_base/views/templates.xml index cc37823e1..945768c36 100644 --- a/bankayma_base/views/templates.xml +++ b/bankayma_base/views/templates.xml @@ -42,6 +42,7 @@ style="max-height: 45px;" alt="Child logo" /> +
From e816e6c7f526fb3838c864d08904ea0b66d89740 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 19:29:48 +0200 Subject: [PATCH 02/14] [ADD] #141 hide fpos legal notes on invoices, show on bills --- bankayma_account/views/templates.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bankayma_account/views/templates.xml b/bankayma_account/views/templates.xml index ccdae0f5e..64153c2e7 100644 --- a/bankayma_account/views/templates.xml +++ b/bankayma_account/views/templates.xml @@ -271,4 +271,12 @@ + + From 4483053aee2d19823a94294a24f44b46cb0503e9 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 19:59:15 +0200 Subject: [PATCH 03/14] [ADD] #120, #122 hide a lot of fields on move forms --- bankayma_account/views/account_move.xml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/bankayma_account/views/account_move.xml b/bankayma_account/views/account_move.xml index 1a9b9db5e..25ca9fd0f 100644 --- a/bankayma_account/views/account_move.xml +++ b/bankayma_account/views/account_move.xml @@ -36,6 +36,39 @@ 1 + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + + + 1 + bankayma_product_domain + Item + + + Description + + + Tag From c192a619b9e0ff81eeaed816a5bfd788adf652b6 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 20:00:22 +0200 Subject: [PATCH 04/14] [ADD] translations --- bankayma_account/i18n/he_IL.po | 1019 ++++++++++++++++++++++++++++++++ bankayma_base/i18n/he_IL.po | 97 +++ 2 files changed, 1116 insertions(+) create mode 100644 bankayma_account/i18n/he_IL.po create mode 100644 bankayma_base/i18n/he_IL.po diff --git a/bankayma_account/i18n/he_IL.po b/bankayma_account/i18n/he_IL.po new file mode 100644 index 000000000..9aec3b48b --- /dev/null +++ b/bankayma_account/i18n/he_IL.po @@ -0,0 +1,1019 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bankayma_account +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-13 17:53+0000\n" +"PO-Revision-Date: 2023-06-13 17:53+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bankayma_account +#: model:mail.template,body_html:bankayma_account.template_vendor_invite +msgid "" +"

Invitation

\n" +"
Here is the link
\n" +" " +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_details_fields +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_account +msgid "Account" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_details_fields +msgid "Account number" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__active_domain +msgid "Active domain" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__partner_ids +msgid "Additional Contacts" +msgstr "" + +#. module: bankayma_account +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_all +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_income_all +msgid "All" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_journal__bankayma_restrict_intercompany_partner +msgid "Allow only companies" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_journal__bankayma_restrict_product_ids +msgid "Allowed products" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "Amount" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__attachment_ids +msgid "Attachments" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__author_id +msgid "Author" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__author_id +msgid "" +"Author of the message. If not set, email_from may hold an email address that" +" did not match any partner." +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Balance" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "Balance:" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_details_fields +msgid "Bank" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_res_partner_bank +msgid "Bank Accounts" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_bank_in +#: model:account.payment.method,name:bankayma_account.payment_method_bank_out +msgid "Bank transfer" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_attachment_ids +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_attachment_ids +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_attachment_ids +msgid "Bankayma Attachment" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_move_line__bankayma_immutable +msgid "Bankayma Immutable" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_move_line__bankayma_parent_move_line_id +msgid "Bankayma Parent Move Line" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_partner_domain +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_partner_domain +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_partner_domain +msgid "Bankayma Partner Domain" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_payment_method_id +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_payment_method_id +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_payment_method_id +msgid "Bankayma Payment Method" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_move_line__bankayma_product_domain +msgid "Bankayma Product Domain" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#: code:addons/bankayma_account/controllers/main.py:0 +#: code:addons/bankayma_account/controllers/main.py:0 +#, python-format +msgid "Banking information is mandatory for vendors" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_details_fields +msgid "Branch" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_setup_bank_manual_config__branch_code +#: model:ir.model.fields,field_description:bankayma_account.field_res_partner_bank__branch_code +msgid "Branch Code" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__can_edit_body +msgid "Can Edit Body" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_bankayma_company_create_form +msgid "Cancel" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_cash_in +#: model:account.payment.method,name:bankayma_account.payment_method_cash_out +msgid "Cash" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_account_fiscal_position__vendor_doc_mandatory +msgid "" +"Check this field to have vendors with this fiscal position upload a document" +" for every invoice" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_cheque_in +#: model:account.payment.method,name:bankayma_account.payment_method_cheque_out +msgid "Cheque" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Code" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment_register__comment +msgid "Comment" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_res_company +msgid "Companies" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "Company" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__company_code +msgid "Company Code" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_base_document_layout +msgid "Company Document Layout" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__company_name +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__name +msgid "Company Name" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__composition_mode +msgid "Composition mode" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "" +"Confirm\n" +" " +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__reply_to_force_new +msgid "Considers answers as new thread" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_res_partner +msgid "Contact" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__body +msgid "Contents" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_bankayma_company_create_form +msgid "Create" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_bankayma_company_create +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_company_create +msgid "Create Companies" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_bankayma_company_create +msgid "Create companies in bulk" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__create_uid +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__create_uid +msgid "Created by" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__create_date +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__create_date +msgid "Created on" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Customers/Suppliers" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_dashboard +msgid "Dashboard" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_defrayal_in +#: model:account.payment.method,name:bankayma_account.payment_method_defrayal_out +msgid "Defrayal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__auto_delete +msgid "Delete Emails" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__auto_delete_message +msgid "Delete Message Copy" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_move_form +msgid "Description" +msgstr ",תיאור" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__display_name +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__display_name +msgid "Display Name" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__auto_delete_message +msgid "" +"Do not keep a copy of the email in the document communication history (mass " +"mailing only)" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "Document" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__email_add_signature +msgid "Email Add Signature" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__email_layout_xmlid +msgid "Email Notification Layout" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_mail_template +msgid "Email Templates" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__email_from +msgid "" +"Email address of the sender. This field is set when no matching partner is " +"found and replaces the author_id field in the chatter." +msgstr "" + +#. module: bankayma_account +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense +msgid "Expense" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Expenses" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_payment_form +msgid "Fill in a comment..." +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_fiscal_position +msgid "Fiscal Position" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_details_fields +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "Fiscal position" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__email_from +msgid "From" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Here links to the moves being used to calculate the different values:" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__id +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__id +msgid "ID" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "In:" +msgstr "" + +#. module: bankayma_account +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_income +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Income" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Incoming" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_res_company__intercompany_purchase_journal_id +#: model:ir.model.fields,help:bankayma_account.field_res_company__intercompany_sale_journal_id +#: model:ir.model.fields,help:bankayma_account.field_res_config_settings__intercompany_purchase_journal_id +#: model:ir.model.fields,help:bankayma_account.field_res_config_settings__intercompany_sale_journal_id +msgid "Intercompany invoices will be forced to this journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__intercompany_purchase_journal_id +#: model:ir.model.fields,field_description:bankayma_account.field_res_config_settings__intercompany_purchase_journal_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.res_config_settings_view_form +msgid "Intercompany purchase journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__intercompany_sale_journal_id +#: model:ir.model.fields,field_description:bankayma_account.field_res_config_settings__intercompany_sale_journal_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.res_config_settings_view_form +msgid "Intercompany sale journal" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Internal" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_bankayma_vendor_invite_form +msgid "Invitation to the vendor portal" +msgstr "" + +#. module: bankayma_account +#: model:mail.template,name:bankayma_account.template_vendor_invite +#: model:mail.template,subject:bankayma_account.template_vendor_invite +msgid "Invitation to vendor portal" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_bankayma_vendor_invite_form +msgid "Invite vendors" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__is_mail_template_editor +msgid "Is Editor" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_move_form +msgid "Item" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_journal +msgid "Journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_move_line_name +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_move_line_name +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_move_line_name +msgid "Label" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__lang +msgid "Language" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create____last_update +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite____last_update +msgid "Last Modified on" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__write_uid +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__write_date +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__write_date +msgid "Last Updated on" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__is_log +msgid "Log as Internal Note" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__mail_activity_type_id +msgid "Mail Activity Type" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__reply_to_force_new +msgid "" +"Manage answers as new incoming emails instead of replies going to the same " +"thread." +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_fiscal_position__vendor_doc_mandatory +msgid "Mandatory document upload" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_position_form +msgid "Mandatory vendor document description" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_masav_in +#: model:account.payment.method,name:bankayma_account.payment_method_masav_out +msgid "Masav" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__record_name +msgid "Message Record Name" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__message_type +msgid "" +"Message type: email for email message, notification for system message, " +"comment for other messages such as user replies" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Name" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_move_in_invoice_type_draft +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_draft +msgid "New" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "New Invoice" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_move_in_invoice_new +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_new +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "New Vendor Bill" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_move_out_invoice_new +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_income_new +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "New invoice" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_breadcrumbs +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill +msgid "New vendor bill" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__notify +msgid "Notify followers" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__notify +msgid "Notify followers of the document (mass post only)" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/wizards/bankayma_company_create.py:0 +#, python-format +msgid "Only admin can cascade companies" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__lang +msgid "" +"Optional translation language (ISO code) to select when sending out an " +"email. If not set, the english version will be used. This should usually be " +"a placeholder expression that provides the appropriate language, e.g. {{ " +"object.partner_id.lang }}." +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__reply_to_mode +msgid "" +"Original Discussion: Answers go in the original document discussion thread. \n" +" Another Email Address: Answers go to the email address mentioned in the tracking message-id instead of original document discussion thread. \n" +" This has an impact on the generated message-id." +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_other_in +#: model:account.payment.method,name:bankayma_account.payment_method_other_out +msgid "Other" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "Out:" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Outgoing" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__mail_server_id +msgid "Outgoing mail server" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#, python-format +msgid "Overdue" +msgstr "" + +#. module: bankayma_account +#: model:product.template,name:bankayma_account.product_overhead_product_template +msgid "Overhead" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__overhead_account_id +#: model:ir.model.fields,field_description:bankayma_account.field_res_config_settings__overhead_account_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.res_config_settings_view_form +msgid "Overhead account" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/models/account_move.py:0 +#, python-format +msgid "" +"Overhead created in %(name)s" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/models/account_move.py:0 +#, python-format +msgid "" +"Overhead invoice for %(name)s" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_res_company__overhead_account_id +#: model:ir.model.fields,help:bankayma_account.field_res_config_settings__overhead_account_id +msgid "Overhead invoice lines will have this account" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_res_company__overhead_journal_id +#: model:ir.model.fields,help:bankayma_account.field_res_config_settings__overhead_journal_id +msgid "Overhead invoices will be created in this journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_res_company__overhead_payment_journal_id +#: model:ir.model.fields,help:bankayma_account.field_res_config_settings__overhead_payment_journal_id +msgid "Overhead invoices will be paid in this journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__overhead_journal_id +#: model:ir.model.fields,field_description:bankayma_account.field_res_config_settings__overhead_journal_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.res_config_settings_view_form +msgid "Overhead journal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_company__overhead_payment_journal_id +#: model:ir.model.fields,field_description:bankayma_account.field_res_config_settings__overhead_payment_journal_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.res_config_settings_view_form +msgid "Overhead payment journal" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#: model:ir.actions.act_window,name:bankayma_account.action_move_in_invoice_type_paid +#: model:ir.actions.act_window,name:bankayma_account.action_move_out_invoice_type_paid +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_paid +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_income_paid +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +#, python-format +msgid "Paid" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_base_document_layout__parent_id +msgid "Parent Company" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__parent_id +msgid "Parent Message" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices +msgid "Pay Me" +msgstr "" + +#. module: bankayma_account +#: model:account.payment.method,name:bankayma_account.payment_method_paypal_in +#: model:account.payment.method,name:bankayma_account.payment_method_paypal_out +msgid "PayPal" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_payment_method +msgid "Payment Methods" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_move_out_invoice_type_open +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_income_open +msgid "Pending payment" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_move_line_product_id +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_move_line_product_id +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_move_line_product_id +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Product" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Products" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Projects" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Rank" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_account_payment_register +msgid "Register Payment" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__res_id +msgid "Related Document ID" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__model +msgid "Related Document Model" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__render_model +msgid "Rendering Model" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__reply_to_mode +msgid "Replies" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__reply_to +msgid "Reply To" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__reply_to +msgid "" +"Reply email address. Setting the reply_to bypasses the automatic thread " +"creation." +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_res_partner__signup_group_ids +#: model:ir.model.fields,field_description:bankayma_account.field_res_users__signup_group_ids +msgid "Signup Group" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__subject +msgid "Subject" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__subtype_id +msgid "Subtype" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_partner_vat +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_partner_vat +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_partner_vat +msgid "Tax ID" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__template_company_id +msgid "Template company" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_account_bank_statement_line__bankayma_partner_vat +#: model:ir.model.fields,help:bankayma_account.field_account_move__bankayma_partner_vat +#: model:ir.model.fields,help:bankayma_account.field_account_payment__bankayma_partner_vat +msgid "" +"The Tax Identification Number. Values here will be validated based on the " +"country format. You can use '/' to indicate that the partner is not subject " +"to tax." +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#, python-format +msgid "The VAT is mandatory for vendors" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#, python-format +msgid "The fiscal position is mandatory for vendors" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_bankayma_vendor_invite__auto_delete +msgid "" +"This option permanently removes any track of email after it's been sent, " +"including from the Technical menu in the Settings, in order to preserve " +"storage space of your Odoo database." +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_move_tree_invoice +msgid "Total" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_bank_statement_line__bankayma_amount_paid +#: model:ir.model.fields,field_description:bankayma_account.field_account_move__bankayma_amount_paid +#: model:ir.model.fields,field_description:bankayma_account.field_account_payment__bankayma_amount_paid +msgid "Total net paid" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__message_type +msgid "Type" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/controllers/main.py:0 +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +#, python-format +msgid "Unpaid" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "Unpaid:" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__use_active_domain +msgid "Use active domain" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__template_id +msgid "Use template" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_res_users +msgid "User" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_email +msgid "User Email" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_function +msgid "User Function" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_login +msgid "User Login" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_name +msgid "User Name" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_phone +msgid "User Phone" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__user_file +msgid "Users" +msgstr "" + +#. module: bankayma_account +#: model:ir.actions.act_window,name:bankayma_account.action_move_in_invoice_type_validated +#: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_validated +msgid "Validated" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,field_description:bankayma_account.field_account_fiscal_position__vendor_doc_description +msgid "Vendor Doc Description" +msgstr "" + +#. module: bankayma_account +#: model:tier.definition,name:bankayma_account.tier_definition_move_in +msgid "Vendor's docs Validation" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_position_form +msgid "Vendors" +msgstr "" + +#. module: bankayma_account +#: model:ir.model.fields,help:bankayma_account.field_account_journal__bankayma_restrict_intercompany_partner +msgid "" +"When this checkbox is activated, only partners of companies in the system " +"may be used as partner on invoices" +msgstr "" + +#. module: bankayma_account +#. odoo-python +#: code:addons/bankayma_account/wizards/bankayma_company_create.py:0 +#, python-format +msgid "" +"You need to have configured a chart of accounts for your parent company " +"before cloning it" +msgstr "" + +#. module: bankayma_account +#: model:ir.model,name:bankayma_account.model_bankayma_vendor_invite +msgid "bankayma.vendor.invite" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_dashboard_qweb +msgid "expected" +msgstr "" + +#. module: bankayma_account +#: model_terms:ir.ui.view,arch_db:bankayma_account.view_bankayma_company_create_form +msgid "or" +msgstr "" diff --git a/bankayma_base/i18n/he_IL.po b/bankayma_base/i18n/he_IL.po new file mode 100644 index 000000000..7242c02dd --- /dev/null +++ b/bankayma_base/i18n/he_IL.po @@ -0,0 +1,97 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bankayma_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-13 17:58+0000\n" +"PO-Revision-Date: 2023-06-13 17:58+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bankayma_base +#: model_terms:res.company,report_footer:bankayma_base.child_comp1 +msgid "+1 (650) 555-0111 info@yourcompany.com http://www.example.com" +msgstr "" + +#. module: bankayma_base +#: model_terms:ir.ui.view,arch_db:bankayma_base.view_res_users_form +msgid "/my/example" +msgstr "" + +#. module: bankayma_base +#: model_terms:res.company,invoice_terms:bankayma_base.child_comp1 +msgid "A note from the parent company
" +msgstr "" + +#. module: bankayma_base +#: model:ir.model.fields,help:bankayma_base.field_res_users__login_redirect +msgid "" +"After login, the user will be redirected to this page instead of /web or /my" +msgstr "" + +#. module: bankayma_base +#: model:ir.ui.menu,name:bankayma_base.menu_bankayma_root +msgid "BANKayma" +msgstr "" + +#. module: bankayma_base +#: model:ir.module.category,name:bankayma_base.category +msgid "Bankayma" +msgstr "" + +#. module: bankayma_base +#: model:res.company,name:bankayma_base.child_comp1 +msgid "Child Company 1" +msgstr "" + +#. module: bankayma_base +#: model_terms:ir.ui.view,arch_db:bankayma_base.external_layout_standard +msgid "Child logo" +msgstr "" + +#. module: bankayma_base +#: model:ir.ui.menu,name:bankayma_base.menu_bankayma_contacts +msgid "Contacts" +msgstr "" + +#. module: bankayma_base +#: model:ir.model.fields,field_description:bankayma_base.field_res_users__login_redirect +msgid "Login Redirect" +msgstr "" + +#. module: bankayma_base +#: model_terms:ir.ui.view,arch_db:bankayma_base.external_layout_standard +msgid "Logo" +msgstr "" + +#. module: bankayma_base +#: model:res.groups,name:bankayma_base.group_org_manager +msgid "Organization Manager" +msgstr "" + +#. module: bankayma_base +#: model:res.groups,name:bankayma_base.group_manager +msgid "Project Manager" +msgstr "" + +#. module: bankayma_base +#: model:res.groups,name:bankayma_base.group_user +msgid "Project User" +msgstr "" + +#. module: bankayma_base +#: model:ir.model,name:bankayma_base.model_res_users +msgid "User" +msgstr "" + +#. module: bankayma_base +#: model:res.groups,name:bankayma_base.group_vendor +msgid "Vendor" +msgstr "" From 930e6a414359d175ecabb14300cc7fdad5006e67 Mon Sep 17 00:00:00 2001 From: toyrobot <19168053+toyrobot@users.noreply.github.com> Date: Tue, 13 Jun 2023 21:17:20 +0300 Subject: [PATCH 05/14] Update he_IL.po --- bankayma_account/i18n/he_IL.po | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bankayma_account/i18n/he_IL.po b/bankayma_account/i18n/he_IL.po index 9aec3b48b..06af66c8b 100644 --- a/bankayma_account/i18n/he_IL.po +++ b/bankayma_account/i18n/he_IL.po @@ -324,7 +324,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill #: model_terms:ir.ui.view,arch_db:bankayma_account.view_account_move_form msgid "Description" -msgstr ",תיאור" +msgstr "תיאור" #. module: bankayma_account #: model:ir.model.fields,field_description:bankayma_account.field_bankayma_company_create__display_name @@ -581,14 +581,14 @@ msgstr "" #. module: bankayma_account #: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices msgid "New Invoice" -msgstr "" +msgstr "דרישת תשלום חדשה" #. module: bankayma_account #: model:ir.actions.act_window,name:bankayma_account.action_move_in_invoice_new #: model:ir.ui.menu,name:bankayma_account.menu_bankayma_expense_new #: model_terms:ir.ui.view,arch_db:bankayma_account.portal_my_invoices msgid "New Vendor Bill" -msgstr "" +msgstr "חשבונית ספק חדשה" #. module: bankayma_account #: model:ir.actions.act_window,name:bankayma_account.action_move_out_invoice_new @@ -601,7 +601,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:bankayma_account.portal_breadcrumbs #: model_terms:ir.ui.view,arch_db:bankayma_account.portal_new_vendor_bill msgid "New vendor bill" -msgstr "" +msgstr "חשבונית ספק חדשה" #. module: bankayma_account #: model:ir.model.fields,field_description:bankayma_account.field_bankayma_vendor_invite__notify @@ -684,7 +684,8 @@ msgstr "" msgid "" "Overhead created in %(name)s" -msgstr "" +msgstr "תקורה נוצרה ב %(name)s" #. module: bankayma_account #. odoo-python @@ -693,7 +694,8 @@ msgstr "" msgid "" "Overhead invoice for %(name)s" -msgstr "" +msgstr "חשבונית תקורה עבור %(name)s" #. module: bankayma_account #: model:ir.model.fields,help:bankayma_account.field_res_company__overhead_account_id From d6e09ef0eaf54292dc58e10c55e789d153cd4ee8 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 20:28:20 +0200 Subject: [PATCH 06/14] fixup! [ADD] #120, #122 hide a lot of fields on move forms --- bankayma_account/models/account_move.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bankayma_account/models/account_move.py b/bankayma_account/models/account_move.py index 4ae70ba1d..39928cbe3 100644 --- a/bankayma_account/models/account_move.py +++ b/bankayma_account/models/account_move.py @@ -263,13 +263,13 @@ def _portal_create_vendor_bill(self, post_data, uploaded_files): self.with_context(default_move_type="in_invoice").with_company(company) ) as invoice_form: invoice_form.partner_id = self.env.user.partner_id - invoice_form.fiscal_position_id = self.env[ - "account.fiscal.position" - ].browse(int(post_data.get("fpos"))) with invoice_form.invoice_line_ids.new() as invoice_line: invoice_line.name = post_data.get("description") invoice_line.price_unit = post_data.get("amount") invoice = invoice_form.save() + invoice.fiscal_position_id = self.env["account.fiscal.position"].browse( + int(post_data.get("fpos")) + ) invoice.invoice_line_ids.write({"bankayma_immutable": True}) for uploaded_file in uploaded_files.getlist("upload"): self.env["ir.attachment"].create( From d9715ec0e731448a164be9d2489954b18f66e717 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 20:40:48 +0200 Subject: [PATCH 07/14] [ADD] #123 move fpos and bank_ids beneath vat in partner form --- bankayma_account/views/res_partner.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bankayma_account/views/res_partner.xml b/bankayma_account/views/res_partner.xml index 96d99f1a8..51923c4d7 100644 --- a/bankayma_account/views/res_partner.xml +++ b/bankayma_account/views/res_partner.xml @@ -13,6 +13,19 @@ > + + + + + + 1 + + + 1 + From e34e7e547e031e2a63d4380076e1ccbb613152ad Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 20:58:17 +0200 Subject: [PATCH 08/14] [ADD] #129 settings menu for bankayma --- bankayma_account/views/menu.xml | 12 ++++++++++++ bankayma_base/views/menu.xml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/bankayma_account/views/menu.xml b/bankayma_account/views/menu.xml index a24656400..25aa919fc 100644 --- a/bankayma_account/views/menu.xml +++ b/bankayma_account/views/menu.xml @@ -182,5 +182,17 @@ eval="[Command.link(ref('base.group_no_one')), Command.unlink(ref('base.group_user'))]" /> + + diff --git a/bankayma_base/views/menu.xml b/bankayma_base/views/menu.xml index 6efd2292a..8925c67d9 100644 --- a/bankayma_base/views/menu.xml +++ b/bankayma_base/views/menu.xml @@ -22,6 +22,12 @@ parent="menu_bankayma_root" sequence="200" /> + From cee7b10a13756a981641225f320d4bbfaa58ae3c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Jun 2023 21:24:30 +0200 Subject: [PATCH 09/14] [IMP] #105 show attachments in chatter --- bankayma_account/models/account_move.py | 10 +++++++++- bankayma_account/views/templates.xml | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bankayma_account/models/account_move.py b/bankayma_account/models/account_move.py index 39928cbe3..f7c244d97 100644 --- a/bankayma_account/models/account_move.py +++ b/bankayma_account/models/account_move.py @@ -271,8 +271,9 @@ def _portal_create_vendor_bill(self, post_data, uploaded_files): int(post_data.get("fpos")) ) invoice.invoice_line_ids.write({"bankayma_immutable": True}) + attachments = self.env["ir.attachment"] for uploaded_file in uploaded_files.getlist("upload"): - self.env["ir.attachment"].create( + attachments += self.env["ir.attachment"].create( { "res_model": self._name, "res_id": invoice.id, @@ -281,4 +282,11 @@ def _portal_create_vendor_bill(self, post_data, uploaded_files): "name": uploaded_file.filename, } ) + if attachments: + invoice.with_context(no_new_invoice=True).message_post( + body=_("Attachments"), + message_type="comment", + subtype_xmlid="mail.mt_comment", + attachment_ids=attachments.ids, + ) return invoice diff --git a/bankayma_account/views/templates.xml b/bankayma_account/views/templates.xml index 64153c2e7..81fa9cc45 100644 --- a/bankayma_account/views/templates.xml +++ b/bankayma_account/views/templates.xml @@ -258,6 +258,7 @@ name="upload" id="upload" multiple="multiple" + accept=".pdf,.jpg,.png" />
Date: Tue, 13 Jun 2023 21:44:17 +0200 Subject: [PATCH 10/14] fixup! [ADD] #123 move fpos and bank_ids beneath vat in partner form --- bankayma_account/views/account_move.xml | 4 +++- bankayma_account/views/res_partner.xml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/bankayma_account/views/account_move.xml b/bankayma_account/views/account_move.xml index 25ca9fd0f..b33fa0d8d 100644 --- a/bankayma_account/views/account_move.xml +++ b/bankayma_account/views/account_move.xml @@ -37,7 +37,9 @@ 1 - 1 + {'invisible': [('move_type', '!=', 'in_invoice')]} + + + + + 1 + + + {'default_allow_out_payment': True} + 1 From db9650776739cbdc1d3b28720dc283a584f396b1 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 14 Jun 2023 14:04:13 +0200 Subject: [PATCH 11/14] [ADD] depend on spreadsheet_board --- bankayma_base/__manifest__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bankayma_base/__manifest__.py b/bankayma_base/__manifest__.py index 0c55fcd60..94ba422cf 100644 --- a/bankayma_base/__manifest__.py +++ b/bankayma_base/__manifest__.py @@ -20,6 +20,7 @@ "web_responsive", "web_select_all_companies", "spreadsheet_dashboard_oca", + "spreadsheet_board", ], "data": [ "security/bankayma_base.xml", From f69dd20aca127b2262fa2084844a44452b85cf82 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 14 Jun 2023 14:10:16 +0200 Subject: [PATCH 12/14] [ADD] spreadsheet_board --- .../odoo/addons/spreadsheet_board | 1 + setup/spreadsheet_board/setup.py | 6 +++ spreadsheet_board/README.rst | 35 ++++++++++++ spreadsheet_board/__init__.py | 1 + spreadsheet_board/__manifest__.py | 33 ++++++++++++ spreadsheet_board/i18n/.empty | 0 spreadsheet_board/models/__init__.py | 1 + .../models/spreadsheet_dashboard.py | 43 +++++++++++++++ spreadsheet_board/readme/CONTRIBUTORS.rst | 1 + spreadsheet_board/readme/CREDITS.rst | 3 ++ spreadsheet_board/readme/DESCRIPTION.rst | 1 + spreadsheet_board/readme/USAGE.rst | 5 ++ spreadsheet_board/static/description/icon.png | Bin 0 -> 9455 bytes .../static/src/BoardController.esm.js | 8 +++ .../static/src/BoardController.xml | 16 ++++++ .../static/src/SpreadsheetBoard.esm.js | 51 ++++++++++++++++++ .../static/src/SpreadsheetBoard.xml | 7 +++ spreadsheet_board/tests/__init__.py | 1 + .../tests/test_spreadsheet_board.py | 27 ++++++++++ .../views/spreadsheet_dashboard.xml | 18 +++++++ 20 files changed, 258 insertions(+) create mode 120000 setup/spreadsheet_board/odoo/addons/spreadsheet_board create mode 100644 setup/spreadsheet_board/setup.py create mode 100644 spreadsheet_board/README.rst create mode 100644 spreadsheet_board/__init__.py create mode 100644 spreadsheet_board/__manifest__.py create mode 100644 spreadsheet_board/i18n/.empty create mode 100644 spreadsheet_board/models/__init__.py create mode 100644 spreadsheet_board/models/spreadsheet_dashboard.py create mode 100644 spreadsheet_board/readme/CONTRIBUTORS.rst create mode 100644 spreadsheet_board/readme/CREDITS.rst create mode 100644 spreadsheet_board/readme/DESCRIPTION.rst create mode 100644 spreadsheet_board/readme/USAGE.rst create mode 100644 spreadsheet_board/static/description/icon.png create mode 100644 spreadsheet_board/static/src/BoardController.esm.js create mode 100644 spreadsheet_board/static/src/BoardController.xml create mode 100644 spreadsheet_board/static/src/SpreadsheetBoard.esm.js create mode 100644 spreadsheet_board/static/src/SpreadsheetBoard.xml create mode 100644 spreadsheet_board/tests/__init__.py create mode 100644 spreadsheet_board/tests/test_spreadsheet_board.py create mode 100644 spreadsheet_board/views/spreadsheet_dashboard.xml diff --git a/setup/spreadsheet_board/odoo/addons/spreadsheet_board b/setup/spreadsheet_board/odoo/addons/spreadsheet_board new file mode 120000 index 000000000..18a9c66e6 --- /dev/null +++ b/setup/spreadsheet_board/odoo/addons/spreadsheet_board @@ -0,0 +1 @@ +../../../../spreadsheet_board \ No newline at end of file diff --git a/setup/spreadsheet_board/setup.py b/setup/spreadsheet_board/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/spreadsheet_board/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/spreadsheet_board/README.rst b/spreadsheet_board/README.rst new file mode 100644 index 000000000..38929e877 --- /dev/null +++ b/spreadsheet_board/README.rst @@ -0,0 +1,35 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. + + +Automatic changelog generation +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`HISTORY.rst` can be auto generated using `towncrier `_. + +Just put towncrier compatible changelog fragments into `readme/newsfragments` +and the changelog file will be automatically generated and updated when a new fragment is added. + +Please refer to `towncrier` documentation to know more. + +NOTE: the changelog will be automatically generated when using `/ocabot merge $option`. +If you need to run it manually, refer to `OCA/maintainer-tools README `_. diff --git a/spreadsheet_board/__init__.py b/spreadsheet_board/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/spreadsheet_board/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/spreadsheet_board/__manifest__.py b/spreadsheet_board/__manifest__.py new file mode 100644 index 000000000..241a036e7 --- /dev/null +++ b/spreadsheet_board/__manifest__.py @@ -0,0 +1,33 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +{ + "name": "Spreadsheet in traditional dashboard", + "summary": "Add spreadsheets to traditional dashboards", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Productivity", + "website": "https://github.com/moshchot/BANKayma", + "author": "Hunki Enterprises BV, Moshchot Coop, Odoo Community Association (OCA)", + "maintainers": ["hbrunn"], + "license": "AGPL-3", + "application": False, + "installable": True, + "preloadable": True, + "depends": [ + "spreadsheet_dashboard_oca", + "board", + ], + "data": [ + "views/spreadsheet_dashboard.xml", + ], + "demo": [], + "assets": { + "web.assets_backend": [ + "spreadsheet_board/static/src/BoardController.esm.js", + "spreadsheet_board/static/src/BoardController.xml", + "spreadsheet_board/static/src/SpreadsheetBoard.esm.js", + "spreadsheet_board/static/src/SpreadsheetBoard.xml", + ], + }, +} diff --git a/spreadsheet_board/i18n/.empty b/spreadsheet_board/i18n/.empty new file mode 100644 index 000000000..e69de29bb diff --git a/spreadsheet_board/models/__init__.py b/spreadsheet_board/models/__init__.py new file mode 100644 index 000000000..c20895dc4 --- /dev/null +++ b/spreadsheet_board/models/__init__.py @@ -0,0 +1 @@ +from . import spreadsheet_dashboard diff --git a/spreadsheet_board/models/spreadsheet_dashboard.py b/spreadsheet_board/models/spreadsheet_dashboard.py new file mode 100644 index 000000000..7cbd18f0b --- /dev/null +++ b/spreadsheet_board/models/spreadsheet_dashboard.py @@ -0,0 +1,43 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +from lxml import etree + +from odoo import models + + +class SpreadsheetDashboard(models.Model): + _inherit = "spreadsheet.dashboard" + + def action_add_to_board(self): + self.ensure_one() + dashboard_action = self.env.ref("board.open_board_my_dash_action").sudo() + view_id = dashboard_action["views"][0][0] + view = self.env["board.board"].get_view(view_id, "form") + arch = etree.fromstring(view["arch"]) + for column in arch.xpath("//column"): + etree.SubElement( + column, + "action", + { + "name": str(self.id), + "string": self.name, + "view_mode": "spreadsheet_board", + }, + ) + break + self.env["ir.ui.view.custom"].create( + { + "user_id": self.env.uid, + "ref_id": view_id, + "arch": etree.tostring(arch), + } + ) + return { + "type": "ir.actions.client", + "tag": "reload", + "params": { + "action_id": self.env.ref("board.open_board_my_dash_action").id, + }, + } diff --git a/spreadsheet_board/readme/CONTRIBUTORS.rst b/spreadsheet_board/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..33b6eb2c3 --- /dev/null +++ b/spreadsheet_board/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Holger Brunn (https://hunki-enterprises.com) diff --git a/spreadsheet_board/readme/CREDITS.rst b/spreadsheet_board/readme/CREDITS.rst new file mode 100644 index 000000000..2a8b990cb --- /dev/null +++ b/spreadsheet_board/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Moshchot Coop diff --git a/spreadsheet_board/readme/DESCRIPTION.rst b/spreadsheet_board/readme/DESCRIPTION.rst new file mode 100644 index 000000000..3d027e949 --- /dev/null +++ b/spreadsheet_board/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to add spreadsheets to the traditional dashboard, thereby allowing to combine them with all the existing ways of defining dashboards diff --git a/spreadsheet_board/readme/USAGE.rst b/spreadsheet_board/readme/USAGE.rst new file mode 100644 index 000000000..c56abfd7f --- /dev/null +++ b/spreadsheet_board/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +#. Go to Dashboards/Configuration/Dashboards +#. Open a dashboard group +#. Click the button 'Add to dashboard' for a dashboard you want to add diff --git a/spreadsheet_board/static/description/icon.png b/spreadsheet_board/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-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P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/spreadsheet_board/static/src/BoardController.esm.js b/spreadsheet_board/static/src/BoardController.esm.js new file mode 100644 index 000000000..8cde0e7c3 --- /dev/null +++ b/spreadsheet_board/static/src/BoardController.esm.js @@ -0,0 +1,8 @@ +/** @odoo-module + * Copyright 2023 Hunki Enterprises BV + * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ + +import {BoardController} from "@board/board_controller"; +import {SpreadsheetBoard} from "@spreadsheet_board/SpreadsheetBoard.esm"; + +BoardController.components.SpreadsheetBoard = SpreadsheetBoard; diff --git a/spreadsheet_board/static/src/BoardController.xml b/spreadsheet_board/static/src/BoardController.xml new file mode 100644 index 000000000..0b9f01232 --- /dev/null +++ b/spreadsheet_board/static/src/BoardController.xml @@ -0,0 +1,16 @@ + + + + + !action.isFolded && action.viewMode != 'spreadsheet_board' + + + + + + diff --git a/spreadsheet_board/static/src/SpreadsheetBoard.esm.js b/spreadsheet_board/static/src/SpreadsheetBoard.esm.js new file mode 100644 index 000000000..14ac585ff --- /dev/null +++ b/spreadsheet_board/static/src/SpreadsheetBoard.esm.js @@ -0,0 +1,51 @@ +/** @odoo-module + * Copyright 2023 Hunki Enterprises BV + * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ + +import {getBundle, loadBundle} from "@web/core/assets"; +import {useService} from "@web/core/utils/hooks"; +const {Component, onWillStart} = owl; + +export class SpreadsheetBoard extends Component { + setup() { + this.orm = useService("orm"); + onWillStart(async () => { + // TODO no better way to lazy load this? + const desc = await getBundle("spreadsheet.o_spreadsheet"); + await loadBundle(desc); + await odoo.__DEBUG__.services[ + "@spreadsheet/helpers/helpers" + ].loadSpreadsheetDependencies(); + this.data_sources = new odoo.__DEBUG__.services[ + "@spreadsheet/data_sources/data_sources" + ].DataSources(this.orm); + let result = null; + try { + result = await this.orm.read( + "spreadsheet.dashboard", + [this.props.action.actionId], + ["raw"] + ); + } catch { + console.log("Unable to load dashboard " + this.props.action.actionId); + } + this.data = (result && result[0].raw && JSON.parse(result[0].raw)) || null; + }); + } + get spreadsheet_component() { + return window.o_spreadsheet.Spreadsheet; + } + get spreadsheet_model() { + const model = new window.o_spreadsheet.Model(this.data, { + evalContext: {env: this.env, orm: this.orm}, + mode: "dashboard", + dataSources: this.data_sources, + }); + this.data_sources.addEventListener("data-source-updated", () => + model.dispatch("EVALUATE_CELLS") + ); + return model; + } +} + +SpreadsheetBoard.template = "spreadsheet_board.SpreadsheetBoard"; diff --git a/spreadsheet_board/static/src/SpreadsheetBoard.xml b/spreadsheet_board/static/src/SpreadsheetBoard.xml new file mode 100644 index 000000000..3daa3662a --- /dev/null +++ b/spreadsheet_board/static/src/SpreadsheetBoard.xml @@ -0,0 +1,7 @@ + + + + +
Invalid spreadsheet
+
+
diff --git a/spreadsheet_board/tests/__init__.py b/spreadsheet_board/tests/__init__.py new file mode 100644 index 000000000..6adbd8c14 --- /dev/null +++ b/spreadsheet_board/tests/__init__.py @@ -0,0 +1 @@ +from . import test_spreadsheet_board diff --git a/spreadsheet_board/tests/test_spreadsheet_board.py b/spreadsheet_board/tests/test_spreadsheet_board.py new file mode 100644 index 000000000..7d4981d17 --- /dev/null +++ b/spreadsheet_board/tests/test_spreadsheet_board.py @@ -0,0 +1,27 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) +from odoo.tests.common import TransactionCase + + +class TestSpreadsheetBoard(TransactionCase): + def setUp(self): + super().setUp() + self.spreadsheet_group = self.env["spreadsheet.dashboard.group"].create( + { + "name": "Test dashboard group", + } + ) + self.spreadsheet = self.env["spreadsheet.dashboard"].create( + { + "name": "Test spreadsheet", + "dashboard_group_id": self.spreadsheet_group.id, + } + ) + + def test_add_to_dashboard(self): + self.spreadsheet.action_add_to_board() + view = self.env["board.board"].get_view( + self.env.ref("board.open_board_my_dash_action").views[0][0], + "form", + ) + self.assertIn('view_mode="spreadsheet_board"', view["arch"]) diff --git a/spreadsheet_board/views/spreadsheet_dashboard.xml b/spreadsheet_board/views/spreadsheet_dashboard.xml new file mode 100644 index 000000000..29cbe89e7 --- /dev/null +++ b/spreadsheet_board/views/spreadsheet_dashboard.xml @@ -0,0 +1,18 @@ + + + + spreadsheet.dashboard + + + + + From 0d47477b9d8ae0ee1f5feecbf97470847ec7460c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 21 Jun 2023 13:13:25 +0200 Subject: [PATCH 13/14] fixup! [ADD] spreadsheet_board --- .../static/src/BoardController.esm.js | 25 +++++++++++++++++++ .../static/src/SpreadsheetBoard.esm.js | 12 +++++++++ .../static/src/SpreadsheetBoard.xml | 12 ++++++++- 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/spreadsheet_board/static/src/BoardController.esm.js b/spreadsheet_board/static/src/BoardController.esm.js index 8cde0e7c3..bb25ba1ed 100644 --- a/spreadsheet_board/static/src/BoardController.esm.js +++ b/spreadsheet_board/static/src/BoardController.esm.js @@ -2,7 +2,32 @@ * Copyright 2023 Hunki Enterprises BV * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ +import {BoardArchParser} from "@board/board_view"; import {BoardController} from "@board/board_controller"; import {SpreadsheetBoard} from "@spreadsheet_board/SpreadsheetBoard.esm"; +import {patch} from "@web/core/utils/patch"; BoardController.components.SpreadsheetBoard = SpreadsheetBoard; + +patch(BoardArchParser.prototype, "parse spreadsheet_board properties", { + parse(arch, customViewId) { + const archInfo = this._super.apply(this, [arch, customViewId]); // eslint-disable-line no-useless-call + let columnIndex = -1, + rowIndex = -1; + this.visitXML(arch, (node) => { + switch (node.tagName) { + case "column": + columnIndex++; + break; + case "action": { + rowIndex++; + const action = archInfo.columns[columnIndex].actions[rowIndex]; + if (action.viewMode === "spreadsheet_board") { + action.style = node.getAttribute("style"); + } + } + } + }); + return archInfo; + }, +}); diff --git a/spreadsheet_board/static/src/SpreadsheetBoard.esm.js b/spreadsheet_board/static/src/SpreadsheetBoard.esm.js index 14ac585ff..fe40fd47e 100644 --- a/spreadsheet_board/static/src/SpreadsheetBoard.esm.js +++ b/spreadsheet_board/static/src/SpreadsheetBoard.esm.js @@ -36,6 +36,9 @@ export class SpreadsheetBoard extends Component { return window.o_spreadsheet.Spreadsheet; } get spreadsheet_model() { + if (this.model) { + return this.model; + } const model = new window.o_spreadsheet.Model(this.data, { evalContext: {env: this.env, orm: this.orm}, mode: "dashboard", @@ -44,8 +47,17 @@ export class SpreadsheetBoard extends Component { this.data_sources.addEventListener("data-source-updated", () => model.dispatch("EVALUATE_CELLS") ); + this.model = model; return model; } + get spreadsheet_filters() { + return this.spreadsheet_model.getters.getGlobalFilters(); + } + get spreadsheet_filter_component() { + return odoo.__DEBUG__.services[ + "@spreadsheet/global_filters/components/filter_value/filter_value" + ].FilterValue; + } } SpreadsheetBoard.template = "spreadsheet_board.SpreadsheetBoard"; diff --git a/spreadsheet_board/static/src/SpreadsheetBoard.xml b/spreadsheet_board/static/src/SpreadsheetBoard.xml index 3daa3662a..844afdf77 100644 --- a/spreadsheet_board/static/src/SpreadsheetBoard.xml +++ b/spreadsheet_board/static/src/SpreadsheetBoard.xml @@ -1,7 +1,17 @@ - +
+ + +
Invalid spreadsheet
From f8e5883ce589ddf077f4616e947486719d45ea7c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 21 Jun 2023 14:01:43 +0200 Subject: [PATCH 14/14] fixup! fixup! [ADD] spreadsheet_board --- spreadsheet_board/static/src/BoardController.esm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spreadsheet_board/static/src/BoardController.esm.js b/spreadsheet_board/static/src/BoardController.esm.js index bb25ba1ed..809800abb 100644 --- a/spreadsheet_board/static/src/BoardController.esm.js +++ b/spreadsheet_board/static/src/BoardController.esm.js @@ -18,6 +18,7 @@ patch(BoardArchParser.prototype, "parse spreadsheet_board properties", { switch (node.tagName) { case "column": columnIndex++; + rowIndex = -1; break; case "action": { rowIndex++;