Odoo 8 or later - Filter calendar events - odoo-8

I'd like to filter a list of events.
In Odoo, an event has a field "Partner_ids" to add attendees.
In my table "res_partner", i added a field "ContactType".
I'd like to display the events only with attendees to a certain "ContactType", but i don't find how to write my domain to achieve this.
Any ideas ?

I'm not sure what you want to do . But if you want filter event in the view calendar you can use the filter.
You must create a new filter in the search view for your new field (in this case is ContactType).
<search>
<filter name="Type seller" string="Seller" domain="[('ContactType', '=', 'seller')]"/>
</search>

Related

Add a sub grid and view for field update

I have added a field to the Contact entity called Website Downloads. This field is updated every time a client clicks on our website but what I want to do is have a sub grid within the Contact form that shows what this entry is each time it's updated. Then I ideally need this in a view with the contacts name and a list of the downloads so I can do an advanced find on the field. Any ideas please. PS I have tried to add a new entity that links to this field but the problem is you cannot do an OR on an Advanced find for 2 separate entities so back to square one.
Already tried a new entity but this won't work as you cannot do an OR on an Advanced Find for 2 entities.
I think you are on right track. You need a related entity to capture all the website hits, then you need a rollup field on contact record to sum up the hits.
So the associated records can be listed in a subgrid on contact form, also Advanced find queries can be done.
Rollup field can be an OOB field but it has timely job to calculate, if you want immediate rollup result it can be a custom field & plugin to accumulate.

Update Fields Supplier Invoice

I'm looking for an Odata service that can update values of supplier invoices. I know that I can do it using BAPI, but I would like to know if there is a way to do it using a update from OData service or something similar.
The fields that I want to change are:
Block a Payment
Change Assignment Number
Change Payee
Thanks in advance.
As of now it is not possible to change fields of a supplier invoice. Looking at the API Hub you just have the option to create and read supplier invoices as well as releasing/canceling them.
To request a change in the API you can submit a request in the Customer Influence Site.

show the sub grid with filtering two or three fields that all are look up in crm 365

I have two custom entity.
I want to show the sub grid with filtering two or three fields that all are look up.
In SQL way I want to
select * from table where field 1 = *** or field 2=*** or filed 3 =***
But in CRM it's not possible you can select only one field.
I dont know how to add fetch xml and also i dont know, Should I create js on load of form or export solution add filter to fetchxml then import it to crm?
Have you tried creating a Custom View where you can set up this filter criteria and use this view on the Subgrid
Here you have the details: https://crmbook.powerobjects.com/system-administration/customization/customizing-views/

Odoo Pass a dynamic list to View

I want to filter many2one field using a domain in the create view. What I'm trying is send a list to the view as a functional field and use it in the domain. (That list will change according to user) It will look as follows,
<field name="filter_ids" invisible="True"/>
<field name="department_id" domain="[('id','in',filter_ids)]">
What type of functional field should I use for this purpose?
Or any idea to dynamically change (one user to another) the domain of a many2one field?
I tried many ways using on_change, fields_view_get and so many others. On_change calls on load but it doesn't filter values onload. fields_view_get add the domain but it apply for all form views including update view which should not happen according to the requirements. please help :)
1-You can use fields_view_get then
2- set
so you don't get the field in your edit view
3- use another field which should behave as you want it on the edit view

Adding custom fields to RadScheduler Appointments

I have a RadScheduler. It is now displaying all appointments in the database. I need to display only current loggedin customer's appointment details. I got a field in my database for the customerId. How i will add it to the Appointments in RadScheduler.
Many Thanks
Imo the RadScheduler itself is architectural not the right place to filter your appointments. Rather filter your bound DataSource for the correct appointments. Easy one with Linq, could be something like datasource.all(appointment => appointment.customerId == context.loginId)

Resources