[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/documentation#2455 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
parent
fb149f3cb3
commit
a1d7e430c7
1
conf.py
1
conf.py
@ -91,7 +91,6 @@ else:
|
||||
sys.version_info = (3, 7, 0)
|
||||
odoo_dir = odoo_sources_dirs[0].resolve()
|
||||
source_read_replace_vals['ODOO_RELPATH'] = '/../' + str(odoo_sources_dirs[0])
|
||||
source_read_replace_vals['ODOO_ABSPATH'] = str(odoo_dir)
|
||||
sys.path.insert(0, str(odoo_dir))
|
||||
import odoo.addons
|
||||
odoo.addons.__path__.append(str(odoo_dir) + '/addons')
|
||||
|
@ -180,7 +180,7 @@ It works with the prefix *start*/*end*, so every account where the code starts w
|
||||
|
||||
.. csv-table::
|
||||
:condition: odoo_dir_in_path
|
||||
:file: {ODOO_ABSPATH}/addons/l10n_il/data/account.group.template.csv
|
||||
:file: {ODOO_RELPATH}/addons/l10n_il/data/account.group.template.csv
|
||||
:widths: 20,20,20,20,20
|
||||
:header-rows: 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user