Skip to content
Browse files

Merge pull request #34 from wmatyskiewicz/master

Asse form - add deprecation rate
  • Loading branch information...
2 parents e1e76b2 + 38a3e32 commit 613fa5fa2cbb1de87bff2b27342f0a6254e3dcca @deshipu deshipu committed Jul 12, 2013
Showing with 13 additions and 1 deletion.
  1. +2 −0 src/ralph_assets/forms.py
  2. +11 −1 src/ralph_assets/views.py
View
2 src/ralph_assets/forms.py
@@ -303,6 +303,7 @@ class Meta:
'delivery_date',
'invoice_date',
'production_use_date',
+ 'deprecation_rate',
'slots',
)
widgets = {
@@ -390,6 +391,7 @@ class Meta:
'invoice_date',
'production_use_date',
'deleted',
+ 'deprecation_rate',
'slots',
)
widgets = {
View
12 src/ralph_assets/views.py
@@ -72,7 +72,7 @@ def get_context_data(self, *args, **kwargs):
return ret
def get_mainmenu_items(self):
- return [
+ mainmenu = [
MenuItem(
label='Data center',
name='dc',
@@ -86,6 +86,16 @@ def get_mainmenu_items(self):
href='/assets/back_office',
),
]
+ if 'ralph_pricing' in settings.INSTALLED_APPS:
+ mainmenu.append(
+ MenuItem(
+ label='Ralph Pricing',
+ fugue_icon='fugue-money-coin',
+ name='back_office',
+ href='/pricing/all-ventures/',
+ ),
+ )
+ return mainmenu
class DataCenterMixin(AssetsMixin):

0 comments on commit 613fa5f

Please sign in to comment.
Something went wrong with that request. Please try again.