Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4397 Vistas

Hello, 

I am not able to reinstall POS after I had uninstall it and I'm in need for it urgent.

May anyone please help me to solve that.

Error

 raise ValueError('External ID not found in the system: %s' % xmlid)
odoo.tools.convert.ParseError: "External ID not found in the system: product.product_category_1" while parsing /usr/lib/python3/dist-packages/odoo/addons/point_of_sale/data/point_of_sale_data.xml:2, near


Avatar
Descartar
Mejor respuesta

This happen because the product category saleable removed, you can create a new excel file with the below columns and import it from product category.

id                                                               parent_id                     name

 product.product_category_1                  All                                saleable

Avatar
Descartar
Mejor respuesta

cannot import the excel file

Error at row 0: "The record product.product_category_1 has the module prefix product. This is the part before the '.' in the external id. Because the prefix refers to an existing module, the record would be deleted when the module is upgraded. Use either no prefix and no dot or a prefix that isn't an existing module. For example, __import__, resulting in the external id __import__.product_category_1."


Avatar
Descartar

The above solution can be used with Odoo version less than or equal 14.0 but with version 15 and above you can't use it.

Solution: is to import the product category with excel as below:
id parent_id name

product_category_1 All saleable

Then access the DB with Pg Admin and execute the below command:
# This to query that the record is exists
select * from ir_model_data where name ='product_category_1' and model='product.category';
# This update to update the module to product:
update ir_model_data
set module='product'
where name ='product_category_1' and model='product.category';

Then you can install Point of Sale. I have tested it before writing my answer.

Publicaciones relacionadas Respuestas Vistas Actividad
0
nov 21
1745
2
abr 20
4130
0
ene 25
1328
0
feb 24
1062
2
may 23
2827