Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
2266 Представления

Hello it seem in Quotation, Sales or Accouting when i have import a wrong item it automatically create so many random item. So i would like to know how to remove the ability to create products on the sale.order, quotation and accouting form view:


i use to have this code with it.


{'no_create': True, 'no_create_edit':True}

but it seem dont work anymore. Any tips guys.

Аватар
Отменить
Лучший ответ

I tried in Studio and it worked - note that the field name is product_template_id 


Аватар
Отменить
Лучший ответ

This can be done directly through Studio (in v18 at least)...

Аватар
Отменить
Лучший ответ

Hi David,

Have you found any solution for this field product_template_id i​n V16/V17?

Аватар
Отменить
Автор Лучший ответ


Аватар
Отменить
Лучший ответ

Hi,
You can inherit the form view of the sales order and invoicing. Add the attribute ‘options’ to the field and make no_create_edit values True. eg:

<field name="product_id" position="attributes">
<attribute name="options">{'no_create': True, 'no_create_edit':True}</attribute>
</field>


Hope it helps,

Аватар
Отменить
Автор

Yeah got the same code. but seems dont work on V17...

Related Posts Ответы Просмотры Активность
2
окт. 25
240
0
окт. 25
513
0
окт. 25
438
2
окт. 25
6205
2
окт. 25
713