chat.freenode.net #tryton log beginning Wed May 22 00:00:01 CEST 2013 | ||
2013-05-22 05:16 <iamnoob> hi to all, i need help on something.. because i dont know where to get start to... i need to creat a module where when i open it.. it will show me a view_form, unlike the modules i usually see , where it have a view_tree and a view_form, is there any official module like that? | ||
2013-05-22 05:18 <iamnoob> im having a hard time recreating something like 'configuration' of the 'party module' | ||
2013-05-22 07:30 <udono> iamnoob: hi, the "ir.action.act_window.view" definitions are connecting form, graph and tree views to the switch signal[1]. Just add the views you want to see. The "sequence" tag defines the order when pressing the switch button. [1]http://hg.tryton.org/tryton/file/d339a7f9db2c/doc/usage.rst#l664 | ||
2013-05-22 08:29 <iamnoob> udono: thanks | ||
2013-05-22 08:31 <iamnoob> hi is there a way where i can limit a module to 1 record? | ||
2013-05-22 08:50 <Pilou> iamnoob: there is a ModelSingleton model (see ldap_connection module). | ||
2013-05-22 08:51 <_droid> good morning people, got a question concerning access rights to users. I want a user only to have full access to the stock. So I went as the admin and added this user to the following groups: Stock Manegment, and Stock Administration. When trying to create a category or any of that kind, with that user, I get the form but I cannot fill it out. What am I missing here? | ||
2013-05-22 09:00 <iamnoob> Pilou: thanks! | ||
2013-05-22 09:05 <iamnoob> _droid: have you check create,write,read ? | ||
2013-05-22 09:05 <_droid> iamnoob: you mean the rules? | ||
2013-05-22 09:05 <iamnoob> _droid: yes | ||
2013-05-22 09:06 <_droid> iamnoob: Stock- Configuration, Inventory, Location, Move, Inventory Line are all have rwcd-access for this user active/checked | ||
2013-05-22 09:12 <_droid> iamnoob: do I need to restart the server or client? | ||
2013-05-22 09:13 <iamnoob> _droid: yes you may need to do that, | ||
2013-05-22 09:13 <_droid> iamnoob: really?.... ok | ||
2013-05-22 09:14 <_droid> iamnoob: restarted the client and server. Made no difference | ||
2013-05-22 09:15 <iamnoob> _droid: also check if you give it access rights up to the parent of the module.. i did some stuying about granting users rights.. for what i encountered,, i can only give a user rights if i give do that.. also see the 'groups' you may need to assign the user to a group (soo it will gets the groups set of rules) | ||
2013-05-22 09:17 <iamnoob> _droid: im not familiar with the StockModule but i tried testing it out on my custom module, playing with the users and groups settings gave me what i need so far | ||
2013-05-22 09:21 <_droid> iamnoob: as for the groups, the user is assigned to 3 groups: Stock, Stock Administration, and Stock Force Assignment. In the rules below, I gave rwcd-access to the previously mentioned parts. Now where can I give rwcd-access for the whole module? | ||
2013-05-22 09:30 <iamnoob> _droid: i cant really say where youll find, or maybe you need to just include all module,sub module.. i just did a trial and error learning thing on that part.. lets wait for the others.. they may know how to solve your situation.. | ||
2013-05-22 09:30 <_droid> iamnoob: ok | ||
2013-05-22 09:34 <_droid> iamnoob: ah... found the problem, I should have added the user to the group products | ||
2013-05-22 09:35 <iamnoob> _droid: glad you got what you need :) | ||
2013-05-22 09:35 <_droid> which bringes me to the next question. Where do I assign the quantity in stock?? | ||
2013-05-22 09:40 <iamnoob> Pilou: check out lda_connection or connection.py .. does it still work with version 2.8? i cant seems to make mine work.. it still has the __tryton__ file and _name (which is now __name__) | ||
2013-05-22 09:56 <Pilou> iamnoob: you're wrong (http://hg.tryton.org/2.8/modules/ldap_connection/file/a978cebf404f/connection.py) | ||
2013-05-22 10:17 <iamnoob> Pilou: got it thanks, i got the old one, ive been checking it.. on which line of code does it tell that only 1 record is allowed? | ||
2013-05-22 10:22 <Pilou> iamnoob: http://hg.tryton.org/2.8/modules/ldap_connection/file/a978cebf404f/connection.py#l13 (ModelSingletonà | ||
2013-05-22 11:43 <iamnoob> hi just wondering, is there a way .. that after a field.selection was used (after picking a value) i can insert records to an many2one field? (by codes) | ||
2013-05-22 11:45 <iamnoob> something like that, im trying to do a report. where after i select a value on a field.selection.. i need to load all records related to it.. | ||
2013-05-22 11:50 <cedk> iamnoob: use a on_change | ||
2013-05-22 11:52 <iamnoob> cedk: i see.. thanks | ||
2013-05-22 12:01 <iamnoob> is it possible to load a view_tree of a another module inside an view_form another module? if so.. is there an official module that is similar to this please? |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!