Permalink
Browse files

[IMP] sale_commission: Add settlement menu view for sale_manager

  • Loading branch information...
Daniel-CA committed Jul 19, 2017
1 parent fa4c2c5 commit 07b6b96756aaf68a11d63c10a4ec7bb4dc4375c5
Showing with 16 additions and 0 deletions.
  1. +2 −0 sale_commission/i18n/es.po
  2. +14 −0 sale_commission/views/settlement_view.xml
@@ -616,6 +616,8 @@ msgstr "Buscar liquidaciones"
#: view:sale.commission.make.invoice:sale_commission.sale_commission_make_invoice_form
#: field:sale.commission.make.invoice,settlements:0
#: view:sale.commission.settlement:sale_commission.view_settlement_tree
#: model:ir.ui.menu,name:sale_commission.menu_sale_settlements
#: model:ir.actions.act_window,name:sale_commission.action_settlement
msgid "Settlements"
msgstr "Liquidaciones"
@@ -26,13 +26,15 @@
<field name="agent"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="state"/>
<filter string="This year"
name="thisyear"
domain="[('date_from', '&gt;=', time.strftime('%%Y-01-01')), ('date_to', '&lt;=', time.strftime('%%Y-12-31'))]" />
<separator/>
<group expand="1" string="Group By">
<filter string="Agent" name="group_agent" context="{'group_by': 'agent'}"/>
<filter string="Date from month" name="group_date" context="{'group_by': 'date_from:month'}"/>
<filter string="State" name="group_state" context="{'group_by': 'state'}"/>
</group>
</search>
</field>
@@ -148,6 +150,18 @@
<field name="view_mode">graph</field>
</record>
<record model="ir.actions.act_window" id="action_settlement">
<field name="name">Settlements</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.commission.settlement</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Settlements" id="menu_sale_settlements"
parent="base.menu_sales" groups="base.group_sale_manager"
action="action_settlement"/>
<menuitem id="menu_action_settlement_report"
parent="base.next_id_64"
sequence="80"

0 comments on commit 07b6b96

Please sign in to comment.