diff --git a/Makefile b/Makefile index 295d41853..2c57734de 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,9 @@ SPHINXOPTS = -D project_root=$(ROOT) -D canonical_version=$(CANONICAL_VERSIO -j $(WORKERS) SOURCE_DIR = content THEME = extensions/odoo_theme +LOCALE = locale +STATIC = static +REDIRECTS = redirects SERVER_IP := $(shell ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}') # Get all listening ports LISTENING_PORTS := $(shell ss -tuln | awk 'NR>1 {print $$4}' | awk -F: '{print $$NF}' | sort -n | uniq) @@ -67,10 +70,12 @@ livehtml: SPHINXOPTS += -A collapse_menu=True livehtml: @echo "Starting Live Server..." $(SPHINX_AUTO_BUILD) $(SOURCE_DIR) $(HTML_BUILD_DIR) \ - --port 8000 --host $(SERVER_IP) --watch $(THEME) \ - --pre-build "python3 -m pysassc $(THEME)/static/style.scss $(HTML_BUILD_DIR)/_static/style.css" \ + --port 8000 --host $(SERVER_IP) \ + --watch $(THEME) --watch $(LOCALE) --watch $(STATIC) --watch $(REDIRECTS) \ + --pre-build "sh -c 'mkdir -p $(HTML_BUILD_DIR)/_static && python3 -m pysassc $(THEME)/static/style.scss $(HTML_BUILD_DIR)/_static/style.css'" \ $(SPHINXOPTS) -c $(CONFIG_DIR) -b html + # To call *after* `make html` # Binary dependencies (Debian): texlive-fonts-recommended texlive-latex-extra # texlive-fonts-extra diff --git a/locale/vi/LC_MESSAGES/developer.po b/locale/vi/LC_MESSAGES/developer.po new file mode 100644 index 000000000..5259304c8 --- /dev/null +++ b/locale/vi/LC_MESSAGES/developer.po @@ -0,0 +1,40505 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) Odoo S.A. +# This file is distributed under the same license as the Odoo package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Odoo 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-03-08 12:48+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../../content/developer.rst:9 +msgid "Developer" +msgstr "" + +#: ../../content/developer.rst:11 +msgid "Learn through tutorials and get help using reference guides." +msgstr "" + +#: ../../content/developer/glossary.rst:5 +msgid "Glossary" +msgstr "" + +#: ../../content/developer/glossary.rst:8 +msgid "external id" +msgstr "" + +#: ../../content/developer/glossary.rst:9 +msgid "external identifier" +msgstr "" + +#: ../../content/developer/glossary.rst:10 +msgid "external identifiers" +msgstr "" + +#: ../../content/developer/glossary.rst:12 +msgid "string identifier stored in ``ir.model.data``, can be used to refer to a record regardless of its database identifier during data imports or export/import roundtrips." +msgstr "" + +#: ../../content/developer/glossary.rst:16 +msgid "External identifiers are in the form :samp:`{module}.{id}` (e.g. ``account.invoice_graph``). From within a module, the :samp:`{module}.` prefix can be left out." +msgstr "" + +#: ../../content/developer/glossary.rst:20 +msgid "Sometimes referred to as \"xml id\" or ``xml_id`` as XML-based :ref:`reference/data` make extensive use of them." +msgstr "" + +#: ../../content/developer/glossary.rst:22 +msgid "format string" +msgstr "" + +#: ../../content/developer/glossary.rst:24 +msgid "inspired by `jinja variables`_, format strings allow more easily mixing literal content and computed content (expressions): content between ``{{`` and ``}}`` is interpreted as an expression and evaluated, other content is interpreted as literal strings and displayed as-is" +msgstr "" + +#: ../../content/developer/glossary.rst:29 +msgid "GIS" +msgstr "" + +#: ../../content/developer/glossary.rst:30 +msgid "Geographic Information System" +msgstr "" + +#: ../../content/developer/glossary.rst:32 +msgid "any computer system or subsystem to capture, store, manipulate, analyze, manage or present spatial and geographical data." +msgstr "" + +#: ../../content/developer/glossary.rst:34 +msgid "minified" +msgstr "" + +#: ../../content/developer/glossary.rst:35 +msgid "minification" +msgstr "" + +#: ../../content/developer/glossary.rst:37 +msgid "process of removing extraneous/non-necessary sections of files (comments, whitespace) and possibly recompiling them using equivalent but shorter structures (`ternary operator`_ instead of ``if/else``) in order to reduce network traffic" +msgstr "" + +#: ../../content/developer/howtos.rst:6 +msgid "How-to guides" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:4 +msgid "Accounting localization" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:8 +msgid "This tutorial requires knowledge about how to build a module in Odoo (see :doc:`../tutorials/getting_started`)." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:13 +msgid "Installation procedure" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:15 +msgid "On installing the `account `_ module, the localization module corresponding to the country code of the company is installed automatically. In case of no country code set or no localization module found, the `l10n_generic_coa `_ (US) localization module is installed by default. Check `post init hook `_ for details." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:19 +msgid "For example, `l10n_ch `_ will be installed if the company has ``Switzerland`` as country." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:22 +msgid "Building a localization module" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:24 +msgid "The structure of a basic ``l10n_XX`` module may be described with the following :file:`__manifest__.py` file:" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:45 +msgid "Your worktree should look like this" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:67 +msgid "In the first file :file:`models/template_xx.py`, we set the name for the chart of accounts along with some basic fields." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:70 +msgid ":doc:`Chart Template References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:73 +msgid "`addons/l10n_be/models/template_be.py `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:83 +msgid "Chart of Accounts" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:86 +msgid "Account tags" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:89 +msgid ":ref:`Account Tag References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:91 +msgid "Tags are a way to sort accounts. For example, imagine you want to create a financial report having multiple lines but you have no way to find a rule to dispatch the accounts according to their ``code``. The solution is the usage of tags, one for each report line, to filter accounts like you want." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:95 +msgid "Put the tags in the :file:`data/account_account_tag_data.xml` file." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:98 +msgid "`addons/l10n_lt/data/template/account.account-lt.csv `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:106 +msgid "Accounts" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:109 +msgid ":ref:`Account References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:110 +msgid ":doc:`/applications/finance/accounting/get_started/chart_of_accounts`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:112 +msgid "Obviously, :guilabel:`Chart of Accounts` cannot exist without :guilabel:`Accounts`. You need to specify them in :file:`data/account.account.template.csv`." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:115 +msgid "`addons/l10n_ch/data/template/account.account-ch.csv `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:124 +msgid "Avoid the usage of `asset_cash` ``account_type``! Indeed, the bank & cash accounts are created directly at the installation of the localization module and then, are linked to an ``account.journal``." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:126 +msgid "Only one account of type payable/receivable is enough for the generic case. We need to define a PoS receivable account as well however. (linked in the CoA)" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:127 +msgid "Don't create too many accounts: 200-300 is enough. But mostly, we try to find a good balance where the CoA needs minimal adapting for most companies afterwards." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:131 +msgid "Account groups" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:134 +msgid ":ref:`Account Group References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:136 +msgid "Account groups allow describing the hierarchical structure of the chart of accounts. The filter needs to be activated in the report and then when you decollapse into journal entries it will show the parents of the account." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:138 +msgid "It works with the prefix *start*/*end*, so every account where the code starts with something between *start* and *end* will have this ``account.group`` as the parent group. Furthermore, the account groups can have a parent account group as well to form the hierarchy." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:142 +msgid "`addons/l10n_il/data/template/account.group-il.csv `_" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:444 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:469 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:500 +#: ../../content/developer/howtos/website_themes/layout.rst:71 +#: ../../content/developer/reference/backend/data/res.country.state.csv:1 +msgid "id" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "code_prefix_start" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "code_prefix_end" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:446 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:471 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:502 +#: ../../content/developer/howtos/website_themes/layout.rst:75 +#: ../../content/developer/howtos/website_themes/navigation.rst:58 +#: ../../content/developer/howtos/website_themes/pages.rst:139 +#: ../../content/developer/howtos/website_themes/pages.rst:203 +#: ../../content/developer/howtos/website_themes/shapes.rst:134 +#: ../../content/developer/howtos/website_themes/theming.rst:121 +#: ../../content/developer/tutorials/define_module_data.rst:177 +#: ../../content/developer/tutorials/getting_started/04_basicmodel.rst:189 +#: ../../content/developer/tutorials/getting_started/04_basicmodel.rst:262 +#: ../../content/developer/tutorials/getting_started/08_relations.rst:73 +#: ../../content/developer/tutorials/getting_started/08_relations.rst:180 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.account_type:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.code:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.currency_id:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.name:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.note:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.reconcile:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.tag_ids:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountAccount.tax_ids:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountGroup.code_prefix_end:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountGroup.code_prefix_start:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountGroup.name:0 +#: ../../../odoo/addons/account/models/account_account.py:docstring of odoo.addons.account.models.account_account.AccountGroup.parent_id:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.active:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.applicability:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.color:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.country_id:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.name:0 +#: ../../../odoo/addons/account/models/account_account_tag.py:docstring of odoo.addons.account.models.account_account_tag.AccountAccountTag.tax_negate:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.availability_condition:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.column_ids:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.country_id:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.default_opening_date_filter:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_account_type:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_analytic:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_date_range:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_fiscal_position:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_growth_comparison:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_hierarchy:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_journals:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_multi_company:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_partner:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_period_comparison:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_show_draft:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_unfold_all:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.filter_unreconciled:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.line_ids:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.load_more_limit:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.name:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.only_tax_exigible:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.root_report_id:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReport.search_bar:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.action_id:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.children_ids:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.expression_ids:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.foldable:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.hide_if_zero:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.hierarchy_level:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.name:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.parent_id:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.print_on_new_page:0 +#: ../../../odoo/addons/account/models/account_report.py:docstring of odoo.addons.account.models.account_report.AccountReportLine.report_id:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.active:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.amount:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.amount_type:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.analytic:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.cash_basis_transition_account_id:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.children_tax_ids:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.description:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.include_base_amount:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.invoice_repartition_line_ids:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.is_base_affected:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.name:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.price_include:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.refund_repartition_line_ids:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.sequence:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.tax_exigibility:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.tax_group_id:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.tax_scope:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTax.type_tax_use:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.account_id:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.document_type:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.factor_percent:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.repartition_type:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.tag_ids:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.tax_id:0 +#: ../../../odoo/addons/account/models/account_tax.py:docstring of odoo.addons.account.models.account_tax.AccountTaxRepartitionLine.use_in_tax_closing:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.account_ids:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.auto_apply:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.country_group_id:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.country_id:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.name:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.note:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.sequence:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.state_ids:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.tax_ids:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.vat_required:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.zip_from:0 +#: ../../../odoo/addons/account/models/partner.py:docstring of odoo.addons.account.models.partner.AccountFiscalPosition.zip_to:0 +#: ../../content/developer/reference/backend/data/res.country.state.csv:1 +msgid "name" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "name@he_IL" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_100100" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "100100" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "100499" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Fixed Assets" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "רכוש קבוע" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_101110" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "101110" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "101400" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Current Assets" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "רכוש שוטף" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_101401" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "101401" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "101799" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Bank And Cash" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "בנק ומזומנים" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_111000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "111000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "111999" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Current Liabilities" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "התחייבויות שוטפות" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_112000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "112000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "112210" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Non-current Liabilities" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "התחייבויות לא שוטפות" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_200000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "200000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "200199" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Sales Income" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "הכנסות ממכירות" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_200200" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "200200" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "200300" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Other Income" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "הכנסות אחרות" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_201000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "201000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "201299" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Cost of Goods" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "עלות המכר" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_202000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "202000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "220900" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Expenses" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "הוצאות" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "il_group_300000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "300000" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "399999" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "Capital And Shares" +msgstr "" + +#: ../../../odoo/addons/l10n_il/data/template/account.group-il.csv:1 +msgid "הון ומניות" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:151 +#: ../../content/developer/reference/standard_modules/account/account_tax.rst:5 +msgid "Taxes" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:154 +msgid ":ref:`Tax References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:155 +msgid ":doc:`/applications/finance/accounting/taxes/`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:157 +msgid "To add taxes you first need to specify tax groups. You normally need just one tax group for every tax rate, except for the 0% as you need to often distinguish between exempt, 0%, not subject, ... taxes. This model only has two required fields: `name` and `country`. Create the file :file:`data/template/account.tax.group-xx.csv` and list the groups." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:161 +msgid "`addons/l10n_uk/data/template/account.tax.group-uk.csv `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:168 +msgid "Now you can add the taxes via :file:`data/template/account.tax-xx.csv` file. The first tax you define that is purchase/sale also becomes the default purchase/sale tax for your products." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:172 +msgid "`addons/l10n_ae/data/template/account.tax-ae.csv `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:181 +msgid "Tax Report" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:187 +msgid "The tax report is declared in the :guilabel:`Invoicing` (`account`) app, but the report is only accessible when :guilabel:`Accounting` (`account_accountant`) is installed." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:190 +#: ../../content/developer/howtos/accounting_localization.rst:302 +msgid ":doc:`/developer/reference/standard_modules/account/account_report_line`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:191 +msgid ":doc:`/applications/finance/accounting/reporting/tax_returns`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:193 +msgid "In the previous section, you noticed the fields `invoice_repartition_line_ids` or `refund_repartition_line_ids` and probably understood nothing about them. Good news: you are not alone on this incomprehension. Bad news: you have to figure it out a bit. The topic is complicated. Indeed:" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:198 +msgid "The simple version is that, in the tax template, you indicate in the invoice/refund repartition lines whether the base or a percentage of the tax needs to be reported in which report line (through the *minus/plus_report_line_ids* fields). It becomes clear also when you check the tax configuration in the Odoo interface (or check the docs :ref:`Tax References `, :ref:`Tax Repartition References `)." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:201 +msgid "So, once you have properly configured taxes, you just need to add the :file:`data/account_tax_report_data.xml` file with a record for your `account.report`. For it to be considered as a tax report, you need to provide it with the right `root_report_id`." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:215 +msgid "... followed by the declaration of its lines, as `account.report.line` records." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:218 +msgid "`addons/l10n_au/data/account_tax_report_data.xml `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:229 +msgid "Fiscal positions" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:232 +msgid ":ref:`Fiscal Position References `" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:233 +msgid ":doc:`/applications/finance/accounting/taxes/fiscal_positions`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:235 +msgid "Specify fiscal positions in the :file:`data/template/account.fiscal.position-xx.csv` file." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:238 +msgid "`addons/l10n_es/data/template/account.fiscal.position-es_common.csv `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:246 +msgid "Final steps" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:248 +msgid "Finally, you may add a demo company, so the localization can easily be tested in demo mode." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:251 +msgid "`addons/l10n_ch/demo/demo_company.xml `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:260 +msgid "Accounting reports" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:267 +msgid ":doc:`/applications/finance/accounting/reporting`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:269 +msgid "Accounting reports should be added via a separate module `l10n_XX_reports` that should go to the `enterprise repository `_." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:271 +msgid "Basic :file:`__manifest__.py` file for such a module looks as following:" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:292 +msgid "Functional overview of financial reports is here: :doc:`/applications/finance/accounting/reporting`." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:294 +msgid "Some good examples:" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:296 +msgid "`l10n_ch_reports/data/account_financial_html_report_data.xml `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:297 +msgid "`l10n_be_reports/data/account_financial_html_report_data.xml `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:299 +msgid "You can check the meaning of the fields here:" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:301 +msgid ":doc:`/developer/reference/standard_modules/account/account_report`" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:304 +msgid "If you gave a `root_report_id` to your report, it is now available in its variant selector. If not, you still need to add a menu item for it. A default menu item can be created from the form view of the report by clicking on :menuselection:`Actions --> Create Menu Item`. You will then need to refresh the page to see it. Alternatively, to create a dedicated section for a totally new report in the :guilabel:`Reporting` menu, you need to create a new `ir.ui.menu` record (usually in the main `l10n_XX` module) and a new `ir.actions.client` (usually in the new report XML file) that calls the `account.report` with the new **report id**. Then, set the new menu as `parent_id` field in the action model." +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:314 +msgid "`ir.ui.menu creation `_" +msgstr "" + +#: ../../content/developer/howtos/accounting_localization.rst:315 +msgid "`ir.actions.client and menu item creation `_" +msgstr "" + +#: ../../content/developer/howtos/company.rst:6 +msgid "Multi-company Guidelines" +msgstr "" + +#: ../../content/developer/howtos/company.rst:10 +msgid "This tutorial requires good knowledge of Odoo. Please refer to the :doc:`../tutorials/getting_started` tutorial first if needed." +msgstr "" + +#: ../../content/developer/howtos/company.rst:13 +msgid "As of version 13.0, a user can be logged in to multiple companies at once. This allows the user to access information from multiple companies, but also to create/edit records in a multi-company environment." +msgstr "" + +#: ../../content/developer/howtos/company.rst:17 +msgid "If not managed correctly, it may be the source of a lot of inconsistent multi-company behaviors. For instance, a user logged in to both companies A and B could create a sales order in company A and add products belonging to company B to it. It is only when the user logs out from company B that access errors will occur for the sales order." +msgstr "" + +#: ../../content/developer/howtos/company.rst:22 +msgid "To correctly manage multi-company behaviors, Odoo's ORM provides multiple features:" +msgstr "" + +#: ../../content/developer/howtos/company.rst:24 +msgid ":ref:`Company-dependent fields `" +msgstr "" + +#: ../../content/developer/howtos/company.rst:25 +msgid ":ref:`Multi-company consistency `" +msgstr "" + +#: ../../content/developer/howtos/company.rst:26 +msgid ":ref:`Default company `" +msgstr "" + +#: ../../content/developer/howtos/company.rst:27 +msgid ":ref:`Views `" +msgstr "" + +#: ../../content/developer/howtos/company.rst:28 +msgid ":ref:`Security rules `" +msgstr "" + +#: ../../content/developer/howtos/company.rst:33 +msgid "Company-dependent fields" +msgstr "" + +#: ../../content/developer/howtos/company.rst:35 +msgid "When a record is available from multiple companies, we must expect that different values will be assigned to a given field depending on the company from which the value is set." +msgstr "" + +#: ../../content/developer/howtos/company.rst:38 +msgid "For the field of the same record to support several values, it must be defined with the attribute `company_dependent` set to `True`." +msgstr "" + +#: ../../content/developer/howtos/company.rst:57 +msgid "The `_compute_display_info` method is decorated with `depends_context('company')` (see :attr:`~odoo.api.depends_context`) to ensure that the computed field is recomputed depending on the current company (`self.env.company`)." +msgstr "" + +#: ../../content/developer/howtos/company.rst:61 +msgid "When a company-dependent field is read, the current company is used to retrieve its value. In other words, if a user is logged in to companies A and B with A as the main company and creates a record for company B, the value of company-dependent fields will be that of company A." +msgstr "" + +#: ../../content/developer/howtos/company.rst:65 +msgid "To read the values of company-dependent fields set by another company than the current one, we need to ensure the company we are using is the correct one. This can be done with :meth:`~odoo.models.Model.with_company`, which updates the current company." +msgstr "" + +#: ../../content/developer/howtos/company.rst:80 +msgid "Whenever you are computing/creating/... things that may behave differently in different companies, you should make sure whatever you are doing is done in the right company. It doesn't cost much to always use `with_company` to avoid problems later." +msgstr "" + +#: ../../content/developer/howtos/company.rst:101 +msgid "Multi-company consistency" +msgstr "" + +#: ../../content/developer/howtos/company.rst:103 +msgid "When a record is made shareable between several companies by the means of a `company_id` field, we must take care that it cannot be linked to the record of another company through a relational field. For instance, we do not want to have a sales order and its invoice belonging to different companies." +msgstr "" + +#: ../../content/developer/howtos/company.rst:107 +msgid "To ensure this multi-company consistency, you must:" +msgstr "" + +#: ../../content/developer/howtos/company.rst:109 +msgid "Set the class attribute `_check_company_auto` to `True`." +msgstr "" + +#: ../../content/developer/howtos/company.rst:110 +msgid "Define relational fields with the attribute `check_company` set to `True` if their model has a `company_id` field." +msgstr "" + +#: ../../content/developer/howtos/company.rst:113 +msgid "On each :meth:`~odoo.models.Model.create` and :meth:`~odoo.models.Model.write`, automatic checks will be triggered to ensure the multi-company consistency of the record." +msgstr "" + +#: ../../content/developer/howtos/company.rst:127 +msgid "The field `company_id` must not be defined with `check_company=True`." +msgstr "" + +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:1 +msgid "Check the companies of the values of the given field names." +msgstr "" + +#: ../../content/developer/reference/backend/mixins.rst:0 +#: ../../content/developer/reference/frontend/framework_overview.rst:0 +#: ../../content/developer/reference/frontend/qweb.rst:0 +#: ../../content/developer/reference/upgrade_scripts.rst:0 +#: ../../content/developer/reference/upgrade_utils.rst:0 +#: ../../../odoo/addons/payment/models/payment_method.py:docstring of odoo.addons.payment.models.payment_method.PaymentMethod._get_compatible_payment_methods:0 +#: ../../../odoo/addons/payment/models/payment_method.py:docstring of odoo.addons.payment.models.payment_method.PaymentMethod._get_from_code:0 +#: ../../../odoo/addons/payment/models/payment_provider.py:docstring of odoo.addons.payment.models.payment_provider.PaymentProvider._get_compatible_providers:0 +#: ../../../odoo/addons/payment/models/payment_provider.py:docstring of odoo.addons.payment.models.payment_provider.PaymentProvider._get_redirect_form_view:0 +#: ../../../odoo/addons/payment/models/payment_provider.py:docstring of odoo.addons.payment.models.payment_provider.PaymentProvider._is_tokenization_required:0 +#: ../../../odoo/addons/payment/models/payment_provider.py:docstring of odoo.addons.payment.models.payment_provider.PaymentProvider._should_build_inline_form:0 +#: ../../../odoo/addons/payment/models/payment_token.py:docstring of odoo.addons.payment.models.payment_token.PaymentToken._build_display_name:0 +#: ../../../odoo/addons/payment/models/payment_token.py:docstring of odoo.addons.payment.models.payment_token.PaymentToken._get_available_tokens:0 +#: ../../../odoo/addons/payment/models/payment_token.py:docstring of odoo.addons.payment.models.payment_token.PaymentToken._get_specific_create_values:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._compute_reference:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._compute_reference_prefix:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._get_specific_create_values:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._get_specific_processing_values:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._get_specific_rendering_values:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._get_tx_from_notification_data:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._handle_notification_data:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._process_notification_data:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._send_capture_request:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._send_refund_request:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._send_void_request:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._set_authorized:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._set_canceled:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._set_done:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._set_error:0 +#: ../../../odoo/addons/payment/models/payment_transaction.py:docstring of odoo.addons.payment.models.payment_transaction.PaymentTransaction._set_pending:0 +#: ../../../odoo/odoo/addons/base/models/ir_ui_view.py:docstring of odoo.addons.base.models.ir_ui_view.Model.get_view:0 +#: ../../../odoo/odoo/addons/base/models/ir_ui_view.py:docstring of odoo.addons.base.models.ir_ui_view.Model.get_views:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.Environment.invalidate_all:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.Environment.ref:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.ondelete:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.returns:0 +#: ../../../odoo/odoo/exceptions.py:docstring of odoo.exceptions.RedirectWarning:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Binary:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Char:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Date.context_today:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Date.to_date:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Date.to_string:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Datetime.context_timestamp:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Datetime.to_datetime:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Datetime.to_string:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Field:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Float:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Html:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Image:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Many2many:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Many2one:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Many2oneReference:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Monetary:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.One2many:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Selection:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.fields.Text:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.tools.date_utils.add:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.tools.date_utils.end_of:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.tools.date_utils.start_of:0 +#: ../../../odoo/odoo/fields.py:docstring of odoo.tools.date_utils.subtract:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.HttpDispatcher.handle_error:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.JsonRPCDispatcher.handle_error:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.csrf_token:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.make_json_response:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.make_response:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.render:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.update_env:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Request.validate_csrf:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Response:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Response.load:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.route:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._populate:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._read_group:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.browse:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.copy:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.create:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.default_get:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.fetch:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.fields_get:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.filtered:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.filtered_domain:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.flush_model:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.flush_recordset:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.grouped:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.invalidate_model:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.invalidate_recordset:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.mapped:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.modified:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.name_create:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.name_search:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.read:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.read_group:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.search:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.search_count:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.search_fetch:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.sorted:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.with_company:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.with_env:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.write:0 +#: ../../../odoo/odoo/tests/common.py:docstring of odoo.tests.common.BaseCase.browse_ref:0 +#: ../../../odoo/odoo/tests/common.py:docstring of odoo.tests.common.BaseCase.ref:0 +#: ../../../odoo/odoo/tests/form.py:docstring of odoo.tests.form.Form:0 +#: ../../../odoo/odoo/tools/populate.py:docstring of odoo.tools.populate.cartesian:0 +#: ../../../odoo/odoo/tools/populate.py:docstring of odoo.tools.populate.compute:0 +#: ../../../odoo/odoo/tools/populate.py:docstring of odoo.tools.populate.iterate:0 +#: ../../../odoo/odoo/tools/populate.py:docstring of odoo.tools.populate.randint:0 +#: ../../../odoo/odoo/tools/populate.py:docstring of odoo.tools.populate.randomize:0 +#: ../../../odoo/odoo/tools/profiler.py:docstring of odoo.tools.profiler.PeriodicCollector:0 +#: ../../../odoo/odoo/tools/profiler.py:docstring of odoo.tools.profiler.Profiler.__init__:0 +msgid "Parameters" +msgstr "" + +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:3 +msgid "names of relational fields to check" +msgstr "" + +#: ../../../odoo/odoo/addons/base/models/ir_ui_view.py:docstring of odoo.addons.base.models.ir_ui_view.Model.get_view:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.Environment.companies:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.Environment.company:0 +#: ../../../odoo/odoo/api.py:docstring of odoo.api.Environment.ref:0 +#: ../../../odoo/odoo/http.py:docstring of odoo.http.Response.load:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._read_group:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.create:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.ensure_one:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.fetch:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.read:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.read_group:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.search:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.search_fetch:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.unlink:0 +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel.write:0 +#: ../../../odoo/odoo/tests/form.py:docstring of odoo.tests.form.Form.save:0 +#: ../../../odoo/odoo/tests/form.py:docstring of odoo.tests.form.O2MProxy.edit:0 +#: ../../../odoo/odoo/tests/form.py:docstring of odoo.tests.form.O2MProxy.new:0 +#: ../../../odoo/odoo/tests/form.py:docstring of odoo.tests.form.O2MProxy.remove:0 +msgid "Raises" +msgstr "" + +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:4 +msgid "if the `company_id` of the value of any field is not in `[False, self.company_id]` (or `self` if :class:`~odoo.addons.base.models.res_company`)." +msgstr "" + +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:8 +msgid "For :class:`~odoo.addons.base.models.res_users` relational fields, verifies record company is in `company_ids` fields." +msgstr "" + +#: ../../../odoo/odoo/models.py:docstring of odoo.models.BaseModel._check_company:11 +msgid "User with main company A, having access to company A and B, could be assigned or linked to records in company B." +msgstr "" + +#: ../../content/developer/howtos/company.rst:132 +msgid "The `check_company` feature performs a strict check! It means that if a record has no `company_id` (i.e., the field is not required), it cannot be linked to a record whose `company_id` is set." +msgstr "" + +#: ../../content/developer/howtos/company.rst:138 +msgid "When no domain is defined on the field and `check_company` is set to `True`, a default domain is added: `['|', '('company_id', '=', False), ('company_id', '=', company_id)]`" +msgstr "" + +#: ../../content/developer/howtos/company.rst:144 +msgid "Default company" +msgstr "" + +#: ../../content/developer/howtos/company.rst:146 +msgid "When the field `company_id` is made required on a model, a good practice is to set a default company. It eases the setup flow for the user or even guarantees its validity when the company is hidden from view. Indeed, the company is usually hidden if the user does not have access to multiple companies (i.e., when the user does not have the group `base.group_multi_company`)." +msgstr "" + +#: ../../content/developer/howtos/company.rst:168 +#: ../../content/developer/howtos/upgrade_custom_db.rst:129 +#: ../../content/developer/howtos/website_themes/setup.rst:75 +#: ../../content/developer/howtos/website_themes/theming.rst:496 +#: ../../content/developer/reference/frontend/javascript_reference.rst:1154 +msgid "Views" +msgstr "" + +#: ../../content/developer/howtos/company.rst:170 +msgid "As stated in :ref:`above `, the company is usually hidden from view if the user does not have access to multiple companies. This is assessed with the group `base.group_multi_company`." +msgstr "" + +#: ../../content/developer/howtos/company.rst:197 +msgid "Security rules" +msgstr "" + +#: ../../content/developer/howtos/company.rst:199 +msgid "When working with records shared across companies or restricted to a single company, we must take care that a user does not have access to records belonging to other companies." +msgstr "" + +#: ../../content/developer/howtos/company.rst:202 +msgid "This is achieved with security rules based on `company_ids`, which contain the current companies of the user (the companies the user checked in the multi-company widget)." +msgstr "" + +#: ../../content/developer/howtos/company.rst:229 +#: ../../content/developer/howtos/translations.rst:19 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:77 +#: ../../content/developer/howtos/website_themes/building_blocks.rst:332 +#: ../../content/developer/howtos/website_themes/layout.rst:547 +#: ../../content/developer/howtos/website_themes/pages.rst:130 +#: ../../content/developer/howtos/website_themes/pages.rst:194 +#: ../../content/developer/howtos/website_themes/shapes.rst:125 +#: ../../content/developer/reference/backend/actions.rst:173 +#: ../../content/developer/reference/backend/orm.rst:639 +#: ../../content/developer/reference/backend/orm.rst:641 +#: ../../content/developer/reference/backend/orm.rst:837 +#: ../../content/developer/reference/backend/orm.rst:996 +#: ../../content/developer/reference/backend/security.rst:28 +#: ../../content/developer/reference/backend/security.rst:186 +#: ../../content/developer/reference/frontend/qweb.rst:422 +#: ../../content/developer/reference/frontend/qweb.rst:739 +#: ../../content/developer/reference/user_interface/view_architectures.rst:223 +#: ../../content/developer/reference/user_interface/view_architectures.rst:2661 +#: ../../content/developer/reference/user_interface/view_architectures.rst:2682 +#: ../../content/developer/reference/user_interface/view_records.rst:217 +#: ../../content/developer/tutorials/web.rst:134 +#: ../../content/developer/tutorials/web.rst:1872 +#: ../../content/developer/tutorials/website.rst:495 +#: ../../../odoo/odoo/api.py:docstring of odoo.api:3 +msgid "Todo" +msgstr "" + +#: ../../content/developer/howtos/company.rst:229 +msgid "check_company on company_dependent fields." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:3 +msgid "Connect with a device" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:5 +msgid "IoT Drivers allow any Odoo module to communicate in real-time with any device connected to the IoT Box. Communication with the IoT Box goes both ways, so the Odoo client can send commands to and receive information from any of the supported devices." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:10 +msgid "To add support for a device, all we need is:" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:12 +msgid "an `Interface`, to detect connected devices of a specific type" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:13 +msgid "a `Driver`, to communicate with an individual device" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:15 +msgid "At each boot, the IoT Box will load all of the Interfaces and Drivers that can be located on the connected Odoo instance. Each module can contain an `iot_handlers` directory that will be copied to the IoT Box. The structure of this directory is the following" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:34 +msgid "Detect Devices" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:36 +msgid "Devices connected to the IoT Box are detected through `Interfaces`. There is an Interface for each supported connection type (USB, Bluetooth, Video, Printers, Serial, etc.). The interface maintains a list of detected devices and associates them with the right Driver." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:41 +msgid "Supported devices will appear both on the IoT Box Homepage that you can access through its IP address and in the IoT module of the connected Odoo instance." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:45 +msgid "Interface" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:47 +msgid "The role of the Interface is to maintain a list of devices connected through a determined connection type. Creating a new interface requires" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:50 +msgid "Extending the `Interface` class" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:51 +msgid "Setting the `connection_type` class attribute" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:52 +msgid "Implementing the `get_devices` method, that should return a dictionary containing data about each detected device. This data will be given as argument to the constructors and `supported` method of the Drivers." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:57 +msgid "Setting the `_loop_delay` attribute will modify the interval between calls to `get_devices`. By default, this interval is set to 3 seconds." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:74 +msgid "Driver" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:76 +msgid "Once the interface has retrieved the list of detected devices, it will loop through all of the Drivers that have the same `connection_type` attribute and test their respective `supported` method on all detected devices. If the supported method of a Driver returns `True`, an instance of this Driver will be created for the corresponding device." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:83 +msgid "`supported` methods of drivers are given a priority order. The `supported` method of a child class will always be tested before the one of its parent. This priority can be adjusted by modifying the `priority` attribute of the Driver." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:88 +msgid "Creating a new Driver requires:" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:90 +msgid "Extending `Driver`" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:91 +msgid "Setting the `connection_type` class attribute." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:92 +msgid "Setting the `device_type`, `device_connection` and `device_name` attributes." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:93 +msgid "Defining the `supported` method" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:113 +msgid "Communicate With Devices" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:115 +msgid "Once your new device is detected and appears in the IoT module, the next step is to communicate with it. Since the box only has a local IP address, it can only be reached from the same local network. Communication, therefore, needs to happen on the browser-side, in JavaScript." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:120 +msgid "The process depends on the direction of the communication: - From the browser to the box, through `Actions`_ - From the box to the browser, through `Longpolling`_" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:124 +msgid "Both channels are accessed from the same JS object, the `DeviceProxy`, which is instantiated using the IP of the IoT Box and the device identifier." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:137 +#: ../../content/developer/howtos/website_themes/forms.rst:33 +#: ../../content/developer/reference/backend/actions.rst:3 +#: ../../content/developer/tutorials/getting_started/06_firstui.rst:47 +msgid "Actions" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:139 +msgid "Actions are used to tell a selected device to execute a specific action, such as taking a picture, printing a receipt, etc." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:143 +msgid "It must be noted that no “answer” will be sent by the box on this route, only the request status. The answer to the action, if any, has to be retrieved via the longpolling." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:147 +msgid "An action can be performed on the DeviceProxy Object." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:153 +msgid "In your driver, define an `action` method that will be executed when called from an Odoo module. It takes the data given during the call as argument." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:162 +msgid "Longpolling" +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:164 +msgid "When any module in Odoo wants to read data from a specific device, it creates a listener identified by the IP/domain of the box and the device identifier and passes it a callback function to be called every time the device status changes. The callback is called with the new data as argument." +msgstr "" + +#: ../../content/developer/howtos/connect_device.rst:177 +msgid "In the Driver, an event is released by calling the `device_changed` function from the `event_manager`. All callbacks set on the listener will then be called with `self.data` as argument." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:3 +msgid "Create customized reports" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:5 +msgid "SQL views are a technique for creating customized reports to show data that cannot be shown with existing models' fields and views. In other words, this technique helps avoid unnecessary creation and calculation of additional fields solely for data analysis purposes." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:11 +msgid "Create a model" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:13 +msgid "A SQL view is created in a similar manner as a standard model:" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:26 +msgid "Where the attributes:" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:28 +msgid "`_auto = False` indicates that we do not want to store the model in the database" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:29 +msgid "`_rec_name` indicates which of the model's fields represents a record's name (i.e. the name that will be used in the navigation breadcrumb when opening a record's form view)" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:32 +msgid "and its fields are defined in the same way as a standard model, except every field is marked as `readonly=True`." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:36 +msgid "Don't forget to add your new model to your security file." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:39 +msgid "Populate the model" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:41 +msgid "There are 2 ways to populate a SQL view's table:" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:43 +msgid "override the `BaseModel.init()` method," +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:44 +msgid "set the `_table_query` property." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:46 +msgid "Regardless of which way is used, a SQL query will be executed to populate the model. Therefore, any SQL commands can be used to collect and/or calculate the data needed and you are expected to keep in mind that you are bypassing the ORM (i.e. it is a good idea to read through :ref:`reference/security` if you haven't already). The columns returned from the `SELECT` will populate the model's fields, so ensure that your column names match your field names, or use alias names that match." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:55 +msgid "Overriding `BaseModel.init()`" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:57 +msgid "In most cases, overriding the `BaseModel.init()` method is the standard and better option to use. It requires the import of `tools` and is typically written as follows:" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:71 +msgid "`tools.drop_view_if_exists` ensures that a conflicting view is not created when the SQL query is executed. It is standard to separate the different parts of the query to allow for easier model extension. Exactly how the query is split up across methods is not standardized, but at minimum, the `_select` and `_from` methods are common, and of course, all these methods will return strings." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:78 +msgid "`Example: a SQL view using an override of BaseModel.init() `_" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:81 +msgid "Using `_table_query`" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:83 +msgid "The ``_table_query`` property is used when the view depends on the context. It is typically written as follows:" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:92 +msgid "and follows the same `_select` and `_from` methods standards as `BaseModel.init()`." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:94 +msgid "An example of when the property should be used instead of overriding `BaseModel.init()` is in a multi-company and multi-currency environment where currency related amounts need to be converted using currency exchange rates when the user switches between companies." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:99 +msgid "`Example: a SQL view using _table_query `_" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:103 +msgid "Use the model" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:105 +msgid "Views and menu items for your SQL views are created and used in the same way as any other Odoo model. You are all set to start using your SQL view. Have fun!" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:109 +msgid "Extra tips" +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:112 +msgid "A common mistake in SQL views is not considering the duplication of certain data due to table JOINs. This can lead to miscounting when using a field's `group_operator` and/or the pivot view. It is best to test your SQL view with sufficient data to ensure the resulting field values are as you expect." +msgstr "" + +#: ../../content/developer/howtos/create_reports.rst:118 +msgid "If you have a field that you do not want as a measure (i.e., in your pivot or graph views), add `store=False` to it, and it will not show." +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:6 +msgid "Create a client action" +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:8 +msgid "A client action triggers an action that is entirely implemented in the client side. One of the benefits of using a client action is the ability to create highly customized interfaces with ease. A client action is typically defined by an OWL component; we can also use the web framework and use services, core components, hooks,..." +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:13 +msgid "Create the :ref:`client action `, don't forget to make it accessible." +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:23 +msgid "Create a component that represents the client action." +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:25 +msgid ":file:`my_client_action.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_client_action.rst:40 +msgid ":file:`my_client_action.xml`" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:4 +msgid "Customize a field" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:7 +msgid "Subclass an existing field component" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:9 +msgid "Let's take an example where we want to extends the `BooleanField` to create a boolean field displaying \"Late!\" in red whenever the checkbox is checked." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:12 +msgid "Create a new widget component extending the desired field component." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:14 +#: ../../content/developer/howtos/javascript_field.rst:45 +msgid ":file:`late_order_boolean_field.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:26 +msgid "Create the field template." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:28 +msgid "The component uses a new template with the name `my_module.LateOrderBooleanField`. Create it by inheriting the current template of the `BooleanField`." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:31 +msgid ":file:`late_order_boolean_field.xml`" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:43 +msgid "Register the component to the fields registry." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:50 +#: ../../content/developer/howtos/javascript_field.rst:103 +msgid "Add the widget in the view arch as an attribute of the field." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:57 +msgid "Create a new field component" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:59 +msgid "Assume that we want to create a field that displays a simple text in red." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:61 +msgid "Create a new Owl component representing our new field" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:63 +#: ../../content/developer/howtos/javascript_field.rst:96 +msgid ":file:`my_text_field.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:90 +msgid "The imported `standardFieldProps` contains the standard props passed by the `View` such as the `update` function to update the value, the `type` of the field in the model, the `readonly` boolean, and others." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:94 +msgid "In the same file, register the component to the fields registry." +msgstr "" + +#: ../../content/developer/howtos/javascript_field.rst:101 +msgid "This maps the widget name in the arch to its actual component." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:3 +msgid "Customize a view type" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:6 +msgid "Subclass an existing view" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:8 +msgid "Assume we need to create a custom version of a generic view. For example, a kanban view with some extra ribbon-like widget on top (to display some specific custom information). In that case, this can be done in a few steps:" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:12 +msgid "Extend the kanban controller/renderer/model and register it in the view registry." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:14 +msgid ":file:`custom_kanban_controller.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:39 +msgid "In our custom kanban, we defined a new template. We can either inherit the kanban controller template and add our template pieces or we can define a completely new template." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:42 +msgid ":file:`custom_kanban_controller.xml`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:56 +msgid "Use the view with the `js_class` attribute in arch." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:68 +msgid "The possibilities for extending views are endless. While we have only extended the controller here, you can also extend the renderer to add new buttons, modify how records are presented, or customize the dropdown, as well as extend other components such as the model and `buttonTemplate`." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:73 +msgid "Create a new view from scratch" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:75 +msgid "Creating a new view is an advanced topic. This guide highlight only the essential steps." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:77 +msgid "Create the controller." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:79 +msgid "The primary role of a controller is to facilitate the coordination between various components of a view, such as the Renderer, Model, and Layout." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:82 +msgid ":file:`beautiful_controller.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:116 +msgid "The template of the Controller displays the control panel with Layout and also the renderer." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:119 +msgid ":file:`beautiful_controller.xml`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:131 +msgid "Create the renderer." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:133 +msgid "The primary function of a renderer is to generate a visual representation of data by rendering the view that includes records." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:136 +msgid ":file:`beautiful_renderer.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:144 +msgid ":file:`beautiful_renderer.xml`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:157 +msgid "Create the model." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:159 +msgid "The role of the model is to retrieve and manage all the necessary data in the view." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:161 +msgid ":file:`beautiful_model.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:192 +msgid "For advanced cases, instead of creating a model from scratch, it is also possible to use `RelationalModel`, which is used by other views." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:195 +msgid "Create the arch parser." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:197 +msgid "The role of the arch parser is to parse the arch view so the view has access to the information." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:199 +msgid ":file:`beautiful_arch_parser.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:216 +msgid "Create the view and combine all the pieces together, then register the view in the views registry." +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:219 +msgid ":file:`beautiful_view.js`" +msgstr "" + +#: ../../content/developer/howtos/javascript_view.rst:256 +msgid "Declare the :ref:`view ` in the arch." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:3 +msgid "Write lean easy-to-maintain CSS" +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:5 +msgid "There are many ways to lean and simplify SCSS. The first step is to establish if custom code is needed at all." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:8 +msgid "Odoo's webclient has been designed to be modular, meaning that (potentially all) classes can be shared across views. Check the code before creating a new class. Chances are that there is already a class or an HTML tag doing exactly what you're looking for." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:12 +msgid "On top of that, Odoo relies on `Bootstrap `_ (BS), one of the most complete CSS frameworks available. The framework has been customized in order to match Odoo's design (both community and enterprise versions), meaning that you can use any BS class directly in Odoo and achieve a visual result that is consistent with our UI." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:19 +msgid "The fact that a class achieves the desired visual result doesn't necessarily mean that it's the right one for the job. Be aware of classes triggering JS behaviors, for example." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:21 +msgid "Be careful about class semantics. Applying a **button class** to a **title** is not only semantically wrong, it may also lead to migration issues and visual inconsistencies." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:24 +msgid "The following sections describe tips to strip-down SCSS lines **when custom-code is the only way to go**." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:30 +msgid "Browser defaults" +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:32 +msgid "By default, each browser renders content using a *user agent stylesheet*. To overcome inconsistencies between browsers, some of these rules are overridden by `Bootstrap Reboot `_." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:36 +msgid "At this stage all \"browser-specific-decoration\" rules have been stripped away, but a big chunk of rules defining basic layout information is maintained (or reinforced by *Reboot* for consistency reasons)." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:40 +msgid "You can rely on these rules." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:44 +msgid "Applying `display: block;` to a `
` is normally not necessary." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:55 +msgid "In this instance, you may opt to switching the HTML tag rather than adding a new CSS rule." +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:65 +msgid "Here's a non-comprehensive list of default rules:" +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:70 +msgid "Tag / Attribute" +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:71 +msgid "Defaults" +msgstr "" + +#: ../../content/developer/howtos/scss_tips.rst:72 +msgid "`
`, `
`, `
`, `