[IMP] simplified views
authorFabien Pinckaers <fp@tinyerp.com>
Sun, 18 Apr 2010 15:32:44 +0000 (17:32 +0200)
committerFabien Pinckaers <fp@tinyerp.com>
Sun, 18 Apr 2010 15:32:44 +0000 (17:32 +0200)
bzr revid: fp@tinyerp.com-20100418153244-e8o5p2gxubw4m6t4

55 files changed:
addons/account/account_view.xml
addons/account/partner_view.xml
addons/account_analytic_analysis/account_analytic_analysis_menu.xml
addons/account_analytic_analysis/account_analytic_analysis_view.xml
addons/account_budget/crossovered_budget_view.xml
addons/base_report_creator/base_report_creator_view.xml
addons/base_vat/base_vat_data.xml
addons/crm/crm.py
addons/crm/crm_action_rule.py
addons/crm/crm_claims_view.xml
addons/crm/crm_fund_menu.xml
addons/crm/crm_fund_view.xml
addons/crm/crm_helpdesk_view.xml
addons/crm/crm_lead.py
addons/crm/crm_lead_menu.xml
addons/crm/crm_lead_view.xml
addons/crm/crm_meeting_view.xml
addons/crm/crm_opportunity.py
addons/crm/crm_opportunity_view.xml
addons/crm/crm_phonecall_menu.xml
addons/crm/crm_phonecall_view.xml
addons/crm/crm_report_view.xml
addons/crm/crm_view.xml
addons/crm/report/crm_claim_report_view.xml
addons/crm/report/crm_fundraising_report_view.xml
addons/crm/report/crm_helpdesk_report_view.xml
addons/crm/wizard/crm_lead_to_opportunity.py
addons/crm/wizard/crm_lead_to_opportunity_view.xml
addons/crm_profiling/crm_profiling_view.xml
addons/document/document_view.xml
addons/hr_expense/hr_expense.py
addons/hr_holidays/hr_holidays_view.xml
addons/hr_timesheet/hr_timesheet_view.xml
addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py
addons/hr_timesheet_sheet/process/hr_timesheet_sheet_process.xml
addons/l10n_ch/account_invoice.xml
addons/mrp/mrp_view.xml
addons/mrp/report/mrp_report_view.xml
addons/mrp_operations/mrp_operations_view.xml
addons/mrp_repair/mrp_repair_view.xml
addons/point_of_sale/pos_view.xml
addons/point_of_sale/statement_view.xml
addons/process/process_view.xml
addons/product/pricelist_view.xml
addons/product/product.py
addons/product/product_view.xml
addons/project/project_view.xml
addons/project_gtd/project_gtd_view.xml
addons/sale/sale_view.xml
addons/smtpclient/smtpclient_view.xml
addons/stock/report/report_stock.py
addons/stock/report/report_stock_view.xml
addons/stock/stock_view.xml
addons/survey/survey_view.xml
addons/wiki/wiki_view.xml

index e59761c..e19eec9 100644 (file)
                     <field name="name" select="1" colspan="4"/>
                     <field name="code" select="1"/>
                     <field name="parent_id"/>
-                    <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/>
+                    <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                     <field name="user_type" select="1"/>
                     </group>
                     <notebook colspan="4">
                         <page string="General Information">
                             <newline/>
-                            <field name="currency_id" select="2"/>
-                            <field name="currency_mode" select="2"/>
+                            <field name="currency_id"/>
+                            <field name="currency_mode"/>
                             <field name="reconcile"/>
-                            <field name="active" select="2"/>
+                            <field name="active"/>
                             <field name="check_history"/>
                             <field name="type" select="1"/>
                             <newline/>
                     <field name="date" select="1"/>
                     <field name="journal_id" on_change="onchange_journal_id(journal_id)" select="1"/>
                     <field name="currency"/>
-                    <field name="period_id" select="2"/>
+                    <field name="period_id"/>
                     <group colspan="2" col="3">
 <!--                        <button name="%(action_view_account_statement_from_invoice)d"-->
 <!--                            string="Import Invoice" type="action" attrs="{'invisible':[('state','=','confirm')]}" icon="gtk-open"/>-->
                         </page>
                     </notebook>
                     <group col="7" colspan="4">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <field name="balance_end"/>
                         <button name="button_dummy" states="draft" string="Compute" icon="gtk-execute"/>
                         <button name="button_confirm" states="draft" string="Confirm" type="object"  icon="gtk-apply"/>
                         <field name="name" select="1"/>
                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                         <field name="description" select="1"/>
-                        <field name="active" select="2"/>
+                        <field name="active"/>
                         <field name="tax_group" select="1"/>
                         <field name="type"/>
                     </group>
                     <notebook colspan="4">
                         <page string="Tax Definition">
                             <field name="applicable_type"/>
-                            <field name="amount" select="2" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
+                            <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
                             <field groups="base.group_extended" name="include_base_amount"/>
                             <field groups="base.group_extended" name="domain"/>
                             <newline/>
                             <separator colspan="4" string="General Information"/>
                             <field name="name" select="1"/>
                             <field name="date" select="1"/>
-                            <field name="ref" select="2"/>
-                            <field name="invoice" select="2"/>
+                            <field name="ref"/>
+                            <field name="invoice"/>
                             <field name="account_id" select="1" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
                             <field name="partner_id" select="1" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
 
-                            <field name="debit" select="2"/>
-                            <field name="credit" select="2"/>
+                            <field name="debit"/>
+                            <field name="credit"/>
                             <field name="company_id" required="1" groups="base.group_multi_company"/>
 
                             <separator colspan="4" string="Optional Information"/>
                             <field name="currency_id"/>
                             <field name="amount_currency"/>
-                            <field name="quantity" select="2"/>
+                            <field name="quantity"/>
                             <field name="move_id" required="False"/>
                             <newline/>
-                            <field name="statement_id" select="2"/>
-                            <field name="blocked" select="2"/>
+                            <field name="statement_id"/>
+                            <field name="blocked"/>
                             <field name="date_maturity"/>
                             <field name="date_created"/>
                             <newline/>
                             <field name="analytic_account_id"/>
 
                             <separator colspan="4" string="State"/>
-                            <field name="journal_id" select="2"/>
+                            <field name="journal_id"/>
                             <field name="period_id"/>
                             <field name="reconcile_id"/>
                             <field name="reconcile_partial_id"/>
-                            <field name="state" select="2"/>
+                            <field name="state"/>
                         </page>
                         <page string="Analytic Lines">
                             <field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
                         <page string="Information">
                             <separator colspan="4" string="General Information"/>
                             <field name="name" select="1"/>
-                            <field name="date" select="2"/>
+                            <field name="date"/>
                             <field name="journal_id" readonly="False" select="1"/>
-                            <field name="period_id" readonly="False" select="2"/>
+                            <field name="period_id" readonly="False"/>
                             <field name="account_id" select="1" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
-                            <field name="partner_id" select="2" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
+                            <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
                             <newline/>
-                            <field name="debit" select="2"/>
-                            <field name="credit" select="2"/>
+                            <field name="debit"/>
+                            <field name="credit"/>
 
                             <separator colspan="4" string="Optional Information"/>
                             <field name="currency_id"/>
                             <newline/>
                             <field name="reconcile_id"/>
                             <field name="reconcile_partial_id"/>
-                            <field name="state" select="2"/>
+                            <field name="state"/>
                         </page>
                         <page string="Analytic Lines">
                             <field colspan="4" name="analytic_lines" nolabel="1"/>
                 <form string="Account Entry">
                     <group colspan="4" col="6">
                     <field name="name" select="1" readonly="True"/>
-                    <field name="period_id" select="2"/>
+                    <field name="period_id"/>
                     <field name="journal_id" select="1"/>
                     <field name="company_id" required="1" groups="base.group_multi_company"/>
                     <field name="date" select="1"/>
                     <field name="ref" select="1"/>
-                    <field name="to_check" select="2"/>
-                    <field name="type" select="2" groups="base.group_extended"/>
+                    <field name="to_check"/>
+                    <field name="type" groups="base.group_extended"/>
                     </group>
                     <field name="partner_id" invisible="1" select="1"/>
                     <field name="amount" invisible="1" select="1"/>
                         </tree>
                     </field>
                     <separator colspan="4" string="Narration"/>
-                    <field name="narration" select="2" colspan="4" nolabel="1"/>
+                    <field name="narration" colspan="4" nolabel="1"/>
                     <separator colspan="4" string="State"/>
                     <field name="state" select="1"/>
                     <group col="2" colspan="2">
                         </page>
                     </notebook>
                     <group col="7" colspan="4">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <field name="balance_end"/>
                         <button name="button_dummy" states="draft" string="Compute" icon="gtk-execute"/>
                         <button name="button_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
 
                     <separator colspan="4" string="Subscription Periods"/>
                     <field name="date_start" select="1"/>
-                    <field name="period_total" select="2"/>
+                    <field name="period_total"/>
 
                     <field name="period_nbr"/>
                     <field name="period_type"/>
                     <field colspan="4" name="lines_id" widget="one2many_list" nolabel="1"/>
 
                     <separator colspan="4" string="State"/>
-                    <field name="state" select="2"/>
+                    <field name="state"/>
                     <group col="1" colspan="2">
                         <button name="state_draft" states="done" string="Set to Draft" type="object"  icon="gtk-convert" />
                     </group>
                             <field name="type" select="1"/>
                             <field name="user_type" select="1"/>
 
-                            <field name="currency_id" select="2"/>
+                            <field name="currency_id"/>
                             <field name="reconcile"/>
                             <field name="tax_ids" colspan="4"/>
                         </page>
                         <newline/>
                         <field name="chart_template_id" select="1"/>
                         <field name="tax_group" select="1"/>
-                        <field name="type" select="2"/>
-                        <field name="type_tax_use" select="2"/>
+                        <field name="type"/>
+                        <field name="type_tax_use"/>
                     </group>
                     <notebook colspan="4">
                         <page string="Tax Definition">
                             <field name="applicable_type"/>
-                            <field name="amount" select="2" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
+                            <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
                             <field groups="base.group_extended" name="include_base_amount"/>
                             <field groups="base.group_extended" name="domain"/>
                             <newline/>
index 8af1b79..494c0f7 100644 (file)
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Customer Credit" colspan="2"/>
-                        <field name="credit" select="2"/>
-                        <field name="credit_limit" select="2" groups="base.group_extended"/>
+                        <field name="credit"/>
+                        <field name="credit_limit" groups="base.group_extended"/>
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Supplier Debit" colspan="2"/>
-                        <field name="debit" select="2"/>
+                        <field name="debit"/>
                     </group>
-                    <field colspan="4" context="{'address': address}" name="bank_ids" nolabel="1" select="2">
+                    <field colspan="4" context="{'address': address}" name="bank_ids" nolabel="1">
                         <form string="Bank account">
-                            <field name="state" select="2"/>
+                            <field name="state"/>
                             <newline/>
                             <field name="acc_number" select="1"/>
                             <newline/>
                             <field name="bank"/>
                             <newline/>
                             <field name="sequence"/>
-                            <field colspan="4" name="name" select="2"/>
+                            <field colspan="4" name="name"/>
                             <separator colspan="4" string="Bank account owner"/>
                             <field colspan="4" name="owner_name"/>
                             <field colspan="4" name="street"/>
index f9ea49e..b83ce33 100644 (file)
@@ -2,7 +2,7 @@
     <data>
         <menuitem icon="terp-project" id="base.menu_main_pm" name="Project Management" sequence="1"/>
         <menuitem id="next_id_71" name="Financial Project Management" parent="base.menu_main_pm" groups="account.group_account_invoice" sequence="20"/>
-        <menuitem id="menu_invoicing" name="Invoicing" parent="next_id_71" sequence="20"/>
+        <menuitem id="menu_invoicing" name="Billing" parent="next_id_71" sequence="20"/>
 
         <record id="action_hr_tree_invoiced_all" model="ir.actions.act_window">
             <field name="name">All Uninvoiced Entries</field>
index 0e9bc49..64c71c1 100644 (file)
 
                         <field name="last_invoice_date"/>
 
-                        <field name="last_worked_invoiced_date" select="2"/>
+                        <field name="last_worked_invoiced_date"/>
                         <field name="last_worked_date"/>
                         <separator colspan="4" string="To be invoiced"/>
                         <field name="hours_qtt_non_invoiced"/>
-                        <field name="ca_to_invoice" select="2"/>
+                        <field name="ca_to_invoice"/>
 
                     </page>
                     <page string="Stats by month">
index ed5be32..5600801 100644 (file)
 
         <!--Menu for project management-->
         <menuitem icon="terp-project" id="base.menu_main_pm" name="Project Management" sequence="1"/>
-        <menuitem id="base.menu_pm_invoicing" name="Invoicing" parent="base.menu_main_pm" sequence="7"/>
+        <menuitem id="base.menu_pm_invoicing" name="Billing" parent="base.menu_main_pm" sequence="7"/>
         <menuitem id="menu_pm_budget" name="Budgets" parent="base.menu_pm_invoicing"/>
         <menuitem action="open_budget_post_form" id="menu_pm_budget_post_form" parent="menu_pm_budget"/>
         <menuitem parent="menu_pm_budget"
index db54fa6..021bcbb 100644 (file)
@@ -37,8 +37,8 @@
         <field name="arch" type="xml">
             <form string="Report Creator">
                 <field name="name" select="1" colspan="4"/>
-                <field name="type" select="2"/>
-                <field name="active" select="2"/>
+                <field name="type"/>
+                <field name="active"/>
                 <notebook colspan="4">
                 <page string="General Configuration">
                     <field name="model_ids" colspan="4"
index 287ad0a..325c2c1 100644 (file)
@@ -9,7 +9,7 @@
       <field name="arch" type="xml">
         <field name="property_account_payable" position="after">
             <group colspan="2" col="6">
-              <field name="vat" on_change="vat_change(vat)" select="2" colspan="4" />
+              <field name="vat" on_change="vat_change(vat)" colspan="4" />
               <field name="vat_subjected" colspan="1"/>
             </group>
         </field>
index 74f71f7..5089094 100644 (file)
@@ -46,7 +46,7 @@ AVAILABLE_PRIORITIES = [
 ]
 
 class crm_case_section(osv.osv):
-    """ Cases Section"""
+    """Sales Team"""
 
     _name = "crm.case.section"
     _description = "Sales Teams"
@@ -61,8 +61,8 @@ class crm_case_section(osv.osv):
         'user_id': fields.many2one('res.users', 'Responsible User'),
         'reply_to': fields.char('Reply-To', size=64, help="The email address put \
                         in the 'Reply-To' of all emails sent by Open ERP about cases in this sales team"),
-        'parent_id': fields.many2one('crm.case.section', 'Parent Section'),
-        'child_ids': fields.one2many('crm.case.section', 'parent_id', 'Child Sections'),
+        'parent_id': fields.many2one('crm.case.section', 'Parent Team'),
+        'child_ids': fields.one2many('crm.case.section', 'parent_id', 'Child Teams'),
         'resource_calendar_id': fields.many2one('resource.calendar', "Resource's Calendar"),
     }
 
@@ -72,7 +72,7 @@ class crm_case_section(osv.osv):
     }
 
     _sql_constraints = [
-        ('code_uniq', 'unique (code)', 'The code of the section must be unique !')
+        ('code_uniq', 'unique (code)', 'The code of the sales team must be unique !')
     ]
 
     def _check_recursion(self, cr, uid, ids):
@@ -708,7 +708,7 @@ class crm_case(osv.osv):
                     data['user_id'] = case.section_id.parent_id.user_id.id
             else:
                 raise osv.except_osv(_('Error !'), _('You can not escalate this case.\nYou are already at the top level.'))
-            self.write(cr, uid, ids, data)
+            self.write(cr, uid, [case.id], data)
         cases = self.browse(cr, uid, ids)
         self.__history(cr, uid, cases, _('Escalate'))
         self._action(cr, uid, cases, 'escalate')
@@ -797,7 +797,7 @@ class crm_case_log(osv.osv):
     _columns = {
         'name': fields.char('Status', size=64),
         'date': fields.datetime('Date'),
-        'section_id': fields.many2one('crm.case.section', 'Section'),
+        'section_id': fields.many2one('crm.case.section', 'Sales Team'),
         'user_id': fields.many2one('res.users', 'User Responsible', readonly=True),
         'model_id': fields.many2one('ir.model', "Model"),
         'res_id': fields.integer('Resource ID'),
index 6e6e9b9..718b12b 100644 (file)
@@ -70,7 +70,7 @@ class case(osv.osv):
         """
         for case in self.browse(cr, uid, ids):
             if not case.section_id.reply_to:
-                raise osv.except_osv(_('Error!'), ("Reply To is not specified in Section"))
+                raise osv.except_osv(_('Error!'), ("Reply To is not specified in the sales team"))
             if not case.email_from:
                 raise osv.except_osv(_('Error!'), ("Partner Email is not specified in Case"))
             if case.section_id.reply_to and case.email_from:
@@ -259,11 +259,11 @@ class base_action_rule_line(osv.osv):
         return res + crm.AVAILABLE_PRIORITIES
 
     _columns = {
-        'trg_section_id': fields.many2one('crm.case.section', 'Section'),
+        'trg_section_id': fields.many2one('crm.case.section', 'Sales Team'),
         'trg_max_history': fields.integer('Maximum Communication History'),
         'trg_categ_id':  fields.many2one('crm.case.categ', 'Category'),
         'regex_history' : fields.char('Regular Expression on Case History', size=128),
-        'act_section_id': fields.many2one('crm.case.section', 'Set section to'),
+        'act_section_id': fields.many2one('crm.case.section', 'Set Team to'),
         'act_categ_id': fields.many2one('crm.case.categ', 'Set Category to'),
         'act_mail_to_partner': fields.boolean('Mail to partner',help="Check this \
                                 if you want the rule to send an email to the partner."),
index c740900..722c1f3 100644 (file)
                     </group>
                     <separator colspan="4" string="Status and Categorization"/>
                     <group colspan="4" col="6">
-                        <field name="user_id" string="Responsible" select="2"/>
+                        <field name="user_id" string="Responsible"/>
                         <field name="section_id" widget="selection"/>
                         <label string="Stage: " align="1.0"/>
                         <group colspan="1" col="2">
index c0994ae..bc4b91f 100644 (file)
@@ -5,7 +5,8 @@
 <!-- MENU -->
 
     <menuitem id="base.menu_fundrising" name="Fund Raising"
-       parent="base.menu_base_partner" sequence="7" />
+        groups="base.group_extended"
+        parent="base.menu_base_partner" sequence="7" />
 
     <record model="ir.actions.act_window" id="crm_case_category_act_fund_all1">
         <field name="name">Funds</field>
index 8d315c1..f090bf0 100644 (file)
@@ -15,6 +15,7 @@
 
     <menuitem action="crm_fund_categ_action"
         id="menu_crm_case_fundraising-act"
+        groups="base.group_extended"
         parent="crm.menu_crm_case_categ" />
 
 <!-- Fund Stage Form View -->
@@ -29,6 +30,7 @@
         </record>
 
         <menuitem action="crm_fundraising_stage_act"
+            groups="base.group_extended"
             id="menu_crm_fundraising_stage_act"
             parent="crm.menu_crm_case_stage" />
 
@@ -44,6 +46,7 @@
         </record>
 
         <menuitem action="crm_fundraising_resource_act"
+            groups="base.group_extended"
             id="menu_crm_fundraising_resource_act"
             parent="crm.menu_crm_case_resource_type" />
 
                     <field name="probability"/>
                     <separator colspan="4" string="Categorization"/>
                     <group colspan="4" col="6">
-                        <field name="user_id" select="2" string="Responsible"/>
+                        <field name="user_id" string="Responsible"/>
                         <field name="section_id" colspan="1" widget="selection"/>
                         <field name="categ_id" select="1"
                             widget="selection"
                         <field name="description" nolabel="1" colspan="4"/>
                     <separator colspan="4"/>
                     <group col="8" colspan="4">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <button name="case_close" string="Done"
                             states="open,draft,pending" type="object"
                             icon="gtk-close" />
                                domain="[('user_id','=', False)]"
                                help="Unassigned" />
                        </field>
-                       <field name="section_id" select="1" widget="selection" string="Section">
+                       <field name="section_id" select="1" widget="selection" string="Sales Team">
                            <filter icon="terp-crm"
                                domain="[('section_id','=',context.get('section_id',False))]"
                                help="My section" />
index bea0c3a..2d9a713 100644 (file)
@@ -27,7 +27,7 @@
                 <group colspan="4" col="4">
                     <field colspan="4" name="name" select="1"/>
                     <field name="date" select="1"/>
-                    <field name="date_deadline" select="2"/>
+                    <field name="date_deadline"/>
                 </group>
                 <notebook colspan="4">
                     <page string="General">
@@ -38,9 +38,9 @@
                                 select="1" />
                             <field name="partner_address_id"
                                 on_change="onchange_partner_address_id(partner_address_id, email_from)"
-                                select="2" />
+                                />
 
-                            <field name="email_from" select="2" />
+                            <field name="email_from" />
                             <button name="remind_partner"
                                 states="open,pending"
                                 string="Send Reminder" type="object"
@@ -88,9 +88,9 @@
                     </page>
                     <page string="History" groups="base.group_extended">
                         <field name="id" select="1"/>
-                        <field name="active" select="2"/>
-                        <field name="categ_id" select="2"/>
-                        <field name="som" select="2"/>
+                        <field name="active"/>
+                        <field name="categ_id"/>
+                        <field name="som"/>
                         <separator colspan="4" string="Dates"/>
                         <field name="create_date"/>
                         <field name="date_closed"/>
                             <form string="Actions">
                                 <separator colspan="4" string="Action Information"/>
                                 <field colspan="4" name="name"/>
-                                <field name="date" select="2"/>
-                                <field name="user_id" select="2"/>                                
+                                <field name="date"/>
+                                <field name="user_id"/>                                
                             </form>
                         </field>
                     </page>
                     <filter icon="terp-partner" name="my_hd_request" 
                     domain="[('user_id','=',uid)]" help="My Helpdesk Requests"/>
                 </field>
-                <field name="section_id" select="1" widget="selection" string="Section">
+                <field name="section_id" select="1" widget="selection" string="Sales Team">
                     <filter icon="terp-crm"
                         domain="[('section_id','=',context.get('section_id',False))]"
                         help="My section" />
index 9b03489..4878569 100644 (file)
@@ -122,7 +122,7 @@ class crm_lead(osv.osv):
         'opportunity_id': fields.many2one('crm.opportunity', 'Opportunity'),
 
         'user_id': fields.many2one('res.users', 'Salesman'),
-        'referred': fields.char('Referred By', size=32),
+        'referred': fields.char('Referred By', size=64),
         'date_open': fields.datetime('Opened', readonly=True),
         'day_open': fields.function(_compute_day, string='Days to Open', \
                                 method=True, multi='day_open', type="integer", store=True),
index 8e34bca..d9424b7 100644 (file)
     </record>
 
     <menuitem id="base.menu_sales" name="Sales"
-       parent="base.menu_base_partner" sequence="1" />
+        parent="base.menu_base_partner" sequence="1" />
     <menuitem parent="base.menu_sales" name="Leads"
-       id="menu_crm_case_categ0_act_leads"
-       action="crm_case_category_act_leads_all" sequence="1" />
+        groups="base.group_extended"
+        id="menu_crm_case_categ0_act_leads"
+        action="crm_case_category_act_leads_all" sequence="1" />
 
 </data>
 </openerp>
index 9dad22d..e791761 100644 (file)
@@ -13,6 +13,7 @@
         <field name="context">{'object_id':'crm.lead'}</field>
     </record>
     <menuitem action="crm_lead_stage_act" id="menu_crm_lead_stage_act"
+        groups="base.group_extended"
         parent="crm.menu_crm_case_stage" />
 
     <!--  Resource Type Form View -->
@@ -27,6 +28,7 @@
         </record>
         <menuitem action="crm_lead_resource_act"
             id="menu_crm_lead_resource_act"
+            groups="base.group_extended"
             parent="crm.menu_crm_case_resource_type" />
 
 <!-- CRM Lead Form View  -->
                     <field name="priority"/>
                     <field name="date_deadline"/>
                     <button
-                            name="convert_opportunity"
-                            string="Convert"
-                            help="Convert into Opportunity"
-                            icon="gtk-index"   
-                            type="object"                         
-                            attrs="{'invisible':[('opportunity_id','!=',False)]}"/>
+                         name="convert_opportunity"
+                         string="Convert"
+                         help="Convert to Opportunity"
+                         icon="gtk-index"   
+                         type="object"
+                         attrs="{'invisible':[('opportunity_id','!=',False)]}"/>
                     <newline />
                     <field name="section_id" colspan="1"
                         widget="selection" />
                     <field name="user_id" />
                     <field name="stage_id" widget="selection"
-                        readonly="1"
                         domain="[('object_id.model', '=', 'crm.lead')]" />
                     <group col="2" colspan="1">
                         <button name="stage_previous" string="Previous"
                     <field name="description" nolabel="1" colspan="4"/>
                     <separator colspan="4"/>
                     <group col="8" colspan="4">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <button name="case_close" string="Close"
                             states="open,draft,pending" type="object"
                             icon="gtk-close" />
                     states="open,draft,pending" type="object"
                     icon="gtk-close" />
                 <button string="Convert to Opportunity"
-                    name="%(action_crm_lead2opportunity)d"
+                    name="convert_opportunity"
                     states="draft,open,pending" icon="gtk-index"
-                    type="action" />
+                    type="object" />
                 <button name="case_escalate" string="Escalate"
                     states="open,draft,pending" type="object"
                     icon="gtk-go-up" />
index 766a0fd..66c4fe9 100644 (file)
                     <field name="description" nolabel="1" colspan="4" />
                     <separator colspan="4"/>
                     <group col="8" colspan="4">
-                        <field name="state" select="2" />
+                        <field name="state" />
                         <button name="case_close" string="Done"
                             states="open" type="object"
                             icon="gtk-jump-to" />
                                         <field name="role" select="1" />
                                         <separator colspan="4" string="" />
                                         <group col="6" colspan="4">
-                                            <field name="state" select="2" />
+                                            <field name="state" />
                                             <button name="do_tentative"
                                                 states="needs-action,declined,accepted"
                                                 string="Uncertain"
index ad38f74..d566bd2 100644 (file)
@@ -39,7 +39,7 @@ class crm_opportunity(osv.osv):
 
     _name = "crm.opportunity"
     _description = "Opportunity Cases"
-    _order = "priority,id desc"
+    _order = "priority,date_action,id desc"
     _inherit = 'crm.case'
 
     def case_open(self, cr, uid, ids, *args):
@@ -118,9 +118,8 @@ class crm_opportunity(osv.osv):
         'categ_id': fields.many2one('crm.case.categ', 'Category', \
                      domain="[('section_id','=',section_id), \
                     ('object_id.model', '=', 'crm.opportunity')]"),
-        'type_id': fields.many2one('crm.case.resource.type', 'Resource Type',\
-                    domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.opportunity')]"),
         'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'),
+        'referred': fields.char('Referred By', size=64),
         'probability': fields.float('Probability (%)'),
         'planned_revenue': fields.float('Expected Revenue'),
         'ref': fields.reference('Reference', selection=crm._links_get, size=128),
@@ -129,6 +128,7 @@ class crm_opportunity(osv.osv):
         'user_id': fields.many2one('res.users', 'Salesman'),
         'phone': fields.char("Phone", size=64),
         'date_deadline': fields.date('Expected Closing'),
+        'date_action': fields.date('Next Action'),
         'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True,
                                   help='The state is set to \'Draft\', when a case is created.\
                                   \nIf the case is in progress the state is set to \'Open\'.\
index 92b0991..f50922d 100644 (file)
                     <field name="date_deadline" string="Expected Closing"/>
                     <button string="Schedule Call"
                         name="%(opportunity2phonecall_act)d" icon="gtk-redo" type="action"  />
+
+                    <newline/>
+                    <field name="date_action"/>
+                    <field name="priority" string="Priority"/>
                 </group>
                 <notebook colspan="4">
                 <page string="Opportunity">
@@ -94,9 +98,7 @@
                     </group>
                     <group col="2" colspan="2">
                         <separator colspan="2" string="Categorization"/>
-                        <field name="type_id" select="1" string="Campaign" groups="base.group_extended"/>
                         <field name="section_id" colspan="1" widget="selection"/>
-                        <field name="priority" string="Priority"/>
                         <field name="categ_id" select="1"
                             string="Category" widget="selection"
                             domain="[('object_id.model', '=', 'crm.opportunity')]" />
 
                     <separator colspan="4"/>
                     <group col="8" colspan="4">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <button name="case_open" string="Open"
                             states="draft,pending" type="object"
                             icon="gtk-go-forward" />
                         <field name="active"/>
                         <field name="day_open"/>
                         <field name="day_close"/>
+                        <field name="referred"/>
                     </group>
                     <separator colspan="4" string="References"/>
                     <field name="ref"/>
                 <field name="partner_id"/>
                 <field name="stage_id"/>
                 <field name="categ_id" invisible="1"/>
-                <field name="type_id" invisible="1"/>
                 <button name="stage_previous" string="Previous"
                     states="open,pending" type="object" icon="gtk-go-back" />
                 <button name="stage_next" string="Next"
                     icon="gtk-go-forward" />
                 <field name="planned_revenue" sum="Expected Revenue"/>
                 <field name="probability" widget="progressbar" avg="Avg. of Probability"/>
-                <field name="date_deadline" string="Expected Closing"/>
+                <field name="date_action"/>
                 <field name="section_id"/>
                 <field name="user_id"/>
                 <field name="priority"/>
                     <filter string="Category" icon="terp-crm"
                         domain="[]" context="{'group_by':'categ_id'}" />
 
-                    <filter string="Campaign" icon="terp-crm"
-                        domain="[]" context="{'group_by':'type_id'}" />
                     <separator orientation="vertical" />
                     <filter string="Partner" icon="terp-crm" domain="[]"
                         context="{'group_by':'partner_id'}" />
index 9e6678c..8f5e665 100644 (file)
@@ -46,7 +46,8 @@
     </record>
 
     <menuitem name="Phone Calls" id="menu_crm_case_phone"
-       parent="base.menu_base_partner" sequence="5" />
+        groups="base.group_extended"
+        parent="base.menu_base_partner" sequence="5" />
 
     <record model="ir.actions.act_window" id="crm_case_categ_phone_incoming0">
         <field name="name">Inbound</field>
@@ -81,8 +82,8 @@
     </record>
 
     <menuitem name="Inbound" id="menu_crm_case_phone_inbound"
-       parent="crm.menu_crm_case_phone"
-       action="crm_case_categ_phone_incoming0" />
+        parent="crm.menu_crm_case_phone"
+        action="crm_case_categ_phone_incoming0" />
 
     <record model="ir.actions.act_window" id="crm_case_categ_phone_outgoing0">
         <field name="name">Outbound</field>
     </record>
 
     <menuitem name="Outbound" id="menu_crm_case_phone_outbound"
-       parent="crm.menu_crm_case_phone"
-       action="crm_case_categ_phone_outgoing0" />
+        parent="crm.menu_crm_case_phone"
+        action="crm_case_categ_phone_outgoing0" />
 
 </data>
 </openerp>
index 064d356..dfa949a 100644 (file)
                        help="Unassigned Phonecalls" />
                </field>
                <field name="section_id"
-                   select="1" widget="selection" string="Section">
+                   select="1" widget="selection" string="Sales Team">
                    <filter icon="terp-crm"
                        domain="[('section_id','=',context.get('section_id',False))]"
                        help="My section" />
index 33a2cda..9535992 100644 (file)
@@ -5,7 +5,7 @@
 <!--  Cases by section and category2 of case Tree View -->
 
     <record model="ir.ui.view" id="view_crm_case_section_categ_tree">
-        <field name="name">CRM Report - Sections and Type(Tree)</field>
+        <field name="name">CRM Report - Teams and Type(Tree)</field>
         <field name="model">report.crm.case.section.categ2</field>
         <field name="type">tree</field>
         <field name="arch" type="xml">
@@ -27,7 +27,7 @@
 <!--  Cases by section and category2 of case Form View -->
 
     <record model="ir.ui.view" id="view_crm_case_section_categ_form">
-        <field name="name">CRM Report - Sections and Type(Form)</field>
+        <field name="name">CRM Report - Teams and Type(Form)</field>
         <field name="model">report.crm.case.section.categ2</field>
         <field name="type">form</field>
         <field name="arch" type="xml">
index 31dd875..dfaab14 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
     <data>
-        <menuitem id="menu_crm_configuration" name="Cases" parent="base.menu_base_config" sequence="0"/>
+        <menuitem id="menu_crm_configuration" name="Cases"
+            parent="base.menu_base_config" sequence="0"/>
 
 <!-- Case Sections Form View -->
 
                         <page string="Case section">
                             <field name="name" select="1"/>
                             <field name="code" select="1"/>
-                            <field name="user_id" select="2"/>
-                            <field name="active" select="2"/>
-                            <field name="parent_id" select="2" widget="selection"/>
-                            <field name="allow_unlink" select="2"/>
-                            <field name="reply_to" select="2"/>
-                            <field name="resource_calendar_id" select="2"/>
+                            <field name="user_id"/>
+                            <field name="active"/>
+                            <field name="parent_id" widget="selection"/>
+                            <field name="allow_unlink"/>
+                            <field name="reply_to"/>
+                            <field name="resource_calendar_id"/>
                         </page>
                     </notebook>
                 </form>
                     <field colspan="4" name="name" select="1"/>
                     <field colspan="2" name="section_id" widget="selection"/>
                     <field name="create_date" select="1"/>
-                    <field name="date_deadline" select="2"/>
+                    <field name="date_deadline"/>
                     <newline />
                     <notebook colspan="4">
                         <page string="General">
                                 <field colspan="3"
                                     name="partner_address_id"
                                     on_change="onchange_partner_address_id(partner_address_id, email_from)"
-                                    select="2" />
+                                    />
                                 <newline />
                                 <field colspan="3" name="email_from"
-                                    select="2" />
+                                    />
                                 <button name="remind_partner"
                                     states="open,pending"
                                     string="Send Reminder" type="object"
                         </page>
                         <page string="History" groups="base.group_extended">
                             <field name="id" select="1"/>
-                            <field name="active" select="2"/>
+                            <field name="active"/>
                             <separator colspan="4" string="Dates"/>
                             <field name="create_date"/>
                             <field colspan="4" name="log_ids" nolabel="1">
                                 <form string="Actions">
                                     <separator colspan="4" string="Action Information"/>
                                     <field colspan="4" name="name"/>
-                                    <field name="date" select="2"/>
-                                    <field name="user_id" select="2"/>
+                                    <field name="date"/>
+                                    <field name="user_id"/>
                                 </form>
                             </field>
                         </page>
                     <field colspan="4" name="name" select="1"/>
                     <field name="date" select="1"/>
                     <field name="user_id" select="1"/>
-                    <field name="model_id" select="2"/>
-                    <field name="res_id" select="2"/>
-                    <field name="som" select="2"/>
-                    <field name="canal_id" select="2"/>
-                    <field colspan="4" name="description" select="2"/>
+                    <field name="model_id"/>
+                    <field name="res_id"/>
+                    <field name="som"/>
+                    <field name="canal_id"/>
+                    <field colspan="4" name="description"/>
                 </form>
             </field>
         </record>
                 <form string="Partner Segmentation Lines">
                     <field colspan="4" name="name" select="1"/>
                     <group col="2" colspan="4">
-                        <field name="expr_name" select="2"/>
-                        <field name="expr_operator" select="2"/>
-                        <field name="expr_value" select="2"/>
+                        <field name="expr_name"/>
+                        <field name="expr_operator"/>
+                        <field name="expr_value"/>
                     </group>
                     <newline/>
                     <field name="operator"/>
                 <form string="Partner Segmentation">
                     <group col="6" colspan="4">
                         <field name="name" select="1"/>
-                        <field name="categ_id" select="2"/>
+                        <field name="categ_id"/>
                         <field name="exclusif"/>
                     </group>
                     <notebook colspan="4">
                             <field colspan="4" name="segmentation_line" widget="one2many_list" nolabel="1"/>
                         </page>
                         <page string="Description">
-                               <field colspan="4" name="description" select="2" nolabel="1"/>
+                               <field colspan="4" name="description" nolabel="1"/>
                            </page>
                     </notebook>
                     <field name="state"/>
         </record>
         <menuitem action="crm_segmentation_tree-act"
             id="menu_crm_segmentation-act"
+            groups="base.group_extended"
             parent="crm.menu_crm_configuration" />
 
         <record model="ir.ui.view" id="view_users_form_simple_modif_inherited1">
index 465fab7..4d544c9 100644 (file)
             <field name="type">tree</field>
             <field name="arch" type="xml">
                <tree string="Claims">
-                                       <field name="name" />
-                                       <field name="month"/>
-                                       <field name="section_id" />
+                    <field name="name" />
+                    <field name="month"/>
+                    <field name="section_id" />
                     <field name="user_id" />
                     <field name="company_id" />
                     <field name="partner_id" />
-                                       <field name="nbr" string="#Claim"/>
-                       <field name="delay_close"/>
-                       <field name="state"  invisible="1"/>
-                       <field name="stage_id" invisible="1"/>
-                       <field name="categ_id" invisible="1"/>
+                    <field name="nbr" string="#Claim"/>
+                    <field name="delay_close"/>
+                    <field name="state"  invisible="1"/>
+                    <field name="stage_id" invisible="1"/>
+                    <field name="categ_id" invisible="1"/>
                 </tree>
             </field>
         </record>
@@ -34,7 +34,7 @@
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <field name="nbr" position="after">
-                       <field name="delay_close"/>
+                    <field name="delay_close"/>
                     <field name="amount_revenue"/>
                     <field name="amount_costs"/>
                     <field name="amount_revenue_prob"/>
             <field name="type">search</field>
             <field name="arch" type="xml">
              <xpath
-               expr='//search[@string="Search"]/group[@string="Group By..."]/filter[@string="State"]'
-               position='after'>
-               <filter string="Stage" icon="terp-sale" domain="[]"
-                       context="{'group_by':'stage_id'}" />
+                 expr='//search[@string="Search"]/group[@string="Group By..."]/filter[@string="State"]'
+                 position='after'>
+                 <filter string="Stage" icon="terp-sale" domain="[]"
+                     context="{'group_by':'stage_id'}" />
              </xpath>
             </field>
         </record>
             <field name="name">Claims</field>
             <field name="res_model">crm.claim.report</field>
             <field name="view_type">form</field>
-                       <field name="view_mode">tree,graph</field>
+              <field name="view_mode">tree,graph</field>
             <field name="view_id" ref="view_report_crm_claim_tree"/>
             <field name="context">{"search_default_section_id":section_id,"search_default_this_year":1,"search_default_this_month":1,"search_default_by_user":1}</field>
             <field name="search_view_id" ref="view_report_crm_claim_filter"/>
 
         </record>
 
-               <record model="ir.actions.act_window.view" id="action_report_crm_claim_tree">
-               <field name="sequence" eval="1"/>
-               <field name="view_mode">tree</field>
-               <field name="view_id" ref="view_report_crm_claim_tree"/>
-               <field name="act_window_id" ref="action_report_crm_claim"/>
-           </record>
-
-               <record model="ir.actions.act_window.view" id="action_report_crm_claim_graph">
-               <field name="sequence" eval="2"/>
-               <field name="view_mode">graph</field>
-               <field name="view_id" ref="view_report_crm_claim_graph"/>
-               <field name="act_window_id" ref="action_report_crm_claim"/>
-           </record>
-
-               <menuitem name="Claims" id="menu_report_crm_claim_tree"
-                       action="action_report_crm_claim" parent="base.next_id_64" />
+           <record model="ir.actions.act_window.view" id="action_report_crm_claim_tree">
+            <field name="sequence" eval="1"/>
+            <field name="view_mode">tree</field>
+            <field name="view_id" ref="view_report_crm_claim_tree"/>
+            <field name="act_window_id" ref="action_report_crm_claim"/>
+        </record>
+
+           <record model="ir.actions.act_window.view" id="action_report_crm_claim_graph">
+            <field name="sequence" eval="2"/>
+            <field name="view_mode">graph</field>
+            <field name="view_id" ref="view_report_crm_claim_graph"/>
+            <field name="act_window_id" ref="action_report_crm_claim"/>
+        </record>
+
+       <menuitem name="Claims" id="menu_report_crm_claim_tree"
+           groups="base.group_extended"
+           action="action_report_crm_claim" parent="base.next_id_64" />
 
 
     </data>
index fbc56e6..c051ab8 100644 (file)
@@ -9,14 +9,14 @@
             <field name="model">crm.fundraising.report</field>
             <field name="type">tree</field>
             <field name="arch" type="xml">
-               <tree string="Fundraising">
-                       <field name="name" />
-                                       <field name="month"/>
-                                       <field name="section_id" />
+                <tree string="Fundraising">
+                      <field name="name" />
+                    <field name="month"/>
+                    <field name="section_id" />
                     <field name="user_id" />
-                               <field name="company_id" />
+                    <field name="company_id" />
                     <field name="partner_id" />
-                       <field name="nbr" string="#Fundraising"/>
+                    <field name="nbr" string="#Fundraising"/>
                     <field name="amount_revenue"  sum="Total Revenue"/>
                     <field name="probability"/>
                     <field name="amount_revenue_prob"/>
@@ -36,7 +36,7 @@
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <field name="nbr" position="after">
-                       <field name="delay_close"/>
+                    <field name="delay_close"/>
                     <field name="amount_revenue"/>
                     <field name="amount_revenue_prob"/>
                     <field name="probability"/>
         </record>
 
 
-               <record model="ir.actions.act_window.view" id="action_report_crm_fundrising_tree">
-               <field name="sequence" eval="1"/>
-               <field name="view_mode">tree</field>
-               <field name="view_id" ref="view_report_crm_fundraising_tree"/>
-               <field name="act_window_id" ref="action_report_crm_fundraising"/>
-           </record>
+           <record model="ir.actions.act_window.view" id="action_report_crm_fundrising_tree">
+            <field name="sequence" eval="1"/>
+            <field name="view_mode">tree</field>
+            <field name="view_id" ref="view_report_crm_fundraising_tree"/>
+            <field name="act_window_id" ref="action_report_crm_fundraising"/>
+        </record>
 
         <record model="ir.actions.act_window.view" id="action_report_crm_fundrising_graph">
-               <field name="sequence" eval="2"/>
-               <field name="view_mode">graph</field>
-               <field name="view_id" ref="view_report_crm_fundraising_graph"/>
-               <field name="act_window_id" ref="action_report_crm_fundraising"/>
-           </record>
+            <field name="sequence" eval="2"/>
+            <field name="view_mode">graph</field>
+            <field name="view_id" ref="view_report_crm_fundraising_graph"/>
+            <field name="act_window_id" ref="action_report_crm_fundraising"/>
+        </record>
 
         <menuitem name="Fundraising"
-               action="action_report_crm_fundraising"
-               id="menu_report_crm_fundraising_tree" parent="base.next_id_64" />
+            action="action_report_crm_fundraising"
+            groups="base.group_extended"
+            id="menu_report_crm_fundraising_tree" parent="base.next_id_64" />
 
     </data>
 </openerp>
index ba4e3be..0852d34 100644 (file)
             <field name="type">tree</field>
             <field name="arch" type="xml">
                <tree string="Helpdesk">
-                                       <field name="name" />
-                                       <field name="month"/>
-                                       <field name="section_id" />
+                    <field name="name" />
+                    <field name="month"/>
+                    <field name="section_id" />
                     <field name="user_id" />
                     <field name="company_id"/>
                     <field name="partner_id" />
                     <field name="date_deadline" invisible="1"/>
                     <field name="priority" invisible="1"/>
-                                       <field name="nbr" string="#Helpdesk" />
-                       <field name="delay_close"/>
+                    <field name="nbr" string="#Helpdesk" />
+                    <field name="delay_close"/>
                     <field name="state" invisible="1"/>
-                               </tree>
+                </tree>
             </field>
         </record>
 
@@ -34,7 +34,7 @@
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <field name="nbr" position="after">
-                       <field name="delay_close"/>
+                    <field name="delay_close"/>
                     <field name="amount_revenue"/>
                     <field name="amount_revenue_prob"/>
                     <field name="probability"/>
 
 <!-- Helpdesk report after Sales Services Search View -->
 
-               <record id="view_report_crm_helpdesk_filter" model="ir.ui.view">
+        <record id="view_report_crm_helpdesk_filter" model="ir.ui.view">
             <field name="name">crm.helpdesk.report.select</field>
             <field name="model">crm.helpdesk.report</field>
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Search">
                   <group col="16" colspan="9">
-                               <filter string="This Year" icon="terp-hr"
-                                       domain="[('name','=',time.localtime()[0])]"
-                                       name="this_year" />
+                           <filter string="This Year" icon="terp-hr"
+                               domain="[('name','=',time.localtime()[0])]"
+                               name="this_year" />
 
-                               <filter string="This Month" icon="terp-hr"
-                                       domain="[('month','=',time.strftime('%%m'))]"
-                                       name="this_month" />
+                           <filter string="This Month" icon="terp-hr"
+                               domain="[('month','=',time.strftime('%%m'))]"
+                               name="this_month" />
 
-                               <separator orientation="vertical" />
-                               <filter string="Current" icon="terp-hr"
-                                       domain="[('state','in',('open','draft'))]" />
+                           <separator orientation="vertical" />
+                           <filter string="Current" icon="terp-hr"
+                               domain="[('state','in',('open','draft'))]" />
 
-                               <filter string="Won" icon="terp-hr"
-                                       domain="[('state','=','done')]" />
+                           <filter string="Won" icon="terp-hr"
+                               domain="[('state','=','done')]" />
 
-                               <filter string="Lost" icon="terp-hr"
-                                       domain="[('state','=','cancel')]" />
+                           <filter string="Lost" icon="terp-hr"
+                               domain="[('state','=','cancel')]" />
 
-                               <filter string="Deadline" icon="terp-hr"
-                                       domain="[('date_deadline','=',time.strftime('%%m/%%d/%%Y'))]" />
+                           <filter string="Deadline" icon="terp-hr"
+                               domain="[('date_deadline','=',time.strftime('%%m/%%d/%%Y'))]" />
 
-                               <separator orientation="vertical" />
-                               <field name="section_id"
-                                       widget="selection"
-                                       context="{'invisible_section': False}">
+                           <separator orientation="vertical" />
+                           <field name="section_id"
+                               widget="selection"
+                               context="{'invisible_section': False}">
 
-                                       <filter icon="terp-crm"
-                                               context="{'invisible_section': False}"
-                                               domain="[('section_id.user_id','=',uid)]"
-                                               help="My section" />
+                               <filter icon="terp-crm"
+                                   context="{'invisible_section': False}"
+                                   domain="[('section_id.user_id','=',uid)]"
+                                   help="My section" />
 
-                               </field>
-                               <field name="company_id" widget="selection">
+                           </field>
+                           <field name="company_id" widget="selection">
 
                            <filter icon="terp-crm"
                         context="{'invisible_section': False}"
                    <newline/>
                    <group expand="1" string="Extended options..." colspan="4" col="5">
                         <filter icon="terp-sale"
-                               string="Lowest"
-                               domain="[('priority','=','5')]"/>
+                            string="Lowest"
+                            domain="[('priority','=','5')]"/>
 
-                       <filter icon="terp-sale"
-                               string="Low"
-                               domain="[('priority','=','4')]"/>
+                        <filter icon="terp-sale"
+                            string="Low"
+                            domain="[('priority','=','4')]"/>
 
-                       <filter icon="terp-sale"
-                               string="Normal"
-                               domain="[('priority','=','3')]"/>
+                        <filter icon="terp-sale"
+                            string="Normal"
+                            domain="[('priority','=','3')]"/>
 
-                       <filter icon="terp-sale"
-                               string="High"
-                               domain="[('priority','=','2')]"/>
+                        <filter icon="terp-sale"
+                            string="High"
+                            domain="[('priority','=','2')]"/>
 
-                       <filter icon="terp-sale"
-                               string="Highest"
-                               domain="[('priority','=','1')]"/>
+                        <filter icon="terp-sale"
+                            string="Highest"
+                            domain="[('priority','=','1')]"/>
 
                    </group>
                    <newline/>
 
                   <group expand="1" string="Group By..." colspan="4" col="8">
                         <filter string="User" icon="terp-sale"
-                               domain="[]" context="{'group_by':'user_id'}" />
+                            domain="[]" context="{'group_by':'user_id'}" />
 
                         <filter string="Company" icon="terp-sale"
-                               domain="[]"
-                               context="{'group_by':'company_id'}" />
+                            domain="[]"
+                            context="{'group_by':'company_id'}" />
 
                         <filter string="Section" icon="terp-sale"
-                               domain="[]"
-                               context="{'group_by':'section_id'}" />
+                            domain="[]"
+                            context="{'group_by':'section_id'}" />
 
                         <separator orientation="vertical" />
                         <filter string="State" icon="terp-sale"
-                               domain="[]" context="{'group_by':'state'}" />
+                            domain="[]" context="{'group_by':'state'}" />
 
                         <filter string="Partner" icon="terp-sale"
-                               domain="[]"
-                               context="{'group_by':'partner_id'}" />
+                            domain="[]"
+                            context="{'group_by':'partner_id'}" />
 
                         <separator orientation="vertical" />
                         <filter string="Month" icon="terp-sale"
-                               domain="[]" context="{'group_by':'month'}" />
+                            domain="[]" context="{'group_by':'month'}" />
 
                         <filter string="Year" icon="terp-sale"
-                               domain="[]" context="{'group_by':'name'}" />
+                            domain="[]" context="{'group_by':'name'}" />
 
                   </group>
                </search>
             <field name="search_view_id" ref="view_report_crm_helpdesk_filter"/>
         </record>
 
-               <record model="ir.actions.act_window.view" id="action_report_crm_helpdesk_tree">
-               <field name="sequence" eval="1"/>
-               <field name="view_mode">tree</field>
-               <field name="view_id" ref="view_report_crm_helpdesk_tree"/>
-               <field name="act_window_id" ref="action_report_crm_helpdesk"/>
-           </record>
+           <record model="ir.actions.act_window.view" id="action_report_crm_helpdesk_tree">
+            <field name="sequence" eval="1"/>
+            <field name="view_mode">tree</field>
+            <field name="view_id" ref="view_report_crm_helpdesk_tree"/>
+            <field name="act_window_id" ref="action_report_crm_helpdesk"/>
+        </record>
 
         <record model="ir.actions.act_window.view" id="action_report_crm_helpdesk_graph">
-               <field name="sequence" eval="2"/>
-               <field name="view_mode">graph</field>
-               <field name="view_id" ref="view_report_crm_helpdesk_graph"/>
-               <field name="act_window_id" ref="action_report_crm_helpdesk"/>
-           </record>
+            <field name="sequence" eval="2"/>
+            <field name="view_mode">graph</field>
+            <field name="view_id" ref="view_report_crm_helpdesk_graph"/>
+            <field name="act_window_id" ref="action_report_crm_helpdesk"/>
+        </record>
 
         <menuitem name="Helpdesk" action="action_report_crm_helpdesk"
-               id="menu_report_crm_helpdesks_tree" parent="base.next_id_64" />
+            groups="base.group_extended"
+            id="menu_report_crm_helpdesks_tree" parent="base.next_id_64" />
 
     </data>
 </openerp>
index 6d96016..f4b97ad 100644 (file)
@@ -77,6 +77,7 @@ class crm_lead2opportunity(osv.osv_memory):
             for this in self.browse(cr, uid, ids, context=context):
                 new_opportunity_id = opp_obj.create(cr, uid, {
                         'name': this.name, 
+                        'referred': this.referred,
                         'planned_revenue': this.planned_revenue, 
                         'probability': this.probability, 
                         'partner_id': lead.partner_id and lead.partner_id.id or False , 
@@ -89,7 +90,6 @@ class crm_lead2opportunity(osv.osv_memory):
                         'phone': lead.phone, 
                         'email_from': lead.email_from
                     })
-
                 new_opportunity = opp_obj.browse(cr, uid, new_opportunity_id)
                 vals = {
                         'partner_id': this.partner_id and this.partner_id.id or False, 
index eefd438..229b54e 100644 (file)
@@ -1,61 +1,63 @@
 <openerp>
-       <data>
+      <data>
 
-               <!-- Lead to Opportunity view -->
+        <!-- Lead to Opportunity view -->
 
-               <record id="view_crm_lead2opportunity_create" model="ir.ui.view">
-             <field name="name">crm.lead2opportunity.create</field>
-             <field name="model">crm.lead2opportunity</field>
-             <field name="type">form</field>
-             <field name="arch" type="xml">
-               <form string="Convert To Opportunity">
-                       <field name="name"/>
-                       <field name="partner_id"/>
-                       <newline/>
-                       <field name="planned_revenue"/>
-                       <field name="probability"/>
-                       <group col="4" colspan="4">
-                               <button special="cancel" string="Cancel" icon="gtk-cancel"/>
-                               <button name="action_apply" string="Create Opportunity" type="object" icon="gtk-ok"/>
-                       </group>
-                   </form>
-             </field>
-          </record>
-          
-          <!-- Lead to Opportunity action -->
-          
-          <record id="action_crm_lead2opportunity" model="ir.actions.act_window">
-             <field name="name">Create Opportunity</field>
-             <field name="type">ir.actions.act_window</field>
-             <field name="res_model">crm.lead2opportunity</field>
-             <field name="view_type">form</field>
-             <field name="view_mode">form</field>
-             <field name="target">new</field>
-          </record>
+          <record id="view_crm_lead2opportunity_create" model="ir.ui.view">
+          <field name="name">crm.lead2opportunity.create</field>
+          <field name="model">crm.lead2opportunity</field>
+          <field name="type">form</field>
+          <field name="arch" type="xml">
+              <form string="Convert To Opportunity">
+                <field name="name"/>
+                <field name="partner_id"/>
+                <newline/>
+                <field name="planned_revenue"/>
+                <field name="probability"/>
+                <separator colspan="4"/>
+                <group col="4" colspan="4">
+                    <label string="" colspan="2"/>
+                    <button special="cancel" string="Cancel" icon="gtk-cancel"/>
+                    <button name="action_apply" string="Create Opportunity" type="object" icon="gtk-ok"/>
+                </group>
+            </form>
+          </field>
+       </record>
+       
+       <!-- Lead to Opportunity action -->
+       
+       <record id="action_crm_lead2opportunity" model="ir.actions.act_window">
+          <field name="name">Create Opportunity</field>
+          <field name="type">ir.actions.act_window</field>
+          <field name="res_model">crm.lead2opportunity</field>
+          <field name="view_type">form</field>
+          <field name="view_mode">form</field>
+          <field name="target">new</field>
+       </record>
 
 
         <record id="view_crm_lead2opportunity_partner" model="ir.ui.view">
-             <field name="name">crm.lead2opportunity.partner.form</field>
-             <field name="model">crm.lead2opportunity.partner</field>
-             <field name="type">form</field>
-             <field name="arch" type="xml">
-                <form string="Create a Partner">
+          <field name="name">crm.lead2opportunity.partner.form</field>
+          <field name="model">crm.lead2opportunity.partner</field>
+          <field name="type">form</field>
+          <field name="arch" type="xml">
+               <form string="Create a Partner">
                 <label string="Are you sure you want to create a partner based on this lead ?" colspan="4"/>
                 <label string="You may have to verify that this partner does not exist already." colspan="4"/>
                 <newline />
-                       <field name="action"/>
-                       <group attrs="{'invisible':[('action','!=','exist')]}">
-                           <field name="partner_id" attrs="{'required': [('action', '=', 'exist')]}"/>
-                       </group>
-                       <separator string="" colspan="4" />
-                       <group col="4" colspan="4">
-                               <button special="cancel" string="Cancel" icon="gtk-cancel"/>
-                               <button special="cancel" name="action_skip" string="_Skip" type="object" icon="gtk-goto-last"/>
-                               <button name="make_partner" string="Continue" type="object" icon="gtk-ok"/>
-                       </group>
+                <field name="action"/>
+                <group attrs="{'invisible':[('action','!=','exist')]}">
+                    <field name="partner_id" attrs="{'required': [('action', '=', 'exist')]}"/>
+                </group>
+                <separator string="" colspan="4" />
+                <group col="4" colspan="4">
+                    <button special="cancel" string="Cancel" icon="gtk-cancel"/>
+                    <button special="cancel" name="action_skip" string="_Skip" type="object" icon="gtk-goto-last"/>
+                    <button name="make_partner" string="Continue" type="object" icon="gtk-ok"/>
+                </group>
             </form>
-             </field>
-          </record> 
+          </field>
+       </record> 
 
-       </data>
+     </data>
 </openerp>
index 9100aa1..da91dcd 100644 (file)
                     <field name="name" select="1"/>
                     <field name="exclusif"/>
                     <newline/>
-                    <field name="categ_id" select="2" colspan="2"/>
+                    <field name="categ_id" colspan="2"/>
                     <newline/>
-                    <field name="description" select="2" colspan="4"/>
+                    <field name="description" colspan="4"/>
                     <field name="state"/>
                     <group col="3" colspan="2">
                         <button name="process_start"
index 27297d3..f00448b 100644 (file)
@@ -68,7 +68,7 @@
                     <field name="domain" attrs="{'required': [('type','=','ressource')], 'readonly': [('type','=','static')]}"/>
                     <field name="ressource_tree"/>
                     <field name="resource_field"/>
-                    <field name="ressource_id" select="2" readonly="1"/>
+                    <field name="ressource_id" readonly="1"/>
                     <field name="ressource_parent_type_id"/>
                 </page>
                 <page string="Generated Files">
                     <field name="title" select="1"/>
                     <field name="partner_id"/>
                     <field name="user_id"/>
-                    <field name="parent_id" select="2"/>
+                    <field name="parent_id"/>
                 </group>
                 <notebook colspan="4">
                 <page string="Attachment">
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Attached To" colspan="2"/>
-                        <field name="res_model" select="2" readonly="1"/>
+                        <field name="res_model" readonly="1"/>
                         <field name="res_id" readonly="1"/>
                     </group>
                     <separator string="Preview" colspan="4"/>
index 11348cc..4e1e303 100644 (file)
@@ -175,9 +175,8 @@ hr_expense_expense()
 
 class product_product(osv.osv):
     _inherit = "product.product"
-
     _columns = {
-        'hr_expense_ok': fields.boolean('Can constitute an Expense', help="Determines if the product can be visible in the list of product within a selection from an HR expense sheet line."),
+        'hr_expense_ok': fields.boolean('Can Constitute an Expense', help="Determines if the product can be visible in the list of product within a selection from an HR expense sheet line."),
     }
 
 product_product()
@@ -234,4 +233,4 @@ class hr_expense_line(osv.osv):
 
 hr_expense_line()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
index cd07d8d..92e4acd 100644 (file)
             <field name="arch" type="xml">
                 <form string="Leave Type">
                     <field colspan="4" name="name" select="1"/>
-                    <field name="limit" select="2"/>
-                    <field name="active" select="2"/>
+                    <field name="limit"/>
+                    <field name="active"/>
                     <field name="categ_id"  select="1" widget="selection"/>
-                    <field name="color_name" select="2"/>
+                    <field name="color_name"/>
                 </form>
             </field>
         </record>
index d8f318d..6c52c99 100644 (file)
@@ -27,7 +27,7 @@
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Timesheet Lines">
-                    <field colspan="4" name="name" select="2"/>
+                    <field colspan="4" name="name"/>
                     <field name="user_id" on_change="on_change_user_id(user_id)" required="1" select="1"/>
                     <field name="date" select="1" on_change="on_change_date(date)"/>
                     <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
@@ -36,8 +36,8 @@
                     <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
 
                     <field domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" name="account_id" select="1"/>
-                    <field name="amount" select="2"/>
-                    <field name="general_account_id" select="2"/>
+                    <field name="amount"/>
+                    <field name="general_account_id"/>
                     <field name="journal_id"/>
                 </form>
             </field>
index ac575a6..7e5edca 100644 (file)
@@ -193,7 +193,7 @@ class invoice_create(wizard.interface):
     _create_form = """<?xml version="1.0"?>
     <form string="Invoice on analytic entries">
         <notebook>
-        <page string="Invoicing Data">
+        <page string="Billing Data">
             <separator string="Do you want to show details of work in invoice ?" colspan="4"/>
             <field name="date"/>
             <field name="time"/>
index 9e2d87c..9db1347 100755 (executable)
         <record id="process_transition_invoiceontimesheet0" model="process.transition">
             <field eval="[(6,0,[])]" name="role_ids"/>
             <field eval="[(6,0,[])]" name="transition_ids"/>
-            <field eval="&quot;&quot;&quot;Invoicing&quot;&quot;&quot;" name="name"/>
+            <field eval="&quot;&quot;&quot;Billing&quot;&quot;&quot;" name="name"/>
             <field eval="&quot;&quot;&quot;The invoice is created based on the timesheet.&quot;&quot;&quot;" name="note"/>
             <field model="process.node" name="target_node_id" ref="process_node_invoiceonwork0"/>
             <field model="process.node" name="source_node_id" ref="process_node_confirmedtimesheet0"/>
         </record>
         
     </data>
-</openerp>
\ No newline at end of file
+</openerp>
index ddce598..e6602e6 100755 (executable)
@@ -23,7 +23,7 @@
             <field name="priority" eval="18"/>
             <field name="arch" type="xml">
                 <field name="partner_bank" position="replace">
-                    <field name="partner_bank" select="2"
+                    <field name="partner_bank"
                         domain="[('partner_id', '=', partner_id)]"
                         on_change="onchange_partner_bank(partner_bank)"/>
                 </field>
             <field name="inherit_id" ref="account.invoice_form"/>
             <field name="arch" type="xml">
                 <field name="partner_bank" position="replace">
-                    <field name="partner_bank" select="2"
+                    <field name="partner_bank"
                         domain="[('partner_id.ref_companies', 'in', [company_id])]"/>
                 </field>
             </field>
         </record>
     </data>
-</openerp>
\ No newline at end of file
+</openerp>
index 9186e69..3134110 100644 (file)
                   id="menu_mrp_bom"
                   parent="menu_mrp_bom"
                   sequence="50" />-->
-        <menuitem action="mrp_bom_form_action"
-                  id="menu_mrp_bom_form_action"
-                  parent="menu_mrp_bom"
-                  sequence="10"/>
-        <menuitem action="mrp_bom_form_action2"
-                  id="menu_mrp_bom_form_action2"
-                  parent="menu_mrp_bom"
-                  sequence="20"/>
+        <menuitem
+            action="mrp_bom_form_action"
+            id="menu_mrp_bom_form_action"
+            parent="menu_mrp_bom"
+            sequence="10"/>
+        <menuitem
+            action="mrp_bom_form_action2"
+            id="menu_mrp_bom_form_action2"
+            groups="base.group_extended"
+            parent="menu_mrp_bom"
+            sequence="20"/>
 
         <record id="action2" model="ir.actions.act_window">
             <field name="name">Bill of Materials Structure</field>
 
         <!-- Menu for Resource for MRP-->
         <menuitem icon="terp-mrp" id="base.menu_mrp_root" name="Manufacturing" sequence="3"/>
-        <menuitem id="menu_pm_resources_mrp" name="Resources" parent="base.menu_mrp_root" sequence="2"/>
+
+        <menuitem id="menu_pm_resources_mrp" name="Resources" parent="base.menu_mrp_root"
+            groups="base.group_extended"
+            sequence="2"/>
         <menuitem action="resource.action_resource_resource_tree" id="menu_view_resource_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
         <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
         <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
index 5de7c7b..cf66f93 100644 (file)
             <field name="view_type">form</field>
             <field name="view_mode">graph,tree</field>
         </record>
-        <menuitem id="next_id_77" name="Reporting" parent="base.menu_mrp_root" sequence="49"/>
-        <menuitem action="action_report_workcenter_load_tree" id="menu_report_workcenter_load" parent="next_id_77"/>
+        <menuitem id="next_id_77" name="Reporting"
+            parent="base.menu_mrp_root" sequence="49"/>
+        <menuitem action="action_report_workcenter_load_tree"
+            id="menu_report_workcenter_load" parent="next_id_77"
+            groups="base.group_extended"/>
 
         <!-- stock.move compared to internal location src/dest -->
 
index bf903bb..fccc62e 100644 (file)
@@ -70,7 +70,7 @@
 
                     <separator string="Status" colspan="4"/>
                     <group colspan="8" col="8">
-                        <field name="state" select="2"/>
+                        <field name="state"/>
                         <button name="button_draft" string="Set Draft" states="cancel"/>
                         <button name="button_start_working" string="Start" states="draft"/>
                         <button name="button_resume" string="Resume" states="pause"/>
index e532341..9f629ad 100644 (file)
                         <field name="product_id" select="1"  on_change="onchange_product_id(product_id)"/>
                         <field name="deliver_bool"/>
                         <newline/>
-                        <field name="prodlot_id" select="2" on_change="onchange_lot_id(prodlot_id,product_id)"/>
+                        <field name="prodlot_id" on_change="onchange_lot_id(prodlot_id,product_id)"/>
                         <field name="move_id" on_change="onchange_move_id(product_id, move_id)"/>
                         <field name="repaired"/>
                         <newline/>
-                        <field name="partner_id" select="2" on_change="onchange_partner_id(partner_id,address_id)"/>
+                        <field name="partner_id" on_change="onchange_partner_id(partner_id,address_id)"/>
                         <field name="address_id"  attrs="{'readonly':[('deliver_bool','=', False)]}"/>
                         <field name="invoiced"/>
                     </group>
@@ -78,7 +78,7 @@
                             </group>
                             <newline/>
                             <group col="13" colspan="4">
-                                <field name="state" select="2"/>
+                                <field name="state"/>
                                 <button name="repair_confirm" states="draft" string="Confirm Repair"/>
                                 <button name="repair_ready" states="confirmed" string="Start Repair"/>
                                 <button name="action_repair_start" states="ready" string="Start Repair"/>
                 <tree string="Repairs order">
                     <field name="name" select="1" />
                         <field name="product_id" select="1" />
-                        <field name="prodlot_id" select="2"/>
-                        <field name="partner_id" select="2"/>
+                        <field name="prodlot_id"/>
+                        <field name="partner_id"/>
                         <field name="address_id"/>
                             <field name="location_id"/>
-                            <field name="state" select="2"/>
+                            <field name="state"/>
                             <field name="move_id"/>
                             <field name="location_dest_id"/>
                             <field name="guarantee_limit"/>
index 4dfa959..c0fc20d 100644 (file)
@@ -50,7 +50,7 @@
                             <group colspan="4" col="9" groups="base.group_extended">
                             <separator colspan="4" string="Validation of the Sale"/>
                                 <newline/>
-                                <field name="state_2" select="2" />
+                                <field name="state_2" />
                                 <button name="button_validate"
                                         string="Accept"
                                         type="object"
@@ -257,8 +257,8 @@ invoiced
                 <form string="POS Order line">
                     <field name="product_id"  select="1"/>
                     <field name="qty"  select="1"/>
-                    <field name="discount"  select="2"/>
-                    <field name="price_unit"  select="2"/>
+                    <field name="discount" />
+                    <field name="price_unit" />
                     <field name="create_date"  select="1"/>
                 </form>
             </field>
@@ -306,9 +306,9 @@ invoiced
                     <field name="journal_id" select="1"/>
                     <field name="jl_id" select="1"/>
                     <field name="date_create" select="1" widget="date"/>
-                    <field name="no_trans" select="2"/>
-                    <field name="amount" select="2"/>
-                    <field name="invoice_id" select="2"/>
+                    <field name="no_trans"/>
+                    <field name="amount"/>
+                    <field name="invoice_id"/>
                 </form>
             </field>
         </record>
@@ -394,9 +394,9 @@ invoiced
             <field name="arch" type="xml">
                 <form string="POS ">
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="amount" select="2"/>
-                    <field name="user_id" select="2"/>
+                    <field name="qty"/>
+                    <field name="amount"/>
+                    <field name="user_id"/>
                 </form>
             </field>
         </record>
@@ -409,9 +409,9 @@ invoiced
             <field name="arch" type="xml">
                 <tree string="POS">
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="amount" select="2"/>
-                    <field name="user_id" select="2"/>
+                    <field name="qty"/>
+                    <field name="amount"/>
+                    <field name="user_id"/>
                 </tree>
             </field>
         </record>
@@ -423,7 +423,7 @@ invoiced
             <field eval="2" name="priority"/>
             <field name="arch" type="xml">
                 <calendar color="user_id" date_start="date_order" string="POS Report">
-                    <field name="qty" select="2"/>
+                    <field name="qty"/>
                     <field name="amount" />
                 </calendar>
             </field>
@@ -460,9 +460,9 @@ invoiced
             <field name="arch" type="xml">
                 <form string="POS ">
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="amount" select="2"/>
-                    <field name="user_id" select="2"/>
+                    <field name="qty"/>
+                    <field name="amount"/>
+                    <field name="user_id"/>
                 </form>
             </field>
         </record>
@@ -475,9 +475,9 @@ invoiced
             <field name="arch" type="xml">
                 <tree string="POS">
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="amount" select="2"/>
-                    <field name="user_id" select="2"/>
+                    <field name="qty"/>
+                    <field name="amount"/>
+                    <field name="user_id"/>
                 </tree>
             </field>
         </record>
@@ -489,7 +489,7 @@ invoiced
             <field eval="2" name="priority"/>
             <field name="arch" type="xml">
                 <calendar color="user_id" date_start="date_order" string="POS Report">
-                    <field name="qty" select="2"/>
+                    <field name="qty"/>
                     <field name="amount" />
                 </calendar>
             </field>
@@ -525,12 +525,12 @@ invoiced
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="POS ">
-                    <field name="user_id" select="2"/>
-                    <field name="product_name" select="2"/>
+                    <field name="user_id"/>
+                    <field name="product_name"/>
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="net_margin_per_qty" select="2"/>
-                    <field name="total" select="2"/>
+                    <field name="qty"/>
+                    <field name="net_margin_per_qty"/>
+                    <field name="total"/>
                 </form>
             </field>
         </record>
@@ -542,12 +542,12 @@ invoiced
             <field name="type">tree</field>
             <field name="arch" type="xml">
                 <tree string="POS">
-                    <field name="user_id" select="2"/>
-                    <field name="product_name" select="2"/>
+                    <field name="user_id"/>
+                    <field name="product_name"/>
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="net_margin_per_qty" select="2"/>
-                    <field name="total" select="2"/>
+                    <field name="qty"/>
+                    <field name="net_margin_per_qty"/>
+                    <field name="total"/>
                 </tree>
             </field>
         </record>
@@ -559,7 +559,7 @@ invoiced
             <field eval="2" name="priority"/>
             <field name="arch" type="xml">
                 <calendar color="user_id" date_start="date_order" string="Sales by User Margin">
-                    <field name="product_name" select="2"/>
+                    <field name="product_name"/>
                     <field name="total" />
                 </calendar>
             </field>
@@ -592,12 +592,12 @@ invoiced
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="POS ">
-                    <field name="user_id" select="2"/>
-                    <field name="product_name" select="2"/>
+                    <field name="user_id"/>
+                    <field name="product_name"/>
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="net_margin_per_qty" select="2"/>
-                    <field name="total" select="2"/>
+                    <field name="qty"/>
+                    <field name="net_margin_per_qty"/>
+                    <field name="total"/>
                 </form>
             </field>
         </record>
@@ -609,12 +609,12 @@ invoiced
             <field name="type">tree</field>
             <field name="arch" type="xml">
                 <tree string="POS">
-                    <field name="user_id" select="2"/>
-                    <field name="product_name" select="2"/>
+                    <field name="user_id"/>
+                    <field name="product_name"/>
                     <field name="date_order" select="1" widget="date"/>
-                    <field name="qty" select="2"/>
-                    <field name="net_margin_per_qty" select="2"/>
-                    <field name="total" select="2"/>
+                    <field name="qty"/>
+                    <field name="net_margin_per_qty"/>
+                    <field name="total"/>
                 </tree>
             </field>
         </record>
@@ -626,7 +626,7 @@ invoiced
             <field eval="2" name="priority"/>
             <field name="arch" type="xml">
                 <calendar color="user_id" date_start="date_order" string="Sales by User Margin">
-                    <field name="product_name" select="2"/>
+                    <field name="product_name"/>
                     <field name="total" />
                 </calendar>
             </field>
@@ -677,7 +677,7 @@ invoiced
             <field name="arch" type="xml">
              <form string="Contact Mode">
                     <field  name="name" select="1"/>
-                    <field  name="active" select="2"/>
+                    <field  name="active"/>
               </form>
             </field>
           </record>
@@ -741,12 +741,12 @@ invoiced
                     <group colspan="4" col="2">
                         <separator string="Product Description" colspan="4"/>
                         <field name="name" select="1"  />
-                        <field groups="base.group_extended" name="variants" select="2" />
+                        <field groups="base.group_extended" name="variants" />
                     </group>
                     <group colspan="1" col="2">
                         <separator string="Codes" colspan="2"/>
                         <field name="default_code" select="1"/>
-                        <field groups="base.group_extended" name="ean13" select="2"/>
+                        <field groups="base.group_extended" name="ean13"/>
                     </group>
 
                    </group>
@@ -756,7 +756,7 @@ invoiced
                             <separator string="Product Type" colspan="2"/>
                               <field name="categ_id" select="1"/>
                               <field name="property_account_income" select="1" string="Account" required="1"/>
-                              <field name="type" select="2"/>
+                              <field name="type"/>
                             </group>
                             <group colspan="2" col="2" name="Miscelleanous">
                               <separator string="Miscelleanous" colspan="2"/>
@@ -764,7 +764,7 @@ invoiced
                                   <field name="expense_pdt"/>
                             <field name="am_out"/>
                           <field name="disc_controle"/>
-                                  <field name="company_id" select="2" groups="base.group_extended"/>
+                                  <field name="company_id" groups="base.group_extended"/>
                               </group>
                               <group colspan="2" col="2" name="Prices">
                                   <separator string="Prices" colspan="2"/>
index 19e7bdc..0dcba67 100644 (file)
                         </page>
                     </notebook>
                     <group col="7" colspan="4">
-                        <field name="state" select="2" colspan="4"/>
+                        <field name="state" colspan="4"/>
                         <field name="total_entry_encoding"/>
                         </group>
                         <group colspan="4">
                         </page>
                     </notebook>
                     <group col="7" colspan="4">
-                        <field name="state" select="2" colspan="4"/>
+                        <field name="state" colspan="4"/>
                         <field name="total_entry_encoding"/>
                         </group>
                         <group colspan="4">
                     </page>
                     </notebook>
                     <group col="7" colspan="4">
-                        <field name="state" select="2" colspan="4"/>
+                        <field name="state" colspan="4"/>
                         <field name="total_entry_encoding"/>
                       </group>
                       <group colspan="4">
index 45f3cac..5784a92 100644 (file)
@@ -16,7 +16,7 @@
             <form string="Process">
                 <group colspan="4" string="Details">
                     <field name="name" select="1"/>
-                    <field name="active" select="2"/>
+                    <field name="active"/>
                     <field name="model_id" select="1"/>
                 </group>
                 <notebook colspan="4">
@@ -35,7 +35,7 @@
                                     <field name="process_id" readonly="1" required="0"/> <!-- used by transition_out -->
                                     <newline/>
                                     <field name="model_id" select="1"/>
-                                    <field name="menu_id" select="2"/>                                    
+                                    <field name="menu_id"/>
                                     <newline/>
                                     <field name="kind" select="1"/>
                                     <field name="help_url" widget="url"/>
@@ -68,7 +68,7 @@
                                                                 <newline/>
                                                                 <field name="state"/>
                                                                 <field name="action"/>
-                                                            </form>               
+                                                            </form>
                                                         </field>
                                                     </page>
                                                     <page string="Roles Required">
         <field name="type">tree</field>
         <field name="arch" type="xml">
             <tree string="Process Nodes">
-                <field name="name"/>      
-                <field name="process_id" select="1"/>          
+                <field name="name"/>
+                <field name="process_id" select="1"/>
                 <field name="model_id" select="1"/>
                 <field name="kind" select="1"/>
                 <field name="flow_start"/>
             <form string="Process Node">
                 <group colspan="4" string="Details">
                     <field name="name" select="1"/>
-                    <field name="flow_start"/>                                    
+                    <field name="flow_start"/>
                     <field name="process_id"/>
-                    <newline/>                                    
+                    <newline/>
                     <field name="model_id" select="1"/>
-                    <field name="menu_id" select="2"/>                                    
+                    <field name="menu_id"/>
                     <newline/>
                     <field name="kind" select="1"/>
                     <field name="help_url" widget="url"/>
                                                 <newline/>
                                                 <field name="state"/>
                                                 <field name="action"/>
-                                            </form>               
+                                            </form>
                                         </field>
                                     </page>
                                     <page string="Roles Required">
                         <field name="note" nolabel="1" colspan="4"/>
                     </page>
                 </notebook>
-            </form>                                
+            </form>
         </field>
     </record>
 
index 1864c3e..0d46855 100644 (file)
@@ -14,7 +14,7 @@
             <field name="arch" type="xml">
                 <form string="Pricelist Version">
                     <field name="name" select="1"/>
-                    <field name="active" select="2"/>
+                    <field name="active"/>
                     <field colspan="4" name="pricelist_id" select="1"/>
                     <field name="date_start" select="1"/>
                     <field name="date_end" select="1"/>
                     <field colspan="4" name="version_id" nolabel="1">
                         <form string="Pricelist Version">
                             <field name="name" select="1"/>
-                            <field name="active" select="2"/>
+                            <field name="active"/>
                             <field name="date_start" select="1"/>
                             <field name="date_end" select="1"/>
                             <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
index 6c3d7ef..b21ebe5 100644 (file)
@@ -271,7 +271,7 @@ class product_template(osv.osv):
         'cost_method': fields.selection([('standard','Standard Price'), ('average','Average Price')], 'Costing Method', required=True,
             help="Standard Price: the cost price is fixed and recomputed periodically (usually at the end of the year), Average Price: the cost price is recomputed at each reception of products."),
         'warranty': fields.float('Warranty (months)'),
-        'sale_ok': fields.boolean('Can be sold', help="Determines if the product can be visible in the list of product within a selection from a sale order line."),
+        'sale_ok': fields.boolean('Can be Sold', help="Determines if the product can be visible in the list of product within a selection from a sale order line."),
         'purchase_ok': fields.boolean('Can be Purchased', help="Determine if the product is visible in the list of products within a selection from a purchase order line."),
         'state': fields.selection([('',''),('draft', 'In Development'),('sellable','In Production'),('end','End of Lifecycle'),('obsolete','Obsolete')], 'State', help="Tells the user if he can use the product or not."),
         'uom_id': fields.many2one('product.uom', 'Default UoM', required=True, help="Default Unit of Measure used for all stock operation."),
@@ -648,7 +648,7 @@ class product_supplierinfo(osv.osv):
         'name' : fields.many2one('res.partner', 'Partner', required=True, ondelete='cascade', help="Supplier of this product"),
         'product_name': fields.char('Partner Product Name', size=128, help="This partner's product name will be used when printing a request for quotation. Keep empty to use the internal one."),
         'product_code': fields.char('Partner Product Code', size=64, help="This partner's product code will be used when printing a request for quotation. Keep empty to use the internal one."),
-        'sequence' : fields.integer('Priority', help="Assigns the priority to the list of product supplier."),
+        'sequence' : fields.integer('Sequence', help="Assigns the priority to the list of product supplier."),
         'qty' : fields.float('Minimal Quantity', required=True, help="The minimal quantity to purchase to this supplier, expressed in the default unit of measure."),
         'product_id' : fields.many2one('product.template', 'Product', required=True, ondelete='cascade', select=True),
         'delay' : fields.integer('Delivery Lead Time', required=True, help="Lead time in days between the confirmation of the purchase order and the reception of the products in your warehouse. Used by the scheduler for automatic computation of the purchase order planning."),
index d64d192..5b8d448 100644 (file)
@@ -42,7 +42,7 @@
                 <tree colors="red:virtual_available&lt;0;blue:virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete');black:virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')" string="Products">
                     <field name="default_code"/>
                     <field name="name"/>
-                    <field name="categ_id" />
+                    <field name="categ_id" invisible="1"/>
                     <field name="variants" groups="product.group_product_variant"/>
                     <field name="uom_id"/>
                     <field name="type"/>
                     <group colspan="4" col="2">
                         <separator string="Product Description" colspan="4"/>
                         <field name="name" select="1"  />
-                        <field groups="product.group_product_variant" name="variants" select="2" />
+                        <field groups="product.group_product_variant" name="variants" />
                     </group>
                     <group colspan="1" col="2">
                         <separator string="Codes" colspan="2"/>
                         <field name="default_code" select="1"/>
-                        <field groups="base.group_extended" name="ean13" select="2"/>
+                        <field groups="base.group_extended" name="ean13"/>
                     </group>
                     <group colspan="1" col="2">
                         <separator string="Product Characteristics" colspan="2"/>
-                        <field name="sale_ok" select="2"/>
-                        <field name="purchase_ok" select="2"/>
-                        <field groups="base.group_extended" name="rental" select="2"/>
+                        <field name="sale_ok"/>
+                        <field name="purchase_ok"/>
+                        <field groups="base.group_extended" name="rental"/>
                     </group>
                    </group>
 
@@ -85,7 +85,7 @@
                         <page string="Information">
                             <group colspan="2" col="2">
                                 <separator string="Procurement" colspan="2"/>
-                                <field name="type" select="2"/>
+                                <field name="type"/>
                                 <field name="procure_method"/>
                                 <field name="supply_method"/>
                             </group>
                             <group colspan="2" col="2" name="status">
                                 <separator string="Status" colspan="2"/>
                                 <field name="categ_id" select="1"/>
-                                <field name="state" select="2"/>
-                                <field groups="base.group_extended" name="product_manager" select="2"/>
+                                <field name="state"/>
+                                <field groups="base.group_extended" name="product_manager"/>
                             </group>
 
                             <group colspan="2" col="2" name="uom">
                             </group>
 
                             <group colspan="2" col="2" name="misc">
-                                <separator string="Miscellaneous" colspan="2"/>
-                                <field name="active" select="2"/>
-                                <field name="company_id" select="2" groups="base.group_multi_company" widget="selection"/>
+                                <separator string="Miscellaneous" colspan="2" groups="base.group_extended"/>
+                                <field name="active"/>
+                                <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                             </group>
 
                         </page>
                             <field colspan="4" name="packaging" nolabel="1">
                                 <form string="Packaging">
                                     <field name="ean" select="1"/>
-                                    <field name="sequence"/>
+                                    <field name="sequence" invisible="1"/>
                                     <newline/>
                                     <field name="qty" select="1"/>
                                     <field name="ul"/>
                 <form string="Product Categories">
                     <field name="name" select="1"/>
                     <field name="parent_id"/>
-                    <field name="sequence"/>
+                    <field name="sequence" invisible="1"/>
                     <field name="type"/>
                     <newline/>
                 </form>
             <field name="type">tree</field>
             <field name="arch" type="xml">
                 <tree string="Packaging">
-                    <field name="sequence"/>
+                    <field name="sequence" invisible="1"/>
                     <field name="ean"/>
                     <field name="qty"/>
                     <field name="ul"/>
                     <field name="product_id" select="1"/>
                     <newline/>
                     <field name="ean" select="1"/>
-                    <field name="sequence"/>
+                    <field name="sequence" invisible="1"/>
                     <newline/>
                     <field name="qty" select="1"/>
                     <field name="ul"/>
             <field name="arch" type="xml">
                 <form string="Supplier Information">
                     <field name="name"/>
-                    <field name="sequence"/>
+                    <field name="sequence" invisible="1"/>
                     <field name="product_name" groups="base.group_extended"/>
                     <field name="product_code" groups="base.group_extended"/>
                     <field name="delay"/>
             <field name="type">tree</field>
             <field name="arch" type="xml">
                 <tree string="Supplier Information">
-                    <field name="sequence" string="Seq"/>
+                    <field name="sequence" string="Seq" invisible="1"/>
                     <field name="name"/>
                     <field name="delay"/>
                     <field name="qty"/>
                     </group>
                     <group colspan="2" col="2">
                         <separator string="Product Type" colspan="2"/>
-                        <field name="sale_ok" select="2"/>
-                        <field name="purchase_ok" select="2"/>
-                        <field groups="base.group_extended" name="rental" select="2"/>
+                        <field name="sale_ok"/>
+                        <field name="purchase_ok"/>
+                        <field groups="base.group_extended" name="rental"/>
                     </group>
                     <notebook colspan="4">
                         <page string="Information">
                             <group colspan="2" col="2">
                                 <separator string="Procurement" colspan="2"/>
-                                <field name="type" select="2"/>
+                                <field name="type"/>
                                 <field name="procure_method"/>
                                 <field name="supply_method"/>
                             </group>
                             <group colspan="2" col="2" name="status">
                                 <separator string="Status" colspan="2"/>
                                 <field name="categ_id" select="1"/>
-                                <field name="state" select="2"/>
-                                <field groups="base.group_extended" name="product_manager" select="2"/>
+                                <field name="state"/>
+                                <field groups="base.group_extended" name="product_manager"/>
                             </group>
 
                             <group colspan="2" col="2" name="uom">
index cc1567a..86f10e4 100644 (file)
@@ -25,7 +25,7 @@
                             <group col="2" colspan="2">
                                 <separator colspan="2" string="Scheduling"/>
                                 <field name="priority"/>
-                                <field name="active" select="2"/>
+                                <field name="active"/>
                             </group>
                             <group col="2" colspan="2">
                                 <separator colspan="2" string="Performance"/>
@@ -57,7 +57,7 @@
                         </page>
                         <page groups="base.group_extended" string="Partner Info">
                             <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1"/>
-                            <field domain="[('partner_id','=',partner_id)]" name="contact_id" select="2"/>
+                            <field domain="[('partner_id','=',partner_id)]" name="contact_id"/>
                             <field name="warn_customer"/>
                             <newline/>
                             <separator colspan="2" string="Mail Header"/>
                         <field name="name" select="1"/>
                         <field name="project_id" required="1" select="1" domain="['|',('user_id','=',uid),('members','=',uid)]"/>
                         <field name="total_hours" widget="float_time"/>
-                        <field name="date_deadline" select="2"/>
+                        <field name="date_deadline"/>
                         <field name="user_id" select="1"/>
                         <field name="progress" widget="progressbar"/>
                     </group>
                                 widget="float_time"
                                 attrs="{'readonly':[('state','!=','draft')]}"
                                 on_change="onchange_planned(planned_hours, effective_hours)"/>
-                                <field name="remaining_hours" select="2" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/>
+                                <field name="remaining_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/>
                                 <button name="%(action_config_compute_remaining)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/>
                             </group>
                             <group col="2" colspan="2">
                             <field name="effective_hours" widget="float_time"/>
                             </group>
 
-                            <field colspan="4" name="description" nolabel="1" select="2"  attrs="{'readonly':[('state','=','done')]}" widget="text_wiki"/>
+                            <field colspan="4" name="description" nolabel="1"  attrs="{'readonly':[('state','=','done')]}" widget="text_wiki"/>
                             <field colspan="4" name="work_ids" nolabel="1" attrs="{'readonly':[('state','in',['draft','done'])]}">
                                 <tree string="Task Work" editable="top">
                                     <field name="name" />
                                 <field name="date_end"/>
                             </group>
                             <separator string="Miscelleanous" colspan="4"/>
-                            <field name="partner_id" select="2"/>
+                            <field name="partner_id"/>
                             <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
                             <group col="4" colspan="2">
                                 <field name="type" widget="selection" />
                                 <button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/>
                                 <button name="next_type" string="Next" type="object" icon="gtk-go-forward" help="Change to Next Stage"/>
                             </group>
-                            <field name="active" select="2"/>
+                            <field name="active"/>
                             <separator colspan="4" string="Notes"/>
                             <field colspan="4" name="notes" nolabel="1"/>
                         </page>
                         <field name="subject" select="1"/>
                         <field name="project_id"/>
                         <field name="user_id" select="1"/>
-                          <field name="date" select="2"/>
+                          <field name="date"/>
                      </group>
                         <separator string="Description"  colspan="4"/>
                         <field name="description"  nolabel="1" colspan="4"/>
index 6e43f96..b4ee058 100644 (file)
@@ -90,7 +90,7 @@
         <field name="inherit_id" ref="project.view_task_form2" />
         <field name="arch" type="xml">
             <field name="progress" position="after">
-                <field name="context_id" select="2" widget="selection" groups="project_gtd.group_project_getting"/>
+                <field name="context_id" widget="selection" groups="project_gtd.group_project_getting"/>
                 <field name="timebox_id" select="1" groups="project_gtd.group_project_getting"/>
             </field>
         </field>
index 3118c5d..9bef442 100644 (file)
                     <field name="product_id"/>
                     <field name="product_uom_qty" string="Qty"/>
                     <field name="product_uom" string="UoM"/>
-                    <field name="discount"/>
-                    <field name="price_unit"/>
+                    <field name="salesman_id"/>
                     <field name="price_net"/>
                     <field name="price_subtotal"/>
                     <field name="th_weight"/>
                     <group expand="context.get('report',False)" string="Group By..." colspan="9" col="8">
                         <filter string="Product" icon="terp-sale"  domain="[]" context="{'group_by':'product_id'}"/>
                         <filter string="Order" icon="terp-sale" domain="[]" context="{'group_by':'order_id'}"/>
+                        <filter string="Salesman" icon="terp-sale" domain="[]" context="{'group_by':'salesman_id'}"/>
                         <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
                     </group>
                 </search>
                     <group>
                     <filter icon="terp-purchase" string="Shipped"
                         domain="[('state','=','done')]"
+                        name="unshipped"
                         separator="1" />
                     <filter icon="terp-purchase" string="Uninvoiced" name="uninvoiced"
                         domain="[('invoiced','&lt;&gt;', 1),('state','&lt;&gt;','draft'),('state','&lt;&gt;','cancel')]"
         </record>
 
         <record id="action_order_line_tree2" model="ir.actions.act_window">
-            <field name="name">Uninvoiced Lines</field>
+            <field name="name">Lines to Invoice</field>
             <field name="type">ir.actions.act_window</field>
             <field name="res_model">sale.order.line</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form,graph</field>
-            <field name="context">{"search_default_uninvoiced":1}</field>
+            <field name="context">{"search_default_uninvoiced":1,"search_default_unshipped":1}</field>
             <field name="search_view_id" ref="view_sales_order_uninvoiced_line_filter" />
             <field name="filter" eval="True"/>
         </record>
 
         <act_window domain="[('product_id','=',active_id)]" id="action_order_line_product_tree" name="Product sales" res_model="sale.order.line" src_model="product.product"/>
 
-        <menuitem id="menu_invoiced" name="Invoicing" parent="base.menu_base_partner" sequence="6"/>
+        <menuitem id="menu_invoiced" name="Billing" parent="base.menu_base_partner" sequence="6"/>
         <menuitem action="action_order_line_tree2" id="menu_invoicing_sales_order_lines" parent="menu_invoiced" sequence="2"/>
         <!-- configartion view -->
 
index eda6bf4..88264ee 100644 (file)
                             <separator string="Server Information"
                                 colspan="4" />
                             <field name="auth_type" on_change="change_servertype(auth_type)"/>
-                            <field name="server" select="2" />
-                            <field name="ssl" select="2" />
-                            <field name="port" select="2" />
+                            <field name="server" />
+                            <field name="ssl" />
+                            <field name="port" />
                             
                             <separator string="User Information"
                                 colspan="4" />
                             <field name="email" select="1"
                                 on_change="change_email(email)"/>
                             <field name="from_email" select="1"/>
-                            <field name="auth" select="2"/>
+                            <field name="auth"/>
                             <newline/>
                             <field name="user" select="1" attrs="{'required': [('auth_type','in',['gmail','yahoo'])]}"/>
                             <field name="password" password="True" attrs="{'required': [('auth_type','in',['gmail','yahoo'])]}"/>
                             <separator string="Other Information"
                                 colspan="4" />
                             <field name="type" select="1" />
-                            <field name="active" select="2" />
-                            <field name="delete_queue" select="2" />
-                            <field name="delete_queue_period" select="2" attrs="{'readonly':[('delete_queue','not in',['content','all'])]}"/>
+                            <field name="active" />
+                            <field name="delete_queue" />
+                            <field name="delete_queue_period" attrs="{'readonly':[('delete_queue','not in',['content','all'])]}"/>
                             
                             <separator string="Server Information" colspan="4"/>
                             <group col="3" colspan="4">
                         </page>
                         <page string="Messages">
                             <separator string="Verification Message" colspan="4" />
-                            <field name="verify_email" select="2" colspan="4" nolabel="1" />
+                            <field name="verify_email" colspan="4" nolabel="1" />
                             <label string="__code__ for Verification Code" />
                             <separator string="Test Message" colspan="4" />
-                            <field name="test_email" select="2" colspan="4" nolabel="1" />
+                            <field name="test_email" colspan="4" nolabel="1" />
                             <separator string="Message" colspan="4" />
-                            <field name="body" select="2" colspan="4" nolabel="1" />
+                            <field name="body" colspan="4" nolabel="1" />
                             <label string="__name__ for Customer Name" />
                             <label string="__number__ for Invoice / Sales Number" />
                             <label string="__user__ for User Name" />
                         </page>
                         <page string="Error">
                             <separator string="Last Error occured" colspan="4"/>
-                            <field name="error" select="2" nolabel="1"/>
+                            <field name="error" nolabel="1"/>
                         </page>
                         <page string="Message">
                             <separator string="Message with All Headers" colspan="4"/>
index 85a4660..da1dd27 100644 (file)
@@ -142,6 +142,7 @@ class report_stock_lines_date(osv.osv):
     _name = "report.stock.lines.date"
     _description = "Dates of Inventories"
     _auto = False
+    _order = "date"
     _columns = {
         'id': fields.integer('Inventory Line Id', readonly=True),
         'product_id': fields.many2one('product.product', 'Product', readonly=True, select=True),
@@ -152,16 +153,13 @@ class report_stock_lines_date(osv.osv):
         cr.execute("""
             create or replace view report_stock_lines_date as (
                 select
-                min(l.id) as id,
+                p.id as id,
                 p.id as product_id,
                 max(s.date) as date
-                from
+            from
                 product_product p
-                left outer join
-                stock_inventory_line l on (p.id=l.product_id)
-                left join stock_inventory s
-                on (l.inventory_id=s.id)
-                where l.create_date is not null
+                    left outer join stock_inventory_line l on (p.id=l.product_id)
+                    left join stock_inventory s on (l.inventory_id=s.id)
                 and s.state = 'done'
                 group by p.id
             )""")
index ec15f12..1bf4e67 100644 (file)
@@ -12,7 +12,6 @@
                         <filter icon="terp-stock" name="in_location" string="Internal" domain="[('location_id.usage', '=', 'internal')]" help="Internal Locations" />
                         <filter icon="terp-stock" string="Customer" domain="[('location_id.usage', '=', 'customer')]" help="Customer Locations" />
                         <filter icon="terp-stock" string="Supplier" domain="[('location_id.usage', '=', 'supplier')]" help="Supplier Locations" />
-
                         <separator orientation="vertical"/>
                         <field name="location_id" select="1"/>
                         <field name="product_id" select="1" default="1"/>
@@ -77,8 +76,6 @@
             <field name="context">{'full':'1',"search_default_in_location":1}</field>
             <field name="search_view_id" ref="view_stock_report_prodlots_filter" />
         </record>
-
-
         <record id="stock_report_tracklots_tree" model="ir.ui.view">
             <field name="name">stock.report.tracklots.view</field>
             <field name="model">stock.report.tracklots</field>
 <!--            name="Traceability"-->
 <!--            parent="next_id_61"/>-->
 
-        <menuitem
-            action="action_stock_report_prodlots_form"
-            id="menu_stock_report_prodlots"
-            parent="stock.menu_stock_inventory_control" sequence="10"/>
-
         <act_window
             context="{'product_id': active_id}"
             id="act_stock_product_location_open"
             </field>
         </record>
 
+        <record model="ir.ui.view" id="report_stock_lines_date_search">
+            <field name="name">report.stock.lines.date.search</field>
+            <field name="model">report.stock.lines.date</field>
+            <field name="type">search</field>
+            <field name="arch" type="xml">
+                <search string="Dates of Inventories">
+                    <filter icon="gtk-media-rewind" string="Stockable"
+                        default="1"
+                        domain="[('product_id.type','=', 'product')]"/>
+                    <filter icon="gtk-media-rewind" string="Consumable"
+                        domain="[('product_id.type','=', 'consumable')]"/>
+                    <separator orientation="vertical"/>
+                    <filter icon="gtk-media-rewind" string="Non Inv"
+                        domain="[('date','=', False)]"/>
+                    <separator orientation="vertical"/>
+                    <field name="product_id" select="1"/>
+                    <field name="date" select="1" />
+                </search>
+            </field>
+        </record>
+
+
         <record model="ir.ui.view" id="report_stock_lines_date_form">
             <field name="name">report.stock.lines.date.form</field>
             <field name="model">report.stock.lines.date</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Dates of Inventories">
-                    <field name="product_id" select="1"/>
-                    <field name="date" select="1" />
+                    <field name="product_id"/>
+                    <field name="date"/>
                 </form>
             </field>
         </record>
 
         <record model="ir.actions.act_window" id="action_stock_line_date">
-            <field name="name">Latest Inventories Dates by Product</field>
+            <field name="name">Dates of Latest Inventories by Product</field>
             <field name="res_model">report.stock.lines.date</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
 
         <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date" sequence="2"/>
 
+        <record id="view_location_graph" model="ir.ui.view">
+            <field name="name">stock.location.graph</field>
+            <field name="model">stock.location</field>
+            <field name="type">graph</field>
+            <field name="arch" type="xml">
+                <graph string="Stock Location">
+                    <field name="complete_name"/>
+                    <field name="stock_real_value" operator="+"/>
+                    <field name="stock_virtual_value" operator="+"/>
+                </graph>
+            </field>
+        </record>
+
         <record id="view_location_tree_3" model="ir.ui.view">
             <field name="name">stock.location.tree</field>
             <field name="model">stock.location</field>
             <field name="name">Inventory Valuation</field>
             <field name="res_model">stock.location</field>
             <field name="view_type">form</field>
-            <field name="view_mode">tree</field>
+            <field name="view_mode">tree,graph</field>
             <field name="view_id" ref="view_location_tree_3"/>
         </record>
         <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" sequence="1"/>
 
-    <!-- end...  -->
+        <menuitem
+            action="action_stock_report_prodlots_form"
+            id="menu_stock_report_prodlots"
+            parent="next_id_61" sequence="10"/>
+
+
 
     </data>
 </openerp>
index db5a869..03fb721 100644 (file)
             <field name="view_id" ref="view_tracking_tree"/>
         </record>
         <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="4"/>
-        <menuitem action="action_tracking_form" id="menu_action_tracking_form" parent="menu_traceability"/>
+        <menuitem action="action_tracking_form" id="menu_action_tracking_form"
+            groups="base.group_extended"
+            parent="menu_traceability"/>
 
         <record id="lot_line_tree" model="ir.ui.view">
             <field name="name">stock.tracking.tree</field>
         </record>
 
         <!--wizard
-            id="action_lot2"
-            model="stock.production.lot"
-            name="stock.traceability.lot.upstream"
-            string="Upstream traceability"/-->
-
-        <!--wizard
             id="action_lot4"
             model="stock.production.lot"
             name="stock.traceability.lot.downstream"
             </field>
         </record>
 
+        <record id="view_location_search" model="ir.ui.view">
+            <field name="name">stock.location.search</field>
+            <field name="model">stock.location</field>
+            <field name="type">search</field>
+            <field name="arch" type="xml">
+                <search string="Stock Locations">
+                    <filter icon="terp-stock" name="in_location"
+                        string="Internal" domain="[('location_id.usage', '=', 'internal')]" help="Internal Locations" />
+                    <filter icon="terp-stock" name="customer"
+                        string="Customer" domain="[('location_id.usage', '=', 'customer')]" help="Customer Locations" />
+                    <filter icon="terp-stock" name="supplier"
+                        string="Supplier" domain="[('location_id.usage', '=', 'supplier')]" help="Supplier Locations" />
+                    <separator orientation="vertical"/>
+                    <field name="name"/>
+                </search>
+            </field>
+        </record>
+
+
         <record id="view_location_tree2" model="ir.ui.view">
             <field name="name">stock.location.tree</field>
             <field name="model">stock.location</field>
             <field name="type">ir.actions.act_window</field>
             <field name="view_type">form</field>
             <field name="view_id" ref="view_location_tree2"/>
-            <field name="context">{'full':'1'}</field>
+            <field name="context">{'full':1, 'search_default_in_location':1}</field>
         </record>
         <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_stock_configuration" />
 
index 353c724..4f9eff9 100644 (file)
@@ -41,7 +41,7 @@
                                         <form string="Survey Question">
                                             <field name="question" colspan="4" select="1"/>
                                             <field name="sequence"/>
-                                            <field name="tot_resp" select="2"/>
+                                            <field name="tot_resp"/>
                                             <field name="type" on_change="on_change_type(type)"/>
                                             <field name="in_visible_rating_weight" invisible="1"/>
                                             <field name="in_visible_menu_choice" invisible="1"/>
                             <group colspan="6" col='4'>
                                 <field name="max_response_limit" select="1"
                                     attrs="{'readonly':[('state','in',('open','close'))]}"/>
-                                <field name="response_user" select="2"
+                                <field name="response_user"
                                     attrs="{'readonly':[('state','in',('open','close'))]}"/>
                                 <field name="type"/>
                                 <field name="send_response"/>
                         </page>
                         <page string="History">
                             <field name="date_open" select="1"/>
-                            <field name="date_close" select="2"/>
+                            <field name="date_close"/>
                             <field name="tot_start_survey" select="1"/>
                             <field name="tot_comp_survey" select="1"/>
                             <field name="history" colspan="4" nolabel="1">
                     <field name="title" select="1"/>
                     <field name="type" select="1"/>
                     <field name="date_open" select="1" string="Open Date"/>
-                    <field name="responsible_id" select="2"/>
-                    <field name="tot_start_survey" select="2" string="Started"/>
-                    <field name="tot_comp_survey" select="2" string="Completed"/>
+                    <field name="responsible_id"/>
+                    <field name="tot_start_survey" string="Started"/>
+                    <field name="tot_comp_survey" string="Completed"/>
                     <field name="state" select="1"/>
                     <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
                         string="Test Survey" type="action" icon="gtk-new"
                     <form string="Survey Question">
                         <field name="question" colspan="4" select="1"/>
                         <field name="sequence"/>
-                        <field name="tot_resp" select="2"/>
+                        <field name="tot_resp"/>
                         <field name="type" on_change="on_change_type(type)"/>
                         <field name="in_visible_rating_weight" invisible="1"/>
                         <field name="in_visible_menu_choice" invisible="1"/>
index 26d2923..dbbce1c 100644 (file)
                     <group col="6" colspan="4">
                         <field name="name" select="1" colspan="6"/>
                         <field name="group_id" select="1" on_change="onchange_group_id(group_id, text_area)"/>
-                        <field name="section" select="2" invisible="not context.get('section',False)"/>
+                        <field name="section" invisible="not context.get('section',False)"/>
                         <field name="parent_id"/>
                     </group>
                     <field name="text_area" nolabel="1" colspan="4" select="1" widget="text_wiki"/>
                     <separator colspan="4" string="Modifications"/>
                     <group col="6" colspan="4">
-                        <field name="write_date" readonly="1" select="2"/>
+                        <field name="write_date" readonly="1"/>
                         <field name="review" select="1"/>
                         <field name="toc"/>
                         <field name="tags" select="1" groups="base.group_extended"/>
-                        <field name="summary" colspan="4" select="2" groups="base.group_extended"/>
+                        <field name="summary" colspan="4" groups="base.group_extended"/>
                     </group>
                 </form>
             </field>