Add default method to company field

This commit is contained in:
Guillem Barba 2016-10-04 15:44:45 +02:00
parent b6b274d20d
commit 9fe6cc05d7
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ class LocationCompany(AnalyticMixin, ModelView):
& (entry.selection == selection_id))))
location_handler.drop_column('analytic_accounts')
@staticmethod
def default_company():
return Transaction().context.get('company')
class AnalyticAccountEntry:
__metaclass__ = PoolMeta