Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4588 Widoki
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 683,\ in\ _tag_root
\ \ \ \ f\(rec\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 661,\ in\ _tag_template
\ \ \ \ return\ self\._tag_record\(record\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 586,\ in\ _tag_record
\ \ \ \ record\ =\ model\._load_records\(\[data\],\ self\.mode\ ==\ 'update'\)
\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 4420,\ in\ _load_records
\ \ \ \ data\['record'\]\._load_records_write\(data\['values'\]\)
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view\.py",\ line\ 2122,\ in\ _load_records_write
\ \ \ \ super\(View,\ self\)\._load_records_write\(values\)
\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 4344,\ in\ _load_records_write
\ \ \ \ self\.write\(values\)
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view\.py",\ line\ 565,\ in\ write
\ \ \ \ res\ =\ super\(View,\ self\)\.write\(self\._compute_defaults\(vals\)\)
\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 3889,\ in\ write
\ \ \ \ real_recs\._validate_fields\(vals,\ inverse_fields\)
\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 1367,\ in\ _validate_fields
\ \ \ \ check\(self\)
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view\.py",\ line\ 478,\ in\ _check_groups
\ \ \ \ raise\ ValidationError\(_\("Inherited\ Qweb\ view\ cannot\ have\ 'Groups'\ define\ on\ the\ record\.\ Use\ 'groups'\ attributes\ inside\ the\ view\ definition"\)\)
odoo\.exceptions\.ValidationError:\ Inherited\ Qweb\ view\ cannot\ have\ 'Groups'\ define\ on\ the\ record\.\ Use\ 'groups'\ attributes\ inside\ the\ view\ definition

The\ above\ exception\ was\ the\ direct\ cause\ of\ the\ following\ exception:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch
\ \ \ \ result\ =\ request\.dispatch\(\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 687,\ in\ dispatch
\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 359,\ in\ _call_function
\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/service/model\.py",\ line\ 94,\ in\ wrapper
\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 348,\ in\ checked_call
\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 910,\ in\ __call__
\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 535,\ in\ response_wrap
\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1330,\ in\ call_button
\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1318,\ in\ _call_kw
\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 464,\ in\ call_kw
\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 451,\ in\ _call_kw_multi
\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)
\ \ File\ "",\ line\ 2,\ in\ button_immediate_upgrade
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 74,\ in\ check_and_log
\ \ \ \ return\ method\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 666,\ in\ button_immediate_upgrade
\ \ \ \ return\ self\._button_immediate_function\(type\(self\)\.button_upgrade\)
\ \ File\ "/home/odoo/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 603,\ in\ _button_immediate_function
\ \ \ \ registry\ =\ modules\.registry\.Registry\.new\(self\._cr\.dbname,\ update_module=True\)
\ \ File\ "/home/odoo/src/odoo/odoo/modules/registry\.py",\ line\ 87,\ in\ new
\ \ \ \ odoo\.modules\.load_modules\(registry,\ force_demo,\ status,\ update_module\)
\ \ File\ "/home/odoo/src/odoo/odoo/modules/loading\.py",\ line\ 470,\ in\ load_modules
\ \ \ \ processed_modules\ \+=\ load_marked_modules\(cr,\ graph,
\ \ File\ "/home/odoo/src/odoo/odoo/modules/loading\.py",\ line\ 363,\ in\ load_marked_modules
\ \ \ \ loaded,\ processed\ =\ load_module_graph\(
\ \ File\ "/home/odoo/src/odoo/odoo/modules/loading\.py",\ line\ 222,\ in\ load_module_graph
\ \ \ \ load_data\(cr,\ idref,\ mode,\ kind='data',\ package=package\)
\ \ File\ "/home/odoo/src/odoo/odoo/modules/loading\.py",\ line\ 69,\ in\ load_data
\ \ \ \ tools\.convert_file\(cr,\ package\.name,\ filename,\ idref,\ mode,\ noupdate,\ kind\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 748,\ in\ convert_file
\ \ \ \ convert_xml_import\(cr,\ module,\ fp,\ idref,\ mode,\ noupdate\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 814,\ in\ convert_xml_import
\ \ \ \ obj\.parse\(doc\.getroot\(\)\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 734,\ in\ parse
\ \ \ \ self\._tag_root\(de\)
\ \ File\ "/home/odoo/src/odoo/odoo/tools/convert\.py",\ line\ 694,\ in\ _tag_root
\ \ \ \ raise\ ParseError\(msg\)\ from\ None\ \ \#\ Restart\ with\ "\-\-log\-handler\ odoo\.tools\.convert:DEBUG"\ for\ complete\ traceback
Exception

The\ above\ exception\ was\ the\ direct\ cause\ of\ the\ following\ exception:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 643,\ in\ _handle_exception
\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 301,\ in\ _handle_exception
\ \ \ \ raise\ exception\.with_traceback\(None\)\ from\ new_cause
odoo.tools.convert.ParseError: while parsing None:4
Inherited Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition

View error context:
'-no context-'



Awatar
Odrzuć
Autor

please help me in this problem

Najlepsza odpowiedź

Hi 

You can use 

<t groups>

attribute in XML view instead of groups attribute in Odoo 16.

Please check with this Example


<t groups="module_name.group_name">
           

                <table class="table table-sm" style="width: 50%;" name="invoice_snln_table">
                    <thead>
                        <tr>
                            <th><span>Product</span></th>
                            <th class="text-end"><span>Quantity</span></th>
                            <th class="text-end"><span>SN/LN</span></th>
                        </tr>
                    </thead>
                   
                </table>
         
          </t>


Hope this Helps


Regards

Awatar
Odrzuć
Autor

my data base odoo 15

You can use this same code , In Odoo 15 also the t groups attribute is used

Najlepsza odpowiedź

Hello Hamada Fawzy Mohammed,

You can refer the example given in below link to set the group in "qweb" report for odoo version 15.
Link: https://github.com/odoo/odoo/blob/15.0/addons/sale/report/invoice_report_templates.xml#L10

I hope this helps you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Awatar
Odrzuć
Autor

i am not a developer
so I cant do this