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

v16 Unable to install rental_base #3

Open
etoimene opened this issue May 27, 2024 · 4 comments
Open

v16 Unable to install rental_base #3

etoimene opened this issue May 27, 2024 · 4 comments

Comments

@etoimene
Copy link

I gave it a try but unsuccessful.

Element '' cannot be located in parent view

Seems that Parent identification by id does not get the the correct view.


odoo.tools.convert.ParseError: while parsing /home/xxxx/OdooProjects/Odoo16/elego/rental-vertical/rental_base/views/sale_view.xml:63
Error while validating view:

Element '<xpath expr="//group[field[@name=&#39;analytic_tag_ids&#39;]]">' cannot be located in parent view

View error context:
{'file': '/home/xxxx/OdooProjects/Odoo16/elego/rental-vertical/rental_base/views/sale_view.xml',
 'line': 2,
 'name': 'rental_base.view_order_form',
 'view': ir.ui.view(1453,),
 'view.model': 'sale.order',
 'view.parent': ir.ui.view(1331,),
 'xmlid': 'view_order_form'}
@etoimene
Copy link
Author

etoimene commented May 27, 2024

sale_rental.view_order_form that I have does not have analytic_tag_ids

Which sale_rental is this elego version based on?

15.0 does not have that tags either.
https://github.com/OCA/sale-workflow/blob/15.0/sale_rental/views/sale_rental.xml

@olaf-wagner
Copy link
Contributor

olaf-wagner commented May 27, 2024

Der Code ist noch nicht auf v16 portiert. Die hoechste funktionierende Version ist v15.
Sorry, need to speak English here of course. The code hasn't been ported yet to version 16. The hightest supported Odoo version currently is 15.

@olaf-wagner
Copy link
Contributor

@mrgoetz can you check if there is problem regarding these tags in v15?

rental_base//views/sale_view.xml:                expr="//group[field[@name='analytic_tag_ids']]"
rental_base//views/sale_view.xml:            <!-- <xpath expr="//label[@for='analytic_tag_ids']" position="attributes">
rental_base//views/sale_view.xml:            <xpath expr="//field[@name='analytic_tag_ids']" position="attributes">
rental_base//views/sale_view.xml:                        for="analytic_tag_ids"
rental_base//views/sale_view.xml:                        groups="analytic.group_analytic_tags"
rental_base//views/sale_view.xml:                            name="analytic_tag_ids"
rental_base//views/sale_view.xml:                            groups="analytic.group_analytic_tags"

If so, perhaps an integration a feature or fix branch is missing?

@mrgoetz
Copy link

mrgoetz commented May 28, 2024

@etoimene @olaf-wagner

as far as I could test, the rental-vertical modules run with version 15.

The view in rental_base//views/sale_view.xml having ...expr="//group[field[@name='analytic_tag_ids']]"...

inherits from the core module "sale" and here we find the view "view_order_form" and:
<field name="analytic_tag_ids"

See
https://github.com/odoo/odoo/blob/15.0/addons/sale/views/sale_views.xml

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants