I can't create new products

i was about taking a module “product” that i took from someone , the thing that i can’t make a new records in the window “Products” and “variants” , where i should go to correct that and let me make new records.

Your user should be part of the “Product Adminsitration” group to be able to create or update product records.

Otherwise, the users is just allowed to read the products.

am working with admin feature (i enter to the sao as an admin)but i can’t make new records ,i added also a company name in the field Main company in the administration but i still can’t make new records in "variants'' and "products" window.
when i click to the button (+) to make new record , there is no form displayed to fill it out.

Did you have any custom module installed?
It seems there is some error on some custom code that prevents to show the form

before the product module work normal without any issue .
but after activate
the modules :
sale_subscription ,
account_product
product_measurements
stock
account_stock_continental
account_asset
account_stock_landed_cost
account_stock_anglo_saxon
production
purchase
sale
sale_product_customer
sale_supply
purchase_request
stock_lot
the window "variants" and "products" doesn’t work anymore

What is exactly the behavior? How does it fail?
Which client are you using? If it is the web client, can you check the console log? If it is the desktop client, can you run in verbose mode?

1 Like

am running the tryton on a web client ,

using Inspect Q on the window “variants” tell me that :

Uncaught TypeError: Sao.View.TreeXMLViewParser.WIDGETS[t.widget] is not a constructor
_parse_field http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_tree http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_tree http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
init http://0.0.0.0:8000/dist/tryton-sao.min.js:5
init http://0.0.0.0:8000/dist/tryton-sao.min.js:5
i http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
add_view http://0.0.0.0:8000/dist/tryton-sao.min.js:5
add_view_id http://0.0.0.0:8000/dist/tryton-sao.min.js:5
load_next_view http://0.0.0.0:8000/dist/tryton-sao.min.js:5
l http://0.0.0.0:8000/dist/tryton-sao.min.js:5
switch_view http://0.0.0.0:8000/dist/tryton-sao.min.js:5
init http://0.0.0.0:8000/dist/tryton-sao.min.js:5
i http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_field http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_page http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_notebook http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse_child http://0.0.0.0:8000/dist/tryton-sao.min.js:5
_parse_form http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
init http://0.0.0.0:8000/dist/tryton-sao.min.js:5
init http://0.0.0.0:8000/dist/tryton-sao.min.js:5
i http://0.0.0.0:8000/dist/tryton-sao.min.js:5
parse http://0.0.0.0:8000/dist/tryton-sao.min.js:5
add_view http://0.0.0.0:8000/dist/tryton-sao.min.js:5
jQuery 4
success http://0.0.0.0:8000/dist/tryton-sao.min.js:5
jQuery 4

It will be good to know the value of t.widget but it sounds like a datetime field being displayed in list view. I do not think there is such error in standard modules you listed. I suspect you have a custom module or a custom extension of a view.