I would like to select multiple contacts to a ticket. I can do this by adding multiple UI Type 10 (e.g Contact 1, Contact 2, Contact 3 etc). I could have 20 or more and it is not very practical. I would really like to add a list like the invoice module when selecting Products. I cannot find what type of UI this is. Can anyone help.
Purpose of vtiger UI type 10 is to map 1 to 1 relation between two records, there is no Multiple UI Type field to enable this. But there is a solution using related lists that implement the 1-Many relation.
Like in Accounts Module where you can select multiple Contacts and add them as related to a certain Account.
You can see this article from vtiger wiki how to add a related list between two modules, if not existing https://wiki.vtiger.com/index.php/Vtlib_Related_Entities
As a suggestion just want to tell you that you can do something like contact field in calendar module during creating Event/call. You can select multiple contact but it will not make 1 to 1 relationship. In calendar module its hard coded but you can do in any module by adding multiple select box and button.
Related
I am new to django, need suggestions/help, we have the following requirement, need to design html template/form using Bootstrap 5 etc.. This need to be a single page CRUD application. Is this possible in django?
1 Master Table
1 Detail Table Foreign Key References to Master Table
1 Child Table Foreign Key References to Detail Table
if anybody tried this type of requirement, kindly help me by providing reference articles/documents/blogs to achieve this. We have similar two applications to build, we have done application based on single table only till now, but in the above requirement we have dependent tables this is where I got struck and need help.
Tried single table forms/model/view architecture which are working fine.
I would like to create an app which will help generate offers. Let's assume I have two apps in Django project:
offers which allows to: display offers list, creating the new ones
and updating an existing offer.
warehouse which allows to: display all goods added to warehouse, creating new ones, and updating existing goods.
During creating new offer I want to have a possibility to add some of the warehouse goods to the offer and set some additional parameters like: price, quantity and so on to print it on the offer. I want to achieve this using Bootstrap modal pop-up.
How should my models, and views files looks like to achieve this?
Should I use Many to Many relation ?
P.S. I am not sure if You even understand my doubts :D
Thank you all for always willing to help.
I have a Django app with countries and state choices fields. However, I have no idea whatsoever on how to load the related states for each country. What I mean here is, if I choose "Nigeria" in the list of countries, how can I make all Nigerian states to automatically load in the state choice field?
You have to create many to many field state table, then you can multiple select state as per country.
this feature available on django- country package or django- cities package.
I am using django-oscar == 1.6.1 for a project.
I am trying to add recommended products to an individual product in the dashboard, currently I see that the recommended product field is empty, how do I populate it and give the ranking?
It's a streaming search field, whatever you type should search for related term in your existing products database.
For example, if you type <search_term> it would ultimately query (after several intermediate queries of substrings) & hit http://localhost:8000/dashboard/catalogue/product-lookup/?q=<search_term>, the view for which can be found here. As you can see, it searches the product titles only, if you need something else, you can always modify it.
By the looks of it, you haven't populated your products database yet, or there's something else wrong with your installation or setup.
If you want user to submit say articles to your website but you want to approve these articles before they are added to a list of articles, how would you go about doing so?
The only method I can think of is to have 2 databases; one for 'awaiting approval' and another for 'approved and ready to be displayed'. However, my issue is whether there is a fast method to go about transferring the information between the two databases? I only know about doing this manually.
Or is there already a Django module that handles this?
Thank You for any help.
As jordi has said, add an extra field, but you might also want to write a custom manager for your table that selects posts according to status.
See the Django docs: https://docs.djangoproject.com/en/dev/topics/db/managers/ where they set up a manager that filters on sex="M" to only return Male people. This makes your code neater, and means as long as you go through the right manager you'll not have to keep remembering to test for state="Approved" all the time.
If you want to get more complex, the thing you are doing is called "Workflow" and there are django and python packages that implement this - but it gets very complex very quickly...
Just add a column to the database table called status
1 = waiting
2 = approved
3 = denied