Skip to Content
Menu
This question has been flagged

Hello,


I created a new report in odoo V13 but I need to limit how may times the user can print the tag according to the value written to the field that I created also as float. so is there any possibility to do that in V13 using code. *(Need need to limit number of reports printed according to field value).


For example: I created a manufacturing order and in this order  I will produce 18 pallet for each pallet I will have a tag. (note* each pallet is shifted at different date/time.) and in each day the user will print a tag till it reaches 18 days where he printed 18 tags. therefore if he tries to print a tag in  day 19 the system will give him an error which says: "you can't exceed the number of tags printed". 


I need help in doing this so is there posibility to do it using code in OdooV13. Waiting for an answer!


Thanks in advance.



Thanks in advance.


Avatar
Discard

Hi,
Create a field that increments when the print button is clicked, When it reaches the limit throw the warning

Author

Hello,

may you help please in code? or give an example.

Related Posts Replies Views Activity
1
Mar 22
2435
1
Feb 22
2396
1
Nov 24
110
0
Mar 15
2717
0
May 24
156