Skip to content

Commit 60adfac

Browse files
committed
[FIX] accounting_localization: use relative paths in csv-table's option
The `file` option for the `csv-table` directive expects relative file paths rather than absolute file paths since Sphinx 4. Since this was the only usage of the `ODOO_ABSPATH` placeholder, it is removed with this commit. Task - 2898477 closes odoo#2362 Signed-off-by: Victor Feyens (vfe) <[email protected]>
1 parent 217dba8 commit 60adfac

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
sys.version_info = (3, 7, 0)
9292
odoo_dir = odoo_sources_dirs[0].resolve()
9393
source_read_replace_vals['ODOO_RELPATH'] = '/../' + str(odoo_sources_dirs[0])
94-
source_read_replace_vals['ODOO_ABSPATH'] = str(odoo_dir)
9594
sys.path.insert(0, str(odoo_dir))
9695
import odoo.addons
9796
odoo.addons.__path__.append(str(odoo_dir) + '/addons')

content/developer/howtos/accounting_localization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ It works with the prefix *start*/*end*, so every account where the code starts w
180180

181181
.. csv-table::
182182
:condition: odoo_dir_in_path
183-
:file: {ODOO_ABSPATH}/addons/l10n_il/data/account.group.template.csv
183+
:file: {ODOO_RELPATH}/addons/l10n_il/data/account.group.template.csv
184184
:widths: 20,20,20,20,20
185185
:header-rows: 1
186186

0 commit comments

Comments
 (0)