Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] doc: howto backend: v8 report engine guide #39

Closed
wants to merge 1 commit into from

Conversation

sle-odoo
Copy link

No description provided.

@xmo-odoo xmo-odoo closed this Aug 14, 2014
nabero pushed a commit that referenced this pull request Aug 26, 2014
Avoid to get company names such as "L'abc" to be transformed as "L'abc" opw 607221
@sle-odoo sle-odoo deleted the 8.0-newnewdoc-report-sle branch October 30, 2014 16:13
aj-fuentes added a commit that referenced this pull request May 23, 2022
base_setup is the module that adds the buttons
https://github.com/odoo/odoo/blob/354433e7ba5b5f81f83368e497a8bed5059c91d5/addons/base_setup/views/res_config_settings_views.xml#L182

Without this change some DBs fail to upgrade
```
Traceback (most recent call last):
  File "/tmp/tmpsm7tdgh3/migrations/base/tests/test_mock_crawl.py", line 193, in crawl_menu
    self.mock_action(action_vals)
  File "/tmp/tmpsm7tdgh3/migrations/base/tests/test_mock_crawl.py", line 267, in mock_action
    views = get_views(
  File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line 1626, in load_views
    result['fields_views'] = {
  File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line 1627, in <dictcomp>
    v_type: self.fields_view_get(v_id, v_type if v_type != 'list' else 'tree',
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/res_config.py", line 393, in fields_view_get
    ret_val = super(ResConfigSettings, self).fields_view_get(
  File "/home/odoo/src/odoo/saas-15.2/addons/web/models/models.py", line 249, in fields_view_get
    r = super().fields_view_get(view_id, view_type, toolbar, submenu)
  File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line 1712, in fields_view_get
    result = self._fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line 1672, in _fields_view_get
    result['arch'] = view.get_combined_arch()
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_ui_view.py", line 954, in get_combined_arch
    return etree.tostring(self._get_combined_arch(), encoding='unicode')
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_ui_view.py", line 984, in _get_combined_arch
    arch = root.with_prefetch(tree_views._prefetch_ids)._combine(hierarchy)
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_ui_view.py", line 925, in _combine
    combined_arch = view.apply_inheritance_specs(combined_arch, arch)
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_ui_view.py", line 862, in apply_inheritance_specs
    self._raise_view_error(str(e), specs_tree)
  File "/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_ui_view.py", line 739, in _raise_view_error
    raise err from from_exception
ValueError: Element '<xpath expr="//button[@name=75]//ancestor::div[hasclass(&#39;o_setting_box&#39;)]">' cannot be located in parent view
```
The `base` view has no such buttons
https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/views/res_config_settings_views.xml
To ensure the order is correct here we inherit from the view that adds the buttons.

Issue observed on upg-328402
aj-fuentes added a commit that referenced this pull request Jan 26, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```
fw-bot pushed a commit that referenced this pull request Jan 26, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```

X-original-commit: 1e77fab
Feyensv pushed a commit that referenced this pull request Jan 26, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```

closes odoo#111073

Signed-off-by: Christophe Simonis <chs@odoo.com>
fw-bot pushed a commit that referenced this pull request Jan 26, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```

X-original-commit: 1e77fab
fw-bot pushed a commit that referenced this pull request Jan 26, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```

closes odoo#111140

X-original-commit: 1e77fab
Signed-off-by: Christophe Simonis <chs@odoo.com>
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
fw-bot pushed a commit that referenced this pull request Jan 27, 2023
The view `hr_job_search_view` needs an xpath anchor set on the view
`view_job_filter_recruitment`. Since both views have default priority
the order they are applied depends on their ID. In a normal install
process the views are created in the right order, but there are cases
where the IDs are not on the right order.

Steps to reproduce:
1. Install hr_recruitment in 15.0
2. Remove the view pointed by view_job_filter_recruitment
3. Update to 16.0

We get an error:
```
ValueError: Element '<xpath expr="//filter[@name=&#39;my_favorite_jobs&#39;]">' cannot be located in parent view
```

closes odoo#111123

X-original-commit: 1e77fab
Signed-off-by: Christophe Simonis <chs@odoo.com>
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
pimodoo added a commit that referenced this pull request May 24, 2023
Since we've created unescapeHTML to replace the _.unescape function. The
issue is that _.unescape was using the hex code '&#x27," for the
character " ' ". And the new function uses the decimal code '&#39;', but
as there are some old domains for dashboard have ben stored escaped with
'&#x27', we are now unable to unescape them.
fw-bot pushed a commit that referenced this pull request May 25, 2023
Since we've created unescapeHTML to replace the _.unescape function. The
issue is that _.unescape was using the hex code '&#x27," for the
character " ' ". And the new function uses the decimal code '&#39;', but
as there are some old domains for dashboard have ben stored escaped with
'&#x27', we are now unable to unescape them.

X-original-commit: 1516b52
fw-bot pushed a commit that referenced this pull request May 25, 2023
Since we've created unescapeHTML to replace the _.unescape function. The
issue is that _.unescape was using the hex code '&#x27," for the
character " ' ". And the new function uses the decimal code '&#39;', but
as there are some old domains for dashboard have ben stored escaped with
'&#x27', we are now unable to unescape them.

closes odoo#122312

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
fw-bot pushed a commit that referenced this pull request May 25, 2023
Since we've created unescapeHTML to replace the _.unescape function. The
issue is that _.unescape was using the hex code '&#x27," for the
character " ' ". And the new function uses the decimal code '&#39;', but
as there are some old domains for dashboard have ben stored escaped with
'&#x27', we are now unable to unescape them.

closes odoo#122457

X-original-commit: 1516b52
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Masereel Pierre <pim@odoo.com>
sagu-odoo pushed a commit that referenced this pull request Dec 11, 2023
When opening a record, the web editor converts `&#39;` to `'`, which
marks the record as dirty and makes a useless write. Moreover, this
write can sometimes fail due to permission errors.

Part of odoo/upgrade#2714

Signed-off-by: Christophe Simonis <chs@odoo.com>
adwid added a commit that referenced this pull request Dec 13, 2023
Revert [1]

Changing `t` into `span` is not allowed in stable, in case some
customization already exist and have xpath that target `t`. The
change OE side [2] is problematic too: if a DB has the old XML version
(`t`) and the user tries to install `industry_fsm`, an error will be
raised:
`Element '<xpath expr="//span[@t-if=&#39;record.partner_id.value&#39;]">'`
`cannot be located in parent view`

[1] b3e3c92
[2] odoo/enterprise@0940096

OPW-3629163
sentry-4700256130
prra-odoo pushed a commit that referenced this pull request Dec 13, 2023
Revert [1]

Changing `t` into `span` is not allowed in stable, in case some
customization already exist and have xpath that target `t`. The
change OE side [2] is problematic too: if a DB has the old XML version
(`t`) and the user tries to install `industry_fsm`, an error will be
raised:
`Element '<xpath expr="//span[@t-if=&#39;record.partner_id.value&#39;]">'`
`cannot be located in parent view`

[1] b3e3c92
[2] odoo/enterprise@0940096

OPW-3629163
sentry-4700256130

closes odoo#146094

Related: odoo/enterprise#52682
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
robinengels added a commit that referenced this pull request Feb 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870
robinengels added a commit that referenced this pull request Feb 23, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870
deso-odoo pushed a commit that referenced this pull request Feb 29, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#152657

Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
robinengels added a commit that referenced this pull request Mar 1, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 4c2e92d
robinengels added a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: b05ff00
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#155853

X-original-commit: 4c2e92d
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 7875c91
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156472

X-original-commit: b05ff00
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 7875c91
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 7875c91
fw-bot pushed a commit that referenced this pull request Mar 5, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 7875c91
clesgow pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 7875c91
padh-odoo pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156607

X-original-commit: 7875c91
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156566

X-original-commit: 7875c91
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156583

X-original-commit: 7875c91
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156597

X-original-commit: 7875c91
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 531cb95
fw-bot pushed a commit that referenced this pull request Mar 6, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156624

X-original-commit: 7875c91
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
fw-bot pushed a commit that referenced this pull request Mar 7, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156803

X-original-commit: 531cb95
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
clesgow pushed a commit that referenced this pull request Mar 7, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

X-original-commit: 531cb95
MohammedBasioni pushed a commit that referenced this pull request Mar 8, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156814

X-original-commit: 531cb95
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
thle-odoo pushed a commit that referenced this pull request Mar 8, 2024
Current behavior:
When printing products ZPL Labels, special characters are not printed
correctly. e.g. quotes become &#39;

Steps to reproduce:
- Modify a product name with special characters
- Print a product label
- Select ZPL Labels

As the report is only rendered as text, the special characters are not
dangerous and can be printed as is.

opw-3684870

closes odoo#156814

X-original-commit: 531cb95
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants