update edit repository

This commit is contained in:
hoangvv 2025-02-28 16:04:04 +07:00
parent 680f763c50
commit 4be6903e8f
10 changed files with 209 additions and 81 deletions

View File

@ -47,8 +47,8 @@ language = None
# The suffix of source filenames. # The suffix of source filenames.
source_suffix = { source_suffix = {
".rst": "restructuredtext",
".md": "markdown", ".md": "markdown",
".rst": "restructuredtext",
} }
# The master toctree document. # The master toctree document.
@ -248,7 +248,7 @@ intersphinx_mapping = {
"werkzeug": ("https://werkzeug.palletsprojects.com/en/2.3.x/", None), "werkzeug": ("https://werkzeug.palletsprojects.com/en/2.3.x/", None),
} }
github_user = "odoo" github_user = "NextERP"
github_project = "documentation" github_project = "documentation"
locale_dirs = ["../locale/"] locale_dirs = ["../locale/"]

View File

@ -14,46 +14,54 @@ accounts, smart matching suggestions, etc.
:::{seealso} :::{seealso}
[Odoo Tutorials: Accounting](https://www.odoo.com/slides/accounting-19) [Odoo Tutorials: Accounting](https://www.odoo.com/slides/accounting-19)
::: :::
::::{grid} 3
:gutter: 2
```{eval-rst} :::{grid-item-card} Get started
.. cards:: :link: accounting/get_started.html
.. card:: Get started
:target: accounting/get_started
:large:
Basic concepts of accounting and initial setup of your accounting Basic concepts of accounting and initial setup of your accounting
:::
.. card:: Taxes :::{grid-item-card} Taxes
:target: accounting/taxes :link: accounting/taxes.html
Taxes, fiscal positions, and integrations Taxes, fiscal positions, and integrations
:::
.. card:: Customer invoices :::{grid-item-card} Customer invoices
:target: accounting/customer_invoices :link: accounting/customer_invoices.html
Customer invoices, payment terms, and electronic invoicing Customer invoices, payment terms, and electronic invoicing
:::
::::
.. card:: Vendor bills ::::{grid} 3
:target: accounting/vendor_bills :gutter: 2 2 2 2
:::{grid-item-card} Vendor bills
:columns: 3
:link: accounting/vendor_bills.html
Vendor bills, assets, and invoice digitization (OCR) Vendor bills, assets, and invoice digitization (OCR)
:::
.. card:: Payments :::{grid-item-card} Payments
:target: accounting/payments :columns: 3
:link: accounting/payments.html
Invoices and bills payments (online, checks, batches) and follow-up on invoices Invoices and bills payments (online, checks, batches) and follow-up on invoices
:::
.. card:: Bank and cash accounts :::{grid-item-card} Bank and cash accounts
:target: accounting/bank :columns: 3
:link: accounting/bank.html
Bank synchronization, reconciliation, and cash registers Bank synchronization, reconciliation, and cash registers
:::
.. card:: Reporting :::{grid-item-card} Reporting
:target: accounting/reporting :columns: 3
:link: accounting/reporting.html
Reporting, declarations, and analytic accounting Reporting, declarations, and analytic accounting
``` :::
::::
## Double-entry bookkeeping ## Double-entry bookkeeping
@ -69,7 +77,7 @@ always balance.
{doc}`Accounting Cheat Sheet <accounting/get_started/cheat_sheet>` {doc}`Accounting Cheat Sheet <accounting/get_started/cheat_sheet>`
::: :::
## Accrual and cash basis ## Actual and cash basis
Both accrual and cash basis accounting are supported in Odoo. This allows reporting income and Both accrual and cash basis accounting are supported in Odoo. This allows reporting income and
expense either when the transaction occurs (accrual basis) or when the payment is made or received expense either when the transaction occurs (accrual basis) or when the payment is made or received

View File

@ -41,44 +41,52 @@ information on the portal's subscription page.
- [Odoo Tutorials: Internet of Things (IoT) Tutorials](https://www.odoo.com/slides/internet-of-things-iot-175) - [Odoo Tutorials: Internet of Things (IoT) Tutorials](https://www.odoo.com/slides/internet-of-things-iot-175)
- [IoT system FAQ](https://www.odoo.com/app/iot-faq) - [IoT system FAQ](https://www.odoo.com/app/iot-faq)
::: :::
::::{grid} 2
:gutter: 2
```{eval-rst} :::{grid-item-card} IoT box
.. cards:: :link: iot/iot_box.html
.. card:: IoT box
:target: iot/iot_box
:large:
Set up an IoT box.
.. card:: Windows virtual IoT
:target: iot/windows_iot
:large:
Set up Windows virtual IoT. Set up Windows virtual IoT.
:::
:::{grid-item-card} Windows virtual IoT
:link: iot/windows_iot.html
Set up Windows virtual IoT.
:::
::::
.. card:: IoT system connection to Odoo ::::{grid} 4
:target: iot/connect :gutter: 2 2 2 2
Connect the IoT system to your Odoo database and troubleshoot potential connection issues. :::{grid-item-card} Devices
:link: iot/devices.html
.. card:: Devices :columns: 3
:target: iot/devices
Connect devices such as printers, screens, measurement tools, etc., to the IoT system. Connect devices such as printers, screens, measurement tools, etc., to the IoT system.
:::
.. card:: HTTPS certificate :::{grid-item-card} HTTPS certificate
:target: iot/iot_advanced/https_certificate_iot :link: iot/iot_advanced/https_certificate_iot.html
:columns: 3
Verify your IoT system and database meet the eligibility requirements for HTTPS certificate Verify your IoT system and database meet the eligibility requirements for HTTPS certificate
generation and address any related issues. generation and address any related issues.
:::
.. card:: IoT system updates :::{grid-item-card} IoT system updates
:target: iot/iot_advanced/updating_iot :link: iot/iot_advanced/updating_iot.html
:columns: 3
Update your IoT system's image, core code, and handlers to benefit from the latest IoT fixes Update your IoT system's image, core code, and handlers to benefit from the latest IoT fixes
and features or reset the IoT system if needed. and features or reset the IoT system if needed.
``` :::
:::{grid-item-card} IoT system connection to Odoo
:link: iot/connect.html
:columns: 3
Connect the IoT system to your Odoo database and troubleshoot potential connection issues.
:::
::::
```{toctree} ```{toctree}
:titlesonly: true :titlesonly: true

View File

@ -24,26 +24,29 @@ underlying infrastructure.
If you are new to Odoo or web application development, start with the If you are new to Odoo or web application development, start with the
{doc}`developer/tutorials/server_framework_101` tutorial. {doc}`developer/tutorials/server_framework_101` tutorial.
::::{grid} 3
:gutter: 2
```{eval-rst} :::{grid-item-card} Tutorials
.. cards:: :link: developer/tutorials.html
:columns: 3
.. card:: Tutorials
:target: developer/tutorials
Tutorials take you by the hand through hands-on exercises to build skills and familiarity in Tutorials take you by the hand through hands-on exercises to build skills and familiarity in
Odoo development. Odoo development.
:::
.. card:: How-to guides :::{grid-item-card} How-to guides
:target: developer/howtos :link: developer/howtos.html
:columns: 3
Recipes that provide a step-by-step guide for addressing real-world problems and use-cases. Recipes that provide a step-by-step guide for addressing real-world problems and use-cases.
:::
.. card:: Reference :::{grid-item-card} Reference
:target: developer/reference :columns: 3
:link: developer/reference.html
Technical descriptions and factual information on the frameworks and APIs of Odoo. Technical descriptions and factual information on the frameworks and APIs of Odoo.
``` :::
::::
:::{seealso} :::{seealso}
- {doc}`Guide: Contribute to the codebase </contributing/development>` - {doc}`Guide: Contribute to the codebase </contributing/development>`

View File

@ -95,7 +95,7 @@ def make_github_link(app, project, path, line=None, mode="blob"):
urlpath = f"/{app.config.github_user}/{project}/{mode}/{branch}/{path}" urlpath = f"/{app.config.github_user}/{project}/{mode}/{branch}/{path}"
return werkzeug.urls.url_unparse(( return werkzeug.urls.url_unparse((
'https', 'https',
'github.com', 'git.nextzenos.com',
urlpath, urlpath,
'', '',
'' if line is None else 'L%d' % line '' if line is None else 'L%d' % line
@ -112,5 +112,5 @@ def add_doc_link(app, pagename, templatename, context, doctree):
# may be useful in the future # may be useful in the future
source_suffix = app.config.source_suffix source_suffix = app.config.source_suffix
source_suffix = next(iter(source_suffix)) source_suffix = next(iter(source_suffix))
context['github_link'] = lambda mode='edit': make_github_link( context['github_link'] = lambda mode='_edit': make_github_link(
app, project=app.config.github_project, path=f'content/{pagename}{source_suffix}', mode=mode) app, project=app.config.github_project, path=f'content/{pagename}{source_suffix}', mode=mode)

View File

@ -116,9 +116,9 @@
{%- block body %} {%- endblock %} {%- block body %} {%- endblock %}
</div> </div>
{%- if github_link and pagename != 'search' and not pagename.startswith('legal') %} {%- if github_link and pagename != 'search' and not pagename.startswith('legal') %}
<a href="{{ github_link(mode='edit') }}" <a href="{{ github_link(mode='_edit') }}"
class="o_git_link d-none d-lg-inline-block"> class="o_git_link d-none d-lg-inline-block">
<i class="i-edit"></i> Edit on GitHub <i class="i-edit"></i> Edit on Repository
</a> </a>
{%- endif %} {%- endif %}
</article> </article>

View File

@ -0,0 +1,28 @@
::::{grid} 2
:gutter: 2
:::{grid-item-card}
A
:::
:::{grid-item-card}
B
:::
::::
::::{grid} 3
:gutter: 2 2 2 2
:::{grid-item-card}
:columns: 6
C
:::
:::{grid-item-card} D
:columns: 3
:::
:::{grid-item-card} E
:link: website/mail_groups.html
:columns: 3
:::
::::

View File

@ -0,0 +1,32 @@
::::{grid} 2
:gutter: 2
:::{grid-item-card}
A
:::
:::{grid-item-card}
B
:::
::::
::::{grid} 4
:gutter: 2
:::{grid-item-card}
:columns: 3
C
:::
:::{grid-item-card} D
:columns: 3
:::
:::{grid-item-card} E
:link: website/mail_groups.html
:columns: 3
:::
:::{grid-item-card} G
:link: website/mail_groups.html
:columns: 3
:::
::::

View File

@ -0,0 +1,16 @@
::::{grid} 2
:gutter: 2
:::{grid-item-card}
:columns: 3
A
:::
:::{grid-item-card}
:columns: 3
B
:::
:::{grid-item-card}
:columns: 3
C
:::
::::

View File

@ -0,0 +1,33 @@
::::{grid} 3
:gutter: 2
:::{grid-item-card}
A
:::
:::{grid-item-card}
B
:::
:::{grid-item-card}
C
:::
::::
::::{grid} 3
:gutter: 2 2 2 2
:::{grid-item-card}
:columns: 3
C
:::
:::{grid-item-card}
:columns: 3
D
:::
:::{grid-item-card} E
:columns: 3
:::
:::{grid-item-card} G
:columns: 3
:::
::::