Facebook
From Crisyelit, 1 Year ago, written in Plain Text.
This paste is a reply to error al git from crisyelit - view diff
Embed
Download Paste or View Raw
Hits: 208
  1. Error:
  2. Odoo Server Error
  3.  
  4. Traceback (most recent call last):
  5.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 745, in parse
  6.     self._tags[rec.tag](rec, de, mode=mode)
  7.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 666, in _tag_template
  8.     if '.' not in full_tpl_id:
  9. TypeError: argument of type 'NoneType' is not iterable
  10.  
  11. During handling of the above exception, another exception occurred:
  12.  
  13. Traceback (most recent call last):
  14.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 653, in _handle_exception
  15.     return super(JsonRequest, self)._handle_exception(exception)
  16.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
  17.     raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  18.   File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
  19.     raise value
  20.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 695, in dispatch
  21.     result = self._call_function(**self.params)
  22.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
  23.     return checked_call(self.db, *args, **kwargs)
  24.   File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
  25.     return f(dbname, *args, **kwargs)
  26.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
  27.     result = self.endpoint(*a, **kw)
  28.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
  29.     return self.method(*args, **kw)
  30.   File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
  31.     response = f(*args, **kw)
  32.   File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 938, in call_button
  33.     action = self._call_kw(model, method, args, {})
  34.   File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in _call_kw
  35.     return call_kw(request.env[model], method, args, kwargs)
  36.   File "/usr/lib/python3/dist-packages/odoo/api.py", line 699, in call_kw
  37.     return call_kw_multi(method, model, args, kwargs)
  38.   File "/usr/lib/python3/dist-packages/odoo/api.py", line 690, in call_kw_multi
  39.     result = method(recs, *args, **kwargs)
  40.   File "<decorator-gen-42>", line 2, in button_immediate_install
  41.   File "/usr/lib/python3/dist-packages/odoo/addons/base/module/module.py", line 72, in check_and_log
  42.     return method(self, *args, **kwargs)
  43.   File "/usr/lib/python3/dist-packages/odoo/addons/base/module/module.py", line 450, in button_immediate_install
  44.     return self._button_immediate_function(type(self).button_install)
  45.   File "/usr/lib/python3/dist-packages/odoo/addons/base/module/module.py", line 552, in _button_immediate_function
  46.     modules.registry.Registry.new(self._cr.dbname, update_module=True)
  47.   File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
  48.     odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  49.   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 380, in load_modules
  50.     loaded_modules, update_module, models_to_check)
  51.   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 274, in load_marked_modules
  52.     perform_checks=perform_checks, models_to_check=models_to_check
  53.   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 181, in load_module_graph
  54.     _load_data(cr, module_name, idref, mode, kind='data')
  55.   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 95, in _load_data
  56.     tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  57.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 792, in convert_file
  58.     convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  59.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 853, in convert_xml_import
  60.     obj.parse(doc.getroot(), mode=mode)
  61.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 742, in parse
  62.     self.parse(rec, mode)
  63.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 752, in parse
  64.     exc_info[2]
  65.   File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 86, in reraise
  66.     raise value.with_traceback(tb)
  67.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 745, in parse
  68.     self._tags[rec.tag](rec, de, mode=mode)
  69.   File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 666, in _tag_template
  70.     if '.' not in full_tpl_id:
  71. odoo.tools.convert.ParseError: "argument of type 'NoneType' is not iterable" while parsing /mnt/extra-addons/pos_session_custom2_extend/views/report2_extend.xml:4, near
  72. <template>
  73.             <t t-extend="report2">
  74.                 <t t-jquery="div.page" t-operation="replace">
  75.                     <t t-call="web.basic_layout">
  76.                         <t t-foreach="docs" t-as="o">
  77.                             <div class="page">
  78.                                 <style type="text/css">
  79.                                 table {
  80.                                     width: 100%;
  81.                                 }
  82.                                 </style>
  83.                                 <div class="text-center">
  84.                                     <t t-set="company" t-value="o.config_id.company_id"/>
  85.                                     <img src="/web/binary/company_logo" style="width: 45%;padding: 2px 8px 0px 13px;float: center;"/>
  86.                                     <br/>
  87.                                     <t t-esc="company.name"/>
  88.                                 </div>
  89.                                 <center>
  90.                                     <b>REPORTE DE SESIÓN POS</b>
  91.                                     <p>
  92.                                         <!--Date: <br/>-->
  93.                                         <span>CAJERO: </span><span t-field="o.user_id"/><br/>
  94.                                         <b>FECHA DE APERTURA:</b> <span t-field="o.start_at"/><br/>
  95.                                         <b>FECHA DE CIERRE:</b> <span t-field="o.stop_at"/>
  96.                                     </p>
  97.                                     <p>
  98.                                         TOTAL FACTURAS: <span t-esc="o.tickets_num"/><br/>
  99.                                         DESDE: <span t-field="o.ticket_first_id.pos_reference"/><br/>
  100.                                         HASTA: <span t-field="o.ticket_last_id.pos_reference"/>
  101.                                     </p>
  102.                                 </center>
  103.                                 <hr/>
  104.                                 <br/>
  105.                                 <center><b>VENTAS CONTADO</b></center>
  106.                                 <table>
  107.                                     <t t-set="cash_total" t-value="0"/>
  108.                                     <tbody>
  109.                                         <tr t-foreach="o.statement_ids.filtered(lambda x: x.journal_id.name not in ['Credit', 'CREDITO'])" t-as="i">
  110.                                             <td>
  111.                                                 <h4><span t-field="i.journal_id"/></h4>
  112.                                             </td>
  113.                                             <td class="text-right">
  114.                                                 <h4><span t-field="i.total_entry_encoding_custom"/></h4>
  115.                                             </td>
  116.                                             <t t-set="cash_total" t-value="cash_total + i.total_entry_encoding_custom"/>
  117.                                         </tr>
  118.                                     </tbody>
  119.                                 </table>
  120.                                 <br>
  121.                                 </br>
  122.                                 <table>
  123.                                     <tbody>
  124.                                         <tr>
  125.                                             <td>Total Ventas Contado (-) Retiros:</td>
  126.                                             <td class="text-right"><span t-esc="cash_total"/></td>
  127.                                         </tr>
  128.                                     </tbody>
  129.                                 </table>
  130.                                 <t t-call="pos_session_custom2.dline"/>
  131.                                 <center><b>VENTAS CREDITO</b></center>
  132.                                 <table>
  133.                                     <tbody>
  134.                                         <tr t-foreach="o.statement_ids.filtered(lambda x: x.journal_id.name in ['Credit', 'CREDITO'])" t-as="i">
  135.                                             <td>
  136.                                                 <h4><span t-field="i.journal_id"/></h4>
  137.                                             </td>
  138.                                             <td class="text-right">
  139.                                                 <h4><span t-field="i.total_entry_encoding_custom"/></h4>
  140.                                             </td>
  141.                                         </tr>
  142.                                     </tbody>
  143.                                 </table>
  144.                    
  145.                                 <t t-set="summary_by_tax" t-value="o.summary_by_tax()[0]"/>
  146.                                 <table>
  147.                                     <tbody>
  148.                                         <tr>
  149.                                             <th><h4><b>TOTAL VENTAS</b></h4></th>
  150.                                             <th class="text-right">
  151.                                 <!--   <h4><b><span t-esc="'%.2f' % summary_by_tax.get('tax_bf1')" /></b></h4></th> -->
  152.                                             <h4><b><span t-esc="'%.2f' % .format(summary_by_tax.get('tax_15') + summary_by_tax.get('tax_18') + summary_by_tax.get('tax_bf1') + summary_by_tax.get('tax_bf2') + summary_by_tax.get('tax_bf3'))"/></b></h4></th>
  153.                                         </tr>
  154.                                     </tbody>
  155.                                 </table>                       
  156.                                 <!-- Bloque de abono a creditos -->
  157.  
  158.                                 <t t-call="pos_session_custom2.dline"/>
  159.                                 <center><b>ABONOS A CREDITO</b></center>
  160.                                 <table>
  161.                                     <tbody>
  162.                                         <tr t-foreach="o.statement_ids.filtered(lambda x: x.journal_id.name in ['Credit', 'CREDITO'])" t-as="i">
  163.                                             <td>
  164.                                                 <h4><span t-field="i.journal_id"/></h4>
  165.                                             </td>
  166.                                             <td class="text-right">
  167.                                                 <h4><span t-field="i.total_entry_encoding_custom"/></h4>
  168.                                             </td>
  169.                                         </tr>
  170.                                     </tbody>
  171.                                 </table>
  172.                    
  173.                                 <t t-set="summary_by_tax" t-value="o.summary_by_tax()[0]"/>
  174.                                 <table>
  175.                                     <tbody>
  176.                                         <tr>
  177.                                             <th><h4><b>TOTAL ABONOS DE CREDITOS</b></h4></th>
  178.                                             <th class="text-right">
  179.                                                 <h4><b><span t-esc="'%.2f' % summary_by_tax.get('tax_bf1')"/></b></h4></th>                                
  180.                                         </tr>
  181.                                     </tbody>
  182.                                 </table>                       
  183.  
  184.                                 <!-- termina el bloque de abono a creditos -->
  185.                                 <t t-call="pos_session_custom2.dline"/>
  186.                                 <br/>
  187.                                 <center><b>CONTROL DE EFECTIVO</b></center>
  188.                                 <table>
  189.                                     <tbody>
  190.                                         <tr>
  191.                                             <td>SALDO INICIAL:</td>
  192.                                             <td class="text-right"><span t-field="o.cash_register_balance_start"/></td>
  193.                                         </tr>
  194.                                         <tr>
  195.                                             <td>+ VENTAS</td>
  196.                                             <td class="text-right"><span t-field="o.cash_register_total_entry_encoding_custom"/></td>
  197.                                         </tr>
  198.                                         <tr>
  199.                                             <td>+ DINERO RECIBIDO </td>
  200.                                             <td class="text-right"><span t-field="o.cash_register_total_entry_encoding_put_in"/></td>
  201.                                         </tr>
  202.                                         <tr>
  203.                                             <td>- DINERO RETIRADO </td>
  204.                                             <td class="text-right"><span t-field="o.cash_register_total_entry_encoding_take_out"/></td>
  205.                                         </tr>
  206.                                         <tr>
  207.                                             <td>TOTAL PAYMENT ON CREDIT:</td>
  208.                                             <td class="text-right"><span t-field="o.debit_total"/></td>
  209.                                         </tr>
  210.  
  211.                                     </tbody>
  212.                                 </table>
  213.                                 <t t-call="pos_session_custom2.line"/>
  214.                             <table>
  215.                                            
  216.                             </table>
  217.                             <br/>
  218.                                 <table>
  219.                                     <tbody>
  220.                                         <tr>
  221.                                             <td>CIERRE SEGÚN LIBROS:</td>
  222.                                             <td class="text-right"><span t-field="o.cash_register_balance_end"/></td>
  223.                                         </tr>
  224.                                     </tbody>
  225.                                 </table>
  226.                                 <t t-call="pos_session_custom2.line"/>
  227.                                 <table>
  228.                                     <tbody>
  229.                                         <tr>
  230.                                             <td>CIERRE REAL:</td>
  231.                                             <td class="text-right"><span t-field="o.cash_register_balance_end_real"/></td>
  232.                                         </tr>
  233.                                     </tbody>
  234.                                 </table>
  235.                                 <t t-call="pos_session_custom2.dline"/>
  236.                                 <table>
  237.                                     <tbody>
  238.                                         <tr>
  239.                                             <td>(-FALTANTE) / SOBRANTE:</td>
  240.                                             <td class="text-right"><span t-field="o.cash_register_difference"/></td>
  241.                                         </tr>
  242.                                     </tbody>
  243.                                 </table>
  244.                             </div>
  245.                             <br/>
  246.                             <br/>
  247.                             <br/>
  248.                             <br/>
  249.                             <center><em>FIRMA DEL CAJERO</em></center>
  250.                         </t>
  251.                     </t>
  252.                 </t>
  253.             </t>
  254.         </template>

Replies to error de instalacion rss

Title Name Language When
Re: error de instalacion Obese Crocodile text 1 Year ago.