dolibarr-tasktrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-tasktrack] [Task #172] Can attach an event to several contacts


From: Doliforge
Subject: [Dolibarr-tasktrack] [Task #172] Can attach an event to several contacts
Date: Tue, 07 Jan 2014 18:22:38 +0100

Doliforge
Is this email not displaying correctly?
update email preferences.

Can attach an event to several contacts

Latest modifications

2014-01-07 18:22 (Europe/Paris)
Ok to use table name "llx_element_resources" instead of "llx_actioncom_resources" with field you used.
You can replace llx_actioncomm_resource into dev code with yours and into migration script.


For task to link several contacts/addresses to a thirdparty, i don't understand. This is already possible. About which task number are you talking about ?

Answer now

Snapshot

 Details
Submitted on:  2011-09-17 00:00 Submitted by:  Laurent Destailleur (eldy)
Last Modified On:  2014-01-02 09:01 
Summary:  Can attach an event to several contacts
Description:  Can attach an event to several contacts.
This is a prerequisite to manage meeting rendez-vous.
Priority:  9 - Highest Open to Any Developer:  Yes
Subproject:  Module Agenda Assigned to (multiple):  jfefe (jfefe),HENRY Florian (fhenry)
Planned for version:   
 Status
Start Date:  - End Date:  -
Completion (0-100%):  10 Status:  Open

Comments

Laurent Destailleur 2014-01-07 18:22
Ok to use table name "llx_element_resources" instead of "llx_actioncom_resources" with field you used.
You can replace llx_actioncomm_resource into dev code with yours and into migration script.


For task to link several contacts/addresses to a thirdparty, i don't understand. This is already possible. About which task number are you talking about ?

jfefe 2014-01-02 09:01
Ok I've made a complementary module to manage resources which bring llx_element_resources table and UI to manage relations between objects and resource : https://github.com/aternatik/dolibarr-resource/tree/develop

This was done while coding a module to manage places (and building and rooms...) and link them to an event : https://github.com/aternatik/dolibarr_place/tree/develop

TPL are used into resource module to allow usage of another table to store specific datas. Another task exist to link several contacts to a thirdparty, I think we must use element_resources table to do that, with a new table llx_resource_contact (rowid,fk_element_resource,...). Also we could implement extrafields in this table :)

Laurent Destailleur 2013-10-19 14:48
Using llx_element_contact is not the good solution for doing what you want to do.
llx_element_contact is good to link a contact (thirdparty or user) to an element (invoice, proposal, order, ...)
But events into agenda are not "standard" element. There are transversal objects. Also linking to thirdparty and user is not enough. We will want also to link to a "location" (a room for example).
Also into the calendar standard, we need to follow the status "busy" or not for each linked contact and "mandatory or guest".

For this reason (and other one), we need another table. I suggest
llx_actioncomm_resources
This table will contains id of event, id of element and type of element (type may be user, thirdparty and later room). Table will also have field "busy" and "mandatory".

So, I am afraid you must forget to use the contact existing template. The need is more specific and can not be compliant with "contact" template used for common elements.
jfefe 2013-03-29 21:59
Should we use a new table actioncomm_contact as attaching contact on propal/invoice ?
Or does it use the table element_element?

It would be great to define type of contact too with existent dictionary.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]