diff --git a/bemade_multiple_billing_contacts/models/account_move.py b/bemade_multiple_billing_contacts/models/account_move.py index 11d2aa0..0e8fe1f 100644 --- a/bemade_multiple_billing_contacts/models/account_move.py +++ b/bemade_multiple_billing_contacts/models/account_move.py @@ -29,6 +29,6 @@ class AccountMove(models.Model): initial_subscribers = self.message_partner_ids.ids final_subscribers = initial_subscribers + self.billing_contacts.ids posted = super()._post() - self.message_unsubscribe([s.id for s in self.message_partner_ids if s not in initial_subscribers]) + self.message_unsubscribe([s.id for s in self.message_partner_ids if s.id not in initial_subscribers]) self.message_subscribe(final_subscribers) return posted diff --git a/bemade_multiple_billing_contacts/tests/test_billing_contacts.py b/bemade_multiple_billing_contacts/tests/test_billing_contacts.py index 1329090..82c15ce 100644 --- a/bemade_multiple_billing_contacts/tests/test_billing_contacts.py +++ b/bemade_multiple_billing_contacts/tests/test_billing_contacts.py @@ -63,7 +63,8 @@ class TestBillingContacts(TransactionCase): 'price_unit': cls.product.list_price, 'order_id': cls.sale_order.id, 'tax_id': False, - 'qty_delivered_manual': 2, + 'qty_delivered': 2, + 'qty_delivered_method': 'manual', }) def test_billing_contacts_structure(self):