Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Ontario Payroll glitch

on 3/14/13, 9:25 AM 729 views

Hi !

I am new to OpenERP. Just installed v7, and tried the Ontario Payroll module. I get this error :

"AttributeError: View definition error for inherited view 'l10n_ca_on_hr_payroll.hr_contract_form_inherit' on model 'hr.contract': Element '<xpath expr="/form/notebook/page/group/field[@name='working_hours']">' not found in parent view 'hr_contract.hr_contract_view_form'

when I try to create a Contract.

Moreover, now when I log in I am greeted with the message:

"except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')"

I am just finding my way around OpenERP, but have good knowledge of XML and programming. Any pointers of where to start fixing this would be appreciated.

Cheers, Raul

try contacting the people who developed the ontario payroll module,

on 3/14/13, 9:42 AM

This is why I posted the question, since there is no contact I could find for the developer

on 3/14/13, 9:46 AM
On 3/16/13, 12:33 AM

As per Yannick's advice, replacing




in "l10n_ca_on_hr_payroll_view.xml" was enough to make it work. Not sure yet if it caused other problems, or if this is the only problem porting to v7.

On 3/14/13, 9:46 AM

This is why I posted the question, since there is no contact I could find for the developer.


Yannick Vaucher

--Yannick Vaucher--
| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher--
Yannick Vaucher
On 3/14/13, 10:52 AM

It seems Ontario Payroll isn't ported yet to v7.0 so you have a view inheritance issue. Did you took the v6.1?

That is true, I picked the 6.1. Now, I need some pointers on how to resolve this. I started looking at the view definitions, hope it's just a question of modifying the xpath in question to match the new location of the element in V7 of 'hr_contract.hr_contract_view_form'. Will post if that worked.

on 3/15/13, 10:20 AM

Try to replace the xpath expr by a relative one



Camptocamp SA
on 3/15/13, 12:48 PM

Thanks Yannick ! That did it. How can we make this available to other interested parties ?

on 3/16/13, 12:27 AM

To contribute, you should read this: how-can-i-contribute-to-openerp And for this specific canadian module, try to contact Maxime Chambreuil on launchpad.net, he is the creator of the lp:openerp-canada project.

Camptocamp SA
on 3/16/13, 1:09 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 3/14/13, 9:25 AM
Seen: 729 times
Last updated: 3/16/15, 8:10 AM