diff --git a/addons/base_sparse_field/models/models.py b/addons/base_sparse_field/models/models.py index 77ea36a6bd8..703c6466ee9 100644 --- a/addons/base_sparse_field/models/models.py +++ b/addons/base_sparse_field/models/models.py @@ -9,7 +9,7 @@ class IrModelFields(models.Model): ttype = fields.Selection(selection_add=[('serialized', 'serialized')]) serialization_field_id = fields.Many2one('ir.model.fields', string='Serialization Field', - ondelete='cascade', domain="[('ttype','=','serialized')]", + ondelete='cascade', domain="[('ttype','=','serialized'), ('model_id', '=', model_id)]", help="If set, this field will be stored in the sparse structure of the " "serialization field, instead of having its own database column. " "This cannot be changed after creation.", diff --git a/addons/base_sparse_field/views/views.xml b/addons/base_sparse_field/views/views.xml index 95c3d23634a..eaf684247af 100644 --- a/addons/base_sparse_field/views/views.xml +++ b/addons/base_sparse_field/views/views.xml @@ -22,7 +22,7 @@ diff --git a/addons/calendar/models/calendar.py b/addons/calendar/models/calendar.py index 411efd987ba..d4b30bcfee7 100644 --- a/addons/calendar/models/calendar.py +++ b/addons/calendar/models/calendar.py @@ -946,11 +946,13 @@ class Meeting(models.Model): @api.onchange('start_date') def _onchange_start_date(self): - self.start = self.start_date + if self.start_date: + self.start = self.start_date @api.onchange('stop_date') def _onchange_stop_date(self): - self.stop = self.stop_date + if self.stop_date: + self.stop = self.stop_date #################################################### # Calendar Business, Reccurency, ... diff --git a/addons/crm/models/crm_lead.py b/addons/crm/models/crm_lead.py index c8589eb43c8..4feb5c3607a 100644 --- a/addons/crm/models/crm_lead.py +++ b/addons/crm/models/crm_lead.py @@ -700,7 +700,7 @@ class Lead(models.Model): def _get_duplicated_leads_by_emails(self, partner_id, email, include_lost=False): """ Search for opportunities that have the same partner and that arent done or cancelled """ if not email: - return [] + return self.env['crm.lead'] partner_match_domain = [] for email in set(email_split(email) + [email]): partner_match_domain.append(('email_from', '=ilike', email)) diff --git a/addons/gamification/models/badge.py b/addons/gamification/models/badge.py index 3ca11577c33..0fd69631650 100644 --- a/addons/gamification/models/badge.py +++ b/addons/gamification/models/badge.py @@ -161,13 +161,13 @@ class GamificationBadge(models.Model): for badge in self: owners = badge.owner_ids - badge.stats_my = sum(o.user_id == self.env.user for o in owners) - badge.stats_this_month = sum(o.create_date >= first_month_day for o in owners) - badge.stats_my_this_month = sum( + badge.stat_my = sum(o.user_id == self.env.user for o in owners) + badge.stat_this_month = sum(o.create_date >= first_month_day for o in owners) + badge.stat_my_this_month = sum( o.user_id == self.env.user and o.create_date >= first_month_day for o in owners ) - badge.stats_my_monthly_sending = sum( + badge.stat_my_monthly_sending = sum( o.create_uid == self.env.user and o.create_date >= first_month_day for o in owners ) diff --git a/addons/l10n_be_invoice_bba/views/account_invoice_view.xml b/addons/l10n_be_invoice_bba/views/account_invoice_view.xml index 9ab348940a1..ee3e8470e93 100644 --- a/addons/l10n_be_invoice_bba/views/account_invoice_view.xml +++ b/addons/l10n_be_invoice_bba/views/account_invoice_view.xml @@ -12,4 +12,15 @@ + + + account.invoice.supplier.form + account.invoice + + + + + + + diff --git a/addons/l10n_ch/data/account_vat2011_data.xml b/addons/l10n_ch/data/account_vat2011_data.xml index 0da193cd9ad..794a7b38ece 100644 --- a/addons/l10n_ch/data/account_vat2011_data.xml +++ b/addons/l10n_ch/data/account_vat2011_data.xml @@ -52,6 +52,10 @@ Switzerland VAT Form: grid 381 base taxes + + Switzerland VAT Form: grid 382 base + taxes + Switzerland VAT Form: grid 301 tax taxes @@ -76,6 +80,10 @@ Switzerland VAT Form: grid 381 tax taxes + + Switzerland VAT Form: grid 382 tax + taxes + Switzerland VAT Form: grid 400 taxes @@ -98,7 +106,7 @@ - Switzerland VAT Form: 100% dédouanement (base in grid 400) + Switzerland VAT Form: 100% dédouanement (base in grid 400) taxes @@ -411,6 +419,18 @@ + + TVA due a 7.7% (TN) (return) + 7.7% achat (return) + + percent + + + purchase + + + + TVA due a 8.0% (TN) 8.0% @@ -534,4 +554,15 @@ + + + 7.7% achat + TVA 7.7% sur achat service a l'etranger (reverse charge) + + group + purchase + + + + diff --git a/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml b/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml index c9fcc8ae3fd..4f6e38bee9d 100644 --- a/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml +++ b/addons/l10n_fr_hr_payroll/report/report_l10n_fr_fiche_paye.xml @@ -12,7 +12,7 @@

Paie du au

- +