Salve a tutti,
sono riuscito a grandi line a far leggere all'interfaccia POS di Odoo i files locali delle bilance, ho utilizzato SimpleHTTPServer che mi rende pubblica la cartella locale ove risiedono i files ascii. Ora stavo cercando di riorganizzare il tutto ed intanto volevo inserire in POS Config i parametri di importazione dei files, ho messo su un piccolo modulo mutuandone la struttura da uno preesistente ma in fase di installazione mi ritorna l'errore:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 638, in _handle_exception
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 675, in dispatch
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 331, in _call_function
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\model.py", line 119, in wrapper
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 324, in checked_call
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 933, in __call__
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 504, in response_wrap
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 889, in call_button
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 877, in _call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 681, in call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 672, in call_kw_multi
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\module\module.py", line 410, in button_immediate_install
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\module\module.py", line 484, in _button_immediate_function
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\registry.py", line 82, in new
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 339, in load_modules
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 237, in load_marked_modules
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 156, in load_module_graph
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 95, in _load_data
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 845, in convert_file
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 915, in convert_xml_import
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 799, in parse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 707, in _tag_record
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_model.py", line 1228, in _update
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 360, in create
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3838, in create
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\fields.py", line 1000, in determine_inverse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 220, in _inverse_arch
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 378, in write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3564, in write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3715, in _write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 1083, in _validate_fields
ParseError: "Error while validating constraint
Field `iface_local_web_server_port` does not exist
Contesto errore:
Vista `pos.config.form.view`
[view_id: 1784, xml_id: n/d, model: pos.config, parent_id: 846]
None" while parsing file:///C:/Program%20Files%20(x86)/Odoo%2010.0/server/odoo/addons/pos_config_import_offline_scales_files/views/pos_config_views.xml:3, near
<record id="view_pos_config_form" model="ir.ui.view">
<field name="name">pos.config.form.view</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='receipt']" position="after">
<group string="Import scales receipts files parameters" col="4">
<field name="iface_barcode_prefixes"/>
<field name="iface_file_extension"/>
<field name="iface_local_web_server_url"/>
<field name="iface_local_web_server_port"/>
</group>
</xpath>
</field>
</record>
cosa sto sbagliando ?
allego modulo