0
votes

When i creating Quotation i need to give only 2 Orderline items.How to restrict them to only 2 entries.Can any one help me? Thank's in advance

1

1 Answers

3
votes

Use the _constraint in py file. and in function check the length of the orderlines. and raise an error in case of the more than 2 lines found