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

Hello

I am trying to make a field that i have created in sale.order mandatory for only newly created quotations upon custom module installation, and not to any past quotations(already existing before custom module installation) which might be opened to be edited.


This is my xml code:

This line of code makes this field mandatory for all quotations, both new and old. However, i want the field to be mandatory in only quotations that would be created after my custom module has been installed. 

Can someone please suggest something?

Thank you!

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

Hi,


First of all your XMl code is not displaying in the forum post.


For a quick solution you can try as follows:


1. Define a new Boolean field in sale order model

2. Change the Boolean value as true for newly creating sale order


3. Now in your XMl code for the custom field you have created, add attribute required based on the new Boolean field condition as true( using attrs)




Hope this will help you

Thank you


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

@Mehjabin Farsana,
Thanks a lot. I have been able to resolve my issue because of your kind suggestion. Although using boolean field did not work for me so i used selection field instead.

Related Posts Ответы Просмотры Активность
1
авг. 23
3933
0
мар. 17
4491
10
сент. 18
10112
2
авг. 25
2402
1
июл. 25
905