Remove default companies party

Since changeset-047e85b66b84 not allow delete company and a party may be shared all companies (none)
This commit is contained in:
Raimon Esteve 2017-11-29 13:48:44 +01:00
parent 439a6f9f05
commit e5f4583e54

View file

@ -62,11 +62,6 @@ class Party:
PartyCompany.save(party_companies)
table.drop_column('company')
@staticmethod
def default_companies():
if Transaction().context.get('company'):
return [Transaction().context.get('company')]
@classmethod
def create(cls, vlist):
# TODO pass rule group without user 0 (root)