diff options
| author | rpa (Open ERP) <rpa@tinyerp.com> | 2010-05-26 10:55:57 +0530 |
|---|---|---|
| committer | rpa (Open ERP) <rpa@tinyerp.com> | 2010-05-26 10:55:57 +0530 |
| commit | d2d4de0e9ae77eeccd1aeb3e463961fe402661fe (patch) | |
| tree | a093977784be2f577c2d9e0f1e8a4f30b28048bf | |
| parent | a108da0f141e0e44775a0d1c4174dc61c62d8d76 (diff) | |
| parent | 5f936d961cf42db4312a840caedc7be7c18c27cf (diff) | |
[MERGE]: Merge with lp:~openerp-dev/openobject-addons/trunk-dev-addons2
bzr revid: rpa@tinyerp.com-20100526052557-dyzbpqk5josm6n0w
95 files changed, 1517 insertions, 1142 deletions
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 1565b2d0aa8..ac11b019ec2 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -351,7 +351,7 @@ <field name="amount_total"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="12" col="10"> + <group expand="1" string="Group By..."> <filter string="Journal" icon="terp-account" domain="[]" context="{'group_by':'journal_id'}"/> <filter string="Period" icon="terp-account" domain="[]" context="{'group_by':'period_id'}"/> <separator orientation="vertical"/> diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index 14e65a2a9ac..b4a7b67a05a 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -67,7 +67,7 @@ <field name="name" select="1" colspan="4"/> <field name="code" select="1"/> <field name="parent_id" on_change="on_change_parent(parent_id)"/> - <field name="company_id" select="2" widget="selection"/> + <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/> <field name="type" select="2"/> <field name="company_currency_id" select="2"/> </group> @@ -153,7 +153,7 @@ <field name="ref" select="2"/> <field name="currency_id" select="2"/> <field name="amount_currency" select="2"/> - <field name="company_id" select="2"/> + <field name="company_id" select="2" groups="base.group_multi_company"/> <newline/> <field name="product_id" select="2"/> <field name="product_uom_id" select="2"/> @@ -178,7 +178,7 @@ <field name="ref"/> <field name="currency_id" /> <field name="amount_currency" /> - <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/> + <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" groups="base.group_multi_company"/> </tree> </field> </record> @@ -288,7 +288,7 @@ <field name="code" select="1"/> <field name="type" select="2"/> <field name="active" select="2"/> - <field name="company_id" widget="selection"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> </form> </field> </record> diff --git a/addons/account/report/account_account_report_view.xml b/addons/account/report/account_account_report_view.xml index 32e77be341f..f2d6338c951 100644 --- a/addons/account/report/account_account_report_view.xml +++ b/addons/account/report/account_account_report_view.xml @@ -57,22 +57,23 @@ <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="type" /> - <field name="user_type" widget="selection"/> - <field name="parent_account_id" /> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="Account" name="Account" icon="terp-account" context="{'group_by':'name'}"/> - <filter string="Code" icon="terp-account" context="{'group_by':'code'}"/> - <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <separator orientation="vertical"/> - <filter string="Currencies Rate" icon="terp-account" context="{'group_by':'currency_mode'}"/> + <group expand="1" string="Group By..."> + <filter string="Account" name="Account" icon="terp-account" context="{'group_by':'name'}"/> + <filter string="Code" icon="terp-account" context="{'group_by':'code'}"/> + <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <separator orientation="vertical"/> + <filter string="Currencies Rate" icon="terp-account" context="{'group_by':'currency_mode'}"/> <filter string="Internal Type" icon="terp-account" context="{'group_by':'type'}"/> <filter string="Account Type" icon="terp-account" context="{'group_by':'user_type'}"/> <filter string="Parent Account" icon="terp-account" context="{'group_by':'parent_account_id'}"/> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <field name="type" /> + <field name="user_type" widget="selection"/> + <field name="parent_account_id" /> + </group> + </search> </field> </record> diff --git a/addons/account/report/account_analytic_entries_report_view.xml b/addons/account/report/account_analytic_entries_report_view.xml index 41d9c0976f2..e1cd7967b8d 100644 --- a/addons/account/report/account_analytic_entries_report_view.xml +++ b/addons/account/report/account_analytic_entries_report_view.xml @@ -55,17 +55,7 @@ <field name="currency_id"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="account_id" /> - <field name="general_account_id" widget="selection"/> - <field name="journal_id" widget="selection"/> - <separator orientation="vertical"/> - <field name="product_id" /> - <field name="product_uom_id" widget="selection"/> - <field name="company_id" widget="selection" groups="base.multi_company"/> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> + <group expand="1" string="Group By..."> <filter string="User" name="User" icon="terp-account" context="{'group_by':'user_id'}"/> <filter string="Currency" icon="terp-account" context="{'group_by':'currency_id'}"/> <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.multi_company"/> @@ -81,6 +71,17 @@ <filter string="Month" icon="terp-account" context="{'group_by':'month'}"/> <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <field name="account_id" /> + <field name="general_account_id" widget="selection"/> + <field name="journal_id" widget="selection"/> + <separator orientation="vertical"/> + <field name="product_id" /> + <field name="product_uom_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.multi_company"/> + </group> + </search> </field> </record> diff --git a/addons/account/report/account_analytic_report_view.xml b/addons/account/report/account_analytic_report_view.xml index 838cefe5898..0d05d5f0d76 100644 --- a/addons/account/report/account_analytic_report_view.xml +++ b/addons/account/report/account_analytic_report_view.xml @@ -69,7 +69,34 @@ <field name="partner_id"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="User" name="User" icon="terp-account" context="{'group_by':'user_id'}"/> + <filter string="Associated Partner" icon="terp-account" context="{'group_by':'partner_id'}"/> + <separator orientation="vertical"/> + <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <filter string="Analytic Account" icon="terp-account" context="{'group_by':'parent_id'}"/> + <filter string="Analytic Journal" icon="terp-account" context="{'group_by':'journal_id'}"/> + <separator orientation="vertical"/> + <filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/> + <filter string="Account Type" icon="terp-account" context="{'group_by':'type'}"/> + <filter string="State" icon="terp-account" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-account" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-account" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/> + </group> + + <newline/> + <group expand="0" string="Extended options..." colspan="10" col="12" groups="base.group_extended"> + <filter icon="terp-account" + string="Draft" + domain="[('state','=','draft')]"/> + <filter icon="terp-account" + string="Open" + domain="[('state','=','open')]"/> + <filter icon="terp-account" + string="Pending" + domain="[('state','=','pending')]"/> <filter icon="terp-account" string="Close" domain="[('state','=','close')]"/> @@ -87,24 +114,7 @@ <field name="date_start"/> <field name="date_end"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="User" name="User" icon="terp-account" context="{'group_by':'user_id'}"/> - <filter string="Associated Partner" icon="terp-account" context="{'group_by':'partner_id'}"/> - <separator orientation="vertical"/> - <filter string="Company" icon="terp-account" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <filter string="Analytic Account" icon="terp-account" context="{'group_by':'parent_id'}"/> - <filter string="Analytic Journal" icon="terp-account" context="{'group_by':'journal_id'}"/> - <separator orientation="vertical"/> - <filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/> - <filter string="Account Type" icon="terp-account" context="{'group_by':'type'}"/> - <filter string="State" icon="terp-account" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-account" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-account" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/> - </group> - </search> + </search> </field> </record> <record id="view_account_analytic_report_search" model="ir.ui.view"> diff --git a/addons/account/report/account_entries_report_view.xml b/addons/account/report/account_entries_report_view.xml index c6308ec9928..625d98fa9cb 100644 --- a/addons/account/report/account_entries_report_view.xml +++ b/addons/account/report/account_entries_report_view.xml @@ -74,25 +74,6 @@ <field name="partner_id" /> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <filter string="Posted" - icon="terp-account" - domain="[('state','=','posted')]" - help = "Posted tasks"/> - <field name="state_2"/> - <separator orientation="vertical"/> - <field name="period_id" widget="selection"/> - <field name="period_id2" widget="selection"/> - <field name="type"/> - <field name="product_id" /> - <field name="analytic_account_id"/> - <newline/> - <separator orientation="vertical"/> - <field name="date_created"/> - <field name="date"/> - <field name="date_maturity"/> - </group> - <newline/> <group expand="1" string="Group By..." colspan="10" col="12"> <filter string="Journal" name="Journal" icon="terp-account" context="{'group_by':'journal_id'}"/> <filter string="Account" name="Account" icon="terp-account" context="{'group_by':'account_id'}"/> @@ -111,6 +92,25 @@ <filter string="Month" icon="terp-account" context="{'group_by':'month'}"/> <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/> </group> + <group expand="0" string="Extended options..." colspan="10" col="12"> + <filter string="Posted" + icon="terp-account" + domain="[('state','=','posted')]" + help = "Posted tasks"/> + <field name="state_2"/> + <separator orientation="vertical"/> + <field name="period_id" widget="selection"/> + <field name="period_id2" widget="selection"/> + <field name="type"/> + <field name="product_id" /> + <field name="analytic_account_id"/> + <newline/> + <separator orientation="vertical"/> + <field name="date_created"/> + <field name="date"/> + <field name="date_maturity"/> + </group> + </search> </field> </record> diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml index b974afdb8a3..ae00608b164 100644 --- a/addons/account/report/account_invoice_report_view.xml +++ b/addons/account/report/account_invoice_report_view.xml @@ -56,10 +56,10 @@ <field name="arch" type="xml"> <search string="Invoices"> <group col="10" colspan="12"> - <filter icon="terp-account" string="Last 365 Days" + <filter icon="gtk-media-rewind" string="Last 365 Days" domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" help="Invoices of last 365 days"/> - <filter icon="terp-account" string="Last 30 Days" + <filter icon="gtk-media-rewind" string="Last 30 Days" name="month" domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" help="Invoices of last 30 days"/> @@ -94,29 +94,8 @@ domain="[('user_id','=',False)]"/> </field> </group> - <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="type"/> - <field name="currency_id" widget="selection"/> - <field name="partner_bank" widget="selection"/> - <field name="fiscal_position" widget="selection"/> - <separator orientation="vertical"/> - <field name="address_contact_id"/> - <field name="account_id"/> - <newline/> - <field name="payment_term" widget="selection"/> - <field name="journal_id" widget="selection"/> - <field name="period_id" widget="selection"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> - <separator orientation="vertical"/> - <field name="address_invoice_id"/> - <field name="product_id"/> - <newline/> - <field name="date" string="Date Invoiced"/> - <field name="date_due"/> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> + <newline/> + <group expand="1" string="Group By..."> <filter string="Salesman" name='User' icon="terp-account" context="{'group_by':'user_id'}"/> <filter string="Partner" icon="terp-account" context="{'group_by':'partner_id'}"/> <filter string="Product" icon="terp-account" context="{'group_by':'product_id'}"/> @@ -138,6 +117,27 @@ <filter string="Month" icon="terp-account" context="{'group_by':'month'}"/> <filter string="Year" icon="terp-account" context="{'group_by':'year'}"/> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <field name="type"/> + <field name="currency_id" widget="selection"/> + <field name="partner_bank" widget="selection"/> + <field name="fiscal_position" widget="selection"/> + <separator orientation="vertical"/> + <field name="address_contact_id"/> + <field name="account_id"/> + <newline/> + <field name="payment_term" widget="selection"/> + <field name="journal_id" widget="selection"/> + <field name="period_id" widget="selection"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + <separator orientation="vertical"/> + <field name="address_invoice_id"/> + <field name="product_id"/> + <newline/> + <field name="date" string="Date Invoiced"/> + <field name="date_due"/> + </group> </search> </field> </record> diff --git a/addons/account/wizard/account_aged_trial_balance_view.xml b/addons/account/wizard/account_aged_trial_balance_view.xml index 7984f69e86e..769d7ee268f 100644 --- a/addons/account/wizard/account_aged_trial_balance_view.xml +++ b/addons/account/wizard/account_aged_trial_balance_view.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Print Aged Trial Balance"> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <newline/> <field name="date1"/> <field name="period_length"/> diff --git a/addons/account/wizard/account_balance_report_view.xml b/addons/account/wizard/account_balance_report_view.xml index dd1b7147f13..f50cce039cc 100644 --- a/addons/account/wizard/account_balance_report_view.xml +++ b/addons/account/wizard/account_balance_report_view.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Select period"> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <field name="display_account" required = "True"/> <newline/> <field name="fiscalyear"/> diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py index ba94bbfb37c..af3f0c26511 100644 --- a/addons/account/wizard/account_chart.py +++ b/addons/account/wizard/account_chart.py @@ -24,7 +24,7 @@ from tools.translate import _ class account_chart(osv.osv_memory): """ For Chart of Accounrs - """ + """ _name = "account.chart" _description = "chart" _columns = { diff --git a/addons/account/wizard/account_general_ledger_report_view.xml b/addons/account/wizard/account_general_ledger_report_view.xml index 0790a1654b9..a2ff3accf5f 100644 --- a/addons/account/wizard/account_general_ledger_report_view.xml +++ b/addons/account/wizard/account_general_ledger_report_view.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Select Date-Period"> - <field name="company_id" colspan="4"/> + <field name="company_id" colspan="4" groups="base.group_multi_company"/> <newline/> <field name="fiscalyear"/> <label colspan="2" string="(Keep empty for all open fiscal years)" align="0.0"/> diff --git a/addons/account/wizard/account_partner_balance_report_view.xml b/addons/account/wizard/account_partner_balance_report_view.xml index 02c2ec03a25..55fb71553d7 100644 --- a/addons/account/wizard/account_partner_balance_report_view.xml +++ b/addons/account/wizard/account_partner_balance_report_view.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Select Date-Period"> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <field name="result_selection" required = "True"/> <newline/> <field name="fiscalyear"/> diff --git a/addons/account/wizard/account_third_party_ledger.xml b/addons/account/wizard/account_third_party_ledger.xml index 6ddc9a1e847..e731086af2c 100644 --- a/addons/account/wizard/account_third_party_ledger.xml +++ b/addons/account/wizard/account_third_party_ledger.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Select Date-Period"> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <field name="result_selection"/> <newline/> <field name="fiscalyear"/> diff --git a/addons/account/wizard/account_vat_view.xml b/addons/account/wizard/account_vat_view.xml index 7662594bb79..528922d8763 100644 --- a/addons/account/wizard/account_vat_view.xml +++ b/addons/account/wizard/account_vat_view.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Select Period"> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <newline/> <field name="based_on"/> <newline/> diff --git a/addons/base_calendar/base_calendar_view.xml b/addons/base_calendar/base_calendar_view.xml index d31266c9090..a5afddc9823 100644 --- a/addons/base_calendar/base_calendar_view.xml +++ b/addons/base_calendar/base_calendar_view.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> - + <!-- Attendee form view--> <record id="base_calendar_attendee_form_view" model="ir.ui.view"> @@ -24,7 +24,7 @@ <field name="user_id" string="Invited User"/> <newline/> <field name="partner_address_id" - string="Partner Contact" /> + string="Contact" /> <field name="partner_id" string="Partner" readonly="1" /> </group> @@ -67,7 +67,7 @@ </form> </field> </record> - + <!-- Attendee tree view--> <record id="base_calendar_attendee_tree_view" model="ir.ui.view"> @@ -86,9 +86,9 @@ </tree> </field> </record> - + <!-- Attendee search view--> - + <record id="base_calendar_attendee_search_view" model="ir.ui.view"> <field name="name">calendar.attendee.search</field> <field name="model">calendar.attendee</field> @@ -108,7 +108,7 @@ <field name="cutype" string="Invitation type" select="1"/> <field name="event_date" select="1"/> <newline/> - <group expand="0" string="Group By..." colspan="16"> + <group expand="1" string="Group By..."> <filter string="Type" icon="terp-project" help="Invitation Type" domain="[]" context="{'group_by':'cutype'}" /> <filter string="Role" icon="terp-project" @@ -119,14 +119,13 @@ <filter string="User" icon="terp-partner" domain="[]" context="{'group_by':'user_id'}" /> <filter string="Contact" icon="terp-partner" domain="[]" - context="{'group_by':'partner_address_id'}" /> + context="{'group_by':'partner_address_id'}" /> + <filter string="State" icon="terp-project" help="Invitation Type" + domain="[]" context="{'group_by':' state'}" /> </group> </search> </field> </record> - - <!-- Action for attendee view--> - <record id="action_view_attendee_form" model="ir.actions.act_window"> <field name="name">Event Invitations</field> <field name="type">ir.actions.act_window</field> @@ -136,14 +135,14 @@ <field name="view_id" ref="base_calendar.base_calendar_attendee_tree_view" /> <field name="context">{'default_sent_by_uid': uid}</field> </record> - + <!-- Calenadar's menu --> - + <menuitem id="base.menu_calendar_configuration" name="Calendar" parent="base.menu_base_config" sequence="10" /> - + <!-- Invitation menu --> - + <menuitem id="menu_attendee_invitations" name="Event Invitations" parent="base.menu_calendar_configuration" sequence="10" action="action_view_attendee_form" /> @@ -183,9 +182,6 @@ </tree> </field> </record> - - <!-- Action for alarms view--> - <record id="action_res_alarm_view" model="ir.actions.act_window"> <field name="name">Available Alarms</field> <field name="type">ir.actions.act_window</field> @@ -193,7 +189,7 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record> - + <!-- Menu for Alarms--> <menuitem id="menu_crm_meeting_avail_alarm" @@ -201,8 +197,8 @@ action="base_calendar.action_res_alarm_view" parent="base.menu_calendar_configuration" /> - <!-- Event Form View--> - + <!-- Event Form View--> + <record model="ir.ui.view" id="event_form_view"> <field name="name">Event Form</field> <field name="model">calendar.event</field> @@ -300,7 +296,7 @@ nolabel="1" widget="one2many" mode="tree,form"> <tree string="Invitation details" editable="top"> <field name="email" /> - <field name="role" select="1" /> + <field name="role" width="200" select="1" /> <field name="state" /> </tree> <form string="Invitation details"> @@ -363,7 +359,7 @@ </tree> </field> </record> - + <!-- Event Calendar View --> <record model="ir.ui.view" id="event_calendar_view"> @@ -379,9 +375,9 @@ </calendar> </field> </record> - + <!-- Event Search View--> - + <record id="view_calendar_event_filter" model="ir.ui.view"> <field name="name">Calendar Events Search</field> <field name="model">calendar.event</field> @@ -402,7 +398,7 @@ <field name="class" select="1"/> </group> <newline/> - <group expand="0" string="Group By..." colspan="16"> + <group expand="1" string="Group By..."> <filter string="Date" icon="terp-project" domain="[]" context="{'group_by':'date'}" /> <filter string="Availability" icon="terp-project" @@ -419,7 +415,7 @@ <!-- Event action --> - + <record id="action_view_event" model="ir.actions.act_window"> <field name="name">Events</field> <field name="type">ir.actions.act_window</field> @@ -428,12 +424,12 @@ <field name="view_mode">tree,form,calendar</field> <field name="search_view_id" ref="view_calendar_event_filter"/> </record> - + <!-- Event menu --> <menuitem id="menu_events" name="Events" parent="base.menu_calendar_configuration" sequence="5" action="action_view_event" /> - + </data> </openerp> diff --git a/addons/board_account/i18n/pl.po b/addons/board_account/i18n/pl.po index 9dcb5a5372b..da427a840fe 100644 --- a/addons/board_account/i18n/pl.po +++ b/addons/board_account/i18n/pl.po @@ -7,24 +7,24 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-09-08 12:10+0000\n" -"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" +"PO-Revision-Date: 2010-05-25 16:41+0000\n" +"Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:16+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: board_account #: view:board.board:0 msgid "Analytic accounts to close" -msgstr "" +msgstr "Konta analityczne do zamkniÄcia" #. module: board_account #: view:board.board:0 msgid "Draft invoices" -msgstr "" +msgstr "Projekty faktur" #. module: board_account #: constraint:ir.ui.view:0 @@ -35,61 +35,61 @@ msgstr "XML niewĆaĆciwy dla tej architektury wyĆwietlania!" #: model:ir.actions.act_window,name:board_account.open_board_account #: model:ir.ui.menu,name:board_account.menu_board_account msgid "Accounting Dashboard" -msgstr "" +msgstr "Konsola ksiÄgowoĆci" #. module: board_account #: model:ir.actions.act_window,name:board_account.action_aged_receivable msgid "Receivable Accounts" -msgstr "" +msgstr "Konta wierzytelnoĆci" #. module: board_account #: view:board.board:0 #: model:ir.actions.act_window,name:board_account.act_my_account msgid "Accounts to invoice" -msgstr "" +msgstr "Konta do faktur" #. module: board_account #: view:board.board:0 #: model:ir.actions.act_window,name:board_account.action_account_analytic_line_to_invoice msgid "Costs to invoice" -msgstr "" +msgstr "Koszty do faktur" #. module: board_account #: view:board.board:0 msgid "Aged receivables" -msgstr "" +msgstr "Przeterminowane wierzytelnoĆci" #. module: board_account #: model:ir.module.module,shortdesc:board_account.module_meta_information msgid "Board for accountant" -msgstr "" +msgstr "Konsola dla ksiÄgowĆci" #. module: board_account #: model:ir.actions.act_window,name:board_account.action_aged_income msgid "Income Accounts" -msgstr "" +msgstr "Konta przychodowe" #. module: board_account #: view:board.board:0 msgid "My indicators" -msgstr "" +msgstr "Moje wskaĆșniki" #. module: board_account #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "NieprawidĆowa nazwa modelu w definicji akcji." #. module: board_account #: model:ir.ui.menu,name:board_account.next_id_68 msgid "Accounting" -msgstr "" +msgstr "KsiÄgowoĆÄ" #. module: board_account #: view:board.board:0 msgid "Account Board" -msgstr "" +msgstr "Konsola kont" #. module: board_account #: view:board.board:0 msgid "Aged income" -msgstr "" +msgstr "Przeterminowany dochĂłd" diff --git a/addons/crm/crm_installer.py b/addons/crm/crm_installer.py index 1d9235feac6..8fb7c02ff85 100644 --- a/addons/crm/crm_installer.py +++ b/addons/crm/crm_installer.py @@ -39,7 +39,8 @@ class crm_installer(osv.osv_memory): 'crm_caldav': fields.boolean('Calendar Synchronizing', help="Help you to synchronize the meetings with other calender clients(e.g.: Sunbird)."), 'sale_crm': fields.boolean('Create Quotation from Opportunity', help="This module relates sale to opportunity cases in the CRM."), 'fetchmail': fields.boolean('Fetch Emails', help="Fetchmail Server."), - 'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."), + 'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."), + 'wiki_sale_faq': fields.boolean('Sale FAQ', help="Sale FAQ."), } def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): diff --git a/addons/crm/crm_installer_view.xml b/addons/crm/crm_installer_view.xml index 370285352d1..e0d84c6eed2 100644 --- a/addons/crm/crm_installer_view.xml +++ b/addons/crm/crm_installer_view.xml @@ -35,7 +35,8 @@ <field name="crm_claim" /> <field name="crm_helpdesk" /> <field name="crm_fundraising" /> - <field name="sale_crm" invisible="1"/> + <field name="wiki_sale_faq"/> + <field name="sale_crm" invisible="1"/> </group> </group> </data> diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index d62614f85df..ed3d45d5686 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -312,7 +312,7 @@ help="Show Sales Team"/> </field> <newline/> - <group expand="0" string="Group By..." colspan="14"> + <group expand="1" string="Group By..."> <filter string="Stage" icon="terp-crm" domain="[]" context="{'group_by':'stage_id'}"/> <filter string="State" icon="terp-crm" domain="[]" context="{'group_by':'state'}"/> <filter string="Source" icon="terp-crm" domain="[]" context="{'group_by':'categ_id'}"/> diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml index 28cf42e3a73..9136a15d9c0 100644 --- a/addons/crm/crm_meeting_view.xml +++ b/addons/crm/crm_meeting_view.xml @@ -277,7 +277,7 @@ <field name="user_id" select="1" widget="selection"/> </group> <newline/> - <group expand="0" string="Group By..." colspan="16"> + <group expand="1" string="Group By..."> <filter string="Date" icon="terp-project" domain="[]" context="{'group_by':'date'}" /> <filter string="Privacy" icon="terp-crm" diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml index c1d64ee332c..c65ee0fd285 100644 --- a/addons/crm/report/crm_lead_report_view.xml +++ b/addons/crm/report/crm_lead_report_view.xml @@ -107,7 +107,7 @@ help="My section" /> </field> - <field name="company_id" widget="selection"> + <field name="company_id" widget="selection" groups="base.group_multi_company"> <filter icon="terp-crm" context="{'invisible_section': False}" domain="[('section_id.user_id.company_id','=',uid)]" @@ -119,21 +119,7 @@ </field> </group> <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12" groups="base.group_extended"> - <filter icon="terp-sale" - string="Done" - domain="[('state','=','done')]"/> - <filter icon="terp-sale" - string="Cancel" - domain="[('state','=','cancel')]"/> - <group> - <separator orientation="vertical"/> - <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'crm.lead')]"/> - <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.lead')]"/> - </group> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="8"> + <group expand="1" string="Group By..."> <filter string="User" name="User" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}" /> @@ -166,6 +152,21 @@ domain="[]" context="{'group_by':'name'}" /> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + + <filter icon="terp-sale" + string="Done" + domain="[('state','=','done')]"/> + <filter icon="terp-sale" + string="Cancel" + domain="[('state','=','cancel')]"/> + <group> + <separator orientation="vertical"/> + <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'crm.lead')]"/> + <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.lead')]"/> + </group> + </group> </search> </field> </record> diff --git a/addons/crm/report/crm_phonecall_report_view.xml b/addons/crm/report/crm_phonecall_report_view.xml index 72bc4847608..4e57ba1d474 100644 --- a/addons/crm/report/crm_phonecall_report_view.xml +++ b/addons/crm/report/crm_phonecall_report_view.xml @@ -63,7 +63,7 @@ </record> <!-- Phone calls by user and section Search View --> - + <record id="view_report_crm_phonecall_filter" model="ir.ui.view"> <field name="name">crm.phonecall.report.select</field> <field name="model">crm.phonecall.report</field> @@ -107,7 +107,7 @@ help="My section" /> </field> - <field name="company_id" widget="selection"> + <field name="company_id" widget="selection" groups="base.group_multi_company"> <filter icon="terp-crm" context="{'invisible_section': False}" domain="[('section_id.user_id.company_id','=',uid)]" @@ -118,52 +118,52 @@ <filter icon="terp-crm" string="My Case" help="My Case" domain="[('user_id','=',uid)]" /> </field> </group> - <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> - <filter icon="terp-sale" - string="Done" - domain="[('state','=','done')]"/> - - <filter icon="terp-sale" - string="Cancel" - domain="[('state','=','cancel')]"/> - <group> - <separator orientation="vertical"/> - <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.phonecall')]"/> - </group> - - </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="8"> + <newline/> + <group expand="1" string="Group By..."> <filter string="User" name="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="Category" icon="terp-sale" - domain="[]" context="{'group_by':'categ_id'}" /> + domain="[]" context="{'group_by':'categ_id'}" /> <separator orientation="vertical" /> <filter string="Day" icon="terp-sale" - domain="[]" context="{'group_by':'day'}"/> + domain="[]" context="{'group_by':'day'}"/> <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> + + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <filter icon="terp-sale" + string="Done" + domain="[('state','=','done')]"/> + + <filter icon="terp-sale" + string="Cancel" + domain="[('state','=','cancel')]"/> + <group> + <separator orientation="vertical"/> + <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.phonecall')]"/> + </group> + </group> + <newline/> </search> </field> </record> diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 6925347c887..7b462646784 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -278,7 +278,7 @@ <field name="section_id" select="1" widget="selection"/> <newline/> - <group expand="0" string="Group By..." colspan="10" col="20"> + <group expand="1" string="Group By..."> <filter string="Deadline" icon="terp-crm" domain="[]" context="{'group_by':'date_deadline'}" /> diff --git a/addons/crm_claim/report/crm_claim_report_view.xml b/addons/crm_claim/report/crm_claim_report_view.xml index 6f906f3d21f..ca6fdb95277 100644 --- a/addons/crm_claim/report/crm_claim_report_view.xml +++ b/addons/crm_claim/report/crm_claim_report_view.xml @@ -67,7 +67,7 @@ </record> <!-- CRM Claim Report Search View --> - + <record id="view_report_crm_claim_filter" model="ir.ui.view"> <field name="name">crm.claim.report.select</field> <field name="model">crm.claim.report</field> @@ -122,65 +122,64 @@ <filter icon="terp-crm" string="My Case" help="My Case" domain="[('user_id','=',uid)]" /> </field> </group> - <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> - <filter icon="terp-sale" - string="Done" - domain="[('state','=','done')]"/> - - <filter icon="terp-sale" - string="Cancel" - domain="[('state','=','cancel')]"/> - - <group> - <separator orientation="vertical"/> - <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> - <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> - <separator orientation="vertical"/> - <field name="priority" /> - <field name="type_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> - </group> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="8"> + <newline/> + <group expand="1" string="Group By..."> <filter string="User" name="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'}" groups="base.group_multi_company"/> <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'}" /> - - <filter string="Stage" icon="terp-sale" domain="[]" - context="{'group_by':'stage_id'}" /> + domain="[]" context="{'group_by':'state'}" /> + + <filter string="Stage" icon="terp-sale" domain="[]" + context="{'group_by':'stage_id'}" /> <filter string="Category" icon="terp-sale" - domain="[]" context="{'group_by':'categ_id'}" /> - - <separator orientation="vertical"/> - <filter string="Priority" icon="terp-sale" domain="[]" - context="{'group_by':'priority'}" /> - <filter string="Type" icon="terp-sale" domain="[]" - context="{'group_by':'type_id'}" /> + domain="[]" context="{'group_by':'categ_id'}" /> + + <separator orientation="vertical"/> + <filter string="Priority" icon="terp-sale" domain="[]" + context="{'group_by':'priority'}" /> + <filter string="Type" icon="terp-sale" domain="[]" + context="{'group_by':'type_id'}" /> <separator orientation="vertical" /> <filter string="Day" icon="terp-sale" - domain="[]" context="{'group_by':'day'}"/> + domain="[]" context="{'group_by':'day'}"/> <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> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <filter icon="terp-sale" + string="Done" + domain="[('state','=','done')]"/> + + <filter icon="terp-sale" + string="Cancel" + domain="[('state','=','cancel')]"/> + + <group> + <separator orientation="vertical"/> + <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> + <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> + <separator orientation="vertical"/> + <field name="priority" /> + <field name="type_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/> + </group> + </group> </search> </field> </record> diff --git a/addons/crm_fundraising/crm_fundraising_view.xml b/addons/crm_fundraising/crm_fundraising_view.xml index 542588d9190..1fdd8395c85 100644 --- a/addons/crm_fundraising/crm_fundraising_view.xml +++ b/addons/crm_fundraising/crm_fundraising_view.xml @@ -263,7 +263,7 @@ <field name="type">search</field> <field name="arch" type="xml"> <search string="Search Funds"> - <group col='6' colspan='4'> + <group> <filter icon="gtk-new" string="Current" domain="[('state','in',('draft', 'open'))]" name="current" help="Current Funds" /> @@ -291,7 +291,7 @@ </field> </group> <newline/> - <group expand="0" string="Group By..." colspan="10" col="20"> + <group expand="1" string="Group By..."> <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}" /> diff --git a/addons/crm_fundraising/report/crm_fundraising_report_view.xml b/addons/crm_fundraising/report/crm_fundraising_report_view.xml index 73f35ddba50..20e8ef68b6b 100644 --- a/addons/crm_fundraising/report/crm_fundraising_report_view.xml +++ b/addons/crm_fundraising/report/crm_fundraising_report_view.xml @@ -121,53 +121,51 @@ <filter icon="terp-crm" string="My Case" help="My Case" domain="[('user_id','=',uid)]" /> </field> </group> - <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> - <filter icon="terp-sale" - string="Done" - domain="[('state','=','done')]"/> - - <filter icon="terp-sale" - string="Cancel" - domain="[('state','=','cancel')]"/> - - <group> - <separator orientation="vertical"/> - <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.fundraising')]"/> - </group> - - </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="8"> + <group expand="1" string="Group By..."> <filter string="User" name="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="Category" icon="terp-sale" - domain="[]" context="{'group_by':'categ_id'}" /> + domain="[]" context="{'group_by':'categ_id'}" /> <separator orientation="vertical" /> <filter string="Day" icon="terp-sale" - domain="[]" context="{'group_by':'day'}"/> + domain="[]" context="{'group_by':'day'}"/> <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> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <filter icon="terp-sale" + string="Done" + domain="[('state','=','done')]"/> + + <filter icon="terp-sale" + string="Cancel" + domain="[('state','=','cancel')]"/> + + <group> + <separator orientation="vertical"/> + <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.fundraising')]"/> + </group> + </group> </search> </field> </record> diff --git a/addons/crm_helpdesk/crm_helpdesk_view.xml b/addons/crm_helpdesk/crm_helpdesk_view.xml index 681b396afb9..433a8ea1753 100644 --- a/addons/crm_helpdesk/crm_helpdesk_view.xml +++ b/addons/crm_helpdesk/crm_helpdesk_view.xml @@ -250,7 +250,7 @@ help="My section" /> </field> <newline/> - <group expand="0" string="Group By..." colspan="12" col="20"> + <group expand="1" string="Group By..."> <filter string="Customer" icon="terp-crm" domain="[]" context="{'group_by':'partner_id'}" /> <filter string="State" icon="terp-crm" domain="[]" diff --git a/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml b/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml index a8857c0d557..f564bb38d4d 100644 --- a/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml +++ b/addons/crm_helpdesk/report/crm_helpdesk_report_view.xml @@ -114,36 +114,10 @@ <field name="user_id" widget="selection"/> </group> <newline/> - <group expand="1" string="Extended options..." colspan="4" col="5"> - <filter icon="terp-sale" - string="Lowest" - domain="[('priority','=','5')]"/> - - <filter icon="terp-sale" - string="Low" - domain="[('priority','=','4')]"/> - - <filter icon="terp-sale" - string="Normal" - domain="[('priority','=','3')]"/> - - <filter icon="terp-sale" - string="High" - domain="[('priority','=','2')]"/> - - <filter icon="terp-sale" - string="Highest" - domain="[('priority','=','1')]"/> - - </group> - <newline/> - -<!-- Helpdesk report after Sales Services Apply Group --> - - <group expand="1" string="Group By..." colspan="4" col="8"> + <group expand="1" string="Group By..."> <filter string="User" icon="terp-sale" - domain="[]" context="{'group_by':'user_id'}" - default="1" /> + domain="[]" context="{'group_by':'user_id'}" + default="1" /> <filter string="Company" icon="terp-sale" domain="[]" @@ -169,6 +143,31 @@ domain="[]" context="{'group_by':'name'}" /> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <filter icon="terp-sale" + string="Lowest" + domain="[('priority','=','5')]"/> + + <filter icon="terp-sale" + string="Low" + domain="[('priority','=','4')]"/> + + <filter icon="terp-sale" + string="Normal" + domain="[('priority','=','3')]"/> + + <filter icon="terp-sale" + string="High" + domain="[('priority','=','2')]"/> + + <filter icon="terp-sale" + string="Highest" + domain="[('priority','=','1')]"/> + + </group> + + </search> </field> </record> diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 2b3dc6e4ea9..ac4efb08599 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -101,7 +101,7 @@ <field name="job_id" widget="selection"/> <field name="parent_id" widget="selection" /> <newline /> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..."> <filter string="Manager" icon="terp-sale" domain="[]" context="{'group_by':'parent_id'}"/> <filter string="Coach" icon="terp-sale" domain="[]" context="{'group_by':'coach_id'}" groups="base.group_extended"/> <separator orientation="vertical" /> diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml index 2ea2d325867..8b9a68575b0 100644 --- a/addons/hr_attendance/hr_attendance_view.xml +++ b/addons/hr_attendance/hr_attendance_view.xml @@ -55,7 +55,7 @@ <field name="name" select="1" /> <field name="action" select="1" /> <newline/> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..."> <filter name="employee" string="Employee" icon="terp-sale" domain="[]" context="{'group_by':'employee_id'}"/> <filter string="Day" icon="terp-sale" domain="[]" context="{'group_by':'day'}"/> </group> diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml index 74d1bcd8d7b..77225b1dc59 100644 --- a/addons/hr_contract/hr_contract_view.xml +++ b/addons/hr_contract/hr_contract_view.xml @@ -147,7 +147,7 @@ <field name="date_end"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..."> <filter string="Department" icon="terp-project" domain="[]" context="{'group_by':'department_id'}"/> </group> </search> diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml index fe25cd7ab23..d02c76bc44c 100644 --- a/addons/hr_evaluation/hr_evaluation_view.xml +++ b/addons/hr_evaluation/hr_evaluation_view.xml @@ -10,10 +10,10 @@ <search string="Search Evaluation Plan"> <group col='15' colspan='4'> <field name="name"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..." groups="base.group_multi_company"> <filter string="Company" icon="terp-project" domain="[]" context="{'group_by':'company_id'}"/> </group> </search> @@ -28,7 +28,7 @@ <form string="Evaluation Plan"> <group col="6" colspan="4"> <field name="name" select="1"/> - <field name="company_id" select="1" widget="selection"/> + <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/> <field name="active"/> <field name="month_first"/> <field name="month_next"/> @@ -51,7 +51,7 @@ <field name="name"/> <field name="month_first"/> <field name="month_next"/> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> </tree> </field> </record> diff --git a/addons/hr_evaluation/report/hr_evaluation_report_view.xml b/addons/hr_evaluation/report/hr_evaluation_report_view.xml index 0dacc90c53c..921d8b43a2b 100644 --- a/addons/hr_evaluation/report/hr_evaluation_report_view.xml +++ b/addons/hr_evaluation/report/hr_evaluation_report_view.xml @@ -71,7 +71,19 @@ <field name="employee_id" widget="selection"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..."> + <filter string="Employee" name="employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> + <filter string="Rating" icon="terp-hr" context="{'group_by':'rating'}"/> + <separator orientation="vertical"/> + <filter string="Plan" icon="terp-hr" context="{'group_by':'plan_id'}"/> + <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" context="{'group_by':'create_date'}"/> + <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> <filter icon="terp-hr" string="Done" domain="[('state','=','done')]"/> @@ -87,18 +99,6 @@ <field name="create_date"/> <field name="closed"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="Employee" name="employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> - <filter string="Rating" icon="terp-hr" context="{'group_by':'rating'}"/> - <separator orientation="vertical"/> - <filter string="Plan" icon="terp-hr" context="{'group_by':'plan_id'}"/> - <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" context="{'group_by':'create_date'}"/> - <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> - </group> </search> </field> </record> diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml index 14bc05b6454..abce10e80f3 100644 --- a/addons/hr_expense/hr_expense_view.xml +++ b/addons/hr_expense/hr_expense_view.xml @@ -153,7 +153,7 @@ <field name="department_id" widget="selection" groups="base.group_extended"/> </group> <newline /> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..."> <filter string="Department" icon="terp-sale" domain="[]" context="{'group_by':'department_id'}"/> <filter string="User" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}"/> <separator orientation="vertical"/> diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml index 7a50cb71140..1d1b1dc6e0f 100644 --- a/addons/hr_expense/report/hr_expense_report_view.xml +++ b/addons/hr_expense/report/hr_expense_report_view.xml @@ -87,7 +87,25 @@ <field name="employee_id" widget="selection"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..."> + <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> + <filter string="Employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> + <filter string="Company" icon="terp-hr" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <separator orientation="vertical"/> + <filter string="Analytic account" icon="terp-hr" context="{'group_by':'analytic_account'}"/> + <filter string="Currency" icon="terp-hr" context="{'group_by':'currency_id'}"/> + <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> + <separator orientation="vertical"/> + <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> + <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> + <filter string="Force Journal" icon="terp-hr" context="{'group_by':'journal_id'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended filters..." groups="base.group_extended"> <filter string="Invoiced" icon="terp-hr" domain="[('state','=','invoiced')]" @@ -109,24 +127,6 @@ <field name="date_confirm"/> <field name="date_valid"/> </group> - <newline/> - <group expand="1" string="Group By..."> - <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> - <filter string="Employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> - <filter string="Company" icon="terp-hr" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <separator orientation="vertical"/> - <filter string="Analytic account" icon="terp-hr" context="{'group_by':'analytic_account'}"/> - <filter string="Currency" icon="terp-hr" context="{'group_by':'currency_id'}"/> - <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> - <separator orientation="vertical"/> - <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> - <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> - <filter string="Force Journal" icon="terp-hr" context="{'group_by':'journal_id'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> - </group> </search> </field> </record> diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml index 9a3a8921a70..dd9259f5306 100644 --- a/addons/hr_holidays/hr_holidays_view.xml +++ b/addons/hr_holidays/hr_holidays_view.xml @@ -22,7 +22,7 @@ <field name="holiday_status_id" widget="selection"/> </group> <newline /> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..."> <filter string="Department" icon="terp-sale" domain="[]" context="{'group_by':'department_id'}"/> <filter string="Manager" icon="terp-sale" domain="[]" context="{'group_by':'manager_id'}"/> <filter string="User" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}"/> diff --git a/addons/hr_holidays/report/available_holidays_view.xml b/addons/hr_holidays/report/available_holidays_view.xml index a89655b503c..dca6e6e20f6 100644 --- a/addons/hr_holidays/report/available_holidays_view.xml +++ b/addons/hr_holidays/report/available_holidays_view.xml @@ -60,22 +60,8 @@ domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" help="Leaves during last 7 days"/> <separator orientation="vertical"/> -<<<<<<< TREE - <field name="employee_id"/> - <field name="user_id" widget="selection"> - <filter icon="terp-hr" - string="My Leaves" - domain="[('user_id','=',uid)]"/> - </field> - </group> - <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="holiday_status_id" widget="selection"/> - <field name="department_id" widget="selection"/> -======= <field name="employee_id"/> <field name="user_id" widget="selection"/> ->>>>>>> MERGE-SOURCE </group> <newline/> <group expand="1" string="Group By..." colspan="10" col="12"> diff --git a/addons/hr_holidays/report/hr_holidays_report_view.xml b/addons/hr_holidays/report/hr_holidays_report_view.xml index e508e242827..679eff95705 100644 --- a/addons/hr_holidays/report/hr_holidays_report_view.xml +++ b/addons/hr_holidays/report/hr_holidays_report_view.xml @@ -77,7 +77,20 @@ </field> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..."> + <filter string="Employee" name="Employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> + <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> + <separator orientation="vertical"/> + <filter string="Type" icon="terp-hr" context="{'group_by':'holiday_status_id'}"/> + <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> + <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" context="{'group_by':'date'}"/> + <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> <filter icon="terp-hr" string="Refused" name="done" @@ -95,19 +108,7 @@ <separator orientation="vertical"/> <field name="department_id" widget="selection"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="Employee" name="Employee" icon="terp-hr" context="{'group_by':'employee_id'}"/> - <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> - <separator orientation="vertical"/> - <filter string="Type" icon="terp-hr" context="{'group_by':'holiday_status_id'}"/> - <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> - <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" context="{'group_by':'date'}"/> - <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> - </group> + </search> </field> </record> diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index 768726fd05c..d063de7320b 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -239,7 +239,7 @@ help="My Department"/> </field> <newline/> - <group expand="0" string="Group By..." colspan="11" col="20"> + <group expand="1" string="Group By..."> <filter string="Department" icon="terp-project" domain="[]" context="{'group_by':'department_id'}"/> <filter string="Responsible" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/> <separator orientation="vertical"/> diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml index 2315e707911..5913684eb80 100644 --- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml +++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml @@ -92,8 +92,26 @@ domain="[('user_id','=',False)]"/> </field> </group> + <newline/> + <group expand="1" string="Group By ..."> + <filter string="User" name='User' icon="terp-hr" domain="[]" context="{'group_by':'user_id'}"/> + <filter string="Company" icon="terp-hr" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <filter string="Partner" icon="terp-hr" domain="[]" context="{'group_by':'partner_id'}" /> + <filter string="Stage" icon="terp-hr" domain="[]" context="{'group_by':'stage_id'}" /> + <separator orientation="vertical"/> + <filter string="Partner Contact Name" icon="terp-hr" domain="[]" context="{'group_by':'partner_address_id'}" /> + <filter string="Jobs" name="job" icon="terp-sale" domain="[]" context="{'group_by':'job_id'}"/> + <filter string="Department" name="department" icon="terp-hr" domain="[]" context="{'group_by':'department_id'}"/> + <filter string="Degree" name="degree" icon="terp-hr" domain="[]" context="{'group_by':'type_id'}"/> + <separator orientation="vertical"/> + <filter string="State" icon="terp-hr" domain="[]" context="{'group_by':'state'}"/> + <filter string="Day" name = "day" icon="terp-hr" domain="[]" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" domain="[]" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-hr" domain="[]" context="{'group_by':'year'}"/> + </group> + <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> + <group expand="0" string="Extended options..." groups="base.group_extended"> <filter icon="terp-hr" string="Hired" name="done" @@ -114,25 +132,8 @@ <field name="type_id" widget="selection"/> <field name="partner_id"/> <field name="partner_address_id"/> - </group> - <newline/> - <group expand="1" string="Group By ..." colspan="10" col="12"> - <filter string="User" name='User' icon="terp-hr" domain="[]" context="{'group_by':'user_id'}"/> - <filter string="Company" icon="terp-hr" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <filter string="Partner" icon="terp-hr" domain="[]" context="{'group_by':'partner_id'}" /> - <filter string="Stage" icon="terp-hr" domain="[]" context="{'group_by':'stage_id'}" /> - <separator orientation="vertical"/> - <filter string="Partner Contact Name" icon="terp-hr" domain="[]" context="{'group_by':'partner_address_id'}" /> - <filter string="Jobs" name="job" icon="terp-sale" domain="[]" context="{'group_by':'job_id'}"/> - <filter string="Department" name="department" icon="terp-hr" domain="[]" context="{'group_by':'department_id'}"/> - <filter string="Degree" name="degree" icon="terp-hr" domain="[]" context="{'group_by':'type_id'}"/> - <separator orientation="vertical"/> - <filter string="State" icon="terp-hr" domain="[]" context="{'group_by':'state'}"/> - <filter string="Day" name = "day" icon="terp-hr" domain="[]" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" domain="[]" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-hr" domain="[]" context="{'group_by':'year'}"/> - </group> - </search> + </group> + </search> </field> </record> diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml index 07d37b270ef..7a12c5de495 100644 --- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml +++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml @@ -69,24 +69,24 @@ <field name="account_id"/> <field name="product_id"/> </group> + <group expand="1" string="Group By..."> + <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> + <separator orientation="vertical"/> + <filter string="Account" icon="terp-hr" context="{'group_by':'account_id'}"/> + <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> + <filter string="Invoice" icon="terp-hr" context="{'group_by':'invoice_id'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-hr" context="{'group_by':'name'}"/> + </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="0" string="Extended filters..." groups="base.group_extended"> <field name="date"/> <separator orientation="vertical"/> <field name="invoice_id" widget="selection"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> - <separator orientation="vertical"/> - <filter string="Account" icon="terp-hr" context="{'group_by':'account_id'}"/> - <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> - <filter string="Invoice" icon="terp-hr" context="{'group_by':'invoice_id'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-hr" context="{'group_by':'name'}"/> - </group> + </search> </field> </record> @@ -450,7 +450,7 @@ <field name="general_account_id" widget="selection"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..."> <filter string="User" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/> <filter string="Product" icon="terp-project" domain="[]" context="{'group_by':'product_id'}"/> <filter string="Analytic Account" icon="terp-project" domain="[]" context="{'group_by':'analytic_account_id'}"/> diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index 89fd0dd45cf..790296ca25b 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -205,7 +205,7 @@ </field> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..."> <filter string="Users" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/> <filter string="Department" icon="terp-project" domain="[]" context="{'group_by':'department_id'}"/> </group> diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml index 517937848ff..c7cf7b0495e 100644 --- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml +++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml @@ -74,9 +74,26 @@ domain="[('user_id','=',False)]"/> </field> <field name="company_id" widget="selection" groups="base.group_multi_company"/> + </group> + <newline/> + <group expand="1" string="Group By..."> + <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> + <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> + <separator orientation="vertical"/> + <filter string="Type of Invoicing" icon="terp-hr" context="{'group_by':'to_invoice'}"/> + <filter string="Analytic Account" icon="terp-hr" context="{'group_by':'account_id'}"/> + <filter string="General Account" icon="terp-hr" context="{'group_by':'general_account_id'}"/> + <separator orientation="vertical"/> + <filter string="Company" icon="terp-hr" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> + <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="0" string="Extended options..." groups="base.group_extended"> <filter icon="terp-hr" string="New" domain="[('state','=','new')]"/> @@ -94,24 +111,7 @@ <separator orientation="vertical"/> <field name="general_account_id"/> <field name="to_invoice" widget="selection"/> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/> - <filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/> - <separator orientation="vertical"/> - <filter string="Type of Invoicing" icon="terp-hr" context="{'group_by':'to_invoice'}"/> - <filter string="Analytic Account" icon="terp-hr" context="{'group_by':'account_id'}"/> - <filter string="General Account" icon="terp-hr" context="{'group_by':'general_account_id'}"/> - <separator orientation="vertical"/> - <filter string="Company" icon="terp-hr" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <filter string="Department" icon="terp-hr" context="{'group_by':'department_id'}"/> - <filter string="State" icon="terp-hr" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-hr" context="{'group_by':'year'}"/> - </group> + </group> </search> </field> </record> diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index 30f22a4bc3f..5a71051637d 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -97,15 +97,16 @@ class mailgate_thread(osv.osv): 'history': True, 'user_id': uid, 'model_id' : model_ids and model_ids[0] or False, + 'res_id': case.id, 'date': time.strftime('%Y-%m-%d %H:%M:%S'), - 'description': details or case.description, + 'description': details or (hasattr(case, 'description') and case.description or False), 'email_to': email or \ - (case.user_id and case.user_id.address_id and \ + (hasattr(case, 'user_id') and case.user_id and case.user_id.address_id and \ case.user_id.address_id.email) or tools.config.get('email_from', False), 'email_from': email_from or \ - (case.user_id and case.user_id.address_id and \ + (hasattr(case, 'user_id') and case.user_id and case.user_id.address_id and \ case.user_id.address_id.email) or tools.config.get('email_from', False), - 'partner_id': case.partner_id.id, + 'partner_id': hasattr(case, 'partner_id') and (case.partner_id and case.partner_id.id or False) or False, 'thread_id': case.thread_id.id, 'message_id': message_id, 'attachment_ids': [(6, 0, attachments)] @@ -130,6 +131,7 @@ class mailgate_message(osv.osv): _columns = { 'name':fields.char('Message', size=64), 'model_id': fields.many2one('ir.model', 'Model'), + 'res_id': fields.integer('Resource ID'), 'thread_id':fields.many2one('mailgate.thread', 'Thread'), 'date': fields.datetime('Date'), 'history': fields.boolean('Is History?', required=False), diff --git a/addons/mail_gateway/mail_gateway_view.xml b/addons/mail_gateway/mail_gateway_view.xml index ccb1ae7cdb5..7c74af89bca 100644 --- a/addons/mail_gateway/mail_gateway_view.xml +++ b/addons/mail_gateway/mail_gateway_view.xml @@ -11,10 +11,7 @@ <field name="name" required="1" select="1"/> <field name="date" required="1" select="1"/> <field name="user_id" string="Responsible" select="1"/> - </group> - <group colspan="4" col="4"> - <field name="history" select="1" /> - </group> + </group> <notebook colspan="4"> <page string="Details"> <group col="4" colspan="4"> @@ -43,10 +40,9 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Mailgateway Message"> - <field name="name" select="1" /> <field name="date" /> - <field name="user_id" /> - <field name="history" readonly="1"/> + <field name="email_from" /> + <field name="user_id" /> </tree> </field> </record> @@ -60,8 +56,7 @@ <field name="name" /> <field name="date" /> <field name="user_id" /> - <field name="message_id" /> - <field name="history" readonly="1"/> + <field name="message_id" /> </search> </field> </record> @@ -84,8 +79,7 @@ <field name="name" /> <field name="date" /> <field name="user_id" /> - <field name="message_id" /> - <field name="history" readonly="1"/> + <field name="message_id" /> <notebook colspan="4"> <page string="Email Details"> <group col="4" colspan="4"> diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py index 52733fad159..06a7dc53dab 100755 --- a/addons/marketing_campaign/marketing_campaign.py +++ b/addons/marketing_campaign/marketing_campaign.py @@ -25,6 +25,7 @@ from dateutil.relativedelta import relativedelta from osv import fields, osv import netsvc +import tools _intervalTypes = { 'hours': lambda interval: relativedelta(hours=interval), @@ -44,7 +45,7 @@ class marketing_campaign(osv.osv): #{{{ ('test_realtime', 'Realtime Time'), ('manual', 'Manual'), ('active', 'Active')], - 'Mode'), + 'Mode', required=True), 'state': fields.selection([('draft', 'Draft'), ('running', 'Running'), ('done', 'Done'), @@ -58,8 +59,9 @@ class marketing_campaign(osv.osv): #{{{ _defaults = { 'state': lambda *a: 'draft', + 'mode': lambda *a: 'test', } - + def state_running_set(self, cr, uid, ids, *args): campaign = self.browse(cr, uid, ids[0]) if not campaign.activity_ids : @@ -72,8 +74,6 @@ class marketing_campaign(osv.osv): #{{{ segment_ids = self.pool.get('marketing.campaign.segment').search(cr, uid, [('campaign_id', '=', campaign.id), ('state', '=', 'draft')]) - if not segment_ids : - raise osv.except_osv("Error", "There is no associate semgnet for the campaign") self.write(cr, uid, ids, {'state': 'running'}) return True @@ -124,15 +124,17 @@ class marketing_campaign_segment(osv.osv): #{{{ def state_running_set(self, cr, uid, ids, *args): segment = self.browse(cr, uid, ids[0]) curr_date = time.strftime('%Y-%m-%d %H:%M:%S') + vals = {'state': 'running'} if not segment.date_run: - raise osv.except_osv("Error", "Segment can't be start before giving running date") - if segment.campaign_id.state != 'running' : - raise osv.except_osv("Error", "You have to start campaign first") - if (segment.date_run >= curr_date): - raise osv.except_osv("Error", "Segment cannot start before run date") + vals['date_run'] = segment.campaign_id.date_run and \ + segment.campaign_id.date_run or \ + time.strftime('%Y-%m-%d %H:%M:%S') if not segment.sync_last_date: - self.write(cr, uid, ids, {'sync_last_date':curr_date}) - self.write(cr, uid, ids, {'state': 'running','date_done': curr_date}) + vals['sync_last_date']=curr_date + if not segment.date_done: + vals['date_done']= (datetime.now() + _intervalTypes['years'](1) \ + ).strftime('%Y-%m-%d %H:%M:%S') + self.write(cr, uid, ids, vals) return True def state_done_set(self, cr, uid, ids, *args): @@ -191,27 +193,30 @@ class marketing_campaign_activity(osv.osv): #{{{ _description = "Campaign Activity" _columns = { - 'name': fields.char('Name', size=64), - 'campaign_id': fields.many2one('marketing.campaign', 'Campaign'), + 'name': fields.char('Name', size=64, required=True), + 'campaign_id': fields.many2one('marketing.campaign', 'Campaign', + required = True, ondelete='cascade'), 'object_id': fields.related('campaign_id','object_id', type='many2one', relation='ir.model', string='Object'), 'start': fields.boolean('Start'), - 'condition': fields.text('Condition'), + 'condition': fields.char('Condition', size=256, required=True, help="Condition that is to be tested before action is executed"), 'type': fields.selection([('email', 'E-mail'), ('paper', 'Paper'), ('action', 'Action'), ('subcampaign', 'Sub-Campaign')], 'Type', required=True), 'email_template_id': fields.many2one('poweremail.templates','Email Template'), - 'report_id': fields.many2one('ir.actions.report.xml', 'Reports'), - 'report_directory_id': fields.many2one('document.directory', 'Directory'), + 'report_id': fields.many2one('ir.actions.report.xml', 'Reports', ), + 'report_directory_id': fields.many2one('document.directory', + 'Directory to Store Reports', + help="Folder is used to store the genreated reports"), 'server_action_id': fields.many2one('ir.actions.server', string='Action'), 'to_ids': fields.one2many('marketing.campaign.transition', - 'activity_to_id', + 'activity_from_id', 'Next Activities'), 'from_ids': fields.one2many('marketing.campaign.transition', - 'activity_from_id', + 'activity_to_id', 'Previous Activities'), 'subcampaign_id': fields.many2one('marketing.campaign', 'Sub-Campaign'), 'subcampaign_segment_id': fields.many2one('marketing.campaign.segment', @@ -220,7 +225,12 @@ class marketing_campaign_activity(osv.osv): #{{{ 'revenue': fields.float('Revenue') } - + _defaults = { + 'type': lambda *a: 'email', + 'condition': lambda *a: 'True', + 'object_id' : lambda obj, cr, uid, context : context.get('object_id',False), + } + def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context == None: @@ -237,7 +247,8 @@ class marketing_campaign_activity(osv.osv): #{{{ def process(self, cr, uid, act_id, wi_id, context={}): activity = self.browse(cr, uid, act_id) - workitem = self.pool.get('marketing.campaign.workitem').browse(cr, uid, wi_id) + workitem_obj = self.pool.get('marketing.campaign.workitem') + workitem = workitem_obj.browse(cr, uid, wi_id) if activity.type == 'paper' : service = netsvc.LocalService('report.%s'%activity.report_id.report_name) (report_data, format) = service.create(cr, uid, [activity.report_id.id], {}, {}) @@ -251,7 +262,36 @@ class marketing_campaign_activity(osv.osv): #{{{ 'file_type': format } self.pool.get('ir.attachment').create(cr, uid, attach_vals) -# elif activity.type == 'email' : + elif activity.type == 'email' : + context = {} + template = activity.email_template_id + accounts = template.enforce_from_account + if not template.enforce_from_account: + return {'error_msg' : "There is no account defined for the email"} + if not workitem.partner_id.email: + return {'error_msg' : "There is no email defined for the partner"} + vals = { + 'pem_from': tools.ustr(accounts.name) + "<" + tools.ustr(accounts.email_id) + ">", + 'pem_to': workitem.partner_id.email, + 'pem_subject': template.def_subject, + 'pem_body_text': template.def_body_text, + 'pem_body_html': template.def_body_html, + 'pem_account_id':accounts.id, + 'state':'na', + 'mail_type':'multipart/alternative' #Options:'multipart/mixed','multipart/alternative','text/plain','text/html' + } +# if accounts.use_sign: +# signature = self.pool.get('res.users').read(cr, uid, uid, ['signature'], context)['signature'] +# if signature: +# vals['pem_body_text'] = tools.ustr(vals['pem_body_text'] or '') + signature +# vals['pem_body_html'] = tools.ustr(vals['pem_body_html'] or '') + signature + + #Create partly the mail and later update attachments + mail_id = self.pool.get('poweremail.mailbox').create(cr, uid, vals, context) + elif activity.type == 'action' : + server_obj = self.pool.get('ir.actions.server') + server_obj.run(cr, uid, [activity.server_action_id.id], context) + #??? return True marketing_campaign_activity()#}}} @@ -259,6 +299,7 @@ marketing_campaign_activity()#}}} class marketing_campaign_transition(osv.osv): #{{{ _name = "marketing.campaign.transition" _description = "Campaign Transition" + _rec_name = "interval_type" _columns = { 'activity_from_id': fields.many2one('marketing.campaign.activity', @@ -297,7 +338,9 @@ class marketing_campaign_workitem(osv.osv): #{{{ 'partner_id': fields.many2one('res.partner', 'Partner',required=True), 'state': fields.selection([('todo', 'ToDo'), ('inprogress', 'In Progress'), ('exception', 'Exception'), ('done', 'Done'), - ('cancelled', 'Cancelled')], 'State') + ('cancelled', 'Cancelled')], 'State'), + + 'error_msg' : fields.text('Error Message') } _defaults = { 'state': lambda *a: 'draft', @@ -334,15 +377,17 @@ class marketing_campaign_workitem(osv.osv): #{{{ 'object': wi.activity_id, 'transition' : wi.activity_id.to_ids } - val = {} - exec wi.activity_id.condition.replace('\r','') in \ - eval_context, val - if 'action' in val and val['action']: + expr = eval(str(wi.activity_id.condition), cxt) + if expr: try : - self.pool.get('marketing.campaign.activity').process(cr, - uid, wi.activity_id.id, wi.id, context) - self.write(cr, uid, wi.id, {'state':'done'}) - self.process_chain(cr, uid, wi.id, context) + res = self.pool.get('marketing.campaign.activity').process( + cr, uid, wi.activity_id.id, wi.id, context) + if res : + self.write(cr, uid, wi.id, {'state':'done'}) + self.process_chain(cr, uid, wi.id, context) + else : + self.write(cr, uid, wi.id, {'state':'exception', + 'error_msg' : res['error_msg']}) except Exception,e: self.write(cr, uid, wi.id, {'state':'exception'}) else : @@ -357,5 +402,28 @@ class marketing_campaign_workitem(osv.osv): #{{{ self.process(cr, uid, workitem_ids, context) marketing_campaign_workitem() #}}} + +class poweremail_templates(osv.osv): + _inherit = "poweremail.templates" + + _defaults = { + 'object_name' : lambda obj, cr, uid, context : context.get('object_id',False), + } +poweremail_templates() + +class report_xml(osv.osv): + + _inherit = 'ir.actions.report.xml' + + def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): + if not context : + context = {} + if context and 'object_id' in context and context['object_id']: + model = self.pool.get('ir.model').browse(cr, uid, + context['object_id']).model + args.append(('model','=',model)) + return super(report_xml, self).search(cr, uid, args, offset, limit, order, context, count) + +report_xml() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml index 0c4ede2506d..a1f48922806 100755 --- a/addons/marketing_campaign/marketing_campaign_view.xml +++ b/addons/marketing_campaign/marketing_campaign_view.xml @@ -20,19 +20,20 @@ <field name="mode"/> <field name="fixed_cost"/> </group> - <field name="activity_ids" nolabel = "1" colspan="4"> + <field name="activity_ids" nolabel = "1" colspan="4" default_get="{'object_id':object_id}"> <form string="Activities"> <field name="name" select="1" /> - <field name="object_id" readonly="True"/> - <field name="start"/> + <field name="object_id" readonly="True"/> + <field name="variable_cost" select="1"/> + <field name="start"/> <field name="condition" colspan="4"/> - <field name="variable_cost" select="1"/> - <field name="type"/> + <newline/> + <field name="type" colspan="4"/> <group colspan="4" attrs="{'invisible':[('type','!=','email')]}" > <field name="email_template_id" attrs="{'required':[('type','=','email')]}" /> </group> <group colspan="4" attrs="{'invisible':[('type','!=','paper')]}" > - <field name="report_id" attrs="{'required':[('type','=','paper')]}" /> + <field name="report_id" attrs="{'required':[('type','=','paper')]}"/> <field name="report_directory_id" attrs="{'required':[('type','=','paper')]}" /> </group> <group colspan="4" attrs="{'invisible':[('type','!=','action')]}" > @@ -87,9 +88,9 @@ <separator string="Status" colspan="4" /> <group col="10" colspan="4"> <field name="state" readonly="1" select="2" nolabel="1"/> - <button name="state_running_set" string="Run" states="draft" /> - <button name="state_done_set" string="Done" states="running" /> - <button name="state_cancel_set" string="Cancelled" states="running"/> + <button name="state_running_set" string="Run" states="draft" icon="gtk-apply"/> + <button name="state_done_set" string="Done" states="running" icon="gtk-ok"/> + <button name="state_cancel_set" string="Cancelled" states="running" icon="gtk-cancel"/> </group> </form> </field> @@ -116,13 +117,13 @@ <field name="type">diagram</field> <field name="arch" type="xml"> <diagram string="Campaign Editor"> - <node object="marketing.campaign.activity" shape="rectangle:type!='subcampaign'" bgcolor="gray:start==True"> + <node object="marketing.campaign.activity" shape="rectangle:type=='subcampaign'" bgcolor="gray:start==True"> <field name="name"/> <field name="type"/> <field name="start" invisible="1"/> <field name="condition"/> </node> - <arrow object="marketing.campaign.transition" source="activity_from_id" destination="activity_to_id"> + <arrow object="marketing.campaign.transition" source="activity_from_id" destination="activity_to_id" label="['interval_type']"> <field name="activity_from_id"/> <field name="activity_to_id"/> <field name="interval_nbr"/> @@ -132,6 +133,29 @@ </field> </record> + <record id="view_marketing_campaign_search" model="ir.ui.view"> + <field name="name">marketing.campaign.search</field> + <field name="model">marketing.campaign</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Campaigns"> + <filter icon="terp-project" string="Draft" name = "draft" domain="[('state','=','draft')]"/> + <filter icon="terp-project" string="Running" domain="[('state','=','running')]"/> + <separator orientation="vertical"/> + <filter icon="terp-project" string="Test Mode" name = "test" domain="[('mode','=','test')]"/> + <filter icon="terp-project" string="Manual Mode" domain="[('mode','=','manual')]"/> + <separator orientation="vertical"/> + <field name="name" select="1"/> + <field name="object_id" select="1"/> + <newline/> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="Object" name="Object" icon="terp-project" context="{'group_by':'object_id'}" /> + <filter string="State" name="State" icon="terp-project" context="{'group_by':'state'}" /> + </group> + </search> + </field> + </record> + <record model="ir.actions.act_window" id="action_marketing_campaign_form"> <field name="name">All Campaigns</field> <field name="type">ir.actions.act_window</field> @@ -139,9 +163,12 @@ <field name="view_type">form</field> <field name="view_mode">tree,form,diagram</field> <field name="view_id" ref="view_marketing_campaign_tree"/> + <field name="context">{'group_by': [], 'search_default_draft': 1, 'search_default_test': 1}</field> + <field name="search_view_id" ref="view_marketing_campaign_search"/> + </record> - <menuitem id="menu_marketing_campaign_form" parent="menu_marketing" action="action_marketing_campaign_form" sequence="20" /> + <menuitem id="menu_marketing_campaign_form" parent="menu_marketing" action="action_marketing_campaign_form" sequence="10" /> <!-- ====================== @@ -172,9 +199,9 @@ <separator string="Status" colspan="4" /> <group col="10" colspan="4"> <field name="state" readonly="1" select="2" nolabel="1"/> - <button name="state_running_set" string="Run" states="draft" /> - <button name="state_done_set" string="Done" states="running" /> - <button name="state_cancel_set" string="Cancelled" states="running" /> + <button name="state_running_set" string="Run" states="draft" icon="gtk-apply"/> + <button name="state_done_set" string="Done" states="running" icon="gtk-ok"/> + <button name="state_cancel_set" string="Cancelled" states="running" icon="gtk-cancel"/> </group> </form> </field> @@ -198,6 +225,32 @@ </field> </record> + <record id="view_marketing_campaign_segment_search" model="ir.ui.view"> + <field name="name">marketing.campaign.segment.search</field> + <field name="model">marketing.campaign.segment</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Segments"> + <filter icon="terp-project" string="Draft" name="draft" domain="[('state','=','draft')]"/> + <filter icon="terp-project" string="Running" domain="[('state','=','running')]"/> + <separator orientation="vertical"/> + <filter icon="terp-project" string="Create Date" name="create_date" domain="[('sync_mode','=','create_date')]"/> + <filter icon="terp-project" string="Write Date" domain="[('sync_mode','=','write_date')]"/> + <separator orientation="vertical"/> + <field name="name" select="1"/> + <field name="object_id" select="1"/> + <field name="campaign_id" select="1"/> + <field name="date_run" select="1"/> + <newline/> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="Campaign" name="Campaign" icon="terp-project" context="{'group_by':'campaign_id'}" /> + <filter string="Date Run" name="Date Run" icon="terp-project" context="{'group_by':'date_run'}" /> + <filter string="State" name="State" icon="terp-project" context="{'group_by':'state'}" /> + </group> + </search> + </field> + </record> ++ <record model="ir.actions.act_window" id="action_marketing_campaign_segment_form"> <field name="name">All Segments</field> <field name="type">ir.actions.act_window</field> @@ -205,9 +258,11 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="view_id" ref="view_marketing_campaign_segment_tree"/> + <field name="search_view_id" ref="view_marketing_campaign_segment_search"/> + <field name="context">{'group_by': [], 'search_default_draft': 1, 'search_default_create_date': 1}</field> </record> - <menuitem id="menu_marketing_campaign_segment_form" parent="menu_marketing" action="action_marketing_campaign_segment_form" sequence="10" /> + <menuitem id="menu_marketing_campaign_segment_form" parent="menu_marketing" action="action_marketing_campaign_segment_form" sequence="20" /> <!-- ====================== @@ -302,7 +357,7 @@ <field name="view_id" ref="view_marketing_campaign_activity_tree"/> </record> - <menuitem id="menu_marketing_campaign_activity_form" parent="menu_marketing" action="action_marketing_campaign_activity_form" sequence="3" /> + <!--menuitem id="menu_marketing_campaign_activity_form" parent="menu_marketing" action="action_marketing_campaign_activity_form" sequence="3" /--> <!-- ====================== @@ -345,6 +400,32 @@ </field> </record> + <record id="view_marketing_campaign_workitem_search" model="ir.ui.view"> + <field name="name">marketing.campaign.workitem.search</field> + <field name="model">marketing.campaign.workitem</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Workitems"> + <filter icon="terp-marketing" string="To Do" name = "todo" domain="[('state','=','todo')]"/> + <filter icon="terp-marketing" string="In Progress" domain="[('state','=','inprogress')]"/> + <filter icon="terp-marketing" string="Exception" domain="[('state','=','exception')]"/> + <separator orientation="vertical"/> + <field name="segment_id" select="1"/> + <field name="object_id" select="1"/> + <field name="partner_id" select="1"/> + <field name="date" select="1"/> + <newline/> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="Segment" name="Segment" icon="terp-marketing" context="{'group_by':'segment_id'}" /> + <filter string="Activity" name="Activity" icon="terp-marketing" context="{'group_by':'activity_id'}" /> + <separator orientation="vertical"/> + <filter string="Date" name="Date" icon="terp-marketing" context="{'group_by':'date'}" /> + <filter string="State" name="State" icon="terp-marketing" context="{'group_by':'state'}" /> + </group> + </search> + </field> + </record> + <record model="ir.actions.act_window" id="action_marketing_campaign_workitem"> <field name="name">All Workitems</field> <field name="type">ir.actions.act_window</field> @@ -352,6 +433,8 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="view_id" ref="view_marketing_campaign_workitem_tree"/> + <field name="search_view_id" ref="view_marketing_campaign_workitem_search"/> + <field name="context">{'group_by': [], 'search_default_todo': 1}</field> </record> <menuitem id="menu_action_marketing_campaign_workitem" parent="menu_marketing" action="action_marketing_campaign_workitem" sequence="30" groups="base.group_extended"/> diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 966572f772c..685d289a194 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -117,7 +117,7 @@ class mrp_bom(osv.osv): """ Defines bills of material for a product. """ - _name = 'mrp.bom' + _name = 'mrp.bom' _description = 'Bill of Material' def _child_compute(self, cr, uid, ids, name, arg, context={}): @@ -154,13 +154,13 @@ class mrp_bom(osv.osv): result[bom.id] += map(lambda x: x.id, bom2.bom_lines) return result - + def _compute_type(self, cr, uid, ids, field_name, arg, context): """ Sets particular method for the selected bom type. @param field_name: Name of the field @param arg: User defined argument @return: Dictionary of values - """ + """ res = dict(map(lambda x: (x,''), ids)) for line in self.browse(cr, uid, ids): if line.type == 'phantom' and not line.bom_id: @@ -174,10 +174,10 @@ class mrp_bom(osv.osv): else: res[line.id] = 'order' return res - + _columns = { 'name': fields.char('Name', size=64, required=True), - 'code': fields.char('Code', size=16), + 'code': fields.char('Reference', size=16), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the bills of material without removing it."), 'type': fields.selection([('normal','Normal BoM'),('phantom','Sets / Phantom')], 'BoM Type', required=True, help= "If a sub-product is used in several products, it can be useful to create its own BoM."\ @@ -212,7 +212,7 @@ class mrp_bom(osv.osv): 'product_rounding': lambda *a: 1.0, 'type': lambda *a: 'normal', 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.bom', context=c), - 'multi_level_bom': lambda *a: 0, + 'multi_level_bom': lambda *a: 0, } _order = "sequence" _sql_constraints = [ @@ -247,7 +247,7 @@ class mrp_bom(osv.osv): v['name'] = prod.name return {'value': v} return {} - + def _bom_find(self, cr, uid, product_id, product_uom, properties=[]): """ Finds BoM for particular product and product uom. @param product_id: Selected product. @@ -397,7 +397,7 @@ class one2many_domain(fields.one2many): def set(self, cr, obj, id, field, values, user=None, context=None): if not values: return - return super(one2many_domain, self).set(cr, obj, id, field, values, + return super(one2many_domain, self).set(cr, obj, id, field, values, user=user, context=context) def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): @@ -424,7 +424,7 @@ class mrp_production(osv.osv): def _production_calc(self, cr, uid, ids, prop, unknow_none, context={}): """ Calculates total hours and total no. of cycles for a production order. @param prop: Name of field. - @param unknow_none: + @param unknow_none: @return: Dictionary of values. """ result = {} @@ -441,7 +441,7 @@ class mrp_production(osv.osv): def _production_date_end(self, cr, uid, ids, prop, unknow_none, context={}): """ Finds production end date. @param prop: Name of field. - @param unknow_none: + @param unknow_none: @return: Dictionary of values. """ result = {} @@ -452,7 +452,7 @@ class mrp_production(osv.osv): def _production_date(self, cr, uid, ids, prop, unknow_none, context={}): """ Finds production planned date. @param prop: Name of field. - @param unknow_none: + @param unknow_none: @return: Dictionary of values. """ result = {} @@ -525,7 +525,7 @@ class mrp_production(osv.osv): 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.production', context=c), } _order = 'date_planned asc, priority desc'; - + def unlink(self, cr, uid, ids, context=None): productions = self.read(cr, uid, ids, ['state']) unlink_ids = [] @@ -585,7 +585,7 @@ class mrp_production(osv.osv): def action_picking_except(self, cr, uid, ids): """ Changes the state to Exception. - @return: True + @return: True """ self.write(cr, uid, ids, {'state': 'picking_except'}) return True @@ -671,12 +671,12 @@ class mrp_production(osv.osv): @return: True or False """ res = True - for production in self.browse(cr, uid, ids): - if production.move_lines: + for production in self.browse(cr, uid, ids): + if production.move_lines: res = False - if production.move_created_ids: - res = False + if production.move_created_ids: + res = False return res def action_produce(self, cr, uid, production_id, production_qty, production_mode, context=None): @@ -688,15 +688,15 @@ class mrp_production(osv.osv): @param production_qty: specify qty to produce @param production_mode: specify production mode (consume/consume&produce). @return: True - """ + """ stock_mov_obj = self.pool.get('stock.move') production = self.browse(cr, uid, production_id) - + raw_product_todo = [] - final_product_todo = [] - + final_product_todo = [] + if production_mode in ['consume','consume_produce']: - # To consume remaining qty of raw materials + # To consume remaining qty of raw materials consumed_products = {} produced_qty = 0 for consumed_product in production.move_lines2: @@ -705,18 +705,18 @@ class mrp_production(osv.osv): if not consumed_products.get(consumed_product.product_id.id, False): consumed_products[consumed_product.product_id.id] = 0 consumed_products[consumed_product.product_id.id] += consumed_product.product_qty - + for produced_product in production.move_created_ids2: if produced_product.scraped: continue produced_qty += produced_product.product_qty - for raw_product in production.move_lines: - consumed_qty = consumed_products.get(raw_product.product_id.id, 0) - consumed_qty -= produced_qty - rest_qty = production_qty - consumed_qty + for raw_product in production.move_lines: + consumed_qty = consumed_products.get(raw_product.product_id.id, 0) + consumed_qty -= produced_qty + rest_qty = production_qty - consumed_qty if rest_qty > production.product_qty: - rest_qty = production.product_qty + rest_qty = production.product_qty if rest_qty > 0: stock_mov_obj.action_consume(cr, uid, [raw_product.id], rest_qty, production.location_src_id.id, context=context) @@ -733,17 +733,17 @@ class mrp_production(osv.osv): produced_products[produced_product.product_id.id] = 0 produced_products[produced_product.product_id.id] += produced_product.product_qty - for produce_product in production.move_created_ids: - produced_qty = produced_products.get(produce_product.product_id.id, 0) + for produce_product in production.move_created_ids: + produced_qty = produced_products.get(produce_product.product_id.id, 0) rest_qty = production.product_qty - produced_qty if rest_qty <= production_qty: - production_qty = rest_qty + production_qty = rest_qty if rest_qty > 0 : - stock_mov_obj.action_consume(cr, uid, [produce_product.id], production_qty, production.location_dest_id.id, context=context) - - - for raw_product in production.move_lines2: - new_parent_ids = [] + stock_mov_obj.action_consume(cr, uid, [produce_product.id], production_qty, production.location_dest_id.id, context=context) + + + for raw_product in production.move_lines2: + new_parent_ids = [] parent_move_ids = [x.id for x in raw_product.move_history_ids] for final_product in production.move_created_ids2: if final_product.id not in parent_move_ids: @@ -794,9 +794,9 @@ class mrp_production(osv.osv): def action_in_production(self, cr, uid, ids): """ Changes state to In Production and writes starting date. - @return: True + @return: True """ - move_ids = [] + move_ids = [] self.write(cr, uid, ids, {'state': 'in_production', 'date_start': time.strftime('%Y-%m-%d %H:%M:%S')}) return True @@ -938,7 +938,7 @@ class mrp_production_workcenter_line(osv.osv): _name = 'mrp.production.workcenter.line' _description = 'Work Order' _order = 'sequence' - + _columns = { 'name': fields.char('Work Order', size=64, required=True), 'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', required=True), diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 02841b64b03..15ed872391f 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -7,7 +7,7 @@ <menuitem id="menu_mrp_reordering" name="Automatic Procurements" parent="stock.menu_stock_root" sequence="4"/> <menuitem id="menu_mrp_manufacturing" name="Manufacturing" parent="base.menu_mrp_root" sequence="1"/> - <menuitem name="Control" id="menu_mrp_control" parent="base.menu_mrp_root" sequence="3" /> +<!-- <menuitem name="Control" id="menu_mrp_control" parent="base.menu_mrp_root" sequence="3" />--> <menuitem name="Master Data" id="menu_mrp_bom" parent="base.menu_mrp_root" @@ -23,9 +23,10 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Properties categories"> - <separator colspan="4" string="General Information"/> - <field colspan="4" name="name" select="1"/> - <field colspan="4" name="description"/> + <separator colspan="4" string="Property Group"/> + <field colspan="4" name="name" select="1" nolabel="1"/> + <separator colspan="4" string="Description"/> + <field colspan="4" name="description" nolabel="1"/> </form> </field> </record> @@ -122,7 +123,7 @@ <notebook colspan="4"> <page string="Work Center"> <field name="resource_type"/> - <field name="calendar_id"/> + <field name="calendar_id" widget="selection"/> <separator colspan="4" string="Description"/> <field colspan="4" name="note" nolabel="1"/> <separator colspan="4" string="Capacity Information"/> @@ -245,21 +246,21 @@ <group colspan="4" col="6"> <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/> <field name="name" select="1"/> - <field name="code" select="1" groups="base.group_extended"/> + <field name="code" select="1" string="Reference" groups="base.group_extended"/> <newline/> - <field name="product_uom"/> + <field name="product_uom" widget="selection"/> <field name="product_qty"/> - <field name="routing_id" groups="base.group_extended" select="1"/> + <field name="routing_id" widget="selection" groups="base.group_extended"/> <newline/> - <field name="product_uos" groups="product.group_uos"/> - <field name="product_uos_qty" groups="product.group_uos"/> + <field name="product_uos" groups="product.group_uos,base.group_extended" widget="selection"/> + <field name="product_uos_qty" groups="product.group_uos,base.group_extended" /> <newline/> <field name="multi_level_bom" /> <field name="type" groups="base.group_extended"/> <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> </group> <notebook colspan="4" > - <page string="General Information" attrs="{'invisible': [('bom_id','!=',False),('multi_level_bom','=',False)]}"> + <page string="Components" attrs="{'invisible': [('bom_id','!=',False),('multi_level_bom','=',False)]}"> <field colspan="4" name="bom_lines" nolabel="1" widget="one2many_list" /> </page> <page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False),('multi_level_bom','=',False)]}"> @@ -274,7 +275,7 @@ <field name="date_start"/> <field name="date_stop"/> <field name="product_rounding"/> - <field name="product_efficiency"/> + <field name="product_efficiency" groups="base.group_extended"/> <field colspan="4" name="property_ids" nolabel="2" groups="base.group_extended"/> </page> </notebook> @@ -282,6 +283,27 @@ </field> </record> + <record id="view_mrp_bom_filter" model="ir.ui.view"> + <field name="name">mrp.bom.select</field> + <field name="model">mrp.bom</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Search Bill Of Material"> + <group col='4' colspan='4'> + <field name="name"/> + <field name="code" string="Reference"/> + <field name="product_id"/> + <field name="company_id" groups="base.group_multi_company"/> + </group> + <newline/> + <group expand="1" string="Group By" colspan="4" col="8" groups="base.group_extended"> + <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product_id'}"/> + <filter string="Routing" icon="terp-mrp" domain="[]" context="{'group_by':'routing_id'}"/> + </group> + </search> + </field> + </record> + <record id="mrp_bom_tree_view" model="ir.ui.view"> <field name="name">mrp.bom.tree</field> <field name="model">mrp.bom</field> @@ -308,7 +330,7 @@ <field name="res_model">mrp.bom</field> <field name="view_type">form</field> <field name="domain">[('bom_id','=',False)]</field> - <field name="view_id" ref="mrp_bom_tree_view"/> + <field name="search_view_id" ref="view_mrp_bom_filter"/> </record> <record id="mrp_bom_form_action2" model="ir.actions.act_window"> <field name="name">Bill of Material Components</field> @@ -386,8 +408,8 @@ <menuitem action="mrp_procurement.mrp_procurement_action" id="menu_mrp_procurement_action" parent="mrp.menu_mrp_manufacturing" sequence="2" /> - <menuitem action="mrp_procurement.mrp_procurement_action5" id="menu_mrp_procurement_exception_action" - parent="mrp.menu_mrp_control" sequence="1" /> +<!-- <menuitem action="mrp_procurement.mrp_procurement_action5" id="menu_mrp_procurement_exception_action"--> +<!-- parent="mrp.menu_mrp_control" sequence="1" />--> <menuitem id="menu_mrp_scheduler" name="Schedulers" parent="base.menu_mrp_root" sequence="4"/> <menuitem action="mrp_procurement.action_compute_schedulers" id="mrp_Sched_all" parent="mrp.menu_mrp_scheduler" sequence="90"/> @@ -406,7 +428,7 @@ <field name="model">mrp.production</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree colors="red:date_planned<current_date and state not in ('done','cancel');black:date_planned>=current_date and state in ('done','cancel') " string="Manufacturing Orders"> + <tree colors="blue:state in ('confirmed');red:date_planned<current_date and state not in ('done','cancel');black:date_planned>=current_date;gray:state in ('done','cancel') " string="Manufacturing Orders"> <field name="name"/> <field name="product_id"/> <field name="product_qty" sum="Total Qty"/> @@ -477,25 +499,25 @@ <field name="product_id" on_change="product_id_change(product_id)"/> <field name="product_qty"/> <group colspan="2" col="3"> - <field name="product_uom"/> + <field name="product_uom" widget="selection"/> <button type="action" name="%(mrp.action_change_production_qty)d" string="Change Qty" states="ready,confirmed" /> </group> <label string="" colspan="2"/> - <field name="product_uos_qty" groups="product.group_uos"/> - <group colspan="2" col="3" groups="product.group_uos"> - <field name="product_uos"/> + <field name="product_uos_qty" groups="product.group_uos,base.group_extended"/> + <group colspan="2" col="3" groups="product.group_uos,base.group_extended"> + <field name="product_uos" widget="selection"/> <label string=""/> </group> </group> <notebook colspan="4"> <page string="Consumed Products"> - <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)"/> - <field name="routing_id" groups="base.group_extended"/> - <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/> - <field name="location_dest_id" domain="[('usage','=','internal')]"/> + <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)" /> + <field name="routing_id" groups="base.group_extended" select="1" widget="selection"/> + <field name="location_src_id" domain="[('usage','=','internal')]" widget="selection" on_change="location_id_change(location_src_id,location_dest_id)"/> + <field name="location_dest_id" domain="[('usage','=','internal')]" widget="selection"/> <separator string="" colspan="4"/> <field colspan="2" name="move_lines" nolabel="1" widget="one2many_list" @@ -636,8 +658,9 @@ <filter icon="terp-mrp" string="Draft" domain="[('state','=','draft')]" help="Non confirmed manufacturing orders"/> - <filter icon="terp-mrp" name="current" string="Current" - domain="[('state','in',('confirmed','ready'))]" + <filter icon="terp-mrp" string="Current" name="Current" + default="1" + domain="[('state','in',('confirmed','ready','exception'))]" help="Manufacturing Orders which are waiting for raw materials"/> <filter icon="terp-mrp" string="Ready" domain="[('state','=','ready')]" @@ -676,6 +699,7 @@ <field name="context">{'search_default_current':1}</field> <field name="view_id" eval="False"/> <field name="search_view_id" ref="view_mrp_production_filter"/> + <field name="context">{'search_default_Current':1}</field> </record> <menuitem action="mrp_production_action" id="menu_mrp_production_action" parent="menu_mrp_manufacturing" sequence="1"/> @@ -778,8 +802,8 @@ <field name="product_id"/> <field name="product_qty"/> <field name="product_uom"/> - <field name="product_uos_qty" groups="product.group_uos"/> - <field name="product_uos" groups="product.group_uos"/> + <field name="product_uos_qty" groups="product.group_uos,base.group_extended"/> + <field name="product_uos" groups="product.group_uos,base.group_extended"/> </tree> </field> </record> @@ -823,7 +847,7 @@ 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_form" id="menu_view_resource_calendar_search_mrp" parent="menu_mrp_configuration" 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"/> </data> diff --git a/addons/mrp/report/mrp_production_order_view.xml b/addons/mrp/report/mrp_production_order_view.xml index c9c7a3d4400..5663ef93210 100644 --- a/addons/mrp/report/mrp_production_order_view.xml +++ b/addons/mrp/report/mrp_production_order_view.xml @@ -57,7 +57,22 @@ <field name="date_planned"/> </group> <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> + + <group expand="1" string="Group By..."> + <filter string="Source Location" icon="terp-mrp" context="{'group_by':'location_src_id'}"/> + <filter string="Destination Location" icon="terp-mrp" context="{'group_by':'location_dest_id'}"/> + <filter string="Picking" icon="terp-mrp" context="{'group_by':'picking_id'}"/> + <separator orientation="vertical"/> + <filter string="Routing" icon="terp-mrp" context="{'group_by':'routing_id'}"/> + <filter string="Product" name="Product" icon="terp-mrp" context="{'group_by':'product_id'}" /> + <filter string="State" icon="terp-mrp" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="BOM" icon="terp-mrp" context="{'group_by':'bom_id'}"/> + <filter string="Month" icon="terp-mrp" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-mrp" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> <filter icon="terp-mrp" string="Draft" domain="[('state','=','draft')]"/> <filter icon="terp-mrp" string="Picking Exception" domain="[('state','=','picking_except')]"/> <separator orientation="vertical"/> @@ -76,22 +91,8 @@ <separator orientation="vertical"/> <field name="date_start"/> <field name="date_finnished"/> - </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="6"> - <filter string="Source Location" icon="terp-mrp" context="{'group_by':'location_src_id'}"/> - <filter string="Destination Location" icon="terp-mrp" context="{'group_by':'location_dest_id'}"/> - <filter string="Picking" icon="terp-mrp" context="{'group_by':'picking_id'}"/> - <separator orientation="vertical"/> - <filter string="Routing" icon="terp-mrp" context="{'group_by':'routing_id'}"/> - <filter string="Product" name="Product" icon="terp-mrp" context="{'group_by':'product_id'}" /> - <filter string="State" icon="terp-mrp" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="BOM" icon="terp-mrp" context="{'group_by':'bom_id'}"/> - <filter string="Month" icon="terp-mrp" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-mrp" context="{'group_by':'year'}"/> - </group> - </search> + </group> + </search> </field> </record> <record id="action_report_mrp_production_order" model="ir.actions.act_window"> diff --git a/addons/mrp_operations/mrp_operations_report.xml b/addons/mrp_operations/mrp_operations_report.xml index 52122bfd041..826a587de51 100644 --- a/addons/mrp_operations/mrp_operations_report.xml +++ b/addons/mrp_operations/mrp_operations_report.xml @@ -8,7 +8,7 @@ model="mrp.workcenter" name="mrp.wc.barcode" rml="mrp_operations/report/mrp_wc_barcode.rml" - header="False"/> + header="False" /> <report id="report_code_barcode" diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index fccc62edab7..37e90a995b4 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -71,12 +71,12 @@ <separator string="Status" colspan="4"/> <group colspan="8" col="8"> <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"/> - <button name="button_cancel" string="Cancel" states="draft,startworking"/> - <button name="button_pause" string="Pause" states="startworking"/> - <button name="button_done" string="Finished" states="startworking"/> + <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert"/> + <button name="button_start_working" string="Start" states="draft" icon="gtk-execute"/> + <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause"/> + <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-cancel"/> + <button name="button_pause" string="Pause" states="startworking" icon="gtk-execute"/> + <button name="button_done" string="Finished" states="startworking" icon="gtk-ok"/> </group> </page> </notebook> @@ -84,6 +84,27 @@ </field> </record> + <record id="view_mrp_production_workcenter_form_view_filter" model="ir.ui.view"> + <field name="name">mrp.production.workcenter.line.select</field> + <field name="model">mrp.production.workcenter.line</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Search Work Orders"> + <group col='6' colspan='4'> + <field name="name"/> + <field name="workcenter_id"/> + <field name="production_id"/> + </group> + <newline/> + <group expand="1" string="Group By" colspan="10" col="8" groups="base.group_extended"> + <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product'}"/> + <filter string="State" icon="terp-mrp" domain="[]" context="{'group_by':'state'}"/> + <filter string="Date" icon="terp-mrp" domain="[]" context="{'group_by':'date_planned'}"/> + </group> + </search> + </field> + </record> + <record id="workcenter_line_calendar" model="ir.ui.view"> <field name="name">mrp.production.workcenter.line.calendar</field> <field name="model">mrp.production.workcenter.line</field> @@ -121,6 +142,7 @@ <field name="view_type">form</field> <field name="view_mode">tree,form,gantt,calendar,graph</field> <field name="domain">[('id','=',active_id)]</field> + <field name="search_view_id" ref="view_mrp_production_workcenter_form_view_filter"/> </record> <!-- Action for All Operations --> diff --git a/addons/mrp_procurement/mrp_procurement.py b/addons/mrp_procurement/mrp_procurement.py index cb20f1561fd..ceaefb4c4db 100644 --- a/addons/mrp_procurement/mrp_procurement.py +++ b/addons/mrp_procurement/mrp_procurement.py @@ -91,7 +91,7 @@ class mrp_procurement(osv.osv): " a make to order method."), 'note': fields.text('Note'), - + 'property_ids': fields.many2many('mrp.property', 'mrp_procurement_property_rel', 'procurement_id','property_id', 'Properties'), 'message': fields.char('Latest error', size=64, help="Exception occurred while computing procurement orders."), @@ -144,7 +144,7 @@ class mrp_procurement(osv.osv): def check_product(self, cr, uid, ids): """ Checks product type. - @return: True or False + @return: True or False """ for procurement in self.browse(cr, uid, ids): if procurement.product_id.type in ('product', 'consu'): @@ -153,7 +153,7 @@ class mrp_procurement(osv.osv): def check_move_cancel(self, cr, uid, ids, context={}): """ Checks if move is cancelled or not. - @return: True or False. + @return: True or False. """ res = True ok = False @@ -166,7 +166,7 @@ class mrp_procurement(osv.osv): def check_move_done(self, cr, uid, ids, context={}): """ Checks if move is done or not. - @return: True or False. + @return: True or False. """ res = True for proc in self.browse(cr, uid, ids, context): @@ -190,7 +190,7 @@ class mrp_procurement(osv.osv): return False def _uom_compute_get(self, cr, uid, proc, context={}): - """ Finds UoS if product is Stockable Product. + """ Finds UoS if product is Stockable Product. @param proc: Current procurement. @return: UoS or False. """ @@ -205,7 +205,7 @@ class mrp_procurement(osv.osv): # def quantity_get(self, cr, uid, id, context={}): """ Finds quantity of product used in procurement. - @return: Quantity of product. + @return: Quantity of product. """ proc = self.browse(cr, uid, id, context) result = self._quantity_compute_get(cr, uid, proc, context) @@ -215,7 +215,7 @@ class mrp_procurement(osv.osv): def uom_get(self, cr, uid, id, context=None): """ Finds UoM of product used in procurement. - @return: UoM of product. + @return: UoM of product. """ proc = self.browse(cr, uid, id, context) result = self._uom_compute_get(cr, uid, proc, context) @@ -225,7 +225,7 @@ class mrp_procurement(osv.osv): def check_waiting(self, cr, uid, ids, context=[]): """ Checks state of move. - @return: True or False + @return: True or False """ for procurement in self.browse(cr, uid, ids, context=context): if procurement.move_id and procurement.move_id.state == 'auto': @@ -244,7 +244,7 @@ class mrp_procurement(osv.osv): def check_make_to_stock(self, cr, uid, ids, context={}): """ Checks product type. - @return: True or False + @return: True or False """ ok = True for procurement in self.browse(cr, uid, ids, context=context): @@ -299,7 +299,7 @@ class mrp_procurement(osv.osv): return True def test_cancel(self, cr, uid, ids): - """ Tests whether state of move is cancelled or not. + """ Tests whether state of move is cancelled or not. @return: True or False """ for record in self.browse(cr, uid, ids): @@ -338,7 +338,7 @@ class mrp_procurement(osv.osv): def action_move_assigned(self, cr, uid, ids, context={}): """ Changes procurement state to Running and writes message. - @return: True + @return: True """ self.write(cr, uid, ids, {'state': 'running', 'message': _('from stock: products assigned.')}) return True @@ -358,12 +358,12 @@ class mrp_procurement(osv.osv): ok = ok and self.pool.get('stock.move').action_assign(cr, uid, [id]) cr.execute('select count(id) from stock_warehouse_orderpoint where product_id=%s', (procurement.product_id.id,)) if not cr.fetchone()[0]: - cr.execute('update mrp_procurement set message=%s where id=%s', (_('from stock and no minimum orderpoint rule defined'), procurement.id)) + cr.execute('update mrp_procurement set message=%s where id=%s', (_('Stock is not enough and No minimum orderpoint rule defined'), procurement.id)) return ok def action_produce_assign_service(self, cr, uid, ids, context={}): """ Changes procurement state to Running. - @return: True + @return: True """ for procurement in self.browse(cr, uid, ids): self.write(cr, uid, [procurement.id], {'state': 'running'}) @@ -375,7 +375,7 @@ class mrp_procurement(osv.osv): """ return 0 - + def action_po_assign(self, cr, uid, ids, context={}): """ This is action which call from workflow to assign purchase order to procurements @return: True @@ -384,7 +384,7 @@ class mrp_procurement(osv.osv): def action_cancel(self, cr, uid, ids): """ Cancels procurement and writes move state to Assigned. - @return: True + @return: True """ todo = [] todo2 = [] @@ -410,8 +410,8 @@ class mrp_procurement(osv.osv): return self.check_move_done(cr, uid, ids) def action_check(self, cr, uid, ids): - """ Checks procurement move state whether assigned or done. - @return: True + """ Checks procurement move state whether assigned or done. + @return: True """ ok = False for procurement in self.browse(cr, uid, ids): @@ -422,14 +422,14 @@ class mrp_procurement(osv.osv): def action_ready(self, cr, uid, ids): """ Changes procurement state to Ready. - @return: True + @return: True """ res = self.write(cr, uid, ids, {'state': 'ready'}) return res def action_done(self, cr, uid, ids): """ Changes procurement state to Done and writes Closed date. - @return: True + @return: True """ move_obj = self.pool.get('stock.move') for procurement in self.browse(cr, uid, ids): @@ -451,7 +451,7 @@ class mrp_procurement(osv.osv): self._procure_confirm(cr, uid, use_new_cursor=use_new_cursor, context=context) self._procure_orderpoint_confirm(cr, uid, automatic=automatic,\ use_new_cursor=use_new_cursor, context=context) - + mrp_procurement() @@ -461,7 +461,7 @@ class stock_warehouse_orderpoint(osv.osv): """ _name = "stock.warehouse.orderpoint" _description = "Orderpoint minimum rule" - + _columns = { 'name': fields.char('Name', size=32, required=True), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the orderpoint without removing it."), @@ -489,7 +489,7 @@ class stock_warehouse_orderpoint(osv.osv): 'product_uom': lambda sel, cr, uid, context: context.get('product_uom', False), 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.warehouse.orderpoint', context=c) } - + def onchange_warehouse_id(self, cr, uid, ids, warehouse_id, context={}): """ Finds location id for changed warehouse. @param warehouse_id: Changed id of warehouse. @@ -500,7 +500,7 @@ class stock_warehouse_orderpoint(osv.osv): v = {'location_id': w.lot_stock_id.id} return {'value': v} return {} - + def onchange_product_id(self, cr, uid, ids, product_id, context={}): """ Finds UoM for changed product. @param product_id: Changed id of product. @@ -511,7 +511,7 @@ class stock_warehouse_orderpoint(osv.osv): v = {'product_uom': prod.uom_id.id} return {'value': v} return {} - + def copy(self, cr, uid, id, default=None,context={}): if not default: default = {} @@ -519,6 +519,6 @@ class stock_warehouse_orderpoint(osv.osv): 'name': self.pool.get('ir.sequence').get(cr, uid, 'mrp.warehouse.orderpoint') or '', }) return super(stock_warehouse_orderpoint, self).copy(cr, uid, id, default, context) - + stock_warehouse_orderpoint() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/mrp_procurement/mrp_procurement_view.xml b/addons/mrp_procurement/mrp_procurement_view.xml index 94ee009d7df..1defa214754 100644 --- a/addons/mrp_procurement/mrp_procurement_view.xml +++ b/addons/mrp_procurement/mrp_procurement_view.xml @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> - <data> + <data> <!-- Procurement --> - + <record id="mrp_procurement_tree_view" model="ir.ui.view"> <field name="name">mrp.procurement.tree</field> <field name="model">mrp.procurement</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree string="Procurement Lines" colors="red:state=='draft';black:state=='running';green:state=='confirmed';gray:state in ['done','cancel']"> + <tree string="Procurement Lines" colors="red:date_planned<current_date and state in ('exception');black:state=='running';green:state=='confirmed';gray:state in ['done','cancel'];blue:state in ('ready')"> <field name="date_planned" widget="date"/> <field name="origin"/> <field name="product_id"/> @@ -18,6 +18,7 @@ <field name="product_uom" string="UOM"/> <field name="procure_method"/> <field name="state"/> + <field name="message"/> </tree> </field> </record> @@ -45,10 +46,10 @@ <field name="product_id" on_change="onchange_product_id(product_id)"/> <field name="location_id" domain="[('usage','=','internal')]"/> <field name="product_qty"/> - <field name="product_uom"/> + <field name="product_uom" widget="selection"/> - <field name="product_uos_qty" groups="product.group_uos"/> - <field name="product_uos" groups="product.group_uos"/> + <field name="product_uos_qty" groups="product.group_uos,base.group_extended"/> + <field name="product_uos" widget="selection" groups="product.group_uos,base.group_extended"/> <separator colspan="4" string="Status"/> <field colspan="4" name="message" readonly="1"/> @@ -90,6 +91,7 @@ <filter icon="terp-mrp" string="Late" domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed'))]" help="Procurement started late" /> + <filter icon="terp-mrp" string="To Fix" domain="[('state', '=', 'exception'),('message','=','')]" help="Procurement Orders with exceptions and without message"/> <separator orientation="vertical"/> <field name="name"/> <field name="origin"/> @@ -98,10 +100,11 @@ <field name="state" /> </group> <newline/> - <group expand="1" string="Group By" colspan="4" col="8"> + <group expand="1" string="Group By" colspan="4" col="8" groups="base.group_extended"> <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product_id'}"/> <filter string="Reason" icon="terp-mrp" domain="[]" context="{'group_by':'name'}"/> <filter string="Scheduled Date" icon="terp-mrp" domain="[]" context="{'group_by':'date_planned'}"/> + <filter string="State" icon="terp-mrp" domain="[]" context="{'group_by':'state'}"/> </group> </search> </field> @@ -114,6 +117,7 @@ <field name="view_id" eval="False"/> <field name="context">{'search_default_current':1}</field> <field name="search_view_id" ref="view_mrp_procurement_filter"/> + <field name="context">{'search_default_Current':1}</field> </record> <record id="mrp_procurement_action3" model="ir.actions.act_window"> @@ -154,7 +158,7 @@ <field name="view_mode">tree,form</field> <field name="domain">[('state','=','exception'), ('message', '=', '')]</field> </record> - + <!-- Order Point --> <record id="view_warehouse_orderpoint_tree" model="ir.ui.view"> <field name="name">stock.warehouse.orderpoint.tree</field> @@ -183,7 +187,7 @@ <field name="name"/> <field name="warehouse_id" widget="selection"/> <field name="location_id"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> <field name="product_id"/> </group> <newline/> @@ -247,6 +251,21 @@ name="Minimum Stock Rules" res_model="stock.warehouse.orderpoint" src_model="product.product"/> - + + <act_window + context="{'product_uom': locals().has_key('uom_id') and uom_id}" + domain="[('product_id', '=', active_id)]" + id="act_mrp_procurement_2_stock_warehouse_orderpoint" + name="Minimum Stock Rules" + res_model="stock.warehouse.orderpoint" + src_model="mrp.procurement"/> + + <act_window + domain="[('id', '=', product_id)]" + id="act_product_product_2_stock_warehouse_orderpoint" + name="Product" + res_model="product.product" + src_model="mrp.procurement"/> + </data> -</openerp>
\ No newline at end of file +</openerp> diff --git a/addons/mrp_procurement/wizard/make_procurement_view.xml b/addons/mrp_procurement/wizard/make_procurement_view.xml index e98f1c013a0..2e9b44edb63 100644 --- a/addons/mrp_procurement/wizard/make_procurement_view.xml +++ b/addons/mrp_procurement/wizard/make_procurement_view.xml @@ -17,6 +17,7 @@ <field name="date_planned"/> <field name="warehouse_id" colspan="4"/> <newline/> + <separator colspan="4"/> <group col="2" colspan="4"> <button icon='gtk-cancel' special="cancel" string="Cancel" /> diff --git a/addons/mrp_repair/mrp_repair_view.xml b/addons/mrp_repair/mrp_repair_view.xml index 667e9763827..47e80be3e31 100644 --- a/addons/mrp_repair/mrp_repair_view.xml +++ b/addons/mrp_repair/mrp_repair_view.xml @@ -2,174 +2,196 @@ <openerp> <data> - <record id="view_repair_order_form" model="ir.ui.view"> - <field name="name">mrp.repair.form</field> - <field name="model">mrp.repair</field> - <field name="type">form</field> - <field name="arch" type="xml"> - <form string="Repairs order"> - <group col="6" colspan="4"> - <field name="name"/> - <field name="product_id" select="1" on_change="onchange_product_id(product_id)"/> - <field name="deliver_bool"/> - <newline/> - <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" on_change="onchange_partner_id(partner_id,address_id)"/> - <field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}"/> - <field name="invoiced"/> - </group> - <notebook colspan="4"> - <page string="Operations"> - <field name="guarantee_limit" /> - <newline/> - <field colspan="4" mode="tree,form" name="operations" nolabel="1" widget="one2many_list"> - <form string="Operations"> - <notebook> - <page string="Repair Line"> - <field name="name" colspan="4"/> - <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)" colspan="4"/> - <field name="product_uom_qty" string="Qty" /> - <field name="product_uom" string="UoM"/> - <field name="price_unit"/> - <field name="price_subtotal"/> - <field name="location_id"/> - <field name="location_dest_id"/> - <newline/> - <field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/> - <group colspan="2"> - <field name="to_invoice"/> - <field name="invoiced"/> - </group> - <newline/> - <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> - <separator colspan="4" string="States"/> - <field name="state"/> - </page> - <page string="History" groups="base.group_extended"> - <field colspan="4" name="move_id" /> - <field colspan="4" name="invoice_line_id"/> - </page> - - </notebook> - </form> - <tree string="Operations" editable="bottom"> - <field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/> - <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)"/> - <field name='name'/> - <field name="location_id"/> - <field name="location_dest_id"/> - <field name="product_uom_qty" string="Qty"/> - <field name="product_uom" string="UoM"/> - <field name="price_unit"/> - <field name="tax_id"/> - <field name="to_invoice"/> - <field name="price_subtotal"/> - </tree> - </field> - <newline/> - <group col="7" colspan="4"> - <field name="amount_untaxed" sum="Untaxed amount"/> - <field name="amount_tax"/> - <field name="amount_total" sum="Total amount"/> - <button name="button_dummy" states="draft" string="Compute" type="object"/> - </group> - <newline/> - <group col="13" colspan="4"> - <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"/> - <button name="action_repair_end" states="under_repair" string="End Repair"/> - <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/> - <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/> - <button name="action_invoice_create" states="2binvoiced" string="Make Invoice"/> - <button name="%(action_cancel_repair)d" states="invoice_except" string="Cancel Repair" type="action"/> - <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/> - <button name="cancel" states="draft" string="Cancel Repair"/> - <button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="action"/> - </group> - </page> - <page string="Invoicing"> - <field name="invoice_method" colspan="4"/> - <field - name="pricelist_id" context="product_id=product_id" - attrs="{'readonly':[('invoice_method','=', 'none')]}"/> - <field name="partner_invoice_id" attrs="{'readonly':[('invoice_method','=', 'none')]}"/> - <!-- <field name="invoice_id"/> --> - <field colspan="4" mode="tree,form" name="fees_lines" nolabel="1" widget="one2many_list"> - <form string="Fees"> - <notebook> - <page string="Fees Line"> - <field name='name'/> - <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)" colspan="4"/> - <field name="product_uom_qty" string="Qty"/> - <field name="product_uom" string="UoM" /> - <field name="price_unit"/> - <field name="price_subtotal"/> - <newline/> - <group colspan="2"> - <field name="to_invoice"/> - <field name="invoiced"/> - </group> - <newline/> - <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> - </page> - <page string="History" groups="base.group_extended"> - <field colspan="4" name="invoice_line_id" /> - </page> - </notebook> - </form> - <tree string="Fees" editable="bottom"> - <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)"/> - <field name='name'/> - <field name="product_uom_qty" string="Qty"/> - <field name="product_uom" string="UoM"/> - <field name="price_unit"/> - <field name="to_invoice"/> - <field name="price_subtotal"/> - </tree> - </field> - </page> - <page string="Quality"> - <separator colspan="4" string="Internal Notes"/> - <field colspan="4" name="internal_notes" nolabel="1"/> - <separator colspan="4" string="Quotation Notes"/> - <field colspan="4" name="quotation_notes" nolabel="1"/> - </page> - <page string="Extra Info" groups="base.group_extended"> - <field name="invoice_id"/> - <field name="picking_id"/> - <field name="location_id"/> - <field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/> - </page> - </notebook> - </form> - </field> - </record> - - <record id="view_repair_order_tree" model="ir.ui.view"> + <record id="view_repair_order_tree" model="ir.ui.view"> <field name="name">mrp.repair.tree</field> <field name="model">mrp.repair</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Repairs order"> <field name="name" select="1" /> - <field name="product_id" select="1" /> - <field name="prodlot_id"/> - <field name="partner_id"/> - <field name="address_id"/> - <field name="location_id"/> - <field name="state"/> - <field name="move_id"/> - <field name="location_dest_id"/> - <field name="guarantee_limit"/> + <field name="product_id" select="1" /> + <field name="prodlot_id"/> + <field name="partner_id"/> + <field name="address_id"/> + <field name="location_id"/> + <field name="move_id"/> + <field name="location_dest_id"/> + <field name="guarantee_limit"/> + <field name="state"/> </tree> </field> </record> + <record id="view_repair_order_form" model="ir.ui.view"> + <field name="name">mrp.repair.form</field> + <field name="model">mrp.repair</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Repairs order"> + <group col="6" colspan="4"> + <field name="name"/> + <field name="product_id" select="1" on_change="onchange_product_id(product_id)"/> + <field name="deliver_bool"/> + <newline/> + <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" on_change="onchange_partner_id(partner_id,address_id)"/> + <field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}"/> + <field name="invoiced"/> + </group> + <notebook colspan="4"> + <page string="Operations"> + <field name="guarantee_limit" /> + <newline/> + <field colspan="4" mode="tree,form" name="operations" nolabel="1" widget="one2many_list"> + <form string="Operations"> + <notebook> + <page string="Repair Line"> + <field name="name" colspan="4"/> + <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)" colspan="4"/> + <field name="product_uom_qty" string="Qty" /> + <field name="product_uom" string="UoM"/> + <field name="price_unit"/> + <field name="price_subtotal"/> + <field name="location_id"/> + <field name="location_dest_id"/> + <newline/> + <field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/> + <group colspan="2"> + <field name="to_invoice"/> + <field name="invoiced"/> + </group> + <newline/> + <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> + <separator colspan="4" string="States"/> + <field name="state"/> + </page> + <page string="History" groups="base.group_extended"> + <field colspan="4" name="move_id" /> + <field colspan="4" name="invoice_line_id"/> + </page> + + </notebook> + </form> + <tree string="Operations" editable="bottom"> + <field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/> + <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)"/> + <field name='name'/> + <field name="location_id"/> + <field name="location_dest_id"/> + <field name="product_uom_qty" string="Qty"/> + <field name="product_uom" string="UoM"/> + <field name="price_unit"/> + <field name="tax_id"/> + <field name="to_invoice"/> + <field name="price_subtotal"/> + </tree> + </field> + <newline/> + <group col="7" colspan="4"> + <field name="amount_untaxed" sum="Untaxed amount"/> + <field name="amount_tax"/> + <field name="amount_total" sum="Total amount"/> + <button name="button_dummy" states="draft" string="Compute" type="object"/> + </group> + <newline/> + <group col="13" colspan="4"> + <field name="state"/> + <button name="repair_confirm" states="draft" string="Confirm Repair" icon="gtk-apply"/> + <button name="repair_ready" states="confirmed" string="Start Repair" icon="gtk-execute"/> + <button name="action_repair_start" states="ready" string="Start Repair" icon="gtk-execute"/> + <button name="action_repair_end" states="under_repair" string="End Repair" icon="gtk-ok"/> + <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice" icon="gtk-convert"/> + <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected" icon="gtk-apply"/> + <button name="action_invoice_create" states="2binvoiced" string="Make Invoice" icon="gtk-ok"/> + <button name="%(action_cancel_repair)d" states="invoice_except" string="Cancel Repair" type="action" icon="gtk-cancel"/> + <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/> + <button name="cancel" states="draft" string="Cancel Repair" icon="gtk-cancel"/> + <button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="action" icon="gtk-cancel"/> + </group> + </page> + <page string="Invoicing"> + <field name="invoice_method" colspan="4"/> + <field + name="pricelist_id" context="product_id=product_id" + attrs="{'readonly':[('invoice_method','=', 'none')]}"/> + <field name="partner_invoice_id" attrs="{'readonly':[('invoice_method','=', 'none')]}"/> + <!-- <field name="invoice_id"/> --> + <field colspan="4" mode="tree,form" name="fees_lines" nolabel="1" widget="one2many_list"> + <form string="Fees"> + <notebook> + <page string="Fees Line"> + <field name='name'/> + <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)" colspan="4"/> + <field name="product_uom_qty" string="Qty"/> + <field name="product_uom" string="UoM" /> + <field name="price_unit"/> + <field name="price_subtotal"/> + <newline/> + <group colspan="2"> + <field name="to_invoice"/> + <field name="invoiced"/> + </group> + <newline/> + <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> + </page> + <page string="History" groups="base.group_extended"> + <field colspan="4" name="invoice_line_id" /> + </page> + </notebook> + </form> + <tree string="Fees" editable="bottom"> + <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)"/> + <field name='name'/> + <field name="product_uom_qty" string="Qty"/> + <field name="product_uom" string="UoM"/> + <field name="price_unit"/> + <field name="to_invoice"/> + <field name="price_subtotal"/> + </tree> + </field> + </page> + <page string="Quality"> + <separator colspan="4" string="Internal Notes"/> + <field colspan="4" name="internal_notes" nolabel="1"/> + <separator colspan="4" string="Quotation Notes"/> + <field colspan="4" name="quotation_notes" nolabel="1"/> + </page> + <page string="Extra Info" groups="base.group_extended"> + <field name="invoice_id"/> + <field name="picking_id"/> + <field name="location_id"/> + <field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/> + </page> + </notebook> + </form> + </field> + </record> + + + + <record id="view_repair_order_form_filter" model="ir.ui.view"> + <field name="name">mrp.repair.select</field> + <field name="model">mrp.repair</field> + <field name="type">search</field> + <field name="arch" type="xml"> + <search string="Search Reair Orders"> + <group col='4' colspan='4'> + <field name="name" /> + <field name="product_id" /> + </group> + <newline/> + <group expand="1" string="Group By" colspan="10" col="8" groups="base.group_extended"> + <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product_id'}"/> + <filter string="State" icon="terp-mrp" domain="[]" context="{'group_by':'state'}"/> + <filter string="Partner" icon="terp-mrp" domain="[]" context="{'group_by':'partner_id'}"/> + </group> + </search> + </field> + </record> + <record id="action_repair_order_form" model="ir.actions.act_window"> <field name="name">New Repair</field> <field name="type">ir.actions.act_window</field> @@ -184,6 +206,7 @@ <field name="res_model">mrp.repair</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> + <field name="search_view_id" ref="view_repair_order_form_filter"/> </record> <record id="action_repair_quotation_tree" model="ir.actions.act_window"> diff --git a/addons/olap/data/olap_wizard.xml b/addons/olap/data/olap_wizard.xml index beb3453d224..5f677e7a8c6 100644 --- a/addons/olap/data/olap_wizard.xml +++ b/addons/olap/data/olap_wizard.xml @@ -10,13 +10,14 @@ multi="True" id="bi_conf_cube_query_builder"/> - <wizard + + <!-- <wizard string="Load Tables" model="olap.schema" name="olap.load.table" menu= "False" multi="True" - id="bi_menu_olap_load_table"/> + id="bi_menu_olap_load_table"/>--> <wizard diff --git a/addons/point_of_sale/pos_view.xml b/addons/point_of_sale/pos_view.xml index d2cc102a047..ef8ae334810 100644 --- a/addons/point_of_sale/pos_view.xml +++ b/addons/point_of_sale/pos_view.xml @@ -12,15 +12,15 @@ <field name="user_salesman_id" /> <field name="partner_id" on_change="onchange_partner_pricelist(partner_id)"/> <field name="contract_number" groups="base.group_extended"/> - + </group> <notebook colspan="4"> - <page string="Sale Order "> + <page string="Sale Order "> <field name="lines" colspan="4" nolabel="1"> <tree string="Order lines" editable="bottom"> <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)" width="275" /> <field name="qty" /> - <field name="qty_rfd" groups="base.group_extended"/> + <field name="qty_rfd" groups="base.group_extended"/> <field name="discount" on_change="onchange_discount(discount,price_unit)" /> <field name="price_ded" on_change="onchange_ded(price_ded, price_unit)" /> <field name="price_unit" readonly="1"/> @@ -73,7 +73,7 @@ <page string="Order and Payment"> <group colspan="2" col="2" name="Type"> <separator string="Order Information" colspan="4"/> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <field name="shop_id" widget="selection" /> <field name="name"/> <field name="user_id" /> @@ -143,7 +143,7 @@ <field name="invoice_id"/> <field name="state" /> <field name="amount_total" sum="Amount total"/> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> </tree> </field> </record> @@ -161,7 +161,7 @@ <field name="user_id" select="1" widget="selection"/> <field name="date_order" select="1" string="Order date" /> <newline/> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..." colspan="11" col="11" groups="base.group_extended"> <filter string="Customer" icon="terp-sale" domain="[]" context="{'group_by':'partner_id'}"/> <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/> <filter string="Order Date" icon="terp-sale" domain="[]" context="{'group_by':'date_order'}"/> @@ -729,7 +729,7 @@ <field name="expense_pdt"/> <field name="am_out"/> <field name="disc_controle"/> - <field name="company_id" groups="base.group_extended"/> + <field name="company_id" groups="base.group_extended,base.group_multi_company"/> </group> <group colspan="2" col="2" name="Prices"> <separator string="Prices" colspan="2"/> @@ -825,7 +825,7 @@ <field name="note" select="1" /> <field name="state" select="1"/> <field name="amount_total" sum="Amount total"/> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> </tree> </field> </record> diff --git a/addons/point_of_sale/statement_view.xml b/addons/point_of_sale/statement_view.xml index cef2748b5e4..69c3232f1a0 100644 --- a/addons/point_of_sale/statement_view.xml +++ b/addons/point_of_sale/statement_view.xml @@ -46,7 +46,7 @@ <form string="Statement"> <field name="name" select="1"/> <field name="user_id" select="1"/> - <field name="company_id" select="1"/> + <field name="company_id" select="1" groups="base.group_multi_company"/> <field name="journal_id" on_change="onchange_journal_id(journal_id)" domain="[('type','=','cash'),('auto_cash','=',False)]" select="1" /> <newline/> <field name="date" select="1" attrs="{'readonly':[('state','!=','draft')]}"/> @@ -123,7 +123,7 @@ <form string="Statement"> <field name="name" select="1"/> <field name="user_id" select="1"/> - <field name="company_id" select="1"/> + <field name="company_id" select="1" groups="base.group_multi_company"/> <field name="journal_id" on_change="onchange_journal_id(journal_id)" domain="[('type','=','cash')]" select="1" readonly="1"/> <newline/> <field name="date" select="1" attrs="{'readonly':[('state','!=','draft')]}"/> @@ -236,7 +236,7 @@ <form string="Statement"> <field name="name" select="1"/> <field name="user_id" select="1"/> - <field name="company_id" select="1"/> + <field name="company_id" select="1" groups="base.group_multi_company"/> <field name="journal_id" on_change="onchange_journal_id(journal_id)" domain="[('type','=','cash')]" select="1" readonly="1"/> <newline/> <field name="date" select="1" attrs="{'readonly':[('state','!=','draft')]}"/> @@ -417,7 +417,7 @@ <menuitem name="Cashboxes to Close" parent="menu_pos_bank_statment_tree" action="action_cashboxes_to_close" id="menu_cashboxes_to_close_tree" groups="base.group_extended"/> - + <menuitem name="Open Registers" parent="point_of_sale.menu_point_config" string="Open Register" @@ -434,11 +434,11 @@ string="Close Register" action="action_pos_close_statement" id="menu_close_statement" sequence="2" /> - + <menuitem icon="STOCK_PRINT" action="action_report_all_closed_cashbox_of_the_day" id="menu_all_closed_cashbox_of_the_day" parent="menu_point_report_register"/> - + </data> </openerp> diff --git a/addons/product/product.py b/addons/product/product.py index 23000226ebf..aaa369cdfcf 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -262,7 +262,7 @@ class product_template(osv.osv): 'produce_delay': fields.float('Manufacturing Lead Time', help="Average time to produce this product. This is only for the production order and, if it is a multi-level bill of material, it's only for the level of this product. Different lead times will be summed for all levels and purchase orders."), 'procure_method': fields.selection([('make_to_stock','Make to Stock'),('make_to_order','Make to Order')], 'Procurement Method', required=True, help="'Make to Stock': When needed, take from the stock or wait until re-supplying. 'Make to Order': When needed, purchase or produce for the procurement request."), 'rental': fields.boolean('Can be Rent'), - 'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]"), + 'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]" ,help="Select category for the current product"), 'list_price': fields.float('Sale Price', digits_compute=dp.get_precision('Sale Price'), help="Base price for computing the customer price. Sometimes called the catalog price."), 'standard_price': fields.float('Cost Price', required=True, digits_compute=dp.get_precision('Account'), help="Product's cost for accounting stock valuation. It is the base price for the supplier price."), 'volume': fields.float('Volume', help="The volume in m3."), @@ -586,7 +586,7 @@ class product_packaging(osv.osv): _rec_name = 'ean' _columns = { 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of packaging."), - 'name' : fields.char('Description', size=64), + 'name' : fields.text('Description', size=64), 'qty' : fields.float('Quantity by Package', help="The total number of products you can put by pallet or box."), 'ul' : fields.many2one('product.ul', 'Type of Package', required=True), @@ -645,9 +645,9 @@ class product_supplierinfo(osv.osv): _name = "product.supplierinfo" _description = "Information about a product supplier" _columns = { - '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."), + 'name' : fields.many2one('res.partner', 'Supplier', required=True, ondelete='cascade', help="Supplier of this product"), + 'product_name': fields.char('Supplier Product Name', size=128, help="This supplier's product name will be used when printing a request for quotation. Keep empty to use the internal one."), + 'product_code': fields.char('Supplier Product Code', size=64, help="This supplier's product code will be used when printing a request for quotation. Keep empty to use the internal one."), '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), diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 147de8c4188..aa73cdd0e63 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -18,17 +18,17 @@ <field name="name"/> <field name="categ_id" widget="selection" operator="child_of"/> <newline/> - <group col='8' colspan='14' expand="1" string="Extended options..."> - <field name="pricelist_id" widget="selection" context="{'pricelist': self}" /> - </group> - <newline/> - <group col='8' colspan='15' expand='1' string='Group by...'> + <group expand='1' string='Group by...' groups="base.group_extended"> <filter string='Category' icon="terp-stock" domain="[]" context="{'group_by' : 'categ_id'}" /> <separator orientation="vertical"/> <filter string='Default UOM' icon="terp-stock" domain="[]" context="{'group_by' : 'uom_id'}" /> <separator orientation="vertical"/> <filter string='Type' icon="terp-stock" domain="[]" context="{'group_by' : 'type'}" /> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <field name="pricelist_id" widget="selection" context="{'pricelist': self}" /> + </group> </search> </field> </record> @@ -104,7 +104,7 @@ </group> <group colspan="2" col="2" name="uom"> - <separator string="UOM" colspan="2"/> + <separator string="Unit of Measure" colspan="2"/> <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" widget="selection"/> <field name="uom_po_id" widget="selection"/> </group> @@ -175,8 +175,8 @@ <field name="height"/> <field name="width"/> <field name="length"/> - <separator colspan="4" string="Other Info"/> - <field colspan="4" name="name"/> + <separator colspan="4" string="Description"/> + <field colspan="4" name="name" nolabel="1"/> </form> </field> </page> diff --git a/addons/product/wizard/product_price_view.xml b/addons/product/wizard/product_price_view.xml index 17d9010ed43..a253a0e00af 100644 --- a/addons/product/wizard/product_price_view.xml +++ b/addons/product/wizard/product_price_view.xml @@ -10,16 +10,17 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Price list"> - <field name="price_list" /> + <field name="price_list" widget="selection"/> <field name="qty1" colspan="2" /> <field name="qty2" colspan="2" /> <field name="qty3" colspan="2" /> <field name="qty4" colspan="2" /> <field name="qty5" colspan="2" /> - <button icon='gtk-cancel' special="cancel" - string="Close" /> - <button name="print_report" string="Print Report" - colspan="1" type="object" icon="gtk-print" /> + <separator colspan="4"/> + <group col="2" colspan="4"> + <button icon="gtk-cancel" special="cancel" string="Close"/> + <button name="print_report" string="Print Report" type="object" icon="gtk-print"/> + </group> </form> </field> </record> diff --git a/addons/profile_accounting/i18n/pl.po b/addons/profile_accounting/i18n/pl.po index 2322b2ce98e..e1bcf6839fc 100644 --- a/addons/profile_accounting/i18n/pl.po +++ b/addons/profile_accounting/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-09-08 12:59+0000\n" -"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" +"PO-Revision-Date: 2010-05-25 16:49+0000\n" +"Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 03:55+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: profile_accounting @@ -23,6 +23,8 @@ msgid "" "Profile you selected. You will be able to install them based on our " "requirements." msgstr "" +"Instaluj wiÄcej moduĆĂłw. Proponujemy moduĆy zalecane do profilu ksiÄgowego, " +"ktĂłry wybraĆeĆ. BÄdziesz mĂłgĆ je instalowaÄ wedĆug naszych wskazaĆ." #. module: profile_accounting #: constraint:ir.model:0 @@ -35,7 +37,7 @@ msgstr "" #. module: profile_accounting #: view:profile.accounting.config.install_modules_wizard:0 msgid "Services Management" -msgstr "" +msgstr "ZarzÄ
dzanie usĆugami" #. module: profile_accounting #: help:profile.accounting.config.install_modules_wizard,board_document:0 @@ -45,51 +47,55 @@ msgid "" "documents, printed reports, calendar system). It opens an FTP access for the " "users to easily browse association's document." msgstr "" +"System zarzÄ
dzania dokumentami w OpenERP pozwala przechowywaÄ, przeglÄ
daÄ, " +"automatycznie indeksowaÄ, przeszukiwaÄ i podglÄ
daÄ wszystkie rodzaje " +"dokumentĂłw (dokumenty wewnÄtrzne, drukowane raporty, kalendarze). Otwiera on " +"dla uĆŒytkownikĂłw dostÄp FTP do Ćatwego przeglÄ
dania powiÄ
zanych dokumentĂłw." #. module: profile_accounting #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "NieprawidĆowa nazwa modelu w definicji akcji." #. module: profile_accounting #: view:profile.accounting.config.install_modules_wizard:0 msgid "Resources Management" -msgstr "" +msgstr "ZarzÄ
dzanie zasobami" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,account_payment:0 msgid "Suppliers Payment Management" -msgstr "" +msgstr "ZarzÄ
dzanie pĆatnoĆciami dla dostawcĂłw" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,account_asset:0 msgid "Asset Management" -msgstr "" +msgstr "Ćrodki trwaĆe" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,account_analytic_plans:0 msgid "Multiple Analytic Plans" -msgstr "" +msgstr "Planowanie analityczne" #. module: profile_accounting #: model:ir.actions.act_window,name:profile_accounting.action_config_install_module msgid "Accounting Profile : Install Extra Modules" -msgstr "" +msgstr "Profil ksiÄgowy: Instaluj dodatkowe moduĆy" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,hr_timesheet_invoice:0 msgid "Invoice on Analytic Entries" -msgstr "" +msgstr "Faktura z zapisĂłw analitycznych" #. module: profile_accounting #: model:ir.module.module,description:profile_accounting.module_meta_information msgid "Profile for Accounting" -msgstr "" +msgstr "Profil dla ksiÄgowoĆci" #. module: profile_accounting #: help:profile.accounting.config.install_modules_wizard,account_budget:0 msgid "Helps you to manage financial and analytic budgets." -msgstr "" +msgstr "Pomaga zarzÄ
dzaÄ budĆŒetami finansowymi i analitycznymi." #. module: profile_accounting #: constraint:ir.ui.view:0 @@ -99,37 +105,37 @@ msgstr "XML niewĆaĆciwy dla tej architektury wyĆwietlania!" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,name:0 msgid "Name" -msgstr "" +msgstr "Nazwa" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,account_budget:0 msgid "Budgets" -msgstr "" +msgstr "BudĆŒety" #. module: profile_accounting #: view:profile.accounting.config.install_modules_wizard:0 msgid "Install" -msgstr "" +msgstr "Instaluj" #. module: profile_accounting #: view:profile.accounting.config.install_modules_wizard:0 msgid "Install Extra Module" -msgstr "" +msgstr "Instaluj dodatkowe moduĆy" #. module: profile_accounting #: model:ir.module.module,shortdesc:profile_accounting.module_meta_information msgid "Accounting only profile" -msgstr "" +msgstr "Profil tylko ksiÄgowy" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,account_analytic_analysis:0 msgid "Analytic Accounting" -msgstr "" +msgstr "KsiÄgowoĆÄ analityczna" #. module: profile_accounting #: field:profile.accounting.config.install_modules_wizard,board_document:0 msgid "Document Management" -msgstr "" +msgstr "ZarzÄ
dzanie dokumentami" #. module: profile_accounting #: model:ir.model,name:profile_accounting.model_profile_accounting_config_install_modules_wizard @@ -139,4 +145,4 @@ msgstr "" #. module: profile_accounting #: view:profile.accounting.config.install_modules_wizard:0 msgid "Cancel" -msgstr "" +msgstr "Anuluj" diff --git a/addons/profile_manufacturing/i18n/pl.po b/addons/profile_manufacturing/i18n/pl.po index 4a7c7de9f7b..6707d6598b1 100644 --- a/addons/profile_manufacturing/i18n/pl.po +++ b/addons/profile_manufacturing/i18n/pl.po @@ -7,24 +7,24 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-09-08 13:28+0000\n" -"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" +"PO-Revision-Date: 2010-05-25 16:49+0000\n" +"Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:16+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,mrp_operation:0 msgid "Manufacturing Operations" -msgstr "" +msgstr "Operacje produkcyjne" #. module: profile_manufacturing #: model:ir.module.module,description:profile_manufacturing.module_meta_information msgid "Profile for manufacturing industries" -msgstr "" +msgstr "Profil dla firm produkcyjnych" #. module: profile_manufacturing #: constraint:ir.model:0 @@ -37,22 +37,22 @@ msgstr "" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,mrp_jit:0 msgid "Just in Time Scheduling" -msgstr "" +msgstr "Planowanie natychmiastowe (JiT)" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,sale_journal:0 msgid "Manage by Journals" -msgstr "" +msgstr "ZarzÄ
dzanie wg dziennikĂłw" #. module: profile_manufacturing #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Relationship Management" -msgstr "" +msgstr "ZarzÄ
dzanie relacjami" #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,portal:0 msgid "This module allows you to manage a Portal system." -msgstr "" +msgstr "Ten moduĆ pozwoli ci zarzÄ
dzaÄ systemem portalu." #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,board_document:0 @@ -62,6 +62,10 @@ msgid "" "documents, printed reports, calendar system). It opens an FTP access for the " "users to easily browse association's document." msgstr "" +"System zarzÄ
dzania dokumentami w OpenERP pozwala przechowywaÄ, przeglÄ
daÄ, " +"automatycznie indeksowaÄ, przeszukiwaÄ i podglÄ
daÄ wszystkie rodzaje " +"dokumentĂłw (dokumenty wewnÄtrzne, drukowane raporty, kalendarze). Otwiera on " +"dla uĆŒytkownikĂłw dostÄp FTP do Ćatwego przeglÄ
dania powiÄ
zanych dokumentĂłw." #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,sale_journal:0 @@ -70,17 +74,20 @@ msgid "" "journals. You can define journals for trucks, salesman, departments, " "invoicing date delivery period, etc." msgstr "" +"Ten moduĆ pozwala zarzÄ
dzaÄ sprzedaĆŒÄ
, fakturowaniem i pobieraniem produktĂłw " +"przez dzinniki. MoĆŒesz definiowaÄ dzienniki dla ciÄĆŒarĂłwek, sprzedawcĂłw, " +"dziaĆĂłw, dat fakturowania, okresĂłw dostaw itp." #. module: profile_manufacturing #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "NieprawidĆowa nazwa modelu w definicji akcji." #. module: profile_manufacturing #: model:ir.actions.act_window,name:profile_manufacturing.action_config_install_module #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Manufacturing Profile: Install Extra Modules" -msgstr "" +msgstr "Profil produkcyjny: Instaluj dodatkowe moduĆy" #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,mrp_jit:0 @@ -89,6 +96,9 @@ msgid "" "and faster for real time stock computation but, in counter-part, it manages " "less efficiently priorities in procurements." msgstr "" +"ModuĆ JIT pozwala dziaĆaÄ planiĆcie bez jego uruchamiania. Jest to szybsze i " +"Ćatwiejsze dla obliczeĆ zapasĂłw w czasie rzeczywistym, ale nieefektywne w " +"zarzÄ
dzaniu priorytetami w nabyciach." #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,mrp_operation:0 @@ -97,11 +107,15 @@ msgid "" "work order/operation. You will be able to planify, analyse the cost, check " "times, ... on all operations of each manufacturing order" msgstr "" +"Ten moduĆ pozwala nie tylko zarzÄ
dzaÄ produkcjÄ
przez zamĂłwienia produkcji, " +"ale rĂłwnieĆŒ przez zamĂłwienia czynnoĆci/operacje. BÄdziesz mĂłgĆ planowaÄ, " +"analizowaÄ koszt, sprawdzaÄ czas, ... dla wszystkich operacji w kaĆŒdym " +"zamĂłwieniu produkcyjnym" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,board_document:0 msgid "Document Management" -msgstr "" +msgstr "ZarzÄ
dzanie dokumentami" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,portal:0 @@ -111,7 +125,7 @@ msgstr "" #. module: profile_manufacturing #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Stock & Manufacturing" -msgstr "" +msgstr "Zapasy i Produkcja" #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,mrp_repair:0 @@ -119,6 +133,8 @@ msgid "" "Allow to manage product repairs. Handle the guarantee limit date and the " "invoicing of products and services." msgstr "" +"Pozwala zarzÄ
dzaÄ naprawami produktĂłw. ObsĆuguje czasy gwarancji i " +"fakturowanie produktĂłw i usĆug." #. module: profile_manufacturing #: constraint:ir.ui.view:0 @@ -132,16 +148,20 @@ msgid "" "manufacturing profile you selected. You will be able to install them based " "on our requirements." msgstr "" +"Instaluj wiÄcej moduĆĂłw. Proponujemy moduĆy zalecane do profilu " +"produkcyjnego, ktĂłry wybraĆeĆ. BÄdziesz mĂłgĆ je instalowaÄ wedĆug naszych " +"wskazaĆ." #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,mrp_subproduct:0 msgid "This module allows you to add sub poducts in mrp bom." msgstr "" +"Ten moduĆ pozwala dodaÄ produkty uboczne w zestawieniu materiaĆowym MRP." #. module: profile_manufacturing #: model:ir.module.module,shortdesc:profile_manufacturing.module_meta_information msgid "Manufacturing industry profile" -msgstr "" +msgstr "Profil firm produkcyjnych" #. module: profile_manufacturing #: model:ir.model,name:profile_manufacturing.model_profile_manufacturing_config_install_modules_wizard @@ -155,26 +175,28 @@ msgid "" "opportunities tracking, shared calendar, jobs tracking, bug tracker, and so " "on." msgstr "" +"To instaluje funkcjonalnoĆÄ relacji z klientami jak: obsĆuga sygnaĆĂłw i " +"szans, wspĂłĆdzielone kalendarze, obsadzanie stanowisk, obsĆuga bĆÄdĂłw itp." #. module: profile_manufacturing #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Install" -msgstr "" +msgstr "Instaluj" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,sale_crm:0 msgid "CRM and Calendars" -msgstr "" +msgstr "CRM i kalendarze" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,mrp_repair:0 msgid "Repair" -msgstr "" +msgstr "Naprawa" #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,sale_margin:0 msgid "Display margins on the sale order form." -msgstr "" +msgstr "WyĆwietlaj marĆŒe na formularzu zamĂłwienia sprzedaĆŒy." #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,point_of_sale:0 @@ -184,26 +206,30 @@ msgid "" "a perfect ergonomy with touchscreen materials and payment processing " "hardware." msgstr "" +"Ten moduĆ pozwala obsĆugiwaÄ punkt sprzedaĆŒy. Zawiera podstawowÄ
formÄ " +"operacji punktu sprzedaĆŒy. Musisz sprawdziÄ jeszcze nasz punkt sprzedaĆŒy dla " +"sprzedawcy (frontend), zby siÄ przekonaÄ o ergonomii ekranu dotykowego i " +"urzÄ
dzeĆ do obsĆugi pĆatnoĆci." #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,mrp_subproduct:0 msgid "Mrp Sub Product" -msgstr "" +msgstr "Produkt uboczny MRP" #. module: profile_manufacturing #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Sales Management" -msgstr "" +msgstr "SprzedaĆŒ" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,warning:0 msgid "Warning" -msgstr "" +msgstr "OstrzeĆŒenie" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,sale_margin:0 msgid "Margins on Sales Order" -msgstr "" +msgstr "MarĆŒe w zamĂłwieniu sprzedaĆŒy" #. module: profile_manufacturing #: help:profile.manufacturing.config.install_modules_wizard,stock_location:0 @@ -214,18 +240,23 @@ msgid "" "managing a manufacturing chain, a quality control location, product that you " "rent, etc." msgstr "" +"Pozwala zarzÄ
dzaÄ zaawansowanÄ
logistykÄ
z rĂłĆŒnymi strefami. MoĆŒesz " +"zdefiniowaÄ, wedĆug produktu: domyĆlnÄ
strefÄ, ĆcieĆŒkÄ stref dla rĂłĆŒnych " +"operacji, itp. ModuĆ ten jest zwykle stosowany do: lokalizacji produktĂłw, " +"zarzÄ
dzania ĆaĆcuchem produkcyjnym, stref kontroli jakoĆci, produktĂłw " +"wypoĆŒyczanych, itp." #. module: profile_manufacturing #: view:profile.manufacturing.config.install_modules_wizard:0 msgid "Cancel" -msgstr "" +msgstr "Anuluj" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,point_of_sale:0 msgid "Point of Sale" -msgstr "" +msgstr "Punkt sprzedaĆŒy" #. module: profile_manufacturing #: field:profile.manufacturing.config.install_modules_wizard,stock_location:0 msgid "Advanced Locations" -msgstr "" +msgstr "Zaawansowane strefy" diff --git a/addons/project/i18n/pl.po b/addons/project/i18n/pl.po index cd6839344dc..a10b7348ccb 100644 --- a/addons/project/i18n/pl.po +++ b/addons/project/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-05-13 17:05+0000\n" +"PO-Revision-Date: 2010-05-25 15:03+0000\n" "Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-05-14 04:55+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: project @@ -1130,7 +1130,7 @@ msgstr "BĆÄ
d ! Nie moĆŒesz tworzyÄ rekurencyjnych projektĂłw." #. module: project #: field:project.task,date_deadline:0 msgid "Deadline" -msgstr "Ostateczny czas ukoĆczenia" +msgstr "Termin" #. module: project #: wizard_field:project.task.delegate,init,user_id:0 diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 8b65468c158..2228aa7aa11 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -122,7 +122,7 @@ <field name="user_id" string="Project Manager" default="1"/> <field name="partner_id" string="Partner"/> </group> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..." colspan="4" col="20" groups="base.group_extended"> <filter string="Users" name="Users" icon="terp-project" domain = "[]" context="{'group_by':'user_id'}"/> <filter string="Partner" name="Partner" icon="terp-project" domain = "[]" context="{'group_by':'partner_id'}"/> </group> diff --git a/addons/project/report/project_report_view.xml b/addons/project/report/project_report_view.xml index 542bfec9490..919bfc2865e 100644 --- a/addons/project/report/project_report_view.xml +++ b/addons/project/report/project_report_view.xml @@ -55,10 +55,10 @@ <field name="arch" type="xml"> <search string="Tasks Analysis"> <group> - <filter icon="terp-project" string="Last 365 Days" + <filter icon="gtk-media-rewind" string="Last 365 Days" domain="[('date_start','<=', time.strftime('%%Y-%%m-%%d')),('date_start','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" help="Tasks performed in last 365 Days"/> - <filter icon="terp-project" string="Last 30 Days" + <filter icon="gtk-media-rewind" string="Last 30 Days" name="month" domain="[('date_start','<=', time.strftime('%%Y-%%m-%%d')), ('date_start','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" help="Tasks performed in last 30 days"/> @@ -98,26 +98,11 @@ </field> <field name="project_id" widget="selection"> <filter icon="terp-project" - string="My Task" - help="My Tasks" + string="My Projects" + help="My Projects" domain="[('project_id','=',context.get('project_id', False)]"/> - <filter icon="terp-project" - string="Non assigned tasks to projects" - help ="Non assigned tasks to projects" - domain="[('project_id','=',False"/> </field> </group> - <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="type" widget="selection"/> - <separator orientation="vertical"/> - <field name="date_start"/> - <field name="date_deadline"/> - <separator orientation="vertical"/> - <field name="priority"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> - </group> - <newline/> <group expand="1" string="Group By..." colspan="10" col="11"> <filter string="User" name="User" icon="terp-project" context="{'group_by':'user_id'}" /> <filter string="Project" icon="terp-project" context="{'group_by':'project_id'}"/> @@ -133,6 +118,16 @@ <filter string="Month" icon="terp-project" context="{'group_by':'month'}"/> <filter string="Year" icon="terp-project" context="{'group_by':'year'}"/> </group> + <newline/> + <group expand="0" string="Extended options..." colspan="10" col="12" groups="base.group_extended"> + <field name="type" widget="selection"/> + <separator orientation="vertical"/> + <field name="date_start"/> + <field name="date_deadline"/> + <separator orientation="vertical"/> + <field name="priority"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + </group> </search> </field> </record> diff --git a/addons/project_gtd/i18n/pl.po b/addons/project_gtd/i18n/pl.po index 068c42bee8d..39c8b03565e 100644 --- a/addons/project_gtd/i18n/pl.po +++ b/addons/project_gtd/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-12-22 14:25+0000\n" +"PO-Revision-Date: 2010-05-25 10:02+0000\n" "Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:15+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: project_gtd @@ -37,7 +37,7 @@ msgstr "" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.act_timebox_tasks_my_deadline_open msgid "My Deadlines" -msgstr "" +msgstr "Moje terminy" #. module: project_gtd #: selection:project.gtd.timebox,type:0 @@ -83,7 +83,7 @@ msgstr "NieprawidĆowa nazwa modelu w definicji akcji." #. module: project_gtd #: field:project.gtd.timebox,context4_id:0 msgid "Context 4" -msgstr "" +msgstr "Kontekst 4" #. module: project_gtd #: wizard_field:project.gtd.timebox.fill,init,timebox_to_id:0 @@ -110,7 +110,7 @@ msgstr "" #. module: project_gtd #: model:ir.module.module,shortdesc:project_gtd.module_meta_information msgid "Getting Things Done - Time Management Module" -msgstr "" +msgstr "GTD - personalny moduĆ zarzÄ
dzania czasem" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.act_timebox_tasks @@ -140,7 +140,7 @@ msgstr "" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.act_timebox_tasks_my_pending msgid "My Pending Tasks" -msgstr "" +msgstr "Moje zadania oczekujÄ
ce" #. module: project_gtd #: view:project.gtd.timebox:0 @@ -166,17 +166,17 @@ msgstr "" #. module: project_gtd #: field:project.gtd.timebox,context1_id:0 msgid "Context 1" -msgstr "" +msgstr "Kontekst 1" #. module: project_gtd #: field:project.gtd.timebox,context2_id:0 msgid "Context 2" -msgstr "" +msgstr "Kontekst 2" #. module: project_gtd #: field:project.gtd.timebox,context3_id:0 msgid "Context 3" -msgstr "" +msgstr "Kontekst 3" #. module: project_gtd #: wizard_button:project.gtd.timebox.fill,init,process:0 @@ -186,12 +186,12 @@ msgstr "" #. module: project_gtd #: field:project.gtd.timebox,context5_id:0 msgid "Context 5" -msgstr "" +msgstr "Kontekst 5" #. module: project_gtd #: field:project.gtd.timebox,context6_id:0 msgid "Context 6" -msgstr "" +msgstr "Kontekst 6" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.open_gtd_context_tree @@ -244,18 +244,18 @@ msgstr "Kontekst" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.act_timebox_tasks_my_open msgid "My Open Tasks" -msgstr "" +msgstr "Moje otwarte zadania" #. module: project_gtd #: model:ir.ui.menu,name:project_gtd.menu_open_gtd_time #: model:ir.ui.menu,name:project_gtd.menu_open_time msgid "Time Management" -msgstr "" +msgstr "ZarzÄ
dzanie czasem" #. module: project_gtd #: view:project.task:0 msgid "Getting Things Done" -msgstr "" +msgstr "GTD - planowanie osobiste" #. module: project_gtd #: field:project.gtd.timebox,task1_ids:0 diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index 68f58c78edb..fe03a6572fc 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -203,7 +203,7 @@ <field name="project_id" select="1" widget="selection" string="Project"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="16"> + <group expand="1" string="Group By..." colspan="16" groups="base.group_extended"> <filter string="Stage" icon="terp-crm" domain="[]" context="{'group_by':'stage_id'}" /> <filter string="Priority" icon="terp-crm" domain="[]" diff --git a/addons/project_issue/report/project_issue_report_view.xml b/addons/project_issue/report/project_issue_report_view.xml index 5729698392f..5694d33993b 100644 --- a/addons/project_issue/report/project_issue_report_view.xml +++ b/addons/project_issue/report/project_issue_report_view.xml @@ -96,38 +96,6 @@ <field name="user_id" select="1" widget="selection"/> </group> <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> - <filter icon="terp-sale" - string="Done" - domain="[('state','=','done')]"/> - - <filter icon="terp-sale" - string="Cancel" - domain="[('state','=','cancel')]"/> - <group> - <separator orientation="vertical"/> - <field name="project_id" widget="selection" /> - <field name="priority" /> - <separator orientation="vertical"/> - <field name="type_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/> - <field name="task_id"/> - <separator orientation="vertical"/> - <field name="assigned_to" widget="selection"> - <filter icon="terp-crm" help = "Project Issue Assigned To Me" domain="[('assigned_to','=',uid)]" /> - <filter icon="terp-crm" help="Non Assigned Project Issue" domain="[('assigned_to','=',False)]"/> - </field> - <newline/> - <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/> - <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]" /> - <separator orientation="vertical"/> - <field name="partner_id" /> - <field name="canal_id" widget="selection"/> - <separator orientation="vertical"/> - <field name="date_closed" string="Date Closed"/> - </group> - - </group> - <newline/> <group expand="1" string="Group By..." colspan="4" col="8"> <filter string="User" name="User" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}" /> @@ -146,7 +114,7 @@ <filter string="Category" icon="terp-sale" domain="[]" context="{'group_by':'categ_id'}" /> - + <filter string="Stage" icon="terp-sale" domain="[]" context="{'group_by':'stage_id'}"/> <separator orientation="vertical"/> <filter string="Project" icon="terp-sale" domain="[]" context="{'group_by':'project_id'}" /> @@ -158,7 +126,7 @@ <filter string="Assigned To" icon="terp-sale" domain="[]" context="{'group_by':'assigned_to'}"/> <filter string="Partner" icon="terp-sale" domain="[]" context="{'group_by':'partner_id'}"/> <filter string="Channel" icon="terp-sale" domain="[]" context="{'group_by':'canal_id'}"/> - + <separator orientation="vertical" /> <filter string="Day" icon="terp-sale" domain="[]" context="{'group_by':'day'}"/> @@ -170,6 +138,38 @@ domain="[]" context="{'group_by':'name'}" /> </group> + <newline/> + <group expand="0" string="Extended options..." colspan="10" col="12" groups="base.group_extended"> + <filter icon="terp-sale" + string="Done" + domain="[('state','=','done')]"/> + + <filter icon="terp-sale" + string="Cancel" + domain="[('state','=','cancel')]"/> + <group> + <separator orientation="vertical"/> + <field name="project_id" widget="selection" /> + <field name="priority" /> + <separator orientation="vertical"/> + <field name="type_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/> + <field name="task_id"/> + <separator orientation="vertical"/> + <field name="assigned_to" widget="selection"> + <filter icon="terp-crm" help = "Project Issue Assigned To Me" domain="[('assigned_to','=',uid)]" /> + <filter icon="terp-crm" help="Non Assigned Project Issue" domain="[('assigned_to','=',False)]"/> + </field> + <newline/> + <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/> + <field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]" /> + <separator orientation="vertical"/> + <field name="partner_id" /> + <field name="canal_id" widget="selection"/> + <separator orientation="vertical"/> + <field name="date_closed" string="Date Closed"/> + </group> + + </group> </search> </field> </record> diff --git a/addons/project_issue_sheet/project_issue_sheet.py b/addons/project_issue_sheet/project_issue_sheet.py index 353fe6c28c1..c48ff73b0f0 100644 --- a/addons/project_issue_sheet/project_issue_sheet.py +++ b/addons/project_issue_sheet/project_issue_sheet.py @@ -34,13 +34,11 @@ from tools.translate import _ class project_issue(osv.osv): _inherit = 'project.issue' - _columns = { 'timesheet_ids' : fields.one2many('hr.analytic.timesheet', 'issue_id', 'Timesheets'), - 'analytic_account_id' : fields.many2one('account.analytic.account', 'Analytic Account', - domain="[('partner_id', '=', partner_id)]", - required=True), + 'analytic_account_id': fields.related('project_id','category_id',string='Analytic Account') } +project_issue() class account_analytic_line(osv.osv): _inherit = 'account.analytic.line' @@ -53,10 +51,8 @@ account_analytic_line() class hr_analytic_issue(osv.osv): _inherit = 'hr.analytic.timesheet' - _columns = { 'issue_id' : fields.many2one('project.issue', 'Issue'), } - hr_analytic_issue() diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml index 2ed2e7fbdcc..12171d0a429 100644 --- a/addons/project_issue_sheet/project_issue_sheet_view.xml +++ b/addons/project_issue_sheet/project_issue_sheet_view.xml @@ -9,11 +9,11 @@ <field name="arch" type="xml"> <notebook colspan="4"> <page string="Worklogs"> - <separator string="Timesheets" colspan="4" /> + <field name="analytic_account_id" invisible="1"/> <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}"> <tree editable="top" string="Timesheet"> - <field name="create_date" string="Date" /> - <field name="user_id" readonly="1" /> + <field name="date"/> + <field name="user_id"/> <field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/> <field name="name"/> <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" widget="float_time"/> diff --git a/addons/project_long_term/project_long_term_view.xml b/addons/project_long_term/project_long_term_view.xml index fafc2a14aa4..68acf499551 100644 --- a/addons/project_long_term/project_long_term_view.xml +++ b/addons/project_long_term/project_long_term_view.xml @@ -208,7 +208,7 @@ <field name="date_start"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..." colspan="4" col="20" groups="base.group_extended"> <filter string="Project" icon="terp-project" domain="[]" context="{'group_by':'project_id'}"/> <filter string="State" icon="terp-project" domain="[]" context="{'group_by':'state'}"/> <filter string="User" icon="terp-project" domain="[]" context="{'group_by':'responsible_id'}"/> diff --git a/addons/project_mrp/i18n/pl.po b/addons/project_mrp/i18n/pl.po index 22c5097c897..4a9dba81362 100644 --- a/addons/project_mrp/i18n/pl.po +++ b/addons/project_mrp/i18n/pl.po @@ -7,19 +7,19 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-12-10 21:08+0000\n" +"PO-Revision-Date: 2010-05-25 15:08+0000\n" "Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:13+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: project_mrp #: model:process.node,note:project_mrp.process_node_procuretasktask0 msgid "For each product, on type service and on order" -msgstr "" +msgstr "Dla kaĆŒdego produktu o typie usĆuga i na zamĂłwienie" #. module: project_mrp #: model:process.node,name:project_mrp.process_node_mrptask0 @@ -31,7 +31,7 @@ msgstr "Zadanie" #: model:process.transition,note:project_mrp.process_transition_ordertask0 msgid "If procure method is Make to order and supply method is produce" msgstr "" -"JeĆli metoda nabycia jest \"Na zamĂłwienie' i metoda zaopatrzenia jest " +"JeĆli metoda nabycia jest 'Na zamĂłwienie' i metoda zaopatrzenia jest " "'Produkcja'" #. module: project_mrp @@ -57,29 +57,29 @@ msgstr "ZarzÄ
dzanie projektami - Integracja ze sprzedaĆŒÄ
i MRP" #. module: project_mrp #: model:process.transition,name:project_mrp.process_transition_procuretask0 msgid "Procure Task" -msgstr "" +msgstr "UtwĂłrz zadanie" #. module: project_mrp #: model:process.node,note:project_mrp.process_node_mrptask0 msgid "A task is created to provide the service." -msgstr "" +msgstr "Utworzono zadanie dla wykonywanej usĆugi" #. module: project_mrp #: model:process.transition,name:project_mrp.process_transition_ordertask0 msgid "Order Task" -msgstr "" +msgstr "ZamĂłw zadanie" #. module: project_mrp #: model:process.node,name:project_mrp.process_node_saleordertask0 msgid "Sale Order Task" -msgstr "" +msgstr "Zadanie do zamĂłwienia sprzedaĆŒy" #. module: project_mrp #: model:process.transition,name:project_mrp.process_transition_createtask0 msgid "Create Task" -msgstr "" +msgstr "UtwĂłrz zadanie" #. module: project_mrp #: model:process.node,note:project_mrp.process_node_saleordertask0 msgid "In case you sell services on sale order" -msgstr "" +msgstr "W przypadku sprzedaĆŒy usĆug na zamĂłwienie sprzedaĆŒy" diff --git a/addons/project_timesheet/i18n/pl.po b/addons/project_timesheet/i18n/pl.po index 6d000c26b4f..79ee7725dc6 100644 --- a/addons/project_timesheet/i18n/pl.po +++ b/addons/project_timesheet/i18n/pl.po @@ -7,21 +7,21 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-09-08 15:12+0000\n" -"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" +"PO-Revision-Date: 2010-05-25 15:04+0000\n" +"Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:16+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: project_timesheet #: model:ir.module.module,shortdesc:project_timesheet.module_meta_information msgid "Project Timesheet" -msgstr "" +msgstr "Karta czasu pracy projektu" #. module: project_timesheet #: field:project.task.work,hr_analytic_timesheet_id:0 msgid "Related Timeline Id" -msgstr "" +msgstr "ID zwiÄ
zanej karty czasu pracy" diff --git a/addons/project_timesheet/report/task_report_view.xml b/addons/project_timesheet/report/task_report_view.xml index 7093582d7fc..35a7c9f3de6 100644 --- a/addons/project_timesheet/report/task_report_view.xml +++ b/addons/project_timesheet/report/task_report_view.xml @@ -78,7 +78,7 @@ <field name="project_id" select="1"/> <field name="user_id" select="1" widget="selection"/> <newline/> - <group expand="1" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Extended filters..." colspan="10" col="12" groups="base.group_extended"> <filter icon="terp-project" string="Very urgent" domain="[('priority','=','0')]"/> @@ -96,7 +96,7 @@ domain="[('priority','=','4')]"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="10" col="11"> + <group expand="1" string="Group By..." colspan="10" col="11" groups="base.group_extended"> <filter string="User" icon="terp-project" context="{'group_by':'user_id'}" /> <filter string="Project" icon="terp-project" context="{'group_by':'project_id'}" /> <filter string="Company" icon="terp-project" context="{'group_by':'company_id'}" /> diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 8f76d4b409b..8aa643d1c43 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -163,7 +163,7 @@ <field name="create_uid" select="1" widget="selection"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="10"> + <group expand="1" string="Group By..." colspan="4" col="10" groups="base.group_extended"> <filter string="Supplier" icon="terp-purchase" domain="[]" context="{'group_by':'partner_id'}"/> <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/> <filter string="Order Date" icon="terp-purchase" domain="[]" context="{'group_by':'date_order'}"/> diff --git a/addons/purchase/report/purchase_report_view.xml b/addons/purchase/report/purchase_report_view.xml index 49caced7a6b..0cfc357b51f 100644 --- a/addons/purchase/report/purchase_report_view.xml +++ b/addons/purchase/report/purchase_report_view.xml @@ -88,7 +88,29 @@ <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="Company" icon="terp-purchase" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <filter string="Warehouse" icon="terp-purchase" context="{'group_by':'warehouse_id'}"/> + <filter string="Location" icon="terp-purchase" context="{'group_by':'location_id'}"/> + <separator orientation="vertical"/> + <filter string="Responsible" name="Responsible" icon="terp-purchase" context="{'group_by':'user_id'}"/> + <filter string="Pricelist" icon="terp-purchase" context="{'group_by':'pricelist_id'}"/> + <filter string="Validated by" icon="terp-purchase" context="{'group_by':'validator'}"/> + <separator orientation="vertical"/> + <filter string="Address Contact Name" icon="terp-purchase" context="{'group_by':'partner_address_id'}"/> + <filter string="Dest. Contact Name" icon="terp-purchase" context="{'group_by':'dest_address_id'}"/> + <filter string="Product" icon="terp-purchase" context="{'group_by':'product_id'}"/> + <separator orientation="vertical"/> + <filter string="Supplier" name="partner_id" icon="terp-purchase" context="{'group_by':'partner_id'}"/> + <filter string="State" icon="terp-purchase" context="{'group_by':'state'}"/> + <filter string="Fiscal Position" icon="terp-purchase" context="{'group_by':'fiscal_position'}"/> + <newline/> + <filter string="Day" icon="terp-purchase" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-purchase" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-purchase" context="{'group_by':'name'}"/> + </group> + <newline/> + <group expand="0" string="Extended filters..." colspan="10" col="12" groups="base.group_extended"> <filter icon="terp-purchase" string="Shipping Exception" domain="[('state','=','shipping_except')]"/> <filter icon="terp-purchase" string="Done" domain="[('state','=','done')]"/> <separator orientation="vertical"/> @@ -113,28 +135,6 @@ <newline/> <field name="date"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="Company" icon="terp-purchase" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <filter string="Warehouse" icon="terp-purchase" context="{'group_by':'warehouse_id'}"/> - <filter string="Location" icon="terp-purchase" context="{'group_by':'location_id'}"/> - <separator orientation="vertical"/> - <filter string="Responsible" name="Responsible" icon="terp-purchase" context="{'group_by':'user_id'}"/> - <filter string="Pricelist" icon="terp-purchase" context="{'group_by':'pricelist_id'}"/> - <filter string="Validated by" icon="terp-purchase" context="{'group_by':'validator'}"/> - <separator orientation="vertical"/> - <filter string="Address Contact Name" icon="terp-purchase" context="{'group_by':'partner_address_id'}"/> - <filter string="Dest. Contact Name" icon="terp-purchase" context="{'group_by':'dest_address_id'}"/> - <filter string="Product" icon="terp-purchase" context="{'group_by':'product_id'}"/> - <separator orientation="vertical"/> - <filter string="Supplier" name="partner_id" icon="terp-purchase" context="{'group_by':'partner_id'}"/> - <filter string="State" icon="terp-purchase" context="{'group_by':'state'}"/> - <filter string="Fiscal Position" icon="terp-purchase" context="{'group_by':'fiscal_position'}"/> - <newline/> - <filter string="Day" icon="terp-purchase" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-purchase" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-purchase" context="{'group_by':'name'}"/> - </group> </search> </field> </record> diff --git a/addons/purchase_requisition/purchase_requisition_view.xml b/addons/purchase_requisition/purchase_requisition_view.xml index 72f11069fcf..4a4587f5f04 100644 --- a/addons/purchase_requisition/purchase_requisition_view.xml +++ b/addons/purchase_requisition/purchase_requisition_view.xml @@ -127,7 +127,7 @@ <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="10"> + <group expand="1" string="Group By..." colspan="4" col="10" groups="base.group_extended"> <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/> <separator orientation="vertical"/> <filter string="Date Start" icon="terp-purchase" domain="[]" context="{'group_by':'date_start'}"/> diff --git a/addons/report_analytic/i18n/pl.po b/addons/report_analytic/i18n/pl.po index 906dafc61c1..f3004d61990 100644 --- a/addons/report_analytic/i18n/pl.po +++ b/addons/report_analytic/i18n/pl.po @@ -7,19 +7,19 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-09-08 16:36+0000\n" -"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" +"PO-Revision-Date: 2010-05-25 16:48+0000\n" +"Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 03:59+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: report_analytic #: model:ir.model,name:report_analytic.model_report_analytic_account_close msgid "Analytic account to close" -msgstr "" +msgstr "Konto analityczne do zamkniÄcia" #. module: report_analytic #: constraint:ir.model:0 @@ -32,7 +32,7 @@ msgstr "" #. module: report_analytic #: field:report.analytic.account.close,quantity_max:0 msgid "Max. Quantity" -msgstr "" +msgstr "Maksymalna iloĆÄ" #. module: report_analytic #: constraint:ir.ui.view:0 @@ -42,27 +42,27 @@ msgstr "XML niewĆaĆciwy dla tej architektury wyĆwietlania!" #. module: report_analytic #: field:report.analytic.account.close,name:0 msgid "Analytic account" -msgstr "" +msgstr "Konto analityczne" #. module: report_analytic #: field:report.analytic.account.close,state:0 msgid "State" -msgstr "" +msgstr "Stan" #. module: report_analytic #: field:report.analytic.account.close,date_deadline:0 msgid "Deadline" -msgstr "" +msgstr "Termin" #. module: report_analytic #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "NieprawidĆowa nazwa modelu w definicji akcji." #. module: report_analytic #: model:ir.module.module,shortdesc:report_analytic.module_meta_information msgid "Analytic Account Reporting" -msgstr "" +msgstr "Raportowanie kont analitycznych" #. module: report_analytic #: field:report.analytic.account.close,partner_id:0 @@ -72,16 +72,16 @@ msgstr "" #. module: report_analytic #: field:report.analytic.account.close,balance:0 msgid "Balance" -msgstr "" +msgstr "Saldo" #. module: report_analytic #: model:ir.actions.act_window,name:report_analytic.action_analytic_account_tree #: model:ir.ui.menu,name:report_analytic.menu_action_analytic_account_tree #: view:report.analytic.account.close:0 msgid "Expired analytic accounts" -msgstr "" +msgstr "Konta analityczne przeterminowane" #. module: report_analytic #: field:report.analytic.account.close,quantity:0 msgid "Quantity" -msgstr "" +msgstr "IloĆÄ" diff --git a/addons/resource/resource_view.xml b/addons/resource/resource_view.xml index 68cd5ccbe9b..579f6976814 100644 --- a/addons/resource/resource_view.xml +++ b/addons/resource/resource_view.xml @@ -14,10 +14,10 @@ <field name="name"/> <field name="user_id" string="User" widget="selection"/> <field name="resource_type"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..." colspan="4" col="20" groups="base.group_extended"> <filter string="Type" icon="terp-project" domain="[]" context="{'group_by':'resource_type'}"/> <filter string="Company" icon="terp-project" domain="[]" context="{'group_by':'company_id'}"/> <filter string="User" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/> @@ -36,7 +36,7 @@ <group col='15' colspan='4'> <field name="name" string="Name"/> <field name="manager" widget="selection"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> </search> </field> @@ -50,13 +50,14 @@ <search string="Search Working Period Leaves"> <group col='15' colspan='4'> <field name="name" string="Name"/> - <field name="company_id" string="Company" widget="selection"/> + <field name="company_id" string="Company" widget="selection" /> <field name="calendar_id" string="Working Time" widget="selection"/> <field name="resource_id" string="Resource" widget="selection"/> </group> <newline/> <group expand="1" string="Group By..." colspan="4" col="20"> - <filter string="Resource" icon="terp-project" domain="[]" context="{'group_by':'resource_id'}"/> + <filter string="Resouce" icon="terp-project" domain="[]" context="{'group_by':'resource_id'}"/> + <filter string="Company" icon="terp-project" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> </group> </search> </field> @@ -70,7 +71,7 @@ <form string="Working Period"> <field name="name" select="1"/> <field name="manager" select="1"/> - <field name="company_id" select="1"/> + <field name="company_id" select="1" groups="base.group_multi_company"/> <newline/> <field colspan="4" name="week_id" nolabel="1" widget="one2many_list"/> </form> @@ -85,7 +86,7 @@ <tree string="Working Period"> <field name="name"/> <field name="manager" select="1"/> - <field name="company_id" select="1"/> + <field name="company_id" select="1" groups="base.group_multi_company"/> </tree> </field> </record> @@ -162,11 +163,11 @@ <form string="Resource"> <field name="name" /> <field name="active"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> <field name="calendar_id" widget="selection"/> <field name="resource_type" /> <field name="user_id" attrs="{'required':[('resource_type','=','user')]}"/> - <field name="time_efficiency" /> + <field name="time_efficiency" groups="base.group_extended"/> </form> </field> </record> @@ -177,10 +178,10 @@ <field name="arch" type="xml"> <tree string="Resources"> <field name="name" /> - <field name="company_id" /> + <field name="company_id" groups="base.group_multi_company"/> <field name="resource_type" /> <field name="calendar_id" /> - <field name="time_efficiency" /> + <field name="time_efficiency" groups="base.group_extended"/> <field name="user_id" /> </tree> </field> @@ -200,7 +201,7 @@ <field name="arch" type="xml"> <form string="Leave Detail"> <field name="name"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> <field name="calendar_id"/> <field name="resource_id" on_change="onchange_resource(resource_id)"/> <newline/> @@ -216,7 +217,7 @@ <field name="arch" type="xml"> <tree string="Leave Detail"> <field name="name" /> - <field name="company_id"/> + <field name="company_id" groups="base.group_multi_company"/> <field name="calendar_id" /> <field name="date_from" /> <field name="date_to" /> diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index c8b616ced78..e713c479f72 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -36,16 +36,15 @@ class sale_report(osv.osv): ('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True), 'day': fields.char('Day', size=128, readonly=True), 'product_id':fields.many2one('product.product', 'Product', readonly=True), - 'product_qty':fields.float('Qty', readonly=True), + 'product_qty':fields.float('# of Qty', readonly=True), 'partner_id':fields.many2one('res.partner', 'Partner', readonly=True), 'shop_id':fields.many2one('sale.shop', 'Shop', readonly=True), 'company_id':fields.many2one('res.company', 'Company', readonly=True), - 'payment_term': fields.many2one('account.payment.term', 'Payment Term',readonly=True), - 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position',readonly=True), 'user_id':fields.many2one('res.users', 'Salesman', readonly=True), 'price_total':fields.float('Total Price', readonly=True), - 'delay':fields.float('Avg Closing Days', digits=(16,2), readonly=True), + 'delay':fields.float('Days to Close', digits=(16,2), readonly=True), 'price_average':fields.float('Average Price', readonly=True), + 'categ_id': fields.many2one('product.category','Category of Product', readonly=True), 'nbr':fields.integer('# of Lines', readonly=True), 'state': fields.selection([ ('draft', 'Quotation'), @@ -57,12 +56,8 @@ class sale_report(osv.osv): ('done', 'Done'), ('cancel', 'Cancelled') ], 'Order State', readonly=True), - 'partner_invoice_id': fields.many2one('res.partner.address', 'Invoice Address Name', readonly=True), - 'partner_order_id': fields.many2one('res.partner.address', 'Ordering Contact Name', readonly=True), - 'partner_shipping_id': fields.many2one('res.partner.address', 'Shipping Address Name', readonly=True), - 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True), + 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', readonly=True), 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account', readonly=True), - 'date_confirm': fields.date('Confirmation Date', readonly=True) } _order = 'date desc' def init(self, cr): @@ -80,42 +75,32 @@ class sale_report(osv.osv): s.partner_id as partner_id, s.user_id as user_id, s.shop_id as shop_id, - s.fiscal_position as fiscal_position, - s.payment_term as payment_term, s.company_id as company_id, extract(epoch from avg(s.date_confirm-s.create_date))/(24*60*60)::decimal(16,2) as delay, sum(l.product_uom_qty*l.price_unit) as price_total, (sum(l.product_uom_qty*l.price_unit)/sum(l.product_uom_qty * u.factor))::decimal(16,2) as price_average, count(*) as nbr, s.state, - s.partner_invoice_id as partner_invoice_id, - s.partner_order_id as partner_order_id, - s.partner_shipping_id as partner_shipping_id, + pt.categ_id, s.pricelist_id as pricelist_id, - s.project_id as analytic_account_id, - s.date_confirm as date_confirm + s.project_id as analytic_account_id from sale_order_line l - left join - sale_order s on (s.id=l.order_id) - left join product_uom u on (u.id=l.product_uom) + left join sale_order s on (s.id=l.order_id) + left join product_uom u on (u.id=l.product_uom) + left join product_template pt on (pt.id=l.product_id) group by s.date_order, s.partner_id, l.product_id, l.product_uom, s.user_id, + pt.categ_id, s.state, s.shop_id, s.company_id, - s.fiscal_position, - s.payment_term, - s.partner_invoice_id, - s.partner_order_id, - s.partner_shipping_id, s.pricelist_id, - s.project_id, - s.date_confirm + s.project_id ) """) sale_report() @@ -212,7 +197,7 @@ class product_bought_by_sale_order(osv.osv): where s.state='manual' or s.state='progress' group by - l.product_id, to_char(l.create_date, 'MM'), to_char(l.create_date, 'YYYY') + l.product_id, to_char(l.create_date, 'MM'), to_char(l.create_date, 'YYYY') ) """) product_bought_by_sale_order() diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml index fe88fa33555..2fca6dedd5a 100644 --- a/addons/sale/report/sale_report_view.xml +++ b/addons/sale/report/sale_report_view.xml @@ -1,35 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> + <record id="view_order_product_tree" model="ir.ui.view"> <field name="name">sale.report.tree</field> <field name="model">sale.report</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree string="Sales Orders Statistics"> + <tree string="Sales Analysis"> <field name="date" invisible="1"/> <field name="user_id" invisible="1"/> <field name="year" invisible="1"/> <field name="day" invisible="1"/> <field name="month" invisible="1"/> <field name="shop_id" invisible="1"/> - <field name="company_id" invisible="1"/> + <field name="company_id" invisible="1" groups="base.group_multi_company"/> <field name="partner_id" invisible="1"/> <field name="product_id" invisible="1"/> - <field name="product_qty" invisible="1"/> - <field name="delay" avg="Days to Close"/> + <field name="categ_id" invisible="1"/> <field name="nbr" sum="# of Lines"/> + <field name="product_qty" sum="# of Qty"/> <field name="price_average" avg="Average Price"/> <field name="price_total" sum="Total Price"/> + <field name="delay" avg="Days to Close"/> <field name="state" invisible="1"/> - <field name="fiscal_position" invisible="1"/> - <field name="payment_term" invisible="1"/> - <field name="partner_invoice_id" invisible="1"/> - <field name="partner_order_id" invisible="1"/> - <field name="partner_shipping_id" invisible="1"/> <field name="pricelist_id" invisible="1"/> <field name="analytic_account_id" invisible="1"/> - <field name="date_confirm" invisible="1"/> </tree> </field> </record> @@ -39,9 +35,10 @@ <field name="model">sale.report</field> <field name="type">graph</field> <field name="arch" type="xml"> - <graph string="Sales Orders Statistics" type="bar"> + <graph string="Sales Analysis" type="bar"> <field name="product_id"/> <field name="price_total"/> + <field name="state" group="True"/> </graph> </field> </record> @@ -51,43 +48,58 @@ <field name="model">sale.report</field> <field name="type">search</field> <field name="arch" type="xml"> - <search string="Sale Orders"> + <search string="Sales Analysis"> <group> - <filter icon="terp-sale" string="This Year" - domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" - help="Tasks performed in this year"/> - <filter icon="terp-sale" string="This Month" - name="month" - domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" - help="Tasks performed in this month"/> + <filter icon="gtk-media-rewind" string="Last 365 Days" + domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" + help="Tasks performed in last 365 days"/> + <filter icon="gtk-media-rewind" string="Last 30 Days" + name="month" + domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" + help="Tasks performed in last 30 days"/> <filter icon="gtk-media-rewind" - string=" 7 Days " - separator="1" - domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" - help="Tasks during last 7 days"/> + string=" 7 Days " + separator="1" + domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" + help="Tasks during last 7 days"/> <separator orientation="vertical"/> <filter icon="terp-sale" - string="Quotations" - domain="[('state','=','draft')]"/> + string="Quotations" + domain="[('state','=','draft')]"/> <filter icon="terp-sale" - string="Waiting Schedule" - domain="[('state','=','waiting_date')]"/> - <filter icon="terp-sale" - string="In progress" - domain="[('state','=','progress')]"/> - + string="Sales" + domain="[('state','not in',('draft','done','cancel'))]"/> <separator orientation="vertical"/> + <field name="partner_id"/> + <field name="product_id"/> <field name="user_id" widget="selection"> <filter icon="terp-sale" - string="sale Non User" - help="sale Non User" - domain="[('user_id','=',False)]"/> + string="My Sales" + help="My Sales" + domain="[('user_id','=',uid)]"/> </field> - <field name="partner_id"/> - <field name="product_id"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..." colspan="10" col="12"> + <filter string="Salesman" icon="terp-sale" name="User" context="{'group_by':'user_id'}"/> + <filter string="Shop" icon="terp-sale" context="{'group_by':'shop_id'}"/> + <filter string="Company" icon="terp-sale" groups="base.group_multi_company" context="{'group_by':'company_id'}"/> + <separator orientation="vertical"/> + <filter string="Product" icon="terp-sale" context="{'group_by':'product_id'}"/> + <filter string="Partner" icon="terp-sale" context="{'group_by':'partner_id'}"/> + <filter string="State" icon="terp-sale" context="{'group_by':'state'}"/> + <separator orientation="vertical"/> + <filter string="Pricelist" icon="terp-sale" context="{'group_by':'pricelist_id'}"/> + <filter string="Analytic Account" icon="terp-sale" context="{'group_by':'analytic_account_id'}"/> + <filter string="Category of Product" icon="terp-sale" context="{'group_by':'categ_id'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-sale" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-sale" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-sale" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended filters..." colspan="10" col="12" groups="base.group_extended"> <filter icon="terp-sale" string="Shipping Exception" domain="[('state','=','shipping_except')]"/> <filter icon="terp-sale" string=" Invoice Exception " domain="[('state','=','invoice_except')]"/> <separator orientation="vertical"/> @@ -110,48 +122,24 @@ <field name="date"/> <field name="date_confirm"/> </group> - <newline/> - <newline/> - <group expand="1" string="Group By..." colspan="10" col="12"> - <filter string="Company" icon="terp-sale" groups="base.group_multi_company" context="{'group_by':'company_id'}"/> - <filter string="Shop" icon="terp-sale" context="{'group_by':'shop_id'}"/> - <filter string="Salesman" icon="terp-sale" name="User" context="{'group_by':'user_id'}"/> - <filter string="Fiscal Position" icon="terp-sale" context="{'group_by':'fiscal_position'}"/> - <separator orientation="vertical"/> - <filter string="Product" icon="terp-sale" context="{'group_by':'product_id'}"/> - <filter string="Partner" icon="terp-sale" context="{'group_by':'partner_id'}"/> - <filter string="Payment Term" icon="terp-sale" context="{'group_by':'payment_term'}"/> - <filter string="State" icon="terp-sale" context="{'group_by':'state'}"/> - <separator orientation="vertical"/> - <filter string="Pricelist" icon="terp-sale" context="{'group_by':'pricelist_id'}"/> - <filter string="Analytic Account" icon="terp-sale" context="{'group_by':'analytic_account_id'}"/> - <newline/> - <filter string="Invoice Address Name" icon="terp-sale" context="{'group_by':'partner_invoice_id'}"/> - <filter string="Ordering Contact Name" icon="terp-sale" context="{'group_by':'partner_order_id'}"/> - <filter string="Shipping Address Name" icon="terp-sale" context="{'group_by':'partner_shipping_id'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-sale" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-sale" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-sale" context="{'group_by':'year'}"/> - </group> </search> </field> </record> <record id="action_order_report_all" model="ir.actions.act_window"> - <field name="name">Sales Orders</field> + <field name="name">Sales Analysis</field> <field name="res_model">sale.report</field> <field name="view_type">form</field> <field name="view_mode">tree,graph</field> <field name="search_view_id" ref="view_order_product_search"/> - <field name="context">{'search_default_month':1,'search_default_User':1,'search_default_user_id':uid,'group_by_no_leaf':1,'group_by':[]}</field> + <field name="context">{'search_default_month':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[]}</field> </record> <menuitem id="base.next_id_64" name="Reporting" parent="base.menu_base_partner" sequence="8"/> <menuitem action="action_order_report_all" id="menu_report_product_all" parent="base.next_id_64" sequence="3"/> - <!-- This views used in board_sale module --> - <record id="view_sale_order_by_clients_tree" model="ir.ui.view"> + <!--This views used in board_sale module --> + <record id="view_sale_order_by_clients_tree" model="ir.ui.view"> <field name="name">sale.order.by.clients.tree</field> <field name="model">sale.order.by.clients</field> <field name="type">tree</field> @@ -216,7 +204,7 @@ <field name="view_id" ref="view_uninvoiced_lines_per_month_tree"/> </record> - <record id="view_product_bought_by_sale_order_tree" model="ir.ui.view"> + <record id="view_product_bought_by_sale_order_tree" model="ir.ui.view"> <field name="name">product.bought.by.sale.order.tree</field> <field name="model">product.bought.by.sale.order</field> <field name="type">tree</field> @@ -283,5 +271,6 @@ <field name="view_mode">tree,graph</field> <field name="view_id" ref="view_sales_by_regions_tree"/> </record> + </data> </openerp> diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 0815c74f276..356bd69f679 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -226,7 +226,7 @@ class sale_order(osv.osv): 'partner_id': fields.many2one('res.partner', 'Customer', readonly=True, states={'draft': [('readonly', False)]}, required=True, change_default=True, select=True), 'partner_invoice_id': fields.many2one('res.partner.address', 'Invoice Address', readonly=True, required=True, states={'draft': [('readonly', False)]}), 'partner_order_id': fields.many2one('res.partner.address', 'Ordering Contact', readonly=True, required=True, states={'draft': [('readonly', False)]}, help="The name and address of the contact who requested the order or quotation."), - 'partner_shipping_id': fields.many2one('res.partner.address', 'Shipping Address', readonly=True, required=True, states={'draft': [('readonly', False)]}), + 'partner_shipping_id': fields.many2one('res.partner.address', 'Shipping Address', readonly=True, required=True, states={'draft': [('readonly', False)]}, help="Shipping address for current sale order"), 'incoterm': fields.selection(_incoterm_get, 'Incoterm', size=3), 'picking_policy': fields.selection([('direct', 'Partial Delivery'), ('one', 'Complete Delivery')], @@ -242,7 +242,7 @@ class sale_order(osv.osv): - The 'Shipping & Manual Invoice' will create the picking order directly and wait for the user to manually click on the 'Invoice' button to generate the draft invoice. - The 'Invoice on Order After Delivery' choice will generate the draft invoice based on sale order after all picking lists have been finished. - The 'Invoice from the picking' choice is used to create an invoice during the picking process."""), - 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, readonly=True, states={'draft': [('readonly', False)]}), + 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Pricelist version for current sale order"), 'project_id': fields.many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)]}), 'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)]}), @@ -823,7 +823,7 @@ class sale_order_line(osv.osv): 'property_ids': fields.many2many('mrp.property', 'sale_order_line_property_rel', 'order_id', 'property_id', 'Properties', readonly=True, states={'draft':[('readonly',False)]}), 'address_allotment_id': fields.many2one('res.partner.address', 'Allotment Partner'), 'product_uom_qty': fields.float('Quantity (UoM)', digits=(16, 2), required=True, readonly=True, states={'draft':[('readonly',False)]}), - 'product_uom': fields.many2one('product.uom', 'Product UoM', required=True, readonly=True, states={'draft':[('readonly',False)]}), + 'product_uom': fields.many2one('product.uom', 'Unit of Measure ', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'product_uos_qty': fields.float('Quantity (UoS)', readonly=True, states={'draft':[('readonly',False)]}), 'product_uos': fields.many2one('product.uom', 'Product UoS'), 'product_packaging': fields.many2one('product.packaging', 'Packaging'), diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 3b6886cfacf..1d49c105f18 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -226,7 +226,7 @@ <separator string="Conditions" colspan="2"/> <field name="payment_term" widget="selection"/> <field name="fiscal_position" widget="selection"/> - <field name="company_id" widget="selection"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <group colspan="2" col="2" groups="base.group_extended"> <separator string="Dates" colspan="2"/> @@ -261,7 +261,7 @@ <field name="user_id" select="1" widget="selection"/> <field name="date_order" select="1" string="Order date" /> <newline/> - <group expand="1" string="Group By..." colspan="11" col="11"> + <group expand="1" string="Group By..." colspan="11" col="11" groups="base.group_extended"> <filter string="Customer" icon="terp-sale" domain="[]" context="{'group_by':'partner_id'}"/> <filter string="Salesman" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}"/> <separator orientation="vertical"/> @@ -381,7 +381,8 @@ <field name="delay" groups="base.group_extended"/> <field name="price_subtotal"/> <field name="th_weight"/> - <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> + <separator colspan="4" string="Taxes"/> + <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]" nolabel="1"/> <separator colspan="4" string="States"/> <field name="state"/> <button colspan="1" @@ -403,12 +404,12 @@ <!-- <page string="Properties" groups="base.group_extended">--> <!-- <field name="property_ids" nolabel="1"/>--> <!-- </page>--> - <page string="Notes"> - <field colspan="4" name="notes" nolabel="1"/> - </page> <page string="Invoice Lines" groups="base.group_extended"> <field colspan="4" name="invoice_lines" nolabel="1"/> </page> + <page string="Notes"> + <field colspan="4" name="notes" nolabel="1"/> + </page> </notebook> </form> </field> @@ -449,10 +450,14 @@ <filter icon="terp-purchase" string="Shipped" domain="[('state','=','done')]" name="unshipped" - separator="1" /> + /> <filter icon="terp-purchase" string="Uninvoiced" name="uninvoiced" - domain="[('invoiced','<>', 1),('state','<>','draft'),('state','<>','cancel')]" - separator="1" /> + domain="[('invoiced','<>', 1),('state','<>','draft'),('state','<>','cancel')]" + /> + <filter icon="terp-purchase" string="Sale Order" + domain="[('state','=','confirmed')]" + name="sale order" + /> <separator orientation="vertical"/> <field name="order_id"/> <field name="order_partner_id"/> @@ -474,7 +479,6 @@ <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,"search_default_unshipped":1}</field> <field name="search_view_id" ref="view_sales_order_uninvoiced_line_filter" /> <field name="filter" eval="True"/> </record> diff --git a/addons/scrum/scrum_view.xml b/addons/scrum/scrum_view.xml index 394ea4c4219..08c0473e31e 100644 --- a/addons/scrum/scrum_view.xml +++ b/addons/scrum/scrum_view.xml @@ -150,7 +150,7 @@ <field name="user_id" widget="selection"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="20"> + <group expand="1" string="Group By..." colspan="4" col="20" groups="base.group_extended"> <filter string="Project" icon="terp-project" domain="[]" context="{'group_by':'project_id'}"/> <filter string="Sprint" icon="terp-project" domain="[]" context="{'group_by':'sprint_id'}"/> <filter string="Responsible" icon="terp-project" domain="[]" context="{'group_by':'user_id'}"/> diff --git a/addons/stock/partner_view.xml b/addons/stock/partner_view.xml index 487dbcf55ea..be2ed4bfc55 100644 --- a/addons/stock/partner_view.xml +++ b/addons/stock/partner_view.xml @@ -14,8 +14,8 @@ <page string="Sales & Purchases" position="inside"> <group colspan="4" col="4" groups="base.group_extended"> <separator string="Stock Properties" colspan="4"/> - <field name="property_stock_customer" widget="selection" domain="[('usage','=','customer')]" /> - <field name="property_stock_supplier" widget="selection" domain="[('usage','=','supplier')]"/> + <field name="property_stock_customer" widget="selection" domain="[('usage','=','customer')]" groups="base.group_extended" /> + <field name="property_stock_supplier" widget="selection" domain="[('usage','=','supplier')]" groups="base.group_extended"/> </group> </page> </field> diff --git a/addons/stock/report/report_stock_move_view.xml b/addons/stock/report/report_stock_move_view.xml index 3a7b233504a..673fd14e76e 100755 --- a/addons/stock/report/report_stock_move_view.xml +++ b/addons/stock/report/report_stock_move_view.xml @@ -20,7 +20,7 @@ <field name="product_uom"/> <field name="state"/> <field name="value"/> - + </tree> </field> </record> @@ -75,7 +75,7 @@ icon="terp-stock" domain="[('state','=','done')]" help = "Completed Stock-Moves"/> - + <separator orientation="vertical"/> <filter icon="terp-stock" string="Internal Locations" domain="[('location_id.usage','=','internal')]"/> <filter icon="terp-stock" string="Scrap Locations" domain="[('location_id.scrap_location','=',1)]"/> @@ -83,15 +83,8 @@ <field name="product_id"/> </group> <newline/> - - <group expand="0" string="Extended options..." colspan="10" col="12"> - <field name="location_id" widget = "selection"/> - <field name="location_dest_id" widget = "selection"/> - <field name="date_planned"/> - </group> - <newline/> <group expand="1" string="Group By..." > - <filter string="Partner" name="Partner" icon="terp-stock" domain="[]" context="{'group_by':'partner_id'}"/> + <filter string="Partner" name="Partner" icon="terp-stock" domain="[]" context="{'group_by':'partner_id'}"/> <filter name="product" string="Product" icon="terp-stock" context="{'group_by':'product_id'}"/> <separator orientation="vertical"/> <filter name="src_location" string="Source Location" icon="terp-stock" context="{'group_by':'location_id'}"/> @@ -102,6 +95,13 @@ <filter string="Month" icon="terp-stock" context="{'group_by':'date_planned'}"/> <filter string="Year" icon="terp-stock" context="{'group_by':'year'}"/> </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> + <field name="location_id" widget = "selection"/> + <field name="location_dest_id" widget = "selection"/> + <field name="date_planned"/> + </group> + </search> </field> </record> @@ -118,9 +118,9 @@ <menuitem id="stock.next_id_61" name="Reporting" - parent="stock.menu_stock_root" groups="base.group_user"/> + parent="stock.menu_stock_root" groups="base.group_user"/> <menuitem action="action_stock_move_report" id="menu_action_stock_move_report" parent="next_id_61" sequence="5"/> - + </data> -</openerp>
\ No newline at end of file +</openerp> diff --git a/addons/stock/report/report_stock_picking_view.xml b/addons/stock/report/report_stock_picking_view.xml index 62d1b06fd19..c343b09931a 100644 --- a/addons/stock/report/report_stock_picking_view.xml +++ b/addons/stock/report/report_stock_picking_view.xml @@ -54,22 +54,41 @@ <field name="arch" type="xml"> <search string="Search"> <group col="16" colspan="6"> - <filter icon="terp-stock" string="Last 365 Days" + <filter icon="gtk-media-rewind" string="Last 365 Days" domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" help="Picking in last 365 days"/> - <filter icon="terp-stock" string="Last 30 Days" + <filter icon="gtk-media-rewind" string="Last 30 Days" name="month" domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" help="Picking in last 30 days"/> + <filter icon="gtk-media-rewind" + string=" 7 Days " + separator="1" + domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" + help="Picking during last 7 days"/> <separator orientation="vertical"/> <filter string="Todo" icon="terp-stock" domain="[('state','in',('draft','auto','confirmed','assigned'))]"/> <filter string="Done" icon="terp-stock" domain="[('state','=','done')]"/> <separator orientation="vertical"/> <field name="partner_id"/> - <field name="company_id" groups="base.group_extended" widget="selection"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> <newline/> - <group expand="0" string="Extended options..." colspan="10" col="12"> + <group expand="1" string="Group By..."> + <filter string="Partner" name="Partner" icon="terp-stock" domain="[]" context="{'group_by':'partner_id'}"/> + <filter string="Company" icon="terp-stock" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> + <filter string="Shipping Type" icon="terp-stock" domain="[]" context="{'group_by':'type'}"/> + <separator orientation="vertical"/> + <filter string="Product" icon="terp-stock" domain="[]" context="{'group_by':'product_id'}"/> + <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/> + <filter string="Invoice Status" icon="terp-stock" domain="[]" context="{'group_by':'invoice_state'}"/> + <separator orientation="vertical"/> + <filter string="Day" icon="terp-stock" domain="[]" context="{'group_by':'day'}"/> + <filter string="Month" icon="terp-stock" domain="[]" context="{'group_by':'month'}"/> + <filter string="Year" icon="terp-stock" domain="[]" context="{'group_by':'year'}"/> + </group> + <newline/> + <group expand="0" string="Extended options..." groups="base.group_extended"> <field name="type"/> <separator orientation="vertical"/> <field name="min_date"/> @@ -82,20 +101,7 @@ <separator orientation="vertical"/> <field name="date_done"/> </group> - <newline/> - <group expand="1" string="Group By..." colspan="4" col="5"> - <filter string="Partner" name="Partner" icon="terp-stock" domain="[]" context="{'group_by':'partner_id'}"/> - <filter string="Company" icon="terp-stock" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> - <filter string="Shipping Type" icon="terp-stock" domain="[]" context="{'group_by':'type'}"/> - <separator orientation="vertical"/> - <filter string="Product" icon="terp-stock" domain="[]" context="{'group_by':'product_id'}"/> - <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/> - <filter string="Invoice Status" icon="terp-stock" domain="[]" context="{'group_by':'invoice_state'}"/> - <separator orientation="vertical"/> - <filter string="Day" icon="terp-stock" domain="[]" context="{'group_by':'day'}"/> - <filter string="Month" icon="terp-stock" domain="[]" context="{'group_by':'month'}"/> - <filter string="Year" icon="terp-stock" domain="[]" context="{'group_by':'year'}"/> - </group> + </search> </field> </record> diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index dbb5e6430c8..a9016d7ca09 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -55,7 +55,7 @@ <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> <newline/> - <group expand="1" string="Group By..." colspan="4" col="4"> + <group expand="1" string="Group By..." colspan="4" col="4" groups="base.group_extended"> <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/> <filter string="Date" icon="terp-sale" domain="[]" context="{'group_by':'date'}"/> </group> diff --git a/addons/subscription/i18n/pl.po b/addons/subscription/i18n/pl.po index ecca1a5cb35..0fe13bd3ad7 100644 --- a/addons/subscription/i18n/pl.po +++ b/addons/subscription/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-02-20 15:53+0000\n" +"PO-Revision-Date: 2010-05-25 17:33+0000\n" "Last-Translator: Grzegorz Grzelak (Cirrus.pl) <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 03:56+0000\n" +"X-Launchpad-Export-Date: 2010-05-26 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: subscription @@ -83,7 +83,7 @@ msgstr "Pola dokumentu subskrypcji" #. module: subscription #: field:subscription.subscription,interval_number:0 msgid "Interval Qty" -msgstr "" +msgstr "Il. interwaĆ" #. module: subscription #: view:subscription.subscription:0 diff --git a/addons/wiki_sale_faq/__init__.py b/addons/wiki_sale_faq/__init__.py new file mode 100644 index 00000000000..938f045b9fd --- /dev/null +++ b/addons/wiki_sale_faq/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki_sale_faq/__openerp__.py b/addons/wiki_sale_faq/__openerp__.py new file mode 100644 index 00000000000..9619ec98f15 --- /dev/null +++ b/addons/wiki_sale_faq/__openerp__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +{ + 'name': 'Wiki -Sale - FAQ', + 'version': '1.0', + 'category': 'Generic Modules/Others', + 'description': """This module provides a wiki FAQ Template + """, + 'author': 'Tiny', + 'website': 'http://openerp.com', + 'depends': ['wiki_faq','document','crm'], + 'init_xml': [ + 'wiki_sale_faq_data.xml' + ], + 'update_xml': [ + 'wiki_sale_faq_view.xml' + ], + 'demo_xml': [ + ], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki_sale_faq/wiki_sale_faq_data.xml b/addons/wiki_sale_faq/wiki_sale_faq_data.xml new file mode 100644 index 00000000000..4a8eea1cb38 --- /dev/null +++ b/addons/wiki_sale_faq/wiki_sale_faq_data.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<openerp> + <data noupdate="1"> + <record model="document.directory" id="dir_sale"> + <field name="name">Sales Document</field> + <field name="user_id" ref="base.user_admin"/> + <field name="parent_id" ref="document.dir_root"/> + <field name="ressource_id">0</field> + </record> + + <record id="wiki_groups_sale_faq" model="wiki.groups"> + <field name="name">Sale FAQ</field> + <field name="method">list</field> + <field eval="2" name="section"/> + <field name="template">== Question == + +== Answer == + +== External Links == + + </field> + </record> + + + </data> +</openerp> diff --git a/addons/wiki_sale_faq/wiki_sale_faq_view.xml b/addons/wiki_sale_faq/wiki_sale_faq_view.xml new file mode 100644 index 00000000000..c3643bdf049 --- /dev/null +++ b/addons/wiki_sale_faq/wiki_sale_faq_view.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<openerp> + <data> + <menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1"/> + + <menuitem name="Documents" + id="menu_sales" sequence="6" + parent="base.menu_base_partner"/> + + <record model="ir.actions.act_window" id="action_document_form"> + <field name="type">ir.actions.act_window</field> + <field name="res_model">ir.attachment</field> + <field name="view_type">form</field> + <field name="domain" eval="[('parent_id','=',ref('dir_sale'))]"></field> + </record> + + <record model="ir.actions.act_window" id="action_wiki_test"> + <field name="name">Wiki Pages</field> + <field name="res_model">wiki.wiki</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form</field> + <field name="domain" eval="[('group_id','=',ref('wiki_groups_sale_faq'))]"/> + <field name="search_view_id" ref="wiki.view_wiki_filter"/> + </record> + + <menuitem + name="Documents" + action="action_document_form" + id="menu_document_files" + parent="menu_sales"/> + + <menuitem parent="menu_sales" + id="menu_action_wiki_wiki" name="FAQ" + action="action_wiki_test" /> + + + </data> +</openerp> |
