data.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. -- Copyright (C) ---Put here your own copyright and developer email---
  2. --
  3. -- This program is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. -- delete from llx_mymodule_myobject;
  16. --INSERT INTO llx_mymodule_myobject VALUES (1, 1, 'mydata');
  17. -- delete from llx_c_mydictionarytabme;
  18. --INSERT INTO llx_c_mydictionarytabme (code,label,active) VALUES ('ABC', 'Label ABC', 1);
  19. --INSERT INTO llx_c_mydictionarytabme (code,label,active) VALUES ('DEF', 'Label DEF', 1);
  20. -- new types of automatic events to record in agenda
  21. -- 'code' must be a value matching 'MYOBJECT_ACTION'
  22. -- 'elementtype' must be value 'mymodule' ('myobject@mymodule' may be possible but should not be required)
  23. --insert into llx_c_action_trigger (code,label,description,elementtype,rang) values ('MYOBJECT_VALIDATE','MyObject validated','Executed when myobject is validated', 'mymodule', 1000);
  24. --insert into llx_c_action_trigger (code,label,description,elementtype,rang) values ('MYOBJECT_UNVALIDATE','MyObject unvalidated','Executed when myobject is unvalidated', 'mymodule', 1001);
  25. --insert into llx_c_action_trigger (code,label,description,elementtype,rang) values ('MYOBJECT_DELETE','MyObject deleted','Executed when myobject deleted', 'mymodule', 1004);