0

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

nitesh
  • 266
  • 3
  • 18

1 Answers1

3

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

Ruchir Shukla
  • 805
  • 6
  • 13