mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] type in inherited + search invoice by number
This commit is contained in:
@@ -227,6 +227,10 @@ var HotelCalendarView = AbstractRenderer.extend({
|
||||
['partner_id.vat', 'ilike', tsearch],
|
||||
['partner_id.email', 'ilike', tsearch],
|
||||
['partner_id.phone', 'ilike', tsearch]);
|
||||
if (type === 'invoice') {
|
||||
domain.splice(0, 0, '|');
|
||||
domain.push(['number', 'ilike', tsearch]);
|
||||
}
|
||||
return domain;
|
||||
},
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ odoo.define('hotel_calendar_channel_connector.PMSHotelCalendarRenderer', functio
|
||||
},
|
||||
|
||||
_generate_search_domain: function(tsearch, type) {
|
||||
var domain = this._super(tsearch);
|
||||
var domain = this._super(tsearch, type);
|
||||
|
||||
if (type === 'book') {
|
||||
domain.splice(0, 0, '|');
|
||||
|
||||
Reference in New Issue
Block a user