diff options
| author | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-07-20 11:42:03 +0530 |
|---|---|---|
| committer | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-07-20 11:42:03 +0530 |
| commit | ec27d7e44fab5b39ea8577de7bfa7b9f3a5b5bf2 (patch) | |
| tree | cdf1c0b60fefc14bd1769a437f9ac09b70783e1a /addons | |
| parent | c45d68d6b80c3a339463d37ecc3bbd766ef101d3 (diff) | |
| parent | 7df568d138348aa00be74340d2c5d408dd239da6 (diff) | |
[MERGE] merge with main branch
bzr revid: psi@tinyerp.com-20120720061203-c6cpwc7f8uaa939n
Diffstat (limited to 'addons')
93 files changed, 2534 insertions, 1051 deletions
diff --git a/addons/account/account.py b/addons/account/account.py index b6fd7232a25..fab9de5407c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -3351,15 +3351,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): # Create Bank journals self._create_bank_journals_from_o2m(cr, uid, obj_wizard, company_id, acc_template_ref, context=context) - action = { - 'type': 'ir.actions.act_window', - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'board.board', - 'view_id': self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'board_account_form')[1], - 'menu_id': self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'menu_finance')[1] - } - return action + return {} def _prepare_bank_journal(self, cr, uid, line, current_num, default_account_id, company_id, context=None): ''' diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index bea48528f63..927ce94db31 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -132,18 +132,18 @@ class account_cash_statement(osv.osv): for obj in self.browse(cr, uid, ids, context=context): if obj.state == 'draft': - self.search(cr, uid, - [('journal_id', '=', journal_id),('state', '=', 'confirm')], + statement_ids = self.search(cr, uid, + [('journal_id', '=', obj.journal_id.id),('state', '=', 'confirm')], order='create_date desc', limit=1, context=context ) if not statement_ids: - return result - - st = self.browse(cr, uid, statement_ids[0], context=context) - result[obj.id] = st.balance_end_real + continue + else: + st = self.browse(cr, uid, statement_ids[0], context=context) + result[obj.id] = st.balance_end_real return result diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 211a40f030f..1296d5c718a 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -177,11 +177,11 @@ domain="[('supplier', '=', True)]"/> <field name="fiscal_position" widget="selection"/> <field name="origin"/> - <label for="reference_type"/> - <div> + <label for="reference_type"/> + <div> <field name="reference_type" class="oe_inline oe_edit_only"/> <field name="reference" class="oe_inline"/> - </div> + </div> </group> <group> <field name="date_invoice"/> @@ -292,8 +292,10 @@ <form version="7.0"> <header> <span groups="base.group_user"> - <button name="action_invoice_sent" type="object" string="Send by Email" states="open" attrs="{'invisible':['|',('sent','=',True), ('state', '=', 'draft')]}" class="oe_highlight"/> - <button name="invoice_print" string="Print Invoice" type="object" states="open" attrs="{'invisible':['|',('sent','=',True), ('state', '=', 'draft')]}" class="oe_highlight"/> + <button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/> + <button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/> + <button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/> + <button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/> <button name="invoice_open" states="draft" string="Validate" class="oe_highlight"/> <button name="invoice_open" states="proforma2" string="Validate"/> <button name="invoice_proforma2" states="draft" string="PRO-FORMA" groups="account.group_proforma_invoices"/> @@ -322,11 +324,9 @@ <field name="fiscal_position" widget="selection" /> </group> <group> - <field name="date_invoice"/> <field name="journal_id" groups="account.group_account_user" on_change="onchange_journal_id(journal_id, context)" widget="selection"/> - <field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" groups="account.group_account_user"/> @@ -342,7 +342,6 @@ </group> </group> <field name="sent" invisible="1"/> - <notebook colspan="4"> <page string="Invoice Lines"> <field name="invoice_line" nolabel="1" widget="one2many_list" context="{'type': type}"/> diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml index c2275c0e461..9ac6f98661c 100644 --- a/addons/account/account_menuitem.xml +++ b/addons/account/account_menuitem.xml @@ -2,10 +2,12 @@ <openerp> <data> - <menuitem icon="terp-account" id="menu_finance" name="Invoicing" sequence="14" + <!-- Top menu item --> + <menuitem name="Invoicing" + id="menu_finance" groups="group_account_user,group_account_manager,group_account_invoice" - web_icon="images/accounting.png" - web_icon_hover="images/accounting-hover.png"/> + sequence="100"/> + <menuitem id="menu_finance_receivables" name="Customers" parent="menu_finance" sequence="2"/> <menuitem id="menu_finance_payables" name="Suppliers" parent="menu_finance" sequence="3"/> <menuitem id="menu_finance_bank_and_cash" name="Bank and Cash" parent="menu_finance" sequence="4" diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index d6650ce4999..1e1f7b91851 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -17,7 +17,6 @@ <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/> <field name="state" widget="statusbar" nolabel="1" /> </header> - <sheet string="Fiscalyear" > <group> <group> <field name="name"/> @@ -38,10 +37,10 @@ <field name="date_start"/> <field name="date_stop"/> <field name="special"/> + <field name="state" invisible="1"/> </group> </form> </field> - </sheet> </form> </field> </record> @@ -99,21 +98,28 @@ <field name="type">form</field> <field name="arch" type="xml"> <form version="7.0"> - <header> - <button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/> - <field name="state" widget="statusbar" nolabel="1"/> - </header> - <sheet> - <group col="4"> - <field name="name"/> - <field name="code"/> - <field name="date_start"/> - <field name="date_stop"/> - <field name="company_id" widget="selection" groups="base.group_multi_company"/> - <field name="fiscalyear_id" widget="selection"/> - <field name="special"/> - </group> - </sheet> + <header> + <button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/> + <field name="state" widget="statusbar" nolabel="1"/> + </header> + <sheet> + <group> + <group> + <field name="name"/> + <field name="fiscalyear_id" widget="selection"/> + <label for="date_start" string="Duration"/> + <div> + <field name="date_start" class="oe_inline" nolabel="1"/> - + <field name="date_stop" nolabel="1" class="oe_inline"/> + </div> + </group> + <group> + <field name="code"/> + <field name="special"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> + </group> + </group> + </sheet> </form> </field> </record> @@ -463,62 +469,59 @@ <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> - <label for="type" class="oe_edit_only"/> - <h2><field name="type" on_change="onchange_type(type, currency, context)"/></h2> </div> - <notebook> - <page string="Journal Configuration"> + <group> <group> + <field name="code"/> + <field name="type" on_change="onchange_type(type, currency, context)"/> + </group> + <group> + <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> + <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> + <field name="currency"/> + <field name="company_id" groups="base.group_multi_company"/> + </group> + </group> + <notebook> + <page string="Advanced Settings"> <group> - <field name="code"/> - <field name="currency"/> - </group> - <group> - <field name="company_id" groups="base.group_multi_company"/> - <field name="user_id"/> - </group> - <group> - <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> - <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> - <field name="view_id" widget="selection"/> + <group> + <field name="user_id"/> + <field name="view_id" widget="selection"/> <field name="sequence_id" required="0"/> + </group> + <group> + <field name="centralisation"/> + <field name="entry_posted"/> + <field name="allow_date"/> + <field name="group_invoice_lines"/> + </group> </group> - <group> - <field name="centralisation"/> - <field name="entry_posted"/> - <field name="with_last_closing_balance" /> - <field name="allow_date"/> - <field name="group_invoice_lines"/> - </group> - <group> - <field name="type_control_ids" widget="many2many_tags"/> - <field name="account_control_ids" widget="many2many_tags"/> - </group> - </group> + </page> <page string="Entry Controls"> <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/> <field colspan="4" name="type_control_ids" nolabel="1"/> <separator colspan="4" string="Accounts Allowed (empty for no control)"/> <field colspan="4" name="account_control_ids" nolabel="1"/> </page> - <page string="Cash"> - <group string="Profit & Loss Accounts"> - <field name="profit_account_id" /> - <field name="loss_account_id" /> - </group> - - <group string="Internal Transfer Account"> - <field name="internal_account_id" /> + <page string="Cash Registers" attrs="{'invisible':[('type', '!=', 'cash')]}"> + <group> + <group string="Accounts"> + <field name="profit_account_id"/> + <field name="loss_account_id"/> + <field name="internal_account_id"/> + </group> + <group string="Miscellaneous"> + <field name="with_last_closing_balance"/> + </group> </group> - - <separator string="Available Currencies" colspan="4" /> + <separator string="Available Coins" colspan="4" /> <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4"> <tree string="CashBox Lines" editable="bottom"> <field name="pieces" /> </tree> </field> </page> - </page> </notebook> </form> </field> @@ -618,6 +621,13 @@ <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/> </header> <sheet> + <div class="oe_right oe_button_box" name="import_buttons"> + <!-- Put here related buttons --> + </div> + <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/> + <h1> + <field name="name" attrs="{'invisible':[('name','=','/')]}"/> + </h1> <group> <group> <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/> @@ -626,7 +636,6 @@ <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/> <field name="period_id" class="oe_inline"/> </div> - <field name="name"/> <field name='company_id' widget="selection" groups="base.group_multi_company" /> </group><group> <label for="balance_start"/> @@ -1054,69 +1063,66 @@ <field eval="2" name="priority"/> <field name="arch" type="xml"> <form string="Journal Item" version="7.0"> - <group col="6"> - <field name="name"/> - <field name="ref"/> - <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/> - - <field name="journal_id"/> - <field name="period_id"/> - <field name="company_id" required="1" groups="base.group_multi_company"/> - </group> - <notebook colspan="4"> - <page string="Information"> - <group> - <group string="Amount"> - <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/> - <field name="debit"/> - <field name="credit"/> - <field name="quantity"/> - </group> - - <group string="Accounting Documents"> - <field name="invoice" readonly="True"/> - <field name="move_id" required="False"/> - <field name="statement_id" readonly="True"/> - </group> - - <group string="Dates"> - <field name="date"/> - <field name="date_maturity"/> - <field name="date_created" readonly="True"/> - </group> - - <group string="Taxes"> - <field name="tax_code_id"/> - <field name="tax_amount"/> - <field name="account_tax_id" domain="[('parent_id','=',False)]"/> - </group> - - <group attrs="{'readonly':[('state','=','valid')]}" string="Currency"> - <field name="currency_id"/> - <field name="amount_currency"/> - </group> - - <group string="Reconciliation"> - <field name="reconcile_id"/> - <field name="reconcile_partial_id"/> - </group> - - <group string="States"> - <field name="state"/> - <field name="blocked"/> - </group> - - <group groups="analytic.group_analytic_accounting" string="Analytic"> - <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/> - </group> - </group> - <separator string="Internal Note" colspan="4"/> - <field name="narration" colspan="4" nolabel="1"/> - </page> - <page string="Analytic Lines" groups="analytic.group_analytic_accounting"> - <field name="analytic_lines" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/> - </page> - </notebook> + <sheet> + <group> + <group> + <field name="name"/> + <field name="ref"/> + <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/> + </group> + <group> + <field name="journal_id"/> + <field name="period_id"/> + <field name="company_id" required="1" groups="base.group_multi_company"/> + </group> + </group> + <notebook colspan="4"> + <page string="Information"> + <group> + <group string="Amount"> + <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/> + <field name="debit"/> + <field name="credit"/> + <field name="quantity"/> + </group> + <group string="Accounting Documents"> + <field name="invoice" readonly="True"/> + <field name="move_id" required="False"/> + <field name="statement_id" readonly="True"/> + </group> + <group string="Dates"> + <field name="date"/> + <field name="date_maturity"/> + <field name="date_created" readonly="True"/> + </group> + <group string="Taxes"> + <field name="tax_code_id"/> + <field name="tax_amount"/> + <field name="account_tax_id" domain="[('parent_id','=',False)]"/> + </group> + <group attrs="{'readonly':[('state','=','valid')]}" string="Currency"> + <field name="currency_id"/> + <field name="amount_currency"/> + </group> + <group string="Reconciliation"> + <field name="reconcile_id"/> + <field name="reconcile_partial_id"/> + </group> + <group string="States"> + <field name="state"/> + <field name="blocked"/> + </group> + <group groups="analytic.group_analytic_accounting" string="Analytic"> + <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/> + </group> + </group> + <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/> + </page> + <page string="Analytic Lines" groups="analytic.group_analytic_accounting"> + <field name="analytic_lines" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/> + </page> + </notebook> + </sheet> </form> </field> </record> @@ -1316,16 +1322,23 @@ <field name="state" widget="statusbar"/> </header> <sheet string="Journal Entries" > - <group col="4"> - <field name="name" readonly="True"/> - <field name="ref"/> - <field name="journal_id"/> - <field name="period_id"/> - <field name="to_check"/> - <field name="date"/> - <field name="company_id" required="1" groups="base.group_multi_company"/> - <field name="partner_id" invisible="1"/> - <field name="amount" invisible="1"/> + <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/> + <h1> + <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/> + </h1> + <group> + <group> + <field name="journal_id"/> + <field name="period_id"/> + <field name="company_id" required="1" groups="base.group_multi_company"/> + <field name="partner_id" invisible="1"/> + </group> + <group> + <field name="ref"/> + <field name="date"/> + <field name="to_check"/> + <field name="amount" invisible="1"/> + </group> </group> <notebook> <page string="Journal Items"> @@ -1417,8 +1430,7 @@ <field name="reconcile_partial_id"/> </tree> </field> - <separator string="Internal Note"/> - <field name="narration" colspan="4" nolabel="1" height="50"/> + <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/> </page> </notebook> </sheet> @@ -1878,16 +1890,11 @@ <field name="model_id"/> <field name="ref"/> </group> - <newline/> - - <group string="Starts on"> + <group> <field name="date_start"/> - <field name="period_total"/> - </group> - - <group string="Valid Up to"> - <field name="period_nbr"/> <field name="period_type"/> + <field name="period_nbr"/> + <field name="period_total"/> </group> </group> <separator string="Subscription Lines"/> @@ -2590,15 +2597,22 @@ action = pool.get('res.config').next(cr, uid, [], context) <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/> </header> <sheet string="Statement"> - <group col="4"> - <field name="name"/> - <field name='company_id' widget="selection" groups="base.group_multi_company" /> - <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"/> - <field name="user_id" readonly="1"/> - <field name="period_id"/> - <field name="currency" invisible="1"/> + <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/> + <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1> + <group> + <group> + <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"/> + <field name="user_id" readonly="1" string="Responsible"/> + <field name="total_entry_encoding"/> + <field name='company_id' widget="selection" groups="base.group_multi_company" /> + </group> + <group> + <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/> + <field name="closing_date" readonly="1"/> + <field name="period_id" class="oe_inline"/> + <field name="currency" invisible="1"/> + </group> </group> - <notebook> <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}"> <field name="line_ids" context="{'date':date}"> diff --git a/addons/account/partner_view.xml b/addons/account/partner_view.xml index ec3dcba3b84..cd75daa6c07 100644 --- a/addons/account/partner_view.xml +++ b/addons/account/partner_view.xml @@ -76,56 +76,56 @@ <field name="arch" type="xml"> <page string="History" position="before" version="7.0"> <page string="Accounting" col="4"> - <group col="4"> - <group string="Customer Accounting Properties" col="4"> + <group> + <group> <field name="property_account_receivable" groups="account.group_account_invoice" /> <field name="property_account_position" widget="selection"/> <field name="property_payment_term" widget="selection"/> </group> - <group string="Supplier Accounting Properties" col="4"> + <group> <field name="property_account_payable" groups="account.group_account_invoice"/> </group> - <group string="Customer Credit" col="4"> + <group> <field name="credit"/> <field name="credit_limit"/> </group> - <group string="Supplier Debit" col="4"> + <group> <field name="debit"/> </group> - <field name="bank_ids"> - <form string="Bank account" version="7.0"> - <field name="state"/> - <field name="acc_number"/> - <group> - <group name="owner" string="Bank Account Owner"> - <field name="partner_id" on_change="onchange_partner_id(partner_id)"/> - <field name="owner_name"/> - <label for="street" string="Address"/> + </group> + <field name="bank_ids"> + <form string="Bank account" version="7.0"> + <field name="state"/> + <field name="acc_number"/> + <group> + <group name="owner" string="Bank Account Owner"> + <field name="partner_id" on_change="onchange_partner_id(partner_id)"/> + <field name="owner_name"/> + <label for="street" string="Address"/> + <div> + <field name="street" placeholder="Street..."/> <div> - <field name="street" placeholder="Street..."/> - <div> - <field name="zip" class="oe_inline" placeholder="ZIP"/> - <field name="city" class="oe_inline" placeholder="City"/> - </div> - <field name="state_id" placeholder="State"/> - <field name="country_id" placeholder="Country"/> + <field name="zip" class="oe_inline" placeholder="ZIP"/> + <field name="city" class="oe_inline" placeholder="City"/> </div> - </group> - <group name="bank" string="Information About the Bank"> - <field name="bank" on_change="onchange_bank_id(bank)"/> - <field name="bank_name"/> - <field name="bank_bic" placeholder="[Identifier code]"/> - </group> + <field name="state_id" placeholder="State"/> + <field name="country_id" placeholder="Country"/> + </div> </group> - </form> - <tree string="Bank Details"> - <field name="sequence" invisible="1"/> - <field name="acc_number"/> - <field name="bank_name"/> - <field name="owner_name"/> - </tree> - </field> - </group> + <group name="bank" string="Information About the Bank"> + <field name="bank" on_change="onchange_bank_id(bank)"/> + <field name="bank_name"/> + <field name="bank_bic" placeholder="e.g. GEBABEBB"/> + </group> + </group> + </form> + <tree string="Bank Details"> + <field name="sequence" invisible="1"/> + <field name="acc_number"/> + <field name="bank_name"/> + <field name="owner_name"/> + </tree> + </field> </page> </page> </field> diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index 492ab249a39..76aaaf7df6a 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -118,6 +118,7 @@ <field name="name">account.analytic.line.form</field> <field name="model">account.analytic.line</field> <field name="type">form</field> + <field name="priority">1</field> <field name="arch" type="xml"> <form string="Analytic Entry" version="7.0"> <group> @@ -385,7 +386,7 @@ <field name="inherit_id" ref="account.view_account_journal_form"/> <field name="type">form</field> <field name="arch" type="xml"> - <field name="currency" position="after"> + <field name="type" position="after"> <field name="analytic_journal_id"/> </field> </field> diff --git a/addons/account/test/account_cash_statement.yml b/addons/account/test/account_cash_statement.yml index 5ead46522bd..6bff530bb54 100644 --- a/addons/account/test/account_cash_statement.yml +++ b/addons/account/test/account_cash_statement.yml @@ -1,5 +1,5 @@ - - In order to test Cash statement I create a Cash statement and confirm it and check it's move created + In order to test Cash statement I create a Cash statement and confirm it and check its move created - !record {model: account.bank.statement, id: account_bank_statement_1}: date: !eval time.strftime('%Y-%m-%d') diff --git a/addons/account/wizard/account_chart_view.xml b/addons/account/wizard/account_chart_view.xml index d7820caa647..553d83fa01c 100644 --- a/addons/account/wizard/account_chart_view.xml +++ b/addons/account/wizard/account_chart_view.xml @@ -7,13 +7,18 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Account charts" version="7.0"> - <group colspan="4"> - <field name="fiscalyear" on_change="onchange_fiscalyear(fiscalyear)"/> + <group> + <label for="fiscalyear"/> + <div> + <field name="fiscalyear" on_change="onchange_fiscalyear(fiscalyear)" class="oe_inline"/> + <label align="0.7" string="(If you do not select Fiscal year it will take all open fiscal years)" class="oe_inline"/> + </div> <field name="target_move"/> - <label align="0.7" colspan="4" string="(If you do not select Fiscal year it will take all open fiscal years)"/> - <separator string="Periods" colspan="4"/> - <field name="period_from"/> - <field name="period_to"/> + <label for="period_from" string="Periods"/> + <div> + <field name="period_from" class="oe_inline"/> - + <field name="period_to" class="oe_inline"/> + </div> </group> <footer> <button string="Open Charts" name="account_chart_open_window" type="object" class="oe_highlight"/> diff --git a/addons/account/wizard/account_fiscalyear_close_state.py b/addons/account/wizard/account_fiscalyear_close_state.py index 2af649ba19f..f57684a1460 100644 --- a/addons/account/wizard/account_fiscalyear_close_state.py +++ b/addons/account/wizard/account_fiscalyear_close_state.py @@ -30,7 +30,7 @@ class account_fiscalyear_close_state(osv.osv_memory): _description = "Fiscalyear Close state" _columns = { 'fy_id': fields.many2one('account.fiscalyear', \ - 'Fiscal Year to close', required=True, help="Select a fiscal year to close"), + 'Fiscal Year to Close', required=True, help="Select a fiscal year to close"), } def data_save(self, cr, uid, ids, context=None): diff --git a/addons/account/wizard/account_fiscalyear_close_state.xml b/addons/account/wizard/account_fiscalyear_close_state.xml index b31213f4bad..a4b558ab163 100644 --- a/addons/account/wizard/account_fiscalyear_close_state.xml +++ b/addons/account/wizard/account_fiscalyear_close_state.xml @@ -7,15 +7,15 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Close states of Fiscal year and periods" version="7.0"> - <header> - <button icon="terp-locked" string="Close Fiscalyear" name="data_save" type="object" class="oe_highlight" /> - </header> - <separator string="Close states of Fiscal year and periods"/> - <label string ="If no additional entries should be recorded on a fiscal year, you can close it from here. It will close all opened periods in this year that will make impossible any new entry record. Close a fiscal year when you need to finalize your end of year results definitive "/> <group> <field name="fy_id" domain="[('state','=','draft')]"/> </group> - </form> + <footer> + <button icon="terp-locked" string="Close Fiscal Year" name="data_save" type="object" class="oe_highlight"/> + or + <button string="Cancel" class="oe_link" special="cancel"/> + </footer> + </form> </field> </record> diff --git a/addons/account/wizard/account_move_journal.py b/addons/account/wizard/account_move_journal.py index ff9e456b617..66f634bd59f 100644 --- a/addons/account/wizard/account_move_journal.py +++ b/addons/account/wizard/account_move_journal.py @@ -102,12 +102,11 @@ class account_move_journal(osv.osv_memory): period = period_pool.browse(cr, uid, [period_id], ['name'])[0]['name'] period_string = _("Period: %s") % tools.ustr(period) - separator_string = _("Open Journal Items") open_string = _("Open") view = """<?xml version="1.0" encoding="utf-8"?> <form string="Standard entries" version="7.0"> - <group string="%s"> - <field name="target_move" /> + <group> + <field name="target_move"/> </group> %s: <label string="%s"/> %s: <label string="%s"/> @@ -116,7 +115,7 @@ class account_move_journal(osv.osv_memory): or <button string="Cancel" class="oe_link" special="cancel"/> </footer> - </form>""" % (separator_string, _('Journal'), journal_string, _('Period'), period_string,open_string) + </form>""" % (_('Journal'), journal_string, _('Period'), period_string, open_string) view = etree.fromstring(view.encode('utf8')) xarch, xfields = self._view_look_dom_arch(cr, uid, view, view_id, context=context) diff --git a/addons/account/wizard/account_report_account_balance_view.xml b/addons/account/wizard/account_report_account_balance_view.xml index b700ab8a736..c42e0bc38ad 100644 --- a/addons/account/wizard/account_report_account_balance_view.xml +++ b/addons/account/wizard/account_report_account_balance_view.xml @@ -13,10 +13,6 @@ <xpath expr="//field[@name='journal_ids']" position="replace"> <field name="journal_ids" colspan="4" nolabel="1" required="0" readonly="1"/> </xpath> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="Trial Balance" colspan="4"/> - <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your trial balance allowing you to quickly check the balance of each of your accounts in a single report"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="display_account"/> <newline/> diff --git a/addons/account/wizard/account_report_common_view.xml b/addons/account/wizard/account_report_common_view.xml index 2711154a35e..18953270e09 100644 --- a/addons/account/wizard/account_report_common_view.xml +++ b/addons/account/wizard/account_report_common_view.xml @@ -17,16 +17,16 @@ </group> <notebook tabpos="up" colspan="4"> <page string="Filters" name="filters"> - <group col="4"> + <group> <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)"/> </group> - <group string="Dates" col="4"> - <field name="date_from" attrs="{'readonly':[('filter', '!=', 'filter_date')], 'required':[('filter', '=', 'filter_date')]}" colspan="4"/> - <field name="date_to" attrs="{'readonly':[('filter', '!=', 'filter_date')], 'required':[('filter', '=', 'filter_date')]}" colspan="4"/> + <group string="Dates" attrs="{'invisible':[('filter', '!=', 'filter_date')], 'required':[('filter', '=', 'filter_date')]}"> + <field name="date_from" /> + <field name="date_to" /> </group> - <group string="Periods" col="4"> - <field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]" attrs="{'readonly':[('filter','!=','filter_period')], 'required':[('filter', '=', 'filter_period')]}" colspan="4"/> - <field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]" attrs="{'readonly':[('filter','!=','filter_period')], 'required':[('filter', '=', 'filter_period')]}" colspan="4"/> + <group string="Periods" attrs="{'invisible':[('filter','!=','filter_period')], 'required':[('filter', '=', 'filter_period')]}"> + <field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/> + <field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/> </group> </page> <page string="Journals" name="journal_ids"> diff --git a/addons/account/wizard/account_report_general_journal_view.xml b/addons/account/wizard/account_report_general_journal_view.xml index 96f45f9d028..93c82cd5810 100644 --- a/addons/account/wizard/account_report_general_journal_view.xml +++ b/addons/account/wizard/account_report_general_journal_view.xml @@ -9,10 +9,6 @@ <field name="inherit_id" ref="account_common_report_view" /> <field name="arch" type="xml"> <data> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="General Journals" colspan="4"/> - <label nolabel="1" colspan="4" string="This report gives you an overview of the situation of your general journals"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="amount_currency"/> <newline/> diff --git a/addons/account/wizard/account_report_general_ledger_view.xml b/addons/account/wizard/account_report_general_ledger_view.xml index 20b6ab0f042..5078eeac88b 100644 --- a/addons/account/wizard/account_report_general_ledger_view.xml +++ b/addons/account/wizard/account_report_general_ledger_view.xml @@ -9,10 +9,6 @@ <field name="inherit_id" ref="account_common_report_view" /> <field name="arch" type="xml"> <data> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="General Ledger" colspan="4"/> - <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your general ledger with details of all your account journals"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="display_account"/> <field name="sortby"/> diff --git a/addons/account/wizard/account_report_partner_balance_view.xml b/addons/account/wizard/account_report_partner_balance_view.xml index 6dbe6d7b77b..e8abd1c68a2 100644 --- a/addons/account/wizard/account_report_partner_balance_view.xml +++ b/addons/account/wizard/account_report_partner_balance_view.xml @@ -9,10 +9,6 @@ <field name="inherit_id" ref="account_common_report_view" /> <field name="arch" type="xml"> <data> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="Partner Balance" colspan="4"/> - <label nolabel="1" colspan="4" string="This report is an analysis done by a partner. It is a PDF report containing one line per partner representing the cumulative credit balance"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="result_selection"/> <field name="display_partner"/> diff --git a/addons/account/wizard/account_report_partner_ledger_view.xml b/addons/account/wizard/account_report_partner_ledger_view.xml index c3c731c1954..1bc223a956d 100644 --- a/addons/account/wizard/account_report_partner_ledger_view.xml +++ b/addons/account/wizard/account_report_partner_ledger_view.xml @@ -9,10 +9,6 @@ <field name="inherit_id" ref="account_common_report_view" /> <field name="arch" type="xml"> <data> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="Partner Ledger" colspan="4"/> - <label nolabel="1" colspan="4" string="This report is an analysis done by a partner. It is a PDF report containing one line per partner representing the cumulative credit balance"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="result_selection"/> <field name="amount_currency"/> diff --git a/addons/account/wizard/account_report_print_journal_view.xml b/addons/account/wizard/account_report_print_journal_view.xml index cf4eb0a0c9f..9a2ef25a1fe 100644 --- a/addons/account/wizard/account_report_print_journal_view.xml +++ b/addons/account/wizard/account_report_print_journal_view.xml @@ -9,10 +9,6 @@ <field name="inherit_id" ref="account_common_report_view" /> <field name="arch" type="xml"> <data> - <xpath expr="/form/label[@string='']" position="replace"> - <separator string="Journals" colspan="4"/> - <label nolabel="1" colspan="4" string="This report gives you an overview of the situation of a specific journal"/> - </xpath> <xpath expr="//field[@name='target_move']" position="after"> <field name="sort_selection"/> <field name="amount_currency"/> diff --git a/addons/account/wizard/account_subscription_generate.py b/addons/account/wizard/account_subscription_generate.py index 8efcd25b789..dc5209ebea0 100644 --- a/addons/account/wizard/account_subscription_generate.py +++ b/addons/account/wizard/account_subscription_generate.py @@ -28,7 +28,7 @@ class account_subscription_generate(osv.osv_memory): _name = "account.subscription.generate" _description = "Subscription Compute" _columns = { - 'date': fields.date('Date', required=True), + 'date': fields.date('Generate Entries Before', required=True), } _defaults = { 'date': lambda *a: time.strftime('%Y-%m-%d'), diff --git a/addons/account/wizard/account_subscription_generate_view.xml b/addons/account/wizard/account_subscription_generate_view.xml index 64ca3beeb11..e32439537d7 100644 --- a/addons/account/wizard/account_subscription_generate_view.xml +++ b/addons/account/wizard/account_subscription_generate_view.xml @@ -8,8 +8,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Subscription Compute" version="7.0"> - <separator string="Generate Entries before:"/> - <label string ="Automatically generate entries based on what has been entered in the system before a specific date."/> <group> <field name="date"/> </group> diff --git a/addons/account/wizard/account_tax_chart_view.xml b/addons/account/wizard/account_tax_chart_view.xml index ea0c68f739f..eef4401ee2f 100644 --- a/addons/account/wizard/account_tax_chart_view.xml +++ b/addons/account/wizard/account_tax_chart_view.xml @@ -9,10 +9,13 @@ <field name="arch" type="xml"> <form string="Account tax charts" version="7.0"> <group> - <field name="period_id"/> - <label colspan="4" string="(If you do not select period it will take all open periods)"/> + <label for="period_id"/> + <div> + <field name="period_id" class="oe_inline"/> + <label string="(If you do not select period it will take all open periods)" class="oe_inline"/> + </div> <field name="target_move"/> - </group> + </group> <footer> <button string="Open Charts" name="account_tax_chart_open_window" type="object" class="oe_highlight"/> or diff --git a/addons/account/wizard/account_use_model_view.xml b/addons/account/wizard/account_use_model_view.xml index 777ab38fddf..6170ca4fe12 100644 --- a/addons/account/wizard/account_use_model_view.xml +++ b/addons/account/wizard/account_use_model_view.xml @@ -8,8 +8,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Create Entries From Models" version="7.0"> - <separator string="This wizard will create recurring accounting entries"/> - <label string="Create manual recurring entries in a chosen journal."/> <group> <field name="model"/> </group> diff --git a/addons/account/wizard/account_validate_move_view.xml b/addons/account/wizard/account_validate_move_view.xml index abadb57c4e7..991921710a7 100644 --- a/addons/account/wizard/account_validate_move_view.xml +++ b/addons/account/wizard/account_validate_move_view.xml @@ -9,8 +9,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Post Journal Entries" version="7.0"> - <separator string="Post Journal Entries of a Journal"/> - <label string="All draft account entries in this journal and period will be validated. It means you won't be able to modify their accounting fields anymore."/> <group> <field name="journal_id"/> <field name="period_id"/> @@ -25,7 +23,7 @@ </record> <record id="action_validate_account_move" model="ir.actions.act_window"> - <field name="name">Open Journal</field> + <field name="name">Post Journal Entries</field> <field name="res_model">validate.account.move</field> <field name="view_type">form</field> <field name="view_mode">form</field> diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 0799a59a423..8cd73c60aa7 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -213,13 +213,13 @@ class account_asset_asset(osv.osv): _columns = { 'account_move_line_ids': fields.one2many('account.move.line', 'asset_id', 'Entries', readonly=True, states={'draft':[('readonly',False)]}), - 'name': fields.char('Asset', size=64, required=True, readonly=True, states={'draft':[('readonly',False)]}), + 'name': fields.char('Asset Name', size=64, required=True, readonly=True, states={'draft':[('readonly',False)]}), 'code': fields.char('Reference', size=32, readonly=True, states={'draft':[('readonly',False)]}), - 'purchase_value': fields.float('Gross value ', required=True, readonly=True, states={'draft':[('readonly',False)]}), + 'purchase_value': fields.float('Gross Value', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'currency_id': fields.many2one('res.currency','Currency',required=True, readonly=True, states={'draft':[('readonly',False)]}), 'company_id': fields.many2one('res.company', 'Company', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'note': fields.text('Note'), - 'category_id': fields.many2one('account.asset.category', 'Asset category', required=True, change_default=True, readonly=True, states={'draft':[('readonly',False)]}), + 'category_id': fields.many2one('account.asset.category', 'Asset Category', required=True, change_default=True, readonly=True, states={'draft':[('readonly',False)]}), 'parent_id': fields.many2one('account.asset.asset', 'Parent Asset', readonly=True, states={'draft':[('readonly',False)]}), 'child_ids': fields.one2many('account.asset.asset', 'parent_id', 'Children Assets'), 'purchase_date': fields.date('Purchase Date', required=True, readonly=True, states={'draft':[('readonly',False)]}), @@ -233,7 +233,7 @@ class account_asset_asset(osv.osv): " * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n" \ " * Degressive: Calculated on basis of: Remaining Value * Degressive Factor"), 'method_number': fields.integer('Number of Depreciations', readonly=True, states={'draft':[('readonly',False)]}, help="Calculates Depreciation within specified interval"), - 'method_period': fields.integer('Period Length', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="State here the time during 2 depreciations, in months"), + 'method_period': fields.integer('Number of Months in a Period', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="State here the time during 2 depreciations, in months"), 'method_end': fields.date('Ending Date', readonly=True, states={'draft':[('readonly',False)]}), 'method_progress_factor': fields.float('Degressive Factor', readonly=True, states={'draft':[('readonly',False)]}), 'value_residual': fields.function(_amount_residual, method=True, digits_compute=dp.get_precision('Account'), string='Residual Value'), @@ -316,6 +316,19 @@ class account_asset_asset(osv.osv): asset_id = super(account_asset_asset, self).create(cr, uid, vals, context=context) self.compute_depreciation_board(cr, uid, [asset_id], context=context) return asset_id + + def open_entries(self, cr, uid, ids, context=None): + if context is None: + context = {} + context.update({'search_default_asset_id': ids, 'default_asset_id': ids}) + return { + 'view_type': 'form', + 'view_mode': 'tree,form', + 'res_model': 'account.move.line', + 'view_id': False, + 'type': 'ir.actions.act_window', + 'context': context, + } account_asset_asset() @@ -331,7 +344,7 @@ class account_asset_depreciation_line(osv.osv): _columns = { 'name': fields.char('Depreciation Name', size=64, required=True, select=1), - 'sequence': fields.integer('Sequence of the depreciation', required=True), + 'sequence': fields.integer('Sequence', required=True), 'asset_id': fields.many2one('account.asset.asset', 'Asset', required=True), 'parent_state': fields.related('asset_id', 'state', type='char', string='State of Asset'), 'amount': fields.float('Depreciation Amount', required=True), diff --git a/addons/account_asset/account_asset_view.xml b/addons/account_asset/account_asset_view.xml index ce84c7f0352..dec5f3714d6 100644 --- a/addons/account_asset/account_asset_view.xml +++ b/addons/account_asset/account_asset_view.xml @@ -88,60 +88,87 @@ <field name="state" widget="statusbar" statusbar_visible="draft,open"/> </header> <sheet> - <label for="name"/> - <h1><field name="name"/></h1> - <label for="category_id"/> - <h2><field name="category_id" on_change="onchange_category_id(category_id)"/></h2> - <notebook colspan="4"> - <page string="General"> + <div class="oe_button_box oe_right"> + <button name="open_entries" string="Entries" type="object" class="oe_inline"/> + </div> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name" class="oe_inline"/> + </h1> + </div> + <group> + <group> + <field name="category_id" on_change="onchange_category_id(category_id)"/> + <field name="code"/> + <field name="parent_id"/> + </group> <group> - <group> - <field name="code"/> - <field name="company_id" widget="selection" - groups="base.group_multi_company" on_change="onchange_company_id(company_id)"/> - </group> - <group> - <field name="purchase_value"/> - <field name="salvage_value"/> - <field name="value_residual"/> - <field name="currency_id"/> - </group> - <group> - <field name="partner_id"/> - <field name="purchase_date"/> - <field name="parent_id"/> - </group> - <group> - <field name="method_time" on_change="onchange_method_time(method_time)"/> - <field name="method_number" attrs="{'invisible':[('method_time','=','end')], 'required':[('method_time','=','number')]}"/> - <field name="method_period"/> - <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','number')]}"/> - <button name="%(action_asset_modify)d" states="open" string="Change Duration" type="action" icon="terp-stock_effects-object-colorize" colspan="2"/> - </group> - <group> - <field name="method"/> - <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> - <field name="prorata" attrs="{'invisible': [('method_time','=','end')]}"/> - </group> + <field name="purchase_date"/> + <field name="currency_id"/> + <field name="company_id" widget="selection" groups="base.group_multi_company" on_change="onchange_company_id(company_id)"/> </group> + </group> + <notebook colspan="4"> + <page string="General"> + <group> + <group> + <field name="purchase_value"/> + <field name="salvage_value"/> + <field name="value_residual"/> + <field name="partner_id"/> + </group> + <group> + <field name="method"/> + <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')], 'required':[('method','=','degressive')]}"/> + <label for="method_time"/> + <div> + <field name="method_time" on_change="onchange_method_time(method_time)" class="oe_inline"/> + <button name="%(action_asset_modify)d" states="open" string="Change Duration" type="action" icon="terp-stock_effects-object-colorize" class="oe_inline" colspan="1"/> + </div> + <field name="prorata" attrs="{'invisible': [('method_time','=','end')]}"/> + <field name="method_number" attrs="{'invisible':[('method_time','=','end')], 'required':[('method_time','=','number')]}"/> + <field name="method_period"/> + <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','number')]}"/> + </group> + </group> </page> <page string="Depreciation Board"> <field name="depreciation_line_ids" mode="tree,graph"> - <tree string="Depreciation Lines" colors="blue:(move_check == False);black:(move_check == True)"> - <field name="depreciation_date"/> - <field name="sequence" invisible="1"/> - <field name="depreciated_value" readonly="1"/> - <field name="amount"/> - <field name="remaining_value" readonly="1"/> - <field name="move_check"/> - <field name="parent_state" invisible="1"/> - <button name="create_move" attrs="{'invisible':['|',('move_check','!=',False),('parent_state','!=','open')]}" icon="gtk-execute" string="Create Move" type="object"/> - </tree> - <graph type="bar"> - <field name="name"/> - <field name="amount"/> - <field name="depreciated_value"/> - </graph> + <tree string="Depreciation Lines" colors="blue:(move_check == False);black:(move_check == True)"> + <field name="depreciation_date"/> + <field name="sequence" invisible="1"/> + <field name="depreciated_value" readonly="1"/> + <field name="amount"/> + <field name="remaining_value" readonly="1"/> + <field name="move_check"/> + <field name="parent_state" invisible="1"/> + <button name="create_move" attrs="{'invisible':['|',('move_check','!=',False),('parent_state','!=','open')]}" icon="gtk-execute" string="Create Move" type="object"/> + </tree> + <form string="Depreciation Lines"> + <group> + <group> + <field name="asset_id" invisible="1"/> + <field name="parent_state" invisible="1"/> + <field name="name"/> + <field name="amount"/> + <field name="move_id"/> + <field name="move_check"/> + <field name="parent_state" invisible="1"/> + </group> + <group> + <field name="sequence"/> + <field name="depreciation_date"/> + <field name="depreciated_value" readonly="1"/> + <field name="remaining_value" readonly="1"/> + </group> + </group> + </form> + <graph type="bar"> + <field name="name"/> + <field name="amount"/> + <field name="depreciated_value"/> + </graph> </field> <button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2" attrs="{'invisible':[('state','=','close')]}"/> </page> @@ -150,12 +177,12 @@ <field name="history_ids" readonly="1"/> </page> <page string="Notes"> - <field name="note"/> + <field name="note" placeholder="Add an internal note here..."/> </page> </notebook> - </sheet> - </form> - </field> + </sheet> + </form> + </field> </record> <record model="ir.ui.view" id="view_account_asset_asset_tree"> diff --git a/addons/account_asset/wizard/wizard_asset_compute_view.xml b/addons/account_asset/wizard/wizard_asset_compute_view.xml index 45d3aa22625..e9b64a33a25 100644 --- a/addons/account_asset/wizard/wizard_asset_compute_view.xml +++ b/addons/account_asset/wizard/wizard_asset_compute_view.xml @@ -7,8 +7,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Compute Asset" version="7.0"> - <separator string="Post Depreciation Lines"/> - <label string="This wizard will post the depreciation lines of running assets that belong to the selected period."/> <group> <field name="period_id"/> </group> diff --git a/addons/account_budget/account_budget_view.xml b/addons/account_budget/account_budget_view.xml index cc231b82183..db83df9c07f 100644 --- a/addons/account_budget/account_budget_view.xml +++ b/addons/account_budget/account_budget_view.xml @@ -108,48 +108,71 @@ <field name="type">form</field> <field name="arch" type="xml"> <form version="7.0"> - <header> - <button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/> - <button string="Approve" name="validate" states="confirm" type="workflow" class="oe_highlight"/> - <button string="Done" name="done" states="validate" type="workflow" class="oe_highlight"/> - <button name="draft" states="cancel" string="Reset to Draft" type="workflow" /> - <button string="Cancel" name="cancel" states="confirm,validate" type="workflow"/> - <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/> - </header> - <sheet string="Budget"> - <group col="4"> - <field name="name" colspan="1" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="code" colspan="1" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="creating_user_id" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="validating_user_id" readonly="True" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="date_from" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="date_to" attrs="{'readonly':[('state','!=','draft')]}"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> - <field name="crossovered_budget_line" colspan="4" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}"> - <tree string="Budget Lines"> - <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/> - <field name="general_budget_id"/> - <field name="date_from"/> - <field name="date_to"/> - <field name="paid_date"/> - <field name="planned_amount" sum="Planned Amount"/> - <field name="practical_amount" sum="Practical Amount"/> - <field name="theoritical_amount" sum="Theoretical Amount"/> - <field name="percentage"/> - </tree> - <form string="Budget Lines" version="7.0"> - <group col="4"> + <header> + <button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/> + <button string="Approve" name="validate" states="confirm" type="workflow" class="oe_highlight"/> + <button string="Done" name="done" states="validate" type="workflow" class="oe_highlight"/> + <button name="draft" states="cancel" string="Reset to Draft" type="workflow" /> + <button string="Cancel" name="cancel" states="confirm,validate" type="workflow"/> + <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/> + </header> + <sheet string="Budget"> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name" attrs="{'readonly':[('state','!=','draft')]}"/> + </h1> + </div> + <group> + <group> + <field name="creating_user_id" attrs="{'readonly':[('state','!=','draft')]}"/> + <field name="validating_user_id" readonly="True" attrs="{'readonly':[('state','!=','draft')]}"/> + </group> + <group> + <field name="code" attrs="{'readonly':[('state','!=','draft')]}"/> + <label for="date_from" string="Duration"/> + <div> + <field name="date_from" class="oe_inline" attrs="{'readonly':[('state','!=','draft')]}"/> - + <field name="date_to" class="oe_inline" attrs="{'readonly':[('state','!=','draft')]}" nolabel="1"/> + </div> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + </group> + </group> + <notebook> + <page string="Budget Lines"> + <field name="crossovered_budget_line" colspan="4" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}"> + <tree string="Budget Lines"> <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/> <field name="general_budget_id"/> <field name="date_from"/> <field name="date_to"/> <field name="paid_date"/> - <field name="planned_amount"/> - <field name="company_id" widget="selection" groups="base.group_multi_company"/> - </group> - </form> - </field> - </group> + <field name="planned_amount" sum="Planned Amount"/> + <field name="practical_amount" sum="Practical Amount"/> + <field name="theoritical_amount" sum="Theoretical Amount"/> + <field name="percentage"/> + </tree> + <form string="Budget Lines" version="7.0"> + <group> + <group> + <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/> + <field name="general_budget_id"/> + <field name="planned_amount"/> + </group> + <group> + <label for="date_from" string="Duration"/> + <div> + <field name="date_from" class="oe_inline"/> - + <field name="date_to" class="oe_inline"/> + </div> + <field name="paid_date"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> + </group> + </group> + </form> + </field> + </page> + </notebook> </sheet> </form> </field> diff --git a/addons/account_check_writing/account_voucher_view.xml b/addons/account_check_writing/account_voucher_view.xml index aa8fd3b8d9c..07d73188db8 100644 --- a/addons/account_check_writing/account_voucher_view.xml +++ b/addons/account_check_writing/account_voucher_view.xml @@ -2,7 +2,7 @@ <openerp> <data> - <!-- Supplier voucher view --> + <!-- Supplier write check view --> <record model="ir.ui.view" id="view_vendor_payment_check_form"> <field name="name">account.voucher.payment.check.form</field> diff --git a/addons/account_coda/account_coda_wizard.xml b/addons/account_coda/account_coda_wizard.xml index 7bb5d9eb66b..655f1afb95e 100644 --- a/addons/account_coda/account_coda_wizard.xml +++ b/addons/account_coda/account_coda_wizard.xml @@ -14,7 +14,7 @@ or <button string="Cancel" class="oe_link" special="cancel"/> </header> - <group col="2" string="Select Your File :"> + <group col="2"> <field name="coda_data" filename="coda_fname"/> <field name="coda_fname"/> </group> diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index b4629062455..d151d2171a4 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -31,7 +31,7 @@ class account_followup_print(osv.osv_memory): _description = 'Print Follow-up & Send Mail to Customers' _columns = { 'date': fields.date('Follow-up Sending Date', required=True, help="This field allow you to select a forecast date to plan your follow-ups"), - 'followup_id': fields.many2one('account_followup.followup', 'Follow-up', required=True), + 'followup_id': fields.many2one('account_followup.followup', 'Follow-Up', required=True), } def _get_followup(self, cr, uid, context=None): @@ -121,10 +121,10 @@ class account_followup_print_all(osv.osv_memory): _description = 'Print Follow-up & Send Mail to Customers' _columns = { 'partner_ids': fields.many2many('account_followup.stat.by.partner', 'partner_stat_rel', 'osv_memory_id', 'partner_id', 'Partners', required=True), - 'email_conf': fields.boolean('Send email confirmation'), + 'email_conf': fields.boolean('Send Email Confirmation'), 'email_subject': fields.char('Email Subject', size=64), 'partner_lang': fields.boolean('Send Email in Partner Language', help='Do not change message text, if you want to send email in partner language, or configure from company'), - 'email_body': fields.text('Email body'), + 'email_body': fields.text('Email Body'), 'summary': fields.text('Summary', required=True, readonly=True), 'test_print': fields.boolean('Test Print', help='Check if you want to print follow-ups without changing follow-ups level.') } diff --git a/addons/account_followup/wizard/account_followup_print_view.xml b/addons/account_followup/wizard/account_followup_print_view.xml index 084de5c2ae6..c897b283ab0 100644 --- a/addons/account_followup/wizard/account_followup_print_view.xml +++ b/addons/account_followup/wizard/account_followup_print_view.xml @@ -8,8 +8,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Send follow-ups" version="7.0"> - <separator string="Send Follow-ups"/> - <label string ="This feature allows you to send reminders to partners with pending invoices. You can send them the default message for unpaid invoices or manually enter a message should you need to remind them of a specific information."/> <group col="4"> <field name="followup_id"/> <field name="date"/> @@ -24,7 +22,7 @@ </record> <record id="action_account_followup_print" model="ir.actions.act_window"> - <field name="name">Send follow-ups</field> + <field name="name">Send Follow-Ups</field> <field name="type">ir.actions.act_window</field> <field name="res_model">account.followup.print</field> <field name="view_type">form</field> @@ -76,7 +74,7 @@ <field name="model">account.followup.print.all</field> <field name="type">form</field> <field name="arch" type="xml"> - <form string="Send follow-ups" version="7.0"> + <form string="Send Follow-Ups" version="7.0"> <header> <button name="do_mail" string="Send Mails" type="object" class="oe_highlight"/> <button name="do_print" string="Print Follow Ups" type="object" class="oe_highlight"/> @@ -93,7 +91,6 @@ <field name="partner_lang" colspan="4"/> <field name="test_print" colspan="4"/> <field name="email_subject" colspan="4"/> - <separator string="Email Body" colspan="4" /> <field name="email_body" colspan="4" nolabel="1"/> </group> <group string="Legend"> @@ -125,7 +122,7 @@ </record> <record id="action_account_followup_print_all" model="ir.actions.act_window"> - <field name="name">Send follow-ups</field> + <field name="name">Send Follow-Ups</field> <field name="type">ir.actions.act_window</field> <field name="res_model">account.followup.print.all</field> <field name="view_type">form</field> diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py index 80d7a5419e7..22b7fc5f6f2 100644 --- a/addons/account_payment/account_payment.py +++ b/addons/account_payment/account_payment.py @@ -87,9 +87,9 @@ class payment_order(osv.osv): return res _columns = { - 'date_scheduled': fields.date('Scheduled date if fixed', states={'done':[('readonly', True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'), + 'date_scheduled': fields.date('Scheduled Date', states={'done':[('readonly', True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'), 'reference': fields.char('Reference', size=128, required=1, states={'done': [('readonly', True)]}), - 'mode': fields.many2one('payment.mode', 'Payment mode', select=True, required=1, states={'done': [('readonly', True)]}, help='Select the Payment Mode to be applied.'), + 'mode': fields.many2one('payment.mode', 'Payment Mode', select=True, required=1, states={'done': [('readonly', True)]}, help='Select the Payment Mode to be applied.'), 'state': fields.selection([ ('draft', 'Draft'), ('cancel', 'Cancelled'), @@ -98,14 +98,14 @@ class payment_order(osv.osv): help='When an order is placed the state is \'Draft\'.\n Once the bank is confirmed the state is set to \'Confirmed\'.\n Then the order is paid the state is \'Done\'.'), 'line_ids': fields.one2many('payment.line', 'order_id', 'Payment lines', states={'done': [('readonly', True)]}), 'total': fields.function(_total, string="Total", type='float'), - 'user_id': fields.many2one('res.users', 'User', required=True, states={'done': [('readonly', True)]}), + 'user_id': fields.many2one('res.users', 'Responsible', required=True, states={'done': [('readonly', True)]}), 'date_prefered': fields.selection([ ('now', 'Directly'), ('due', 'Due date'), ('fixed', 'Fixed date') - ], "Preferred date", change_default=True, required=True, states={'done': [('readonly', True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."), - 'date_created': fields.date('Creation date', readonly=True), - 'date_done': fields.date('Execution date', readonly=True), + ], "Preferred Date", change_default=True, required=True, states={'done': [('readonly', True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."), + 'date_created': fields.date('Creation Date', readonly=True), + 'date_done': fields.date('Execution Date', readonly=True), 'company_id': fields.related('mode', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True), } diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml index cf91dcc80a2..1577d1b86bd 100644 --- a/addons/account_payment/account_payment_view.xml +++ b/addons/account_payment/account_payment_view.xml @@ -112,16 +112,25 @@ <button name="cancel" states="draft,open" string="Cancel"/> <field name="state" widget="statusbar" statusbar_visible="draft,open"/> </header> - <sheet string="Payment order" > - <group col="4"> - <field name="reference"/> - <field name="mode" widget='selection'/> - <field name="user_id"/> - <field name="date_prefered"/> - <field name="date_scheduled" attrs="{'readonly':[('date_prefered','!=','fixed')]}" /> - <field name="company_id" widget='selection' groups="base.group_multi_company"/> - <button name="%(action_create_payment_order)d" string="Select Invoices to Pay" - type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/> + <sheet string="Payment order"> + <div class="oe_button_box"> + <button name="%(action_create_payment_order)d" string="Select Invoices to Pay" + type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/> + </div> + <div class="oe_title"> + <label for="reference" class="oe_edit_only"/> + <h1><field name="reference"/></h1> + </div> + <group> + <group> + <field name="user_id"/> + <field name="mode"/> + </group> + <group> + <field name="date_prefered"/> + <field name="date_scheduled" attrs="{'readonly':[('date_prefered','!=','fixed')]}"/> + <field name="company_id" widget='selection' groups="base.group_multi_company"/> + </group> </group> <field name="line_ids" context="{'order_id': active_id or False}" > <form string="Payment Line" version="7.0"> @@ -177,8 +186,6 @@ <field name="amount" sum="Total in Company Currency" invisible="1"/> </tree> </field> - <field name="date_created"/> - <field name="date_done"/> </sheet> </form> </field> @@ -330,9 +337,9 @@ <field name="type">form</field> <field name="inherit_id" ref="account.view_bank_statement_form"/> <field name="arch" type="xml"> - <field name="journal_id" position="after"> - <button name="%(action_account_populate_statement_confirm)d" attrs="{'invisible':[('state','=','confirm')]}" string="Import payment lines" type="action" icon="gtk-execute"/> - </field> + <xpath expr="//div[@name='import_buttons']" position="inside"> + <button name="%(action_account_populate_statement_confirm)d" attrs="{'invisible':[('state','=','confirm')]}" string="Import Payment Lines" type="action" icon="gtk-execute"/> + </xpath> </field> </record> diff --git a/addons/account_sequence/account_sequence.xml b/addons/account_sequence/account_sequence.xml index ba97025bae7..3ed16cfa58e 100644 --- a/addons/account_sequence/account_sequence.xml +++ b/addons/account_sequence/account_sequence.xml @@ -8,7 +8,7 @@ <field name="type">form</field> <field name="inherit_id" ref="account.view_move_form"/> <field name="arch" type="xml"> - <field name="to_check" position="after"> + <field name="period_id" position="after"> <field name="internal_sequence_number"/> </field> </field> @@ -44,7 +44,7 @@ <field name="inherit_id" ref="account.view_account_move_filter"/> <field name="arch" type="xml"> <data> - <xpath expr="//field[@name='ref']" position="before"> + <xpath expr="//field[@name='name']" position="after"> <field name="internal_sequence_number"/> </xpath> </data> diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml index 2b6c7013af4..d1912a58d1c 100644 --- a/addons/account_voucher/account_voucher_view.xml +++ b/addons/account_voucher/account_voucher_view.xml @@ -52,6 +52,7 @@ <sheet string="Accounting Voucher"> <group col="6" colspan="4"> <field name="partner_id" required="1" on_change="onchange_journal_voucher(line_ids, tax_id, amount, partner_id, journal_id, type)"/> + <field name="payment_rate_currency_id" invisible="1"/> <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id)"/> <field name="journal_id" widget="selection" on_change="onchange_journal_voucher(line_ids, tax_id, amount, partner_id, journal_id, type)"/> <field name="type" required="1"/> @@ -209,11 +210,11 @@ <field name="type">form</field> <field name="inherit_id" ref="account.view_bank_statement_form"/> <field name="arch" type="xml"> - <field name="currency" invisible="1" position="after"> - <button name="%(action_view_account_statement_from_invoice_lines)d" + <xpath expr="//div[@name='import_buttons']" position="inside"> + <button name="%(action_view_account_statement_from_invoice_lines)d" string="Import Invoices" type="action" icon="gtk-execute" attrs="{'invisible':[('state','=','confirm')]}"/> - </field> + </xpath> </field> </record> diff --git a/addons/account_voucher/voucher_sales_purchase_view.xml b/addons/account_voucher/voucher_sales_purchase_view.xml index e70156e4032..833b7604bac 100644 --- a/addons/account_voucher/voucher_sales_purchase_view.xml +++ b/addons/account_voucher/voucher_sales_purchase_view.xml @@ -95,7 +95,7 @@ <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <group> - <field name="journal_id" domain="[('type','in',['sale','sale_refund'])]" widget="selection" on_change="onchange_journal(journal_id, line_cr_ids, tax_id, partner_id, date, amount, type, company_id, context)"/> + <field name="journal_id" domain="[('type','in',['sale','sale_refund'])]" widget="selection" on_change="onchange_journal(journal_id, line_cr_ids, tax_id, partner_id, date, amount, type, company_id, context)" groups="account.group_account_user"/> <field name="date" on_change="onchange_date(date, currency_id, currency_id, amount, company_id, context)"/> <field name="name"/> <field name="paid" invisible="1"/> @@ -113,7 +113,7 @@ <field name="account_analytic_id" groups="analytic.group_analytic_accounting"/> </tree> </field> - <group> + <group> <field name="narration" placeholder="Internal Notes" nolabel="1"/> <group class="oe_subtotal_footer oe_right"> <field name="tax_id" @@ -127,10 +127,10 @@ <button type="object" class="oe_link oe_edit_only" name="compute_tax" string="(update)" attrs="{'invisible': [('state','!=','draft')]}"/> - </div> + </div> <field name="amount" class="oe_subtotal_footer_separator" nolabel="1"/> </group> - <group> + <group> <field name="pay_now" on_change="onchange_payment(pay_now, journal_id, partner_id)" required="1"/> <field name="date_due" attrs="{'invisible':[('pay_now','=','pay_now')]}"/> <field name="account_id" @@ -139,7 +139,7 @@ <field name="reference" attrs="{'invisible':[('pay_now','!=','pay_now')]}"/> </group> - </group> + </group> </page> <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}"> <group col="4"> @@ -249,14 +249,15 @@ <field name="journal_id" domain="[('type','in',['purchase','purchase_refund'])]" widget="selection" - on_change="onchange_journal(journal_id, line_dr_ids, tax_id, partner_id, date, amount, type, company_id, context)"/> + on_change="onchange_journal(journal_id, line_dr_ids, tax_id, partner_id, date, amount, type, company_id, context)" + groups="account.group_account_user"/> </group> </group> <notebook> <page string="Bill Information"> <field name="line_dr_ids" on_change="onchange_price(line_dr_ids, tax_id, partner_id)" context="{'journal_id':journal_id,'partner_id':partner_id}"> <tree string="Expense Lines" editable="bottom"> - <field name="account_id" widget="selection" domain="[('user_type.report_type','=','expense'), ('type','!=','view')]" groups="account.group_account_user"/> + <field name="account_id" widget="selection" domain="[('user_type.report_type','=','expense'), ('type','!=','view')]" groups="account.group_account_user"/> <field name="name"/> <field name="amount"/> <field name="account_analytic_id" groups="analytic.group_analytic_accounting"/> diff --git a/addons/association/profile_association.xml b/addons/association/profile_association.xml index f131fe4f4a9..099a6f1ac97 100644 --- a/addons/association/profile_association.xml +++ b/addons/association/profile_association.xml @@ -1,14 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> - <menuitem - name="Association" + + <!-- Top menu item --> + <menuitem name="Association" id="base.menu_association" - icon="terp-calendar" - sequence="9" - web_icon="images/association.png" - web_icon_hover="images/association-hover.png"/> + sequence="70"/> <menuitem name="Configuration" id="base.menu_event_config" parent="base.menu_association" sequence="30"/> <menuitem name="Association" id="base.menu_report_association" parent="base.menu_reporting" sequence="23"/> + </data> </openerp> diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 5fc38c884da..a9e5949a3ca 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -1060,8 +1060,8 @@ rule or repeating pattern of time to exclude from the recurring rule."), 'user_id': fields.many2one('res.users', 'Responsible', states={'done': [('readonly', True)]}), 'organizer': fields.char("Organizer", size=256, states={'done': [('readonly', True)]}), # Map with Organizer Attribure of VEvent. 'organizer_id': fields.many2one('res.users', 'Organizer', states={'done': [('readonly', True)]}), - 'end_type' : fields.selection([('count', 'Number of repetitions'), ('end_date','End date')], 'Recurrence termination'), - 'interval': fields.integer('Repeat every', help="Repeat every (Days/Week/Month/Year)"), + 'end_type' : fields.selection([('count', 'Number of repetitions'), ('end_date','End date')], 'Recurrence Termination'), + 'interval': fields.integer('Repeat Every', help="Repeat every (Days/Week/Month/Year)"), 'count': fields.integer('Repeat', help="Repeat x times"), 'mo': fields.boolean('Mon'), 'tu': fields.boolean('Tue'), diff --git a/addons/base_tools/tools_view.xml b/addons/base_tools/tools_view.xml index eb51e000c1b..fbe0e16e31a 100644 --- a/addons/base_tools/tools_view.xml +++ b/addons/base_tools/tools_view.xml @@ -1,9 +1,11 @@ <?xml version="1.0"?> <openerp> <data> - <menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" - name="Tools" sequence="28" - web_icon="images/tools.png" - web_icon_hover="images/tools-hover.png"/> + + <!-- Top menu item --> + <menuitem name="Tools" + id="base.menu_tools" + sequence="160"/> + </data> </openerp> diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 73c687e4ad0..f7bd27854f1 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -97,8 +97,7 @@ groups="base.group_sale_salesman" res_model="crm.phonecall" view_mode="tree,calendar,form" - context="{'default_duration': 1.0 ,'default_opportunity_id': active_id,'default_partner_phone':phone}" - domain="[('opportunity_id', '=', active_id)]" + context="{'default_duration': 1.0 ,'default_opportunity_id': active_id}" view_type="form"/> <act_window @@ -107,7 +106,6 @@ res_model="crm.meeting" view_mode="tree,form,calendar" context="{'default_duration': 4.0, 'default_opportunity_id': active_id}" - domain="[('opportunity_id', '=', active_id)]" view_type="form"/> diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml index 1f15e29263b..e83ad45d851 100644 --- a/addons/crm/crm_phonecall_view.xml +++ b/addons/crm/crm_phonecall_view.xml @@ -101,23 +101,25 @@ <field name="arch" type="xml"> <form version="7.0"> <header> - <button name="case_open" string="Confirm" type="object" class="oe_highlight" - states="draft,pending"/> <button name="case_close" string="Held" type="object" class="oe_highlight" states="open,pending"/> <button name="case_reset" string="Reset to Todo" type="object" states="cancel"/> - <button name="case_cancel" string="Cancel" type="object" - states="draft,open,pending"/> - <button string="Convert to Opportunity" class="oe_highlight" + <button string="Convert to Opportunity" name="%(phonecall2opportunity_act)d" type="action" - attrs="{'invisible':[('opportunity_id','!=',False)]}" /> + attrs="{'invisible':[ '|', ('opportunity_id','!=',False), ('state','!=', 'open')]}" /> + <button string="Convert to Opportunity" class="oe_highlight" + name="%(phonecall2opportunity_act)d" + type="action" + attrs="{'invisible':[ '|', ('opportunity_id','!=',False), ('state','!=', 'done')]}" /> <button string="Schedule Other Call" name="%(phonecall_to_phonecall_act)d" type="action" /> <button string="Schedule a Meeting" name="action_make_meeting" type="object"/> - <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,open,done"/> + <button name="case_cancel" string="Cancel" type="object" + states="draft,open,pending"/> + <field name="state" widget="statusbar" nolabel="1" statusbar_visible="open,done"/> </header> <sheet string="Phone Call"> <div class="oe_title"> diff --git a/addons/crm/res_partner_view.xml b/addons/crm/res_partner_view.xml index 29e733e2496..26c74427009 100644 --- a/addons/crm/res_partner_view.xml +++ b/addons/crm/res_partner_view.xml @@ -123,6 +123,7 @@ <field name="model">res.partner</field> <field name="type">form</field> <field name="inherit_id" ref="base.view_partner_form" /> + <field name="priority" eval="10"/> <field name="arch" type="xml"> <xpath expr="//div[@name='buttons']" position="inside"> <button type="action" diff --git a/addons/crm_claim/crm_claim_menu.xml b/addons/crm_claim/crm_claim_menu.xml index d4bfd8f21bb..46f8760387a 100644 --- a/addons/crm_claim/crm_claim_menu.xml +++ b/addons/crm_claim/crm_claim_menu.xml @@ -1,19 +1,18 @@ <?xml version="1.0"?> <openerp> <data> - <menuitem - icon="terp-project" id="base.menu_main_pm" - name="Project" sequence="10" + + <!-- Top menu item --> + <menuitem name="Project" + id="base.menu_main_pm" groups="base.group_sale_salesman" - web_icon="images/project.png" - web_icon_hover="images/project-hover.png"/> + sequence="90"/> <menuitem id="base.menu_aftersale" name="After-Sale Services" groups="base.group_sale_salesman" parent="base.menu_main_pm" sequence="2" /> <!-- Claims Menu --> - <record model="ir.actions.act_window" id="crm_case_categ_claim0"> <field name="name">Claims</field> <field name="res_model">crm.claim</field> @@ -51,13 +50,9 @@ parent="base.menu_aftersale" action="crm_case_categ_claim0" sequence="1"/> <!-- Claim Stages --> - <menuitem - icon="terp-project" id="base.menu_main_pm" - name="Project" sequence="10"/> - - <menuitem id="base.menu_definitions" name="Configuration" parent="base.menu_main_pm" sequence="60"/> <menuitem id="base.menu_project_config_project" name="Stages" parent="base.menu_definitions" sequence="1"/> <menuitem id="menu_claim_stage_view" name="Claim Stages" action="crm_claim_stage_act" parent="base.menu_project_config_project" sequence="20"/> + <menuitem id="base.menu_definitions" name="Configuration" parent="base.menu_main_pm" sequence="60"/> </data> </openerp> diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 676bad59a45..80e373160be 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -248,17 +248,6 @@ </field> </record> - <record id="base.view_crm_partner_info_History1" model="ir.ui.view"> - <field name="name">res.partner.crm.history.inherit1</field> - <field name="model">res.partner</field> - <field name="type">form</field> - <field name="inherit_id" ref="base.view_partner_form"/> - <field name="arch" type="xml"> - <xpath expr="//page[@string='History']" position="attributes"> - <attribute name="invisible">False</attribute> - </xpath> - </field> - </record> <record id="view_claim_partner_info_form1" model="ir.ui.view"> <field name="name">res.partner.claim.info.form</field> <field name="model">res.partner</field> @@ -266,15 +255,18 @@ <field name="inherit_id" ref="base.view_partner_form"/> <field name="priority">20</field> <field name="arch" type="xml"> - <data> - <xpath expr="//page[@string='History']" position="inside"> + <xpath expr="//page[@name='page_history']" position="attributes"> + <attribute name="invisible">False</attribute> + </xpath> + <xpath expr="//page[@name='page_history']" position="inside"> + <group name="grp_claim" string="Claim"> <field name="claims_ids" colspan="4" nolabel="1"> <tree string="Partners Claim" editable="bottom"> <field name="name"/> </tree> </field> - </xpath> - </data> + </group> + </xpath> </field> </record> diff --git a/addons/crm_fundraising/crm_fundraising_menu.xml b/addons/crm_fundraising/crm_fundraising_menu.xml index 38187ed1d4d..20fcdeee861 100644 --- a/addons/crm_fundraising/crm_fundraising_menu.xml +++ b/addons/crm_fundraising/crm_fundraising_menu.xml @@ -9,7 +9,7 @@ parent="base.menu_base_partner" sequence="8" /> <record model="ir.actions.act_window" id="crm_case_category_act_fund_all1"> - <field name="name">Funds</field> + <field name="name">Fund Raising</field> <field name="res_model">crm.fundraising</field> <field name="view_mode">tree,form,graph</field> <field name="view_id" ref="crm_fundraising.crm_case_tree_view_fund"/> diff --git a/addons/crm_helpdesk/crm_helpdesk_menu.xml b/addons/crm_helpdesk/crm_helpdesk_menu.xml index f5c36eb1ab1..393428e091e 100644 --- a/addons/crm_helpdesk/crm_helpdesk_menu.xml +++ b/addons/crm_helpdesk/crm_helpdesk_menu.xml @@ -1,15 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> - <menuitem - icon="terp-project" id="base.menu_main_pm" - name="Project" sequence="10" - web_icon="images/project.png" - web_icon_hover="images/project-hover.png"/> + + <!-- Top menu item --> + <menuitem name="Project" + id="base.menu_main_pm" + sequence="90"/> <menuitem id="base.menu_aftersale" name="After-Sale Services" sequence="2" parent="base.menu_main_pm" /> -<!-- Help Desk (menu) --> + <!-- Help Desk (menu) --> <record model="ir.actions.act_window" id="crm_case_helpdesk_act111"> <field name="name">Helpdesk Requests</field> diff --git a/addons/crm_todo/i18n/en_GB.po b/addons/crm_todo/i18n/en_GB.po new file mode 100644 index 00000000000..d0d736b83ae --- /dev/null +++ b/addons/crm_todo/i18n/en_GB.po @@ -0,0 +1,95 @@ +# English (United Kingdom) translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2012-02-08 00:36+0000\n" +"PO-Revision-Date: 2012-07-18 16:31+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: English (United Kingdom) <en_GB@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-07-19 04:46+0000\n" +"X-Generator: Launchpad (build 15637)\n" + +#. module: crm_todo +#: model:ir.model,name:crm_todo.model_project_task +msgid "Task" +msgstr "Task" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Timebox" +msgstr "Timebox" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "For cancelling the task" +msgstr "For cancelling the task" + +#. module: crm_todo +#: constraint:project.task:0 +msgid "Error ! Task end-date must be greater then task start-date" +msgstr "Error ! Task end-date must be greater then task start-date" + +#. module: crm_todo +#: model:ir.model,name:crm_todo.model_crm_lead +msgid "crm.lead" +msgstr "crm.lead" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Next" +msgstr "Next" + +#. module: crm_todo +#: model:ir.actions.act_window,name:crm_todo.crm_todo_action +#: model:ir.ui.menu,name:crm_todo.menu_crm_todo +msgid "My Tasks" +msgstr "My Tasks" + +#. module: crm_todo +#: view:crm.lead:0 +#: field:crm.lead,task_ids:0 +msgid "Tasks" +msgstr "Tasks" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Done" +msgstr "Done" + +#. module: crm_todo +#: constraint:project.task:0 +msgid "Error ! You cannot create recursive tasks." +msgstr "Error ! You cannot create recursive tasks." + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Cancel" +msgstr "Cancel" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Extra Info" +msgstr "Extra Info" + +#. module: crm_todo +#: field:project.task,lead_id:0 +msgid "Lead / Opportunity" +msgstr "Lead / Opportunity" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "For changing to done state" +msgstr "For changing to done state" + +#. module: crm_todo +#: view:crm.lead:0 +msgid "Previous" +msgstr "Previous" diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index 1b1b5daa9a9..890cb1be9e6 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -1,7 +1,7 @@ <?xml version="1.0"?> <openerp> <data> - <act_window + <act_window id="act_event_list_register_event" name="Registration" res_model="event.registration" @@ -9,12 +9,16 @@ view_mode="calendar,tree,form,graph" context="{'search_default_event_id': active_id, 'default_event_id': active_id}" view_type="form"/> - <menuitem name="Events" id="event_main_menu"/> - <menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu" /> - <!-- EVENTS --> + <!-- Top menu item --> + <menuitem name="Events" + id="event_main_menu" + sequence="80"/> + <menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu"/> - <!-- EVENTS/CONFIGURATION/TYPE OF EVENTS --> + <!-- EVENTS --> + + <!-- EVENTS/CONFIGURATION/TYPE OF EVENTS --> <record model="ir.ui.view" id="view_event_type_form"> <field name="name">Event type</field> <field name="model">event.type</field> @@ -52,7 +56,7 @@ <menuitem name="Configuration" id="base.menu_marketing_config_root" parent="event_main_menu" sequence="30"/> <menuitem name="Types of Events" id="menu_event_type" action="action_event_type" parent="base.menu_marketing_config_root" groups="base.group_no_one"/> - <!-- Events Organisation/CONFIGURATION/EVENTS --> + <!-- Events Organisation/CONFIGURATION/EVENTS --> <!-- Event Read/Unread actions --> <record id="actions_server_event_event_unread" model="ir.actions.server"> @@ -111,7 +115,7 @@ <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> - </div> + </div> <div> <h2>From <field name="date_begin" class="oe_inline" /> to <field name="date_end" class="oe_inline"/> </h2> @@ -151,7 +155,7 @@ </group> <group> <field name="register_attended"/> - </group> + </group> </group> <field name="registration_ids" colspan="4" nolabel="1" groups="event.group_event_manager,event.group_event_user"> <tree string="Registration" editable="top"> @@ -222,7 +226,7 @@ <!-- Event Kanban View --> - <record model="ir.ui.view" id="view_event_kanban"> + <record model="ir.ui.view" id="view_event_kanban"> <field name="name">event.event.kanban</field> <field name="model">event.event</field> <field name="type">kanban</field> @@ -286,7 +290,7 @@ </field> </record> - <!-- Events Calendar View --> + <!-- Events Calendar View --> <record id="view_event_calendar" model="ir.ui.view"> <field name="name">event.event.calendar</field> @@ -316,7 +320,7 @@ </field> </record> - <!-- Event Search View --> + <!-- Event Search View --> <record model="ir.ui.view" id="view_event_search"> <field name="name">Events</field> @@ -362,7 +366,7 @@ <!-- Events Organisation/CONFIGURATION/EVENTS --> - <record model="ir.actions.act_window" id="action_event_view"> + <record model="ir.actions.act_window" id="action_event_view"> <field name="name">Events</field> <field name="type">ir.actions.act_window</field> <field name="res_model">event.event</field> @@ -371,9 +375,9 @@ <field name="context">{"search_default_upcoming":1}</field> <field name="search_view_id" ref="view_event_search"/> <field name="help">Event is the low level object used by meeting and others documents that should be synchronized with mobile devices or calendar applications through caldav. Most of the users should work in the Calendar menu, and not in the list of events.</field> - </record> + </record> - <act_window + <act_window id="act_register_event_partner" name="Subscribe" res_model="event.registration" @@ -382,9 +386,9 @@ context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}" view_type="form"/> - <menuitem name="Events" id="menu_event_event" action="action_event_view" parent="base.menu_event_main" /> + <menuitem name="Events" id="menu_event_event" action="action_event_view" parent="base.menu_event_main" /> - <!-- EVENTS/REGISTRATIONS/EVENTS --> + <!-- EVENTS/REGISTRATIONS/EVENTS --> <!-- Registration Read/Unread actions --> <record id="actions_server_event_registration_unread" model="ir.actions.server"> diff --git a/addons/event/i18n/mn.po b/addons/event/i18n/mn.po new file mode 100644 index 00000000000..8e47ece549f --- /dev/null +++ b/addons/event/i18n/mn.po @@ -0,0 +1,1263 @@ +# Mongolian translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2012-02-08 00:36+0000\n" +"PO-Revision-Date: 2012-07-18 08:15+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: Mongolian <mn@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-07-19 04:46+0000\n" +"X-Generator: Launchpad (build 15637)\n" + +#. module: event +#: view:event.event:0 +msgid "Invoice Information" +msgstr "Нэхэмжлэлийн мэдээлэл" + +#. module: event +#: view:partner.event.registration:0 +msgid "Event Details" +msgstr "" + +#. module: event +#: field:event.event,main_speaker_id:0 +msgid "Main Speaker" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: view:report.event.registration:0 +msgid "Group By..." +msgstr "" + +#. module: event +#: field:event.event,register_min:0 +msgid "Minimum Registrations" +msgstr "" + +#. module: event +#: model:ir.model,name:event.model_event_confirm_registration +msgid "Confirmation for Event Registration" +msgstr "" + +#. module: event +#: field:event.registration.badge,title:0 +msgid "Title" +msgstr "" + +#. module: event +#: field:event.event,mail_registr:0 +msgid "Registration Email" +msgstr "Бүртгүүлсэн е-майл" + +#. module: event +#: model:ir.actions.act_window,name:event.action_event_confirm_registration +msgid "Make Invoices" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +msgid "Registration Date" +msgstr "Бүртгүүлсэн огноо" + +#. module: event +#: view:partner.event.registration:0 +msgid "_Close" +msgstr "" + +#. module: event +#: model:event.event,name:event.event_0 +msgid "Concert of Bon Jovi" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Invoiced Registrations only" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "March" +msgstr "" + +#. module: event +#: field:event.event,mail_confirm:0 +msgid "Confirmation Email" +msgstr "Батлагдсан е-майл" + +#. module: event +#: field:event.registration,nb_register:0 +msgid "Quantity" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:63 +#, python-format +msgid "Registration doesn't have any partner to invoice." +msgstr "" + +#. module: event +#: field:event.event,company_id:0 +#: field:event.registration,company_id:0 +#: view:report.event.registration:0 +#: field:report.event.registration,company_id:0 +msgid "Company" +msgstr "" + +#. module: event +#: field:event.make.invoice,invoice_date:0 +msgid "Invoice Date" +msgstr "" + +#. module: event +#: help:event.event,pricelist_id:0 +msgid "Pricelist version for current event." +msgstr "" + +#. module: event +#: code:addons/event/wizard/partner_event_registration.py:88 +#: view:event.registration:0 +#: model:ir.actions.act_window,name:event.action_partner_event_registration +#: model:ir.model,name:event.model_event_registration +#: view:partner.event.registration:0 +#, python-format +msgid "Event Registration" +msgstr "Бүртгэгдсэн үйл ажиллагаа" + +#. module: event +#: field:event.event,parent_id:0 +msgid "Parent Event" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,name:event.action_make_invoices +msgid "Make Invoice" +msgstr "" + +#. module: event +#: field:event.registration,price_subtotal:0 +msgid "Subtotal" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Event on Registration" +msgstr "" + +#. module: event +#: help:event.event,reply_to:0 +msgid "The email address put in the 'Reply-To' of all emails sent by OpenERP" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Add Internal Note" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Confirmed events" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Event Beginning Date" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,name:event.action_report_event_registration +#: model:ir.model,name:event.model_report_event_registration +#: model:ir.ui.menu,name:event.menu_report_event_registration +#: view:report.event.registration:0 +msgid "Events Analysis" +msgstr "Үйл ажиллагааны анализ" + +#. module: event +#: field:event.registration,message_ids:0 +msgid "Messages" +msgstr "" + +#. module: event +#: model:ir.model,name:event.model_event_registration_badge +msgid "event.registration.badge" +msgstr "" + +#. module: event +#: field:event.event,mail_auto_confirm:0 +msgid "Mail Auto Confirm" +msgstr "" + +#. module: event +#: model:product.template,name:event.event_product_1_product_template +msgid "Ticket for Opera" +msgstr "" + +#. module: event +#: code:addons/event/event.py:125 +#: view:event.event:0 +#, python-format +msgid "Confirm Event" +msgstr "" + +#. module: event +#: selection:event.event,state:0 +#: selection:event.registration,state:0 +#: selection:report.event.registration,state:0 +msgid "Cancelled" +msgstr "" + +#. module: event +#: field:event.event,reply_to:0 +msgid "Reply-To" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,name:event.open_board_associations_manager +#: model:ir.ui.menu,name:event.menu_board_associations_manager +msgid "Event Dashboard" +msgstr "" + +#. module: event +#: model:event.event,name:event.event_1 +msgid "Opera of Verdi" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "July" +msgstr "" + +#. module: event +#: help:event.event,register_prospect:0 +msgid "Total of Prospect Registrations" +msgstr "" + +#. module: event +#: help:event.event,mail_auto_confirm:0 +msgid "" +"Check this box if you want to use automatic confirmation emailing or " +"reminder." +msgstr "" + +#. module: event +#: field:event.registration,ref:0 +msgid "Reference" +msgstr "" + +#. module: event +#: help:event.event,date_end:0 +#: help:partner.event.registration,end_date:0 +msgid "Closing Date of Event" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Emails" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Extra Info" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:83 +#, python-format +msgid "Customer Invoices" +msgstr "" + +#. module: event +#: selection:event.event,state:0 +#: selection:report.event.registration,state:0 +msgid "Draft" +msgstr "" + +#. module: event +#: field:event.type,name:0 +msgid "Event type" +msgstr "" + +#. module: event +#: model:ir.model,name:event.model_event_type +msgid " Event Type " +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: field:event.registration,event_id:0 +#: model:ir.model,name:event.model_event_event +#: field:partner.event.registration,event_id:0 +#: view:report.event.registration:0 +#: field:report.event.registration,event_id:0 +#: view:res.partner:0 +msgid "Event" +msgstr "" + +#. module: event +#: view:event.registration:0 +#: field:event.registration,badge_ids:0 +msgid "Badges" +msgstr "" + +#. module: event +#: view:event.event:0 +#: selection:event.event,state:0 +#: view:event.registration:0 +#: selection:event.registration,state:0 +#: selection:report.event.registration,state:0 +msgid "Confirmed" +msgstr "" + +#. module: event +#: view:event.confirm.registration:0 +msgid "Registration Confirmation" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Events in New state" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Confirm" +msgstr "" + +#. module: event +#: view:event.event:0 +#: field:event.event,speaker_ids:0 +msgid "Other Speakers" +msgstr "" + +#. module: event +#: model:ir.model,name:event.model_event_make_invoice +msgid "Event Make Invoice" +msgstr "" + +#. module: event +#: help:event.registration,nb_register:0 +msgid "Number of Registrations or Tickets" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:50 +#: code:addons/event/wizard/event_make_invoice.py:54 +#: code:addons/event/wizard/event_make_invoice.py:58 +#: code:addons/event/wizard/event_make_invoice.py:62 +#, python-format +msgid "Warning !" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Send New Email" +msgstr "" + +#. module: event +#: help:event.event,register_min:0 +msgid "Provide Minimum Number of Registrations" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Location" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: view:report.event.registration:0 +msgid "New" +msgstr "" + +#. module: event +#: field:event.event,register_current:0 +#: view:report.event.registration:0 +msgid "Confirmed Registrations" +msgstr "" + +#. module: event +#: field:event.event,mail_auto_registr:0 +msgid "Mail Auto Register" +msgstr "" + +#. module: event +#: field:event.event,type:0 +#: field:partner.event.registration,event_type:0 +msgid "Type" +msgstr "" + +#. module: event +#: field:event.registration,email_from:0 +msgid "Email" +msgstr "" + +#. module: event +#: help:event.event,mail_confirm:0 +msgid "" +"This email will be sent when the event gets confirmed or when someone " +"subscribes to a confirmed event. This is also the email sent to remind " +"someone about the event." +msgstr "" + +#. module: event +#: field:event.registration,tobe_invoiced:0 +msgid "To be Invoiced" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "My Sales Team(s)" +msgstr "" + +#. module: event +#: code:addons/event/event.py:398 +#, python-format +msgid "Error !" +msgstr "" + +#. module: event +#: field:event.event,name:0 +#: field:event.registration,name:0 +msgid "Summary" +msgstr "" + +#. module: event +#: field:event.registration,create_date:0 +msgid "Creation Date" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: view:res.partner:0 +msgid "Cancel Registration" +msgstr "" + +#. module: event +#: code:addons/event/event.py:399 +#, python-format +msgid "Registered partner doesn't have an address to make the invoice." +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events created in last month" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events created in current year" +msgstr "" + +#. module: event +#: help:event.event,type:0 +msgid "Type of Event like Seminar, Exhibition, Conference, Training." +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Confirmed registrations" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Event Organization" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "History Information" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Dates" +msgstr "" + +#. module: event +#: view:event.confirm:0 +#: view:event.confirm.registration:0 +msgid "Confirm Anyway" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_confirm_registration.py:54 +#, python-format +msgid "Warning: The Event '%s' has reached its Maximum Limit (%s)." +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid " Month-1 " +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: field:event.registration.badge,registration_id:0 +#: model:ir.actions.act_window,name:event.act_event_list_register_event +msgid "Registration" +msgstr "" + +#. module: event +#: field:report.event.registration,nbevent:0 +msgid "Number Of Events" +msgstr "" + +#. module: event +#: help:event.event,main_speaker_id:0 +msgid "Speaker who will be giving speech at the event." +msgstr "" + +#. module: event +#: help:event.event,state:0 +msgid "" +"If event is created, the state is 'Draft'.If event is confirmed for the " +"particular dates the state is set to 'Confirmed'. If the event is over, the " +"state is set to 'Done'.If event is cancelled the state is set to 'Cancelled'." +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Cancel Event" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +msgid "Contact" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: field:event.registration,partner_id:0 +#: model:ir.model,name:event.model_res_partner +msgid "Partner" +msgstr "" + +#. module: event +#: view:board.board:0 +#: model:ir.actions.act_window,name:event.act_event_reg +#: view:report.event.registration:0 +msgid "Events Filling Status" +msgstr "" + +#. module: event +#: field:event.make.invoice,grouped:0 +msgid "Group the invoices" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Mailing" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events States" +msgstr "" + +#. module: event +#: view:board.board:0 +#: field:event.event,register_prospect:0 +msgid "Unconfirmed Registrations" +msgstr "" + +#. module: event +#: field:event.registration,partner_invoice_id:0 +msgid "Partner Invoiced" +msgstr "" + +#. module: event +#: help:event.event,register_max:0 +msgid "Provide Maximum Number of Registrations" +msgstr "" + +#. module: event +#: field:event.registration,log_ids:0 +msgid "Logs" +msgstr "" + +#. module: event +#: view:event.event:0 +#: field:event.event,state:0 +#: view:event.registration:0 +#: field:event.registration,state:0 +#: view:report.event.registration:0 +#: field:report.event.registration,state:0 +msgid "State" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "September" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "December" +msgstr "" + +#. module: event +#: field:event.registration,event_product:0 +msgid "Invoice Name" +msgstr "" + +#. module: event +#: field:report.event.registration,draft_state:0 +msgid " # No of Draft Registrations" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +#: field:report.event.registration,month:0 +msgid "Month" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Event Done" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Registrations in unconfirmed state" +msgstr "" + +#. module: event +#: help:event.event,register_current:0 +msgid "Total of Open and Done Registrations" +msgstr "" + +#. module: event +#: field:event.confirm.registration,msg:0 +msgid "Message" +msgstr "" + +#. module: event +#: constraint:event.event:0 +msgid "Error ! You cannot create recursive event." +msgstr "" + +#. module: event +#: field:event.registration,ref2:0 +msgid "Reference 2" +msgstr "" + +#. module: event +#: code:addons/event/event.py:361 +#: view:report.event.registration:0 +#, python-format +msgid "Invoiced" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:report.event.registration:0 +msgid "My Events" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Speakers" +msgstr "" + +#. module: event +#: view:event.make.invoice:0 +msgid "Create invoices" +msgstr "" + +#. module: event +#: help:event.registration,email_cc:0 +msgid "" +"These email addresses will be added to the CC field of all inbound and " +"outbound emails for this record before being sent. Separate multiple email " +"addresses with a comma" +msgstr "" + +#. module: event +#: view:event.make.invoice:0 +msgid "Do you really want to create the invoice(s) ?" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Beginning Date" +msgstr "" + +#. module: event +#: field:event.registration,date_closed:0 +msgid "Closed" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events which are in New state" +msgstr "" + +#. module: event +#: view:event.event:0 +#: model:ir.actions.act_window,name:event.action_event_view +#: model:ir.ui.menu,name:event.menu_event_event +#: model:ir.ui.menu,name:event.menu_event_event_assiciation +#: view:res.partner:0 +msgid "Events" +msgstr "" + +#. module: event +#: field:partner.event.registration,nb_register:0 +msgid "Number of Registration" +msgstr "" + +#. module: event +#: field:event.event,child_ids:0 +msgid "Child Events" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "August" +msgstr "" + +#. module: event +#: field:res.partner,event_ids:0 +#: field:res.partner,event_registration_ids:0 +msgid "unknown" +msgstr "" + +#. module: event +#: help:event.event,product_id:0 +msgid "" +"The invoices of this event registration will be created with this Product. " +"Thus it allows you to set the default label and the accounting info you want " +"by default on these invoices." +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "June" +msgstr "" + +#. module: event +#: model:product.template,name:event.event_product_0_product_template +msgid "Ticket for Concert" +msgstr "" + +#. module: event +#: field:event.registration,write_date:0 +msgid "Write Date" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "My Registrations" +msgstr "" + +#. module: event +#: view:event.confirm:0 +msgid "" +"Warning: This Event has not reached its Minimum Registration Limit. Are you " +"sure you want to confirm it?" +msgstr "" + +#. module: event +#: field:event.registration,active:0 +msgid "Active" +msgstr "" + +#. module: event +#: field:event.registration,date:0 +msgid "Start Date" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "November" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Extended Filters..." +msgstr "" + +#. module: event +#: field:partner.event.registration,start_date:0 +msgid "Start date" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "October" +msgstr "" + +#. module: event +#: field:event.event,language:0 +msgid "Language" +msgstr "" + +#. module: event +#: view:event.registration:0 +#: field:event.registration,email_cc:0 +msgid "CC" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "January" +msgstr "" + +#. module: event +#: help:event.registration,email_from:0 +msgid "These people will receive email." +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Set To Draft" +msgstr "" + +#. module: event +#: code:addons/event/event.py:499 +#: view:event.event:0 +#: view:event.registration:0 +#: view:res.partner:0 +#, python-format +msgid "Confirm Registration" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:report.event.registration:0 +#: view:res.partner:0 +msgid "Date" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Registration Email Body" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Confirmation Email Body" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Registrations in confirmed or done state" +msgstr "" + +#. module: event +#: view:event.registration:0 +#: view:res.partner:0 +msgid "History" +msgstr "" + +#. module: event +#: field:event.event,address_id:0 +msgid "Location Address" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,name:event.action_event_type +#: model:ir.ui.menu,name:event.menu_event_type +msgid "Types of Events" +msgstr "" + +#. module: event +#: field:event.registration,contact_id:0 +msgid "Partner Contact" +msgstr "" + +#. module: event +#: field:event.event,pricelist_id:0 +msgid "Pricelist" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:59 +#, python-format +msgid "Event related doesn't have any product defined" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Auto Confirmation Email" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Misc" +msgstr "" + +#. module: event +#: constraint:event.event:0 +msgid "Error ! Closing Date cannot be set before Beginning Date." +msgstr "" + +#. module: event +#: code:addons/event/event.py:446 +#: selection:event.event,state:0 +#: view:event.make.invoice:0 +#: selection:event.registration,state:0 +#: selection:report.event.registration,state:0 +#, python-format +msgid "Done" +msgstr "" + +#. module: event +#: field:event.event,date_begin:0 +msgid "Beginning date" +msgstr "" + +#. module: event +#: view:event.registration:0 +#: field:event.registration,invoice_id:0 +msgid "Invoice" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +#: field:report.event.registration,year:0 +msgid "Year" +msgstr "" + +#. module: event +#: code:addons/event/event.py:465 +#, python-format +msgid "Cancel" +msgstr "" + +#. module: event +#: view:event.confirm:0 +#: view:event.confirm.registration:0 +#: view:event.make.invoice:0 +msgid "Close" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Event by Registration" +msgstr "" + +#. module: event +#: code:addons/event/event.py:436 +#, python-format +msgid "Open" +msgstr "" + +#. module: event +#: field:event.event,user_id:0 +msgid "Responsible User" +msgstr "" + +#. module: event +#: code:addons/event/event.py:561 +#: code:addons/event/event.py:568 +#, python-format +msgid "Auto Confirmation: [%s] %s" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.registration:0 +#: field:event.registration,user_id:0 +#: view:report.event.registration:0 +#: field:report.event.registration,user_id:0 +msgid "Responsible" +msgstr "" + +#. module: event +#: field:event.event,unit_price:0 +#: view:event.registration:0 +#: field:partner.event.registration,unit_price:0 +msgid "Registration Cost" +msgstr "" + +#. module: event +#: field:event.registration,unit_price:0 +msgid "Unit Price" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +#: field:report.event.registration,speaker_id:0 +#: field:res.partner,speaker:0 +msgid "Speaker" +msgstr "" + +#. module: event +#: model:event.event,name:event.event_2 +msgid "Conference on ERP Buisness" +msgstr "" + +#. module: event +#: view:event.registration:0 +msgid "Reply" +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events created in current month" +msgstr "" + +#. module: event +#: help:event.event,mail_auto_registr:0 +msgid "" +"Check this box if you want to use automatic emailing for new registration." +msgstr "" + +#. module: event +#: field:event.event,date_end:0 +#: field:partner.event.registration,end_date:0 +msgid "Closing date" +msgstr "" + +#. module: event +#: field:event.event,product_id:0 +#: view:report.event.registration:0 +#: field:report.event.registration,product_id:0 +msgid "Product" +msgstr "" + +#. module: event +#: view:event.event:0 +#: field:event.event,note:0 +#: view:event.registration:0 +#: field:event.registration,description:0 +msgid "Description" +msgstr "" + +#. module: event +#: field:report.event.registration,confirm_state:0 +msgid " # No of Confirmed Registrations" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,name:event.act_register_event_partner +msgid "Subscribe" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "May" +msgstr "" + +#. module: event +#: view:res.partner:0 +msgid "Events Registration" +msgstr "" + +#. module: event +#: help:event.event,mail_registr:0 +msgid "This email will be sent when someone subscribes to the event." +msgstr "" + +#. module: event +#: model:product.template,name:event.event_product_2_product_template +msgid "Ticket for Conference" +msgstr "" + +#. module: event +#: model:ir.ui.menu,name:event.menu_event_type_association +msgid "Events Type" +msgstr "" + +#. module: event +#: field:event.registration.badge,address_id:0 +msgid "Address" +msgstr "" + +#. module: event +#: view:board.board:0 +#: model:ir.actions.act_window,name:event.act_event_view +msgid "Next Events" +msgstr "" + +#. module: event +#: view:partner.event.registration:0 +msgid "_Subcribe" +msgstr "" + +#. module: event +#: model:ir.model,name:event.model_partner_event_registration +msgid " event Registration " +msgstr "" + +#. module: event +#: help:event.event,date_begin:0 +#: help:partner.event.registration,start_date:0 +msgid "Beginning Date of Event" +msgstr "" + +#. module: event +#: selection:event.registration,state:0 +msgid "Unconfirmed" +msgstr "" + +#. module: event +#: code:addons/event/event.py:565 +#, python-format +msgid "Auto Registration: [%s] %s" +msgstr "" + +#. module: event +#: field:event.registration,date_deadline:0 +msgid "End Date" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "February" +msgstr "" + +#. module: event +#: view:board.board:0 +msgid "Association Dashboard" +msgstr "" + +#. module: event +#: view:event.event:0 +#: field:event.registration.badge,name:0 +msgid "Name" +msgstr "" + +#. module: event +#: field:event.event,section_id:0 +#: field:event.registration,section_id:0 +#: view:report.event.registration:0 +#: field:report.event.registration,section_id:0 +msgid "Sale Team" +msgstr "" + +#. module: event +#: field:event.event,country_id:0 +msgid "Country" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:55 +#, python-format +msgid "Registration is set as Cannot be invoiced" +msgstr "" + +#. module: event +#: code:addons/event/event.py:527 +#: view:event.event:0 +#: view:event.registration:0 +#: view:res.partner:0 +#, python-format +msgid "Close Registration" +msgstr "" + +#. module: event +#: selection:report.event.registration,month:0 +msgid "April" +msgstr "" + +#. module: event +#: help:event.event,unit_price:0 +msgid "" +"This will be the default price used as registration cost when invoicing this " +"event. Note that you can specify a specific amount for each registration." +msgstr "" + +#. module: event +#: view:report.event.registration:0 +msgid "Events which are in confirm state" +msgstr "" + +#. module: event +#: view:event.event:0 +#: view:event.type:0 +#: view:report.event.registration:0 +#: field:report.event.registration,type:0 +msgid "Event Type" +msgstr "" + +#. module: event +#: view:event.event:0 +#: field:event.event,registration_ids:0 +#: model:ir.actions.act_window,name:event.action_registration +#: model:ir.ui.menu,name:event.menu_action_registration +#: model:ir.ui.menu,name:event.menu_action_registration_association +msgid "Registrations" +msgstr "" + +#. module: event +#: field:event.registration,id:0 +msgid "ID" +msgstr "" + +#. module: event +#: field:event.event,register_max:0 +#: field:report.event.registration,register_max:0 +msgid "Maximum Registrations" +msgstr "" + +#. module: event +#: constraint:res.partner:0 +msgid "Error ! You cannot create recursive associated members." +msgstr "" + +#. module: event +#: field:report.event.registration,date:0 +msgid "Event Start Date" +msgstr "" + +#. module: event +#: view:partner.event.registration:0 +msgid "Event For Registration" +msgstr "" + +#. module: event +#: code:addons/event/wizard/event_make_invoice.py:51 +#, python-format +msgid "Invoice cannot be created if the registration is in %s state." +msgstr "" + +#. module: event +#: view:event.confirm:0 +#: model:ir.actions.act_window,name:event.action_event_confirm +#: model:ir.model,name:event.model_event_confirm +msgid "Event Confirmation" +msgstr "" + +#. module: event +#: view:event.event:0 +msgid "Auto Registration Email" +msgstr "" + +#. module: event +#: view:event.registration:0 +#: view:report.event.registration:0 +#: field:report.event.registration,total:0 +msgid "Total" +msgstr "" + +#. module: event +#: field:event.event,speaker_confirmed:0 +msgid "Speaker Confirmed" +msgstr "" + +#. module: event +#: model:ir.actions.act_window,help:event.action_event_view +msgid "" +"Event is the low level object used by meeting and others documents that " +"should be synchronized with mobile devices or calendar applications through " +"caldav. Most of the users should work in the Calendar menu, and not in the " +"list of events." +msgstr "" diff --git a/addons/event/res_partner_view.xml b/addons/event/res_partner_view.xml index 410030408c7..c8760c0b07f 100644 --- a/addons/event/res_partner_view.xml +++ b/addons/event/res_partner_view.xml @@ -4,8 +4,8 @@ <!-- Partners inherited form --> - <record id="view_speaker_partner_info_form" model="ir.ui.view"> - <field name="name">res.partner.speaker.info.inherit</field> + <record id="view_event_partner_info_form" model="ir.ui.view"> + <field name="name">res.partner.event.info.inherit</field> <field name="model">res.partner</field> <field name="type">form</field> <field name="inherit_id" ref="base.view_partner_form"/> @@ -13,33 +13,32 @@ <field name="supplier" position="after"> <field name="speaker"/> </field> - </field> - </record> - <record id="view_event_partner_info_form" model="ir.ui.view"> - <field name="name">res.partner.event.info.inherit</field> - <field name="model">res.partner</field> - <field name="type">form</field> - <field name="inherit_id" ref="base.view_partner_form"/> - <field name="arch" type="xml"> - <page string="History" position="inside"> - <field name="event_ids" colspan="4" nolabel="1"> - <tree string="Events"> - <field name="name" string="Event"/> - <field name="main_speaker_id"/> - </tree> - </field> - <field name="event_registration_ids" colspan="4" nolabel="1"> - <tree string="Events Registration"> - <field name="event_begin_date" string="Date"/> - <field name="event_id" /> - <field name="nb_register"/> - <field name="state"/> - <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/> - <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/> - <button name="check_confirm" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/> - </tree> - </field> - </page> + <xpath expr="//page[@name='page_history']" position="attributes"> + <attribute name="invisible">False</attribute> + </xpath> + <xpath expr="//page[@name='page_history']" position="inside"> + <group name="grp_event" string="Event"> + <field name="event_ids" colspan="4" nolabel="1"> + <tree string="Events"> + <field name="name" string="Event"/> + <field name="main_speaker_id"/> + </tree> + </field> + </group> + <group name="grp_registration" string="Registration"> + <field name="event_registration_ids" colspan="4" nolabel="1"> + <tree string="Events Registration"> + <field name="event_begin_date" string="Date"/> + <field name="event_id" /> + <field name="nb_register"/> + <field name="state"/> + <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/> + <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/> + <button name="check_confirm" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/> + </tree> + </field> + </group> + </xpath> </field> </record> diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 54ced534880..0706da45c86 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -2,10 +2,11 @@ <openerp> <data> - <menuitem id="menu_hr_root" icon="terp-hr" name="Human Resources" sequence="15" - web_icon="images/hr.png" - web_icon_hover="images/hr-hover.png" - groups="base.group_hr_manager,base.group_hr_user,base.group_user"/> + <!-- Top menu item --> + <menuitem name="Human Resources" + id="menu_hr_root" + groups="base.group_hr_manager,base.group_hr_user,base.group_user" + sequence="110"/> <menuitem id="menu_hr_main" parent="menu_hr_root" name="Human Resources" sequence="0"/> <menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_manager" sequence="50"/> <menuitem id="menu_hr_management" name="Human Resources" parent="hr.menu_hr_configuration" sequence="25"/> @@ -20,7 +21,7 @@ <field name="arch" type="xml"> <form string="Employee" version="7.0"> <sheet> - <field name="photo" widget='image' class="oe_right" on_change="onchange_photo(photo)"/> + <field name="photo" widget='image' class="oe_right" on_change="onchange_photo(photo)"/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> @@ -213,7 +214,7 @@ <field name="view_mode">form</field> <field name="view_id" ref="view_employee_form"/> <field name="act_window_id" ref="open_view_employee_list_my"/> - </record> + </record> <menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/> @@ -418,8 +419,8 @@ <search string="Jobs"> <field name="name" string="Job"/> <separator orientation="vertical"/> - <filter icon="terp-camera_test" - domain="[('state','=','open')]" + <filter icon="terp-camera_test" + domain="[('state','=','open')]" string="In Position" help="In Position"/> <filter icon="terp-personal+" domain="[('state','=','recruit')]" string="In Recruitment" @@ -435,7 +436,7 @@ </search> </field> </record> - + <record id="view_hr_job_employee_form" model="ir.ui.view"> <field name="name">hr.job.employee.form</field> <field name="model">hr.job</field> @@ -452,7 +453,7 @@ </form> </field> </record> - + <record model="ir.actions.act_window" id="action_hr_job"> <field name="name">Job Positions</field> <field name="res_model">hr.job</field> diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml index 9888972105e..81dc1e3c9cf 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml @@ -114,7 +114,7 @@ <field name="type">form</field> <field name="inherit_id" ref="account.view_account_analytic_line_form"/> <field name="arch" type="xml"> - <field name="product_uom_id" position="after"> + <field name="amount" position="before"> <field name="to_invoice"/> <field name="invoice_id"/> </field> diff --git a/addons/import_sugarcrm/import_sugarcrm_view.xml b/addons/import_sugarcrm/import_sugarcrm_view.xml index 7188108ba6c..6ef9be1a5bd 100644 --- a/addons/import_sugarcrm/import_sugarcrm_view.xml +++ b/addons/import_sugarcrm/import_sugarcrm_view.xml @@ -13,7 +13,7 @@ <button name="import_all" string="_Import" type="object" class="oe_highlight"/> <button name="import_from_scheduler_all" string="_Schedule Recurrent Imports" - type="object" class="oe_highlight" /> + type="object"/> or <button special="cancel" string="_Cancel" class="oe_link"/> </header> <sheet> diff --git a/addons/knowledge/knowledge_view.xml b/addons/knowledge/knowledge_view.xml index cdc176b347f..9acba0f4b43 100644 --- a/addons/knowledge/knowledge_view.xml +++ b/addons/knowledge/knowledge_view.xml @@ -1,13 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> <openerp> -<data> - <menuitem name="Knowledge" icon="terp-stock" id="knowledge.menu_document" - sequence="19" groups="base.group_system,base.group_document_user" - web_icon="images/knowledge.png" - web_icon_hover="images/knowledge-hover.png"/> - <menuitem name="Configuration" id="knowledge.menu_document_configuration" parent="knowledge.menu_document" sequence="50"/> + <data> - <menuitem id="knowledge.menu_document2" name="Collaborative Content" - parent="knowledge.menu_document" /> + <!-- Top menu item --> + <menuitem name="Knowledge" + id="knowledge.menu_document" + groups="base.group_system,base.group_document_user" + sequence="130"/> -</data> + <menuitem name="Configuration" id="knowledge.menu_document_configuration" + parent="knowledge.menu_document" sequence="50"/> + + <menuitem name="Collaborative Content" id="knowledge.menu_document2" + parent="knowledge.menu_document"/> + + </data> </openerp> diff --git a/addons/l10n_be_invoice_bba/account_invoice_view.xml b/addons/l10n_be_invoice_bba/account_invoice_view.xml index 51c39a4b3be..bf1cf96f537 100644 --- a/addons/l10n_be_invoice_bba/account_invoice_view.xml +++ b/addons/l10n_be_invoice_bba/account_invoice_view.xml @@ -12,7 +12,7 @@ <field name="payment_term" position="after"> <group col="4" colspan="2"> <field name="reference_type" nolabel="1" size="0" attrs="{'readonly':[('state','!=','draft')]}" - on_change="generate_bbacomm(type,reference_type,algorithm,partner_id,reference)" colspan="1"/> + on_change="generate_bbacomm(type,reference_type, partner_id,reference, context)" colspan="1"/> <field name="reference" nolabel="1" colspan="3" attrs="{'readonly':[('state','!=','draft')]}"/> </group> </field> diff --git a/addons/l10n_be_invoice_bba/invoice.py b/addons/l10n_be_invoice_bba/invoice.py index 4cdbca84c0a..bb03e4d6d02 100644 --- a/addons/l10n_be_invoice_bba/invoice.py +++ b/addons/l10n_be_invoice_bba/invoice.py @@ -44,7 +44,7 @@ class account_invoice(osv.osv): #l_logger.warning('reference_type = %s' %res )
return res
- def check_bbacomm(self, val):
+ def check_bbacomm(self, val): supported_chars = '0-9+*/ '
pattern = re.compile('[^' + supported_chars + ']')
if pattern.findall(val or ''):
@@ -75,10 +75,7 @@ class account_invoice(osv.osv): if (type == 'out_invoice'):
reference_type = self.pool.get('res.partner').browse(cr, uid, partner_id).out_inv_comm_type
if reference_type:
- algorithm = self.pool.get('res.partner').browse(cr, uid, partner_id).out_inv_comm_algorithm
- if not algorithm:
- algorithm = 'random'
- reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, algorithm, partner_id, '')['value']['reference']
+ reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, partner_id, '', context={})['value']['reference']
res_update = {
'reference_type': reference_type or 'none',
'reference': reference,
@@ -86,17 +83,15 @@ class account_invoice(osv.osv): result['value'].update(res_update)
return result
- def generate_bbacomm(self, cr, uid, ids, type, reference_type, algorithm, partner_id, reference):
+ def generate_bbacomm(self, cr, uid, ids, type, reference_type, partner_id, reference, context=None):
partner_obj = self.pool.get('res.partner')
- reference = reference or ''
+ reference = reference or '' + algorithm = False + if partner_id:
+ algorithm = partner_obj.browse(cr, uid, partner_id, context=context).out_inv_comm_algorithm
+ algorithm = algorithm or 'random'
if (type == 'out_invoice'):
if reference_type == 'bba':
- if not algorithm:
- if partner_id:
- algorithm = partner_obj.browse(cr, uid, partner_id).out_inv_comm_algorithm
- if not algorithm:
- if not algorithm:
- algorithm = 'random'
if algorithm == 'date':
if not self.check_bbacomm(reference):
doy = time.strftime('%j')
diff --git a/addons/l10n_ch/wizard/bvr_import_view.xml b/addons/l10n_ch/wizard/bvr_import_view.xml index 222aad3b6b9..18ee44efcf9 100644 --- a/addons/l10n_ch/wizard/bvr_import_view.xml +++ b/addons/l10n_ch/wizard/bvr_import_view.xml @@ -30,15 +30,15 @@ <field name="target">new</field> </record> - <record model="ir.ui.view" id="view_bank_statement_form"> + <record model="ir.ui.view" id="view_bank_statement_form_bvr"> <field name="name">account.bank.statement.form.inherit</field> <field name="model">account.bank.statement</field> <field name="type">form</field> <field name="inherit_id" ref="account.view_bank_statement_form"/> <field name="arch" type="xml"> - <field name="balance_end_real" position="after"> - <button name="%(wizard_bvr_import)d" icon="gtk-execute" string="Import BVR" type="action" colspan="2"/> - </field> + <xpath expr="//div[@name='import_buttons']" position="inside"> + <button name="%(wizard_bvr_import)d" icon="gtk-execute" string="Import BVR" type="action"/> + </xpath> </field> </record> </data> diff --git a/addons/l10n_fr_rib/bank_view.xml b/addons/l10n_fr_rib/bank_view.xml index b3062f4c706..627c2eacf04 100644 --- a/addons/l10n_fr_rib/bank_view.xml +++ b/addons/l10n_fr_rib/bank_view.xml @@ -9,7 +9,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <data> - <xpath expr="//page[@string='Accounting']/group/field[@name='bank_ids']/form/field[@name='acc_number']" position="before"> + <xpath expr="//field[@name='bank_ids']/form/field[@name='acc_number']" position="before"> <newline /> <field name="bank_code" /> <field name="office" /> @@ -17,7 +17,7 @@ <field name="key" /> <newline /> </xpath> - <xpath expr="//page[@string='Accounting']/group/field[@name='bank_ids']/tree/field[@name='acc_number']" position="after"> + <xpath expr="//field[@name='bank_ids']/tree/field[@name='acc_number']" position="after"> <field name="rib_acc_number"/> </xpath> </data> diff --git a/addons/mail/mail_message_view.xml b/addons/mail/mail_message_view.xml index 9159190ab29..34ba6db1477 100644 --- a/addons/mail/mail_message_view.xml +++ b/addons/mail/mail_message_view.xml @@ -73,6 +73,7 @@ <search string="Messages Search"> <field name="user_id"/> <field name="body"/> + <field name="model" string="Message" filter_domain="['|', ('subject', 'ilike', self), ('body_text', 'ilike', self)]" /> </search> </field> </record> diff --git a/addons/mail/mail_thread_view.xml b/addons/mail/mail_thread_view.xml index a32045efafc..f07e1e467ee 100644 --- a/addons/mail/mail_thread_view.xml +++ b/addons/mail/mail_thread_view.xml @@ -2,11 +2,11 @@ <openerp> <data> - <!-- toplevel menu --> - <menuitem id="mail_feeds_main" name="Feeds" sequence="0" - web_icon="static/src/img/feeds.png" - web_icon_hover="static/src/img/feeds-hover.png" - groups="base.group_user"/> + <!-- Top menu item --> + <menuitem name="Feeds" + id="mail_feeds_main" + groups="base.group_user" + sequence="10"/> <!-- left-side menu: Feeds !--> <menuitem id="mail_feeds" name="Feeds" parent="mail_feeds_main"/> @@ -22,5 +22,6 @@ <field name="action" ref="action_mail_my_feeds"/> <field name="parent_id" ref="mail_feeds"/> </record> + </data> </openerp> diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 982fb8aeb2f..ce15f83a3d4 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <template> - <div t-name="mail.Wall" class="oe_view_manager oe_mail_wall oe_view_manager_global"> + <div t-name="mail.Wall" class="oe_view_manager oe_mail_wall oe_view_manager_current"> <table class="oe_view_manager_header"> <colgroup> <col width="33%"/> @@ -9,7 +9,7 @@ <col width="34%"/> </colgroup> <tbody> - <tr class="oe_header_row"> + <tr class="oe_header_row oe_header_row_top"> <td colspan="2"> <h2 class="oe_view_title"> <span class="oe_view_title_text">All Feeds</span> diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml index a697d586cd4..b4c8a295241 100644 --- a/addons/marketing/marketing_view.xml +++ b/addons/marketing/marketing_view.xml @@ -2,14 +2,11 @@ <openerp> <data> - <menuitem - name="Marketing" - icon="terp-crm" + <!-- Top menu item --> + <menuitem name="Marketing" id="base.marketing_menu" - sequence="17" groups="marketing.group_marketing_user,marketing.group_marketing_manager" - web_icon="images/marketing.png" - web_icon_hover="images/marketing-hover.png"/> + sequence="120"/> </data> </openerp> diff --git a/addons/marketing_campaign/res_partner_view.xml b/addons/marketing_campaign/res_partner_view.xml index ebbefeeb1f4..ee619f041e8 100644 --- a/addons/marketing_campaign/res_partner_view.xml +++ b/addons/marketing_campaign/res_partner_view.xml @@ -2,27 +2,21 @@ <openerp> <data> - <!-- Partners inherited form --> - <record id="base.view_crm_partner_info_History" model="ir.ui.view"> - <field name="name">res.partner.crm.history.inherit1</field> - <field name="model">res.partner</field> - <field name="type">form</field> - <field name="inherit_id" ref="base.view_partner_form"/> - <field name="arch" type="xml"> - <xpath expr="//page[@string='History']" position="attributes"> - <attribute name="invisible">False</attribute> - </xpath> - </field> - </record> + <!-- Partners inherited form --> <record id="view_workitem_partner_info_form" model="ir.ui.view"> <field name="name">res.partner.workitem.info.inherit</field> <field name="model">res.partner</field> <field name="type">form</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml"> - <page string="History" position="inside"> - <field name="workitem_ids" colspan="4" nolabel="1"/> - </page> + <xpath expr="//page[@name='page_history']" position="attributes"> + <attribute name="invisible">False</attribute> + </xpath> + <xpath expr="//page[@name='page_history']" position="inside"> + <group name="grp_campaign" string="Campaign"> + <field name="workitem_ids" colspan="4" nolabel="1"/> + </group> + </xpath> </field> </record> </data> diff --git a/addons/membership/membership.py b/addons/membership/membership.py index dc4eadbada9..06b84ec80c5 100644 --- a/addons/membership/membership.py +++ b/addons/membership/membership.py @@ -315,11 +315,11 @@ class Partner(osv.osv): return self._membership_state(*args, **kwargs) _columns = { - 'associate_member': fields.many2one('res.partner', 'Associate member',help="A member with whom you want to associate your membership.It will consider the membership state of the associated member."), + 'associate_member': fields.many2one('res.partner', 'Associate Member',help="A member with whom you want to associate your membership.It will consider the membership state of the associated member."), 'member_lines': fields.one2many('membership.membership_line', 'partner', 'Membership'), - 'free_member': fields.boolean('Free member', help = "Select if you want to give membership free of cost."), + 'free_member': fields.boolean('Free Member', help = "Select if you want to give membership free of cost."), 'membership_amount': fields.float( - 'Membership amount', digits=(16, 2), + 'Membership Amount', digits=(16, 2), help = 'The price negotiated by the partner'), 'membership_state': fields.function( __get_membership_state, @@ -338,7 +338,7 @@ class Partner(osv.osv): -Paid Member: A member who has paid the membership amount."""), 'membership_start': fields.function( _membership_date, multi = 'membeship_start', - string = 'Start membership date', type = 'date', + string = 'Start Membership Date', type = 'date', store = { 'account.invoice': (_get_invoice_partner, ['state'], 10), 'membership.membership_line': (_get_partner_id, ['state'], 10, ), @@ -346,7 +346,7 @@ class Partner(osv.osv): }, help="Date from which membership becomes active."), 'membership_stop': fields.function( _membership_date, - string = 'Stop membership date', type='date', multi='membership_stop', + string = 'Stop Membership Date', type='date', multi='membership_stop', store = { 'account.invoice': (_get_invoice_partner, ['state'], 10), 'membership.membership_line': (_get_partner_id, ['state'], 10), @@ -354,7 +354,7 @@ class Partner(osv.osv): }, help="Date until which membership remains active."), 'membership_cancel': fields.function( _membership_date, - string = 'Cancel membership date', type='date', multi='membership_cancel', + string = 'Cancel Membership Date', type='date', multi='membership_cancel', store = { 'account.invoice': (_get_invoice_partner, ['state'], 11), 'membership.membership_line': (_get_partner_id, ['state'], 10), diff --git a/addons/membership/membership_data.xml b/addons/membership/membership_data.xml index 60c21fc6cf6..14fbb00f9a2 100644 --- a/addons/membership/membership_data.xml +++ b/addons/membership/membership_data.xml @@ -5,10 +5,10 @@ <!-- Price type --> - <record model="product.price.type" id="product_price_type_memberprice" > - <field name="name">Member Price</field> - <field name="field">member_price</field> - </record> + <record model="product.price.type" id="product_price_type_memberprice" > + <field name="name">Member Price</field> + <field name="field">member_price</field> + </record> <!-- Price list diff --git a/addons/membership/membership_view.xml b/addons/membership/membership_view.xml index 9c566a69bde..5eea7170367 100644 --- a/addons/membership/membership_view.xml +++ b/addons/membership/membership_view.xml @@ -2,8 +2,6 @@ <openerp> <data> - - <!-- MEMBERSHIP --> <!-- MEMBERSHIP/MEMBERSHIP PRODUCTS --> @@ -71,7 +69,7 @@ <group> <label for="membership_date_from" string="Membership Duration"/> <div> - <field name="membership_date_from" required="1" class="oe_inline"/> - + <field name="membership_date_from" required="1" class="oe_inline"/> - <field name="membership_date_to" required="1" class="oe_inline"/> </div> <field name="list_price" string="Membership Fee"/> @@ -282,7 +280,7 @@ <!-- MEMBERSHIP/REPORTING --> <menuitem name="Reporting" id="base.menu_report_association" parent="base.menu_association" sequence="20"/> -<!-- View for product.product object inherited from product module................ --> + <!-- View for product.product object inherited from product module --> <record model="ir.ui.view" id="view_product_form_inherit1"> <field name="name">product.normal.form</field> <field name="type">form</field> diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index c4a4d8df895..56ac47095a1 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -206,7 +206,7 @@ class mrp_bom(osv.osv): 'product_id': fields.many2one('product.product', 'Product', required=True), 'product_uos_qty': fields.float('Product UOS Qty'), 'product_uos': fields.many2one('product.uom', 'Product UOS', help="Product UOS (Unit of Sale) is the unit of measurement for the invoicing and promotion of stock."), - 'product_qty': fields.float('Product Qty', required=True, digits_compute=dp.get_precision('Product Unit of Measure')), + 'product_qty': fields.float('Product Quantity', required=True, digits_compute=dp.get_precision('Product Unit of Measure')), 'product_uom': fields.many2one('product.uom', 'Product Unit of Measure', required=True, help="Unit of Measure (Unit of Measure) is the unit of measurement for the inventory control"), 'product_rounding': fields.float('Product Rounding', help="Rounding applied on the product quantity."), 'product_efficiency': fields.float('Manufacturing Efficiency', required=True, help="A factor of 0.9 means a loss of 10% within the production process."), @@ -456,7 +456,7 @@ class mrp_production(osv.osv): 'product_id': fields.many2one('product.product', 'Product', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'product_qty': fields.float('Product Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), required=True, states={'draft':[('readonly',False)]}, readonly=True), 'product_uom': fields.many2one('product.uom', 'Product Unit of Measure', required=True, states={'draft':[('readonly',False)]}, readonly=True), - 'product_uos_qty': fields.float('Product UoS Qty', states={'draft':[('readonly',False)]}, readonly=True), + 'product_uos_qty': fields.float('Product UoS Quantity', states={'draft':[('readonly',False)]}, readonly=True), 'product_uos': fields.many2one('product.uom', 'Product UoS', states={'draft':[('readonly',False)]}, readonly=True), 'location_src_id': fields.many2one('stock.location', 'Raw Materials Location', required=True, @@ -474,7 +474,7 @@ class mrp_production(osv.osv): 'routing_id': fields.many2one('mrp.routing', string='Routing', on_delete='set null', readonly=True, states={'draft':[('readonly',False)]}, help="The list of operations (list of work centers) to produce the finished product. The routing is mainly used to compute work center costs during operations and to plan future loads on work centers based on production plannification."), 'picking_id': fields.many2one('stock.picking', 'Picking List', readonly=True, ondelete="restrict", help="This is the Internal Picking List that brings the finished product to the production plan"), - 'move_prod_id': fields.many2one('stock.move', 'Move product', readonly=True), + 'move_prod_id': fields.many2one('stock.move', 'Product Move', readonly=True), 'move_lines': fields.many2many('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Products to Consume', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}), 'move_lines2': fields.many2many('stock.move', 'mrp_production_move_ids', 'production_id', 'move_id', 'Consumed Products', domain=[('state','in', ('done', 'cancel'))]), 'move_created_ids': fields.one2many('stock.move', 'production_id', 'Products to Produce', domain=[('state','not in', ('done', 'cancel'))], states={'done':[('readonly',True)]}), @@ -1108,7 +1108,7 @@ class mrp_production_product_line(osv.osv): 'product_id': fields.many2one('product.product', 'Product', required=True), 'product_qty': fields.float('Product Quantity', digits_compute=dp.get_precision('Product Unit of Measure'), required=True), 'product_uom': fields.many2one('product.uom', 'Product Unit of Measure', required=True), - 'product_uos_qty': fields.float('Product UOS Qty'), + 'product_uos_qty': fields.float('Product UOS Quantity'), 'product_uos': fields.many2one('product.uom', 'Product UOS'), 'production_id': fields.many2one('mrp.production', 'Production Order', select=True), } diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 86b0fcee0d5..2d3e90c341a 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -2,17 +2,21 @@ <openerp> <data> - <menuitem icon="terp-mrp" id="base.menu_mrp_root" parent="" name="Manufacturing" - groups="group_mrp_user,group_mrp_manager" sequence="8" - web_icon="images/manufacturing.png" - web_icon_hover="images/manufacturing-hover.png"/> + <!-- Top menu item --> + <menuitem name="Manufacturing" + id="base.menu_mrp_root" + groups="group_mrp_user,group_mrp_manager" + sequence="60"/> - <menuitem id="menu_mrp_manufacturing" name="Manufacturing" parent="base.menu_mrp_root" sequence="1"/> + <menuitem name="Manufacturing" + id="menu_mrp_manufacturing" + parent="base.menu_mrp_root" + sequence="1"/> <menuitem name="Master Data" id="menu_mrp_bom" parent="base.menu_mrp_root" - sequence="5" /> + sequence="5"/> <!-- Property / Property Group @@ -46,7 +50,7 @@ name="Configuration" parent="base.menu_mrp_root" groups="group_mrp_manager" - sequence="50" /> + sequence="50"/> <record id="mrp_property_tree_view" model="ir.ui.view"> <field name="name">mrp.property.tree</field> @@ -86,7 +90,7 @@ <group> <field name="name" string="Name"/> <separator orientation="vertical"/> - <field name="group_id" widget="selection" /> + <field name="group_id" widget="selection"/> <field name="composition"/> </group> <newline/> @@ -117,17 +121,19 @@ id="menu_mrp_property" parent="menu_mrp_configuration" groups="mrp.group_mrp_routings,product.group_mrp_properties" - sequence="20" /> + sequence="20"/> <menuitem action="mrp_property_action" id="menu_mrp_property_action" groups="product.group_mrp_properties" - parent="menu_mrp_property"/> + parent="menu_mrp_configuration" + sequence="30"/> <menuitem action="mrp_property_group_action" - parent="menu_mrp_property" - groups="product.group_mrp_properties" - id="menu_mrp_property_group_action"/> + parent="menu_mrp_configuration" + groups="base.group_no_one,product.group_mrp_properties" + id="menu_mrp_property_group_action" + sequence="35"/> <!-- Work Centers @@ -153,12 +159,16 @@ <field name="arch" type="xml"> <form string="Work Center" version="7.0"> <group col="4"> - <field name="name"/> - <field name="code"/> - <field name="active"/> - <field name="resource_type"/> - <field name="calendar_id" widget="selection"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> + <group> + <field name="name"/> + <field name="resource_type"/> + <field name="calendar_id" widget="selection"/> + </group> + <group> + <field name="code"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + <field name="active"/> + </group> </group> <notebook> <page string="General Information"> @@ -260,18 +270,22 @@ <field name="arch" type="xml"> <form string="Routing" version="7.0"> <group col="4"> - <field name="name"/> - <field name="code"/> - <field name="active"/> - <field name="location_id"/> - <field name="company_id" widget="selection" groups="base.group_multi_company"/> + <group> + <field name="name"/> + <field name="code"/> + </group> + <group> + <field name="location_id"/> + <field name="company_id" widget="selection" groups="base.group_multi_company"/> + <field name="active"/> + </group> </group> <notebook> <page string="Work Center Operations"> - <field name="workcenter_lines"/> + <field name="workcenter_lines"/> </page> <page string="Notes"> - <field name="note"/> + <field name="note"/> </page> </notebook> </form> @@ -333,66 +347,68 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Bill of Material" version="7.0"> - <sheet> - <label for="product_id" string="Product and Quantity" class="oe_edit_only"/> - <h1> - <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/>: - <field name="product_qty" class="oe_inline"/> - <field name="product_uom" class="oe_inline" groups="product.group_uom"/> - </h1> - <div groups="mrp.group_mrp_routings"> - <label for="routing_id" class="oe_edit_only"/> - <h2><field name="routing_id" class="oe_inline"/></h2> - </div> + <label for="product_id" string="Product and Quantity" class="oe_edit_only"/> + <h1> + <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/>: + <field name="product_qty" class="oe_inline"/> + <field name="product_uom" class="oe_inline" groups="product.group_uom"/> + </h1> + <div groups="mrp.group_mrp_routings"> + <label for="routing_id" class="oe_edit_only"/> + <h2><field name="routing_id" class="oe_inline"/></h2> + </div> + <group> <group> - <group> - <field name="name"/> - <field name="code" string="Reference"/> - </group> - <group> - <field name="type"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> - <field name="product_uos_qty" groups="product.group_uos" /> - <field name="product_uos" groups="product.group_uos"/> - </group> + <field name="name"/> + <field name="code" string="Reference"/> + </group> + <group> + <field name="type"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + <label for="product_uos_qty" groups="product.group_uos"/> + <div groups="product.group_uos" > + <field name="product_uos_qty" + class="oe_inline"/> + <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/> + <field name="product_uos" class="oe_inline"/> + </div> </group> - <notebook> - <page string="Components"> - <field name="bom_lines" widget="one2many_list"> - <tree string="Components" editable="bottom"> - <field name="product_id" on_change="onchange_product_id(product_id, name)"/> - <field name="product_qty"/> - <field name="product_uom" groups="product.group_uom"/> - <field name="name" invisible="1"/> - <field name="date_start"/> - <field name="date_stop"/> - </tree> - </field> - </page> - <page string="Revisions" attrs="{'invisible': [('bom_id','!=',False)]}"> - <field name="revision_ids"/> - </page> - <page string="Properties" groups="product.group_mrp_properties"> + </group> + <notebook> + <page string="Components"> + <field name="bom_lines" widget="one2many_list"> + <tree string="Components" editable="bottom"> + <field name="product_id" on_change="onchange_product_id(product_id, name)"/> + <field name="product_qty"/> + <field name="product_uom" groups="product.group_uom"/> + <field name="name" invisible="1"/> + <field name="date_start"/> + <field name="date_stop"/> + </tree> + </field> + </page> + <page string="Revisions" attrs="{'invisible': [('bom_id','!=',False)]}"> + <field name="revision_ids"/> + </page> + <page string="Properties" groups="product.group_mrp_properties"> + <group> <group> - <group> - <field name="position"/> - <field name="bom_id"/> - <field name="sequence"/> - <field name="active"/> - </group> - <group> - <field name="date_start"/> - <field name="date_stop"/> - <field name="product_rounding"/> - <field name="product_efficiency"/> - </group> + <field name="position"/> + <field name="bom_id"/> + <field name="sequence"/> + <field name="active"/> + </group> + <group> + <field name="date_start"/> + <field name="date_stop"/> + <field name="product_rounding"/> + <field name="product_efficiency"/> </group> - <separator string="Properties"/> - <field name="property_ids" widget="many2many_tags" /> - </page> - </notebook> - <newline/> - </sheet> + </group> + <separator string="Properties"/> + <field name="property_ids" widget="many2many_tags"/> + </page> + </notebook> </form> </field> </record> @@ -412,10 +428,10 @@ <newline/> <group expand="0" string="Group By..."> <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/> - <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}" /> + <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}"/> <separator orientation="vertical"/> <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/> - <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" /> + <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/> <separator orientation="vertical"/> <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/> </group> @@ -504,7 +520,7 @@ <menuitem action="mrp_bom_form_action2" id="menu_mrp_bom_form_action2" - parent="menu_mrp_bom" + parent="menu_mrp_configuration" sequence="20"/> <record id="action2" model="ir.actions.act_window"> @@ -562,7 +578,7 @@ <field name="model">mrp.production</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree fonts="bold:needaction_pending==True" colors="blue:state in ('draft','confirmed');red:date_planned<current_date and state not in ('done','cancel');black:date_planned>=current_date and state not in ('done','cancel');gray:state in ('done','cancel')" string="Manufacturing Orders"> + <tree fonts="bold:needaction_pending==True" colors="blue:state in ('draft','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="needaction_pending" invisible="1"/> <field name="name"/> <field name="date_planned"/> @@ -635,21 +651,22 @@ <field name="state" widget="statusbar" statusbar_visible="draft,ready,in_production,done" statusbar_colors='{"picking_except":"red","confirmed":"blue"}'/> </header> <sheet> - <div class="oe_button_box oe_right"> - <button name="%(mrp.action_change_production_qty)d" type="action" states="ready,confirmed" - string="Change Quantity" icon="terp-accessories-archiver+"/> - </div> - <div class="oe_title"> - <label for="product_id" string="Product and Quantity" class="oe_edit_only"/> - <h1> - <field name="product_id" on_change="product_id_change(product_id)" domain="[('supply_method','=','produce')]" class="oe_inline"/>: - <field name="product_qty" class="oe_inline"/> - <field name="product_uom" class="oe_inline" groups="product.group_uom"/> - </h1> - <div groups="mrp.group_mrp_routings"> - <label for="routing_id" class="oe_edit_only"/> - <h2><field name="routing_id" class="oe_inline"/></h2> - </div> + <label for="product_id" class="oe_edit_only"/> + <h1> + <field name="product_id" on_change="product_id_change(product_id)" domain="[('supply_method','=','produce')]" class="oe_inline"/> + </h1> + <label for="product_qty" class="oe_edit_only"/> + <h2> + <field name="product_qty" class="oe_inline"/> + <field name="product_uom" groups="product.group_uom" class="oe_inline"/> + <button type="action" + icon="terp-accessories-archiver+" + name="%(mrp.action_change_production_qty)d" + string="Change Qty" states="ready,confirmed" class="oe_inline"/> + </h2> + <div groups="mrp.group_mrp_routings"> + <label for="routing_id" class="oe_edit_only"/> + <h2><field name="routing_id" class="oe_inline"/></h2> </div> <group> <group> @@ -659,95 +676,107 @@ </group> <group> <field name="user_id"/> - <field name="product_uos_qty" groups="product.group_uos"/> - <field name="product_uos" groups="product.group_uos"/> + <label for="product_uos_qty" groups="product.group_uos"/> + <div groups="product.group_uos"> + <field name="product_uos_qty" class="oe_inline"/> + <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/> + <field name="product_uos" class="oe_inline"/> + </div> </group> </group> <notebook> <page string="Consumed Products"> <group> <group groups="stock.group_locations"> - <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)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)"/> </group> <group> - <field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)"/> + <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')]"/> </group> </group> <group> - <field name="move_lines" domain="[('state','<>', ('done', 'cancel'))]"> - <tree colors="blue:state == 'draft';black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume"> - <field name="product_id"/> - <field name="product_qty"/> - <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> - <field name="location_id" string="Source Loc." groups="stock.group_locations"/> - <field name="state" invisible="1"/> - <button name="%(stock.move_consume)d" - string="Consume Products" type="action" - icon="gtk-go-forward" context="{'consume': True}" - states="draft,waiting,confirmed,assigned" /> - <button - name="%(stock.track_line)d" - string="Split in Serial Numbers" - type="action" icon="gtk-justify-fill" - states="draft,waiting,confirmed,assigned" /> - <button name="%(stock.move_scrap)d" - string="Scrap Products" type="action" - icon="gtk-convert" context="{'scrap': True}" - states="draft,waiting,confirmed,assigned"/> - </tree> - </field> - <field name="move_lines2" domain="[('state','in', ('done', 'cancel'))]"> - <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state == 'cancel' " string="Consumed Products" editable="bottom"> - <field name="product_id" readonly="1"/> - <field name="product_qty" readonly="1"/> - <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/> - <field name="prodlot_id" context="{'product_id': product_id}"/> - <field name="state" invisible="1"/> - <field name="scrapped" invisible="1"/> - <button - name="%(stock.move_scrap)d" - string="Scrap Products" type="action" - icon="gtk-convert" - states="done,cancel"/> - </tree> - </field> + <group string="Products to Consume"> + <field name="move_lines" domain="[('state','<>', ('done', 'cancel'))]" nolabel="1"> + <tree colors="blue:state == 'draft';black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume"> + <field name="product_id"/> + <field name="product_qty" string="Quantity"/> + <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> + <field name="location_id" string="Source Loc." groups="stock.group_locations"/> + <field name="state" invisible="1"/> + <button name="%(stock.move_consume)d" + string="Consume Products" type="action" + icon="gtk-go-forward" context="{'consume': True}" + states="draft,waiting,confirmed,assigned"/> + <button + name="%(stock.track_line)d" + string="Split in Serial Numbers" + type="action" icon="gtk-justify-fill" + states="draft,waiting,confirmed,assigned"/> + <button name="%(stock.move_scrap)d" + string="Scrap Products" type="action" + icon="gtk-convert" context="{'scrap': True}" + states="draft,waiting,confirmed,assigned"/> + </tree> + </field> + </group> + <group string="Consumed Product"> + <field name="move_lines2" domain="[('state','in', ('done', 'cancel'))]" nolabel="1"> + <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state == 'cancel' " string="Consumed Products" editable="bottom"> + <field name="product_id" readonly="1"/> + <field name="product_qty" readonly="1"/> + <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/> + <field name="prodlot_id" context="{'product_id': product_id}"/> + <field name="state" invisible="1"/> + <field name="scrapped" invisible="1"/> + <button + name="%(stock.move_scrap)d" + string="Scrap Products" type="action" + icon="gtk-convert" + states="done,cancel"/> + </tree> + </field> + </group> </group> </page> <page string="Finished Products"> <group> - <field name="move_created_ids" domain="[('state','<>', ('done', 'cancel'))]"> - <tree string="Products to Finish"> - <field name="product_id"/> - <field name="product_qty"/> - <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> - <field name="state" invisible="1"/> - <button name="%(stock.action_partial_move_server)d" - string="Partial" - type="action" states="confirmed,assigned" - icon="gtk-justify-fill"/> - <button name="%(stock.move_scrap)d" - string="Scrap Products" type="action" - icon="gtk-convert" context="{'scrap': True}" - states="draft,waiting,confirmed,assigned" /> - </tree> - </field> - <field name="move_created_ids2" domain="[('state','in', ('done', 'cancel'))]"> - <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel','done') " string="Finished Products"> - <field name="product_id" readonly="1"/> - <field name="product_qty" readonly="1"/> - <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/> - <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection" groups="stock.group_locations"/> - <field name="prodlot_id" context="{'product_id': product_id}"/> - <field name="scrapped" invisible="1"/> - <field name="state" invisible="1"/> - <button name="%(stock.track_line)d" - string="Split in Serial Numbers" type="action" icon="gtk-justify-fill" states="done,cancel"/> - <button name="%(stock.move_scrap)d" - string="Scrap Products" type="action" icon="gtk-convert" - states="done,cancel" /> - </tree> - </field> + <group string="Products to Produce"> + <field name="move_created_ids" domain="[('state','<>', ('done', 'cancel'))]" nolabel="1"> + <tree string="Products to Finish"> + <field name="product_id"/> + <field name="product_qty"/> + <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> + <field name="state" invisible="1"/> + <button name="%(stock.action_partial_move_server)d" + string="Partial" + type="action" states="confirmed,assigned" + icon="gtk-justify-fill"/> + <button name="%(stock.move_scrap)d" + string="Scrap Products" type="action" + icon="gtk-convert" context="{'scrap': True}" + states="draft,waiting,confirmed,assigned"/> + </tree> + </field> + </group> + <group string="Produced Products"> + <field name="move_created_ids2" domain="[('state','in', ('done', 'cancel'))]" nolabel="1"> + <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel','done') " string="Finished Products"> + <field name="product_id" readonly="1"/> + <field name="product_qty" readonly="1"/> + <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/> + <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection" groups="stock.group_locations"/> + <field name="prodlot_id" context="{'product_id': product_id}"/> + <field name="scrapped" invisible="1"/> + <field name="state" invisible="1"/> + <button name="%(stock.track_line)d" + string="Split in Serial Numbers" type="action" icon="gtk-justify-fill" states="done,cancel"/> + <button name="%(stock.move_scrap)d" + string="Scrap Products" type="action" icon="gtk-convert" + states="done,cancel"/> + </tree> + </field> + </group> </group> </page> <page string="Work Orders"> @@ -758,7 +787,7 @@ <form string="Production Work Centers" version="7.0"> <group col="4"> <field colspan="4" name="name"/> - <field name="workcenter_id" widget="selection"/> + <field name="workcenter_id"/> <field name="sequence"/> <field name="cycle"/> <field name="hour"/> @@ -767,7 +796,7 @@ <tree string="Production Work Centers"> <field name="sequence"/> <field name="name"/> - <field name="workcenter_id" widget="selection"/> + <field name="workcenter_id"/> <field name="cycle"/> <field name="hour"/> </tree> @@ -782,15 +811,15 @@ <page string="Extra Information"> <group> <group> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> <field name="priority"/> - <field name="picking_id"/> - <field name="move_prod_id" groups="stock.group_locations"/> - </group> - <group> <field name="date_start"/> <field name="date_finished"/> </group> + <group> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + <field name="picking_id"/> + <field name="move_prod_id" groups="stock.group_locations"/> + </group> </group> </page> </notebook> @@ -822,7 +851,7 @@ help="Manufacturing Orders which are currently in production."/> <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" domain="['&', ('date_planned','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]" - help="Production started late" /> + help="Production started late"/> <separator orientation="vertical"/> <field name="product_id"/> <field name="routing_id" groups="mrp.group_mrp_routings"/> @@ -974,7 +1003,7 @@ <separator string="Bill of Materials"/> <field name="bom_ids" widget="one2many_list" mode="tree" context="{'default_product_id': active_id}"> <tree string="Bill of Materials"> - <field name="name" string="Component Name"/> + <field name="name" string="Component Name"/> <field name="bom_id"/> <field name="product_qty" string="Quantity of Product"/> <field name="type"/> @@ -1009,7 +1038,7 @@ <!-- Menu for Resource for MRP--> <record id="mrp_workcenter_action" model="ir.actions.act_window"> - <field name="name">Work Centers</field> + <field name="name">Work Center</field> <field name="type">ir.actions.act_window</field> <field name="res_model">mrp.workcenter</field> <field name="view_type">form</field> @@ -1024,7 +1053,7 @@ </record> <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/> - <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" groups="mrp.group_mrp_routings" parent="mrp.menu_mrp_bom" sequence="25"/> + <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" groups="mrp.group_mrp_routings" parent="mrp.menu_mrp_configuration" sequence="25"/> <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_config" sequence="1" groups="base.group_no_one"/> <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_config" sequence="1" groups="base.group_no_one"/> diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index 0a16626ecd9..2dccc92a51e 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -8,18 +8,17 @@ <field name="type">form</field> <field name="inherit_id" ref="mrp.mrp_production_form_view"/> <field name="arch" type="xml"> - <xpath expr="//field[@name='workcenter_lines']/form//field[@name='hour']" position="after"> - <group colspan="8" col="8"> - <separator colspan="8"/> - <field name="state"/> - <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop" help="Cancel Order"/> - <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/> - <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/> - <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/> - <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> - <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/> - </group> - </xpath> + <xpath expr="//field[@name='workcenter_lines']/form//field[@name='name']" position="before"> + <header colspan="8"> + <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/> + <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop" help="Cancel Order"/> + <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/> + <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/> + <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> + <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/> + <field name="state" widget="statusbar"/> + </header> + </xpath> </field> </record> @@ -80,7 +79,7 @@ <sheet string="Work Orders"> <group col="4"> <field colspan="4" name="name"/> - <field name="workcenter_id" widget="selection"/> + <field name="workcenter_id"/> <field name="production_id"/> <field name="production_state"/> <field name="sequence"/> @@ -351,7 +350,7 @@ <field name="model">mrp.production</field> <field name="type">form</field> <field name="arch" type="xml"> - <field name="priority" position="after"> + <field name="date_finished" position="after"> <field name="allow_reorder"/> </field> </field> diff --git a/addons/plugin_outlook/plugin_outlook.xml b/addons/plugin_outlook/plugin_outlook.xml index 0340a7c502f..04e5dca32de 100644 --- a/addons/plugin_outlook/plugin_outlook.xml +++ b/addons/plugin_outlook/plugin_outlook.xml @@ -11,10 +11,7 @@ <form position="attributes"> <attribute name="string">Install Outlook Plug-In</attribute> </form> - <separator string="title" position="before"> - <label string="This plug-in allows you to create and link outlook emails with openerp objects."/> - </separator> - <xpath expr="//header" position="replace"/> + <xpath expr="//footer" position="replace"/> <xpath expr="//separator[@string='title']" position="after" version="7.0"> <group> <field name="plugin32" widget="url"/> @@ -29,7 +26,7 @@ </ul> </xpath> <separator string="title" position="attributes"> - <attribute name="string">Install Outlook Plug-In</attribute> + <attribute name="string"></attribute> </separator> </data> </field> diff --git a/addons/plugin_thunderbird/plugin_thunderbird.xml b/addons/plugin_thunderbird/plugin_thunderbird.xml index fef7772dfdf..1adb4fa5eda 100644 --- a/addons/plugin_thunderbird/plugin_thunderbird.xml +++ b/addons/plugin_thunderbird/plugin_thunderbird.xml @@ -11,10 +11,7 @@ <form position="attributes"> <attribute name="string">Install Thunderbird Plug-In</attribute> </form> - <separator string="title" position="before"> - <label string="This plug-in allows you to link your email to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."/> - </separator> - <xpath expr="//header" position="replace"/> + <xpath expr="//footer" position="replace"/> <xpath expr="//separator[@string='title']" position="after"> <group> <field name="thunderbird" invisible="1"/> @@ -35,7 +32,7 @@ </ul> </xpath> <separator string="title" position="attributes"> - <attribute name="string">Install Thunderbird Plug-In</attribute> + <attribute name="string"></attribute> </separator> </data> </field> diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py index db89e906bf3..80bb34fba27 100644 --- a/addons/point_of_sale/__openerp__.py +++ b/addons/point_of_sale/__openerp__.py @@ -99,6 +99,6 @@ Main features: 'static/src/css/keyboard.css' ], 'qweb': ['static/src/xml/pos.xml'], - 'auto_install': True, + 'auto_install': False, } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/point_of_sale/account_statement_view.xml b/addons/point_of_sale/account_statement_view.xml index acc0e482e3f..3b3542bb777 100644 --- a/addons/point_of_sale/account_statement_view.xml +++ b/addons/point_of_sale/account_statement_view.xml @@ -106,7 +106,7 @@ <field name="inherit_id" ref="account.view_cash_statement_tree"/> <field name="arch" type="xml"> <field name="journal_id" position="after"> - <field name="user_id"/> + <field name="user_id" string="Responsible"/> </field> </field> </record> diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index f3b491116b7..6b1b9132344 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -1,14 +1,15 @@ <?xml version="1.0"?> <openerp> <data> - <menuitem name="PoS Backend" id="menu_point_root" sequence="20" - icon="terp-partner" + + <!-- Top menu item --> + <menuitem name="PoS Backend" + id="menu_point_root" groups="group_pos_manager" - web_icon="images/pos.png" - web_icon_hover="images/pos-hover.png"/> + sequence="140"/> <record id="categ_others" model="pos.category"> - <field name="name">Others</field> + <field name="name">Others</field> </record> <record model="ir.ui.view" id="view_pos_pos_form"> @@ -16,7 +17,7 @@ <field name="model">pos.order</field> <field name="type">form</field> <field name="arch" type="xml"> - <form string="Point of Sale Orders" version="7.0"> + <form string="Point of Sale Orders" version="7.0"> <div class="oe_form_topbar"> <button name="%(action_pos_payment)d" string="Payment" icon="gtk-apply" type="action" states="draft" context="{'pos_session_id' : session_id}"/> <button name="action_invoice" string="Invoice" icon="gtk-apply" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/> @@ -27,7 +28,7 @@ <field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/> </div> </div> - <sheet> + <sheet> <group col="4" colspan="4"> <field name="name"/> <field name="date_order"/> @@ -748,16 +749,19 @@ <field name="tag">pos.ui</field> </record> + <!-- Top menu item --> + <!-- + right now it's not possible to directly call a client action + from a menuitem, so we can't use this shortcut element and + use an explicit record element instead + --> <record id="menu_point_root_touchscreen" model="ir.ui.menu"> - <field name="name">Point of Sale</field> - <field name="sequence" eval="21"/> - <field name="action" ref="action_pos_pos"/> + <field name="name">Point of Sale</field> + <field name="action" ref="action_pos_pos"/> + <field name="groups_id" eval="[(6, 0, [ref('point_of_sale.group_pos_manager'), ref('point_of_sale.group_pos_user')])]"/> + <field name="sequence">150</field> </record> - <!-- use menuitem to add web_icon and web_icon_hover above --> - <menuitem id="menu_point_root_touchscreen" - web_icon="images/pos.png" web_icon_hover="images/pos-hover.png" groups="point_of_sale.group_pos_manager,point_of_sale.group_pos_user"/> - <record model="ir.ui.view" id="view_pos_config_form"> <field name="name">pos.config.form.view</field> <field name="model">pos.config</field> @@ -842,12 +846,12 @@ </record> - <act_window - id="act_pos_config_sessions" + <act_window + id="act_pos_config_sessions" name="Sessions" src_model="pos.config" res_model="pos.session" - domain="[('config_id', '=', active_id)]" /> + domain="[('config_id', '=', active_id)]" /> <record model="ir.actions.act_window" id="action_pos_config_pos"> <field name="name">Point of Sales</field> @@ -864,8 +868,8 @@ id="menu_pos_config_pos" groups="group_pos_manager"/> - <act_window - id="act_pos_session_orders" + <act_window + id="act_pos_session_orders" name="Orders" src_model="pos.session" res_model="pos.order" @@ -878,10 +882,10 @@ <field name="model">pos.session</field> <field name="type">form</field> <field name="arch" type="xml"> - <form string="Point of Sale Session" version="7.0"> + <form string="Point of Sale Session" version="7.0"> <header> - <button name="open" type="workflow" string="Validate & Open Session" states="opening_control" /> - <button name="cashbox_control" type="workflow" string="End of Session" states="opened" /> + <button name="open" type="workflow" string="Validate & Open Session" states="opening_control" /> + <button name="cashbox_control" type="workflow" string="End of Session" states="opened" /> <button name="close" type="workflow" string="Validate & Close" states="closing_control,opened" /> <div class="oe_right"> diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index e4158a88ae0..4fe51dc67f6 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -314,18 +314,18 @@ <form string="Product Categories" version="7.0"> <sheet> <div class="oe_title"> + <label for="name" class="oe_edit_only"/> <h1> - <label for="name" class="oe_edit_only"/> <field name="name"/> </h1> </div> <group> - <group> - <field name="type"/> - </group> - <group> - <field name="parent_id"/> - </group> + <group> + <field name="parent_id"/> + </group> + <group> + <field name="type"/> + </group> </group> <group name="basic"> <group name="account_property" string="Account Properties"/> diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 26814892775..cc6f5b05ad8 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -2,16 +2,15 @@ <openerp> <data> - <menuitem - icon="terp-project" id="base.menu_main_pm" - name="Project" sequence="10" + <!-- Top menu item --> + <menuitem name="Project" + id="base.menu_main_pm" groups="group_project_manager,group_project_user" - web_icon="images/project.png" - web_icon_hover="images/project-hover.png"/> + sequence="90"/> <menuitem id="menu_project_management" name="Project" parent="base.menu_main_pm" sequence="1"/> <menuitem id="base.menu_definitions" name="Configuration" parent="base.menu_main_pm" sequence="60"/> - + <act_window context="{'search_default_project_id': [active_id], 'default_project_id': active_id}" id="act_project_project_2_project_task_all" @@ -33,9 +32,9 @@ <record id="action_project_unread" model="ir.values"> <field name="name">action_project_unread</field> <field name="action_id" ref="actions_server_project_unread"/> - <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_unread'))" /> + <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_unread'))"/> <field name="key">action</field> - <field name="model_id" ref="model_project_project" /> + <field name="model_id" ref="model_project_project"/> <field name="model">project.project</field> <field name="key2">client_action_multi</field> </record> @@ -51,9 +50,9 @@ <record id="action_project_read" model="ir.values"> <field name="name">action_project_read</field> <field name="action_id" ref="actions_server_project_read"/> - <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_read'))" /> + <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_read'))"/> <field name="key">action</field> - <field name="model_id" ref="model_project_project" /> + <field name="model_id" ref="model_project_project"/> <field name="model">project.project</field> <field name="key2">client_action_multi</field> </record> @@ -97,7 +96,7 @@ </tr> <tr name="use_attachment_row"> <td/> - <td><button icon="terp-gtk-go-back-rtl" class="oe_btn_width" name="%(base.action_attachment)d" string="Documents" type="action" /></td> + <td><button icon="terp-gtk-go-back-rtl" class="oe_btn_width" name="%(base.action_attachment)d" string="Documents" type="action"/></td> </tr> </table> </group> @@ -156,31 +155,31 @@ <field name="type">search</field> <field name="arch" type="xml"> <search string="Search Project"> - <group> - <field name="complete_name" string="Project Name"/> - <separator orientation="vertical"/> - <filter icon="terp-mail-message-new" + <group> + <field name="complete_name" string="Project Name"/> + <separator orientation="vertical"/> + <filter icon="terp-mail-message-new" string="Inbox" help="Unread messages" name="needaction_pending" domain="[('needaction_pending','=',True)]"/> - <separator orientation="vertical"/> - <filter icon="terp-check" string="Open" name="Current" domain="[('state', '=','open')]" help="Open Projects"/> - <filter icon="gtk-media-pause" string="Pending" name="Pending" domain="[('state', '=','pending')]" help="Pending Projects"/> - <filter icon="gtk-media-pause" string="Template" name="Template" domain="[('state', '=','template')]" help="Templates of Projects"/> - <filter icon="terp-personal+" string="Member" domain="['|',('user_id', '=', uid),('members', '=', uid)]" help="Projects in which I am a member."/> - <filter string="Project(s) Manager" domain="[('user_id','=',uid)]" help="Projects in which I am a manager" icon="terp-personal"/> - <separator orientation="vertical"/> - <field name="user_id" string="Project Manager"/> - <field name="partner_id" string="Partner"/> - </group> - <newline /> - <group expand="0" string="Group By..."> - <filter string="Manager" name="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/> - <filter string="Partner" name="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/> - <separator orientation="vertical"/> - <filter string="Parent" name="Parent" help="Parent" icon="terp-folder-blue" domain = "[]" context="{'group_by':'parent_id'}"/> - </group> - </search> + <separator orientation="vertical"/> + <filter icon="terp-check" string="Open" name="Current" domain="[('state', '=','open')]" help="Open Projects"/> + <filter icon="gtk-media-pause" string="Pending" name="Pending" domain="[('state', '=','pending')]" help="Pending Projects"/> + <filter icon="gtk-media-pause" string="Template" name="Template" domain="[('state', '=','template')]" help="Templates of Projects"/> + <filter icon="terp-personal+" string="Member" domain="['|',('user_id', '=', uid),('members', '=', uid)]" help="Projects in which I am a member."/> + <filter string="Project(s) Manager" domain="[('user_id','=',uid)]" help="Projects in which I am a manager" icon="terp-personal"/> + <separator orientation="vertical"/> + <field name="user_id" string="Project Manager"/> + <field name="partner_id" string="Partner"/> + </group> + <newline/> + <group expand="0" string="Group By..."> + <filter string="Manager" name="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/> + <filter string="Partner" name="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/> + <separator orientation="vertical"/> + <filter string="Parent" name="Parent" help="Parent" icon="terp-folder-blue" domain = "[]" context="{'group_by':'parent_id'}"/> + </group> + </search> </field> </record> @@ -359,9 +358,9 @@ <record id="action_project_task_unread" model="ir.values"> <field name="name">action_project_task_unread</field> <field name="action_id" ref="actions_server_project_task_unread"/> - <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_task_unread'))" /> + <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_task_unread'))"/> <field name="key">action</field> - <field name="model_id" ref="model_project_task" /> + <field name="model_id" ref="model_project_task"/> <field name="model">project.task</field> <field name="key2">client_action_multi</field> </record> @@ -377,9 +376,9 @@ <record id="action_project_task_read" model="ir.values"> <field name="name">action_project_task_read</field> <field name="action_id" ref="actions_server_project_task_read"/> - <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_task_read'))" /> + <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_task_read'))"/> <field name="key">action</field> - <field name="model_id" ref="model_project_task" /> + <field name="model_id" ref="model_project_task"/> <field name="model">project.task</field> <field name="key2">client_action_multi</field> </record> @@ -517,47 +516,43 @@ <t t-name="kanban-box"> <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click"> <div class="oe_dropdown_toggle oe_dropdown_kanban"> - <span class="oe_e">i</span> + <span class="oe_e">í</span> <ul class="oe_dropdown_menu"> <li><a type="edit" >Edit...</a></li> <li><a type="delete">Delete</a></li> + <li> + <ul class="oe_kanban_project_times"> + <li><a name="set_remaining_time_1" type="object" class="oe_kanban_button">1</a></li> + <li><a name="set_remaining_time_2" type="object" class="oe_kanban_button">2</a></li> + <li><a name="set_remaining_time_5" type="object" class="oe_kanban_button">5</a></li> + <li><a name="set_remaining_time_10" type="object" class="oe_kanban_button">10</a></li> + <li><a name="do_open" states="draft" string="Validate planned time" type="object" class="oe_kanban_button oe_kanban_button_active">!</a></li> + </ul> + </li> <li><ul class="oe_kanban_colorpicker" data-field="color"/></li> </ul> </div> + <div class="oe_kanban_content"> - <div> - <a t-if="record.priority.raw_value == 1" icon="star-on" type="object" name="set_normal_priority"/> - <a t-if="record.priority.raw_value != 1" icon="star-off" type="object" name="set_high_priority" style="opacity:0.6; filter:alpha(opacity=60);"/> - <b><field name="name"/></b> - </div> - <div> - <field name="partner_id"/> - </div> + <div><b><field name="name"/></b></div> <div> <field name="project_id"/> <t t-esc="kanban_text_ellipsis(record.description.value, 160)"/><br/> <i><field name="date_deadline"/></i> - <span class="oe_kanban_project_times" style="white-space: nowrap; padding-left: 5px;"> - <t t-set="hours" t-value="record.remaining_hours.raw_value"/> - <t t-set="times" t-value="[ - [1, (hours gte 1 and hours lt 2)] - ,[2, (hours gte 2 and hours lt 5)] - ,[5, (hours gte 5 and hours lt 10)] - ,[10, (hours gte 10)] - ]"/> - <t t-foreach="times" t-as="time"><a - t-if="!time[1]" t-attf-data-name="set_remaining_time_#{time[0]}" type="object" class="oe_kanban_button"><t t-esc="time[0]"/></a><b - t-if="time[1]" class="oe_kanban_button oe_kanban_button_active"><t t-esc="Math.round(hours)"/></b></t> - <a name="do_open" states="draft" string="Validate planned time" type="object" class="oe_kanban_button oe_kanban_button_active">!</a> - </span> </div> - <div class="oe_kanban_footer_left" style="margin-top:5px;"> - <div class="oe_right"> - <a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="" name="set_kanban_state_done" class="oe_kanban_status"> </a> - <a t-if="record.kanban_state.raw_value === 'done'" type="object" string="Ready" name="set_kanban_state_blocked" class="oe_kanban_status oe_kanban_status_green"> </a> - <a t-if="record.kanban_state.raw_value === 'blocked'" type="object" string="Blocked" name="set_kanban_state_normal" class="oe_kanban_status oe_kanban_status_red"> </a> - <img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/> - </div> + <div class="oe_kanban_bottom_right"> + <a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="" name="set_kanban_state_done" class="oe_kanban_status"> </a> + <a t-if="record.kanban_state.raw_value === 'done'" type="object" string="Ready" name="set_kanban_state_blocked" class="oe_kanban_status oe_kanban_status_green"> </a> + <a t-if="record.kanban_state.raw_value === 'blocked'" type="object" string="Blocked" name="set_kanban_state_normal" class="oe_kanban_status oe_kanban_status_red"> </a> + <a t-if="record.priority.raw_value == 1" type="object" name="set_normal_priority" class="oe_e oe_star_on">7</a> + <a t-if="record.priority.raw_value != 1" type="object" name="set_high_priority" class="oe_e oe_star_off">7</a> + <img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/> + </div> + <div class="oe_kanban_footer_left"> + <span> + <span class="oe_e">N</span> + <t t-esc="Math.round(record.remaining_hours.raw_value)"/> + </span> </div> </div> <div class="oe_clear"></div> @@ -650,9 +645,9 @@ <filter name="open" string="In Progress" domain="[('state','=','open')]" help="In Progress Tasks" icon="terp-camera_test"/> <filter string="Pending" domain="[('state','=','pending')]" context="{'show_delegated':False}" help="Pending Tasks" icon="terp-gtk-media-pause"/> <filter name="project" string="Project" domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-check"/> - <filter string="My Tasks" domain="[('user_id','=',uid)]" help="My Tasks" icon="terp-personal" /> - <filter string="Unassigned Tasks" domain="[('user_id','=',False)]" help="Unassigned Tasks" icon="terp-personal-" /> - <filter string="Deadlines" context="{'deadline_visible': False}" domain="[('date_deadline','<>',False)]" + <filter string="My Tasks" domain="[('user_id','=',uid)]" help="My Tasks" icon="terp-personal"/> + <filter string="Unassigned Tasks" domain="[('user_id','=',False)]" help="Unassigned Tasks" icon="terp-personal-"/> + <filter string="Deadlines" context="{'deadline_visible': False}" domain="[('date_deadline','<>',False)]" help="Show only tasks having a deadline" icon="terp-gnome-cpu-frequency-applet+"/> <separator orientation="vertical"/> <field name="project_id"/> @@ -675,7 +670,7 @@ </search> </field> </record> - + <record id="analytic_account_inherited_form" model="ir.ui.view"> <field name="name">account.analytic.account.form.inherit</field> <field name="model">account.analytic.account</field> @@ -687,7 +682,7 @@ <separator colspan="4" string="Project Management" name="project_sep"/> <!-- removal of invisible attribute --> </xpath> <xpath expr='//separator[@name="project_sep"]' position='after'> - <field name="use_tasks" /> + <field name="use_tasks"/> </xpath> </field> </record> @@ -827,5 +822,6 @@ <!-- User Form--> <act_window context="{'search_default_user_id': [active_id], 'default_user_id': active_id}" domain="[('state', '<>', 'cancelled'),('state', '<>', 'done')]" id="act_res_users_2_project_task_opened" name="Assigned Tasks" res_model="project.task" src_model="res.users" view_mode="tree,form,gantt,calendar,graph" view_type="form"/> + </data> </openerp> diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml index 3b019e51af6..09170c43434 100644 --- a/addons/project/res_partner_view.xml +++ b/addons/project/res_partner_view.xml @@ -3,35 +3,29 @@ <data> <!-- Partners inherited form --> - <record id="base.view_crm_partner_info_History" model="ir.ui.view"> - <field name="name">res.partner.crm.history.inherit1</field> - <field name="model">res.partner</field> - <field name="type">form</field> - <field name="inherit_id" ref="base.view_partner_form"/> - <field name="arch" type="xml"> - <xpath expr="//page[@string='History']" position="attributes"> - <attribute name="invisible">False</attribute> - </xpath> - </field> - </record> <record id="view_task_partner_info_form" model="ir.ui.view"> <field name="name">res.partner.task.info.inherit</field> <field name="model">res.partner</field> <field name="type">form</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml"> - <page string="History" position="inside"> - <field name="task_ids" colspan="4" nolabel="1"> - <tree string="Tasks" editable="bottom"> - <field name="name"/> - <field name="user_id"/> - <field name="date_deadline"/> - <field name="state" invisible="1"/> - <button name="do_open" states="pending,draft,done,cancelled" string="Start Task" type="object" icon="gtk-media-play" help="For changing to open state" invisible="context.get('set_visible',False)"/> - <button name="action_close" states="draft,pending,open" string="Done" type="object" icon="terp-dialog-close" help="For changing to done state"/> - </tree> - </field> - </page> + <xpath expr="//page[@name='page_history']" position="attributes"> + <attribute name="invisible">False</attribute> + </xpath> + <xpath expr="//page[@name='page_history']" position="inside"> + <group name="grp_task" string="Tasks"> + <field name="task_ids" colspan="4" nolabel="1"> + <tree string="Tasks" editable="bottom"> + <field name="name"/> + <field name="user_id"/> + <field name="date_deadline"/> + <field name="state" invisible="1"/> + <button name="do_open" states="pending,draft,done,cancelled" string="Start Task" type="object" icon="gtk-media-play" help="For changing to open state" invisible="context.get('set_visible',False)"/> + <button name="action_close" states="draft,pending,open" string="Done" type="object" icon="terp-dialog-close" help="For changing to done state"/> + </tree> + </field> + </group> + </xpath> </field> </record> diff --git a/addons/project_timesheet/project_timesheet_view.xml b/addons/project_timesheet/project_timesheet_view.xml index 4d3d288b981..7208885748c 100644 --- a/addons/project_timesheet/project_timesheet_view.xml +++ b/addons/project_timesheet/project_timesheet_view.xml @@ -70,7 +70,7 @@ <field name="inherit_id" ref="account.view_account_analytic_line_form"/> <field name="arch" type="xml"> <field name="account_id" position="replace"> - <field name="account_id" string="Analytic account/project" on_change="on_change_account_id(account_id)"/> + <field name="account_id" string="Analytic Account/Project" on_change="on_change_account_id(account_id)"/> </field> </field> </record> diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 100c60e3f53..ebc7df729b5 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -1,11 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> - <menuitem icon="terp-purchase" id="base.menu_purchase_root" name="Purchases" sequence="3" - groups="group_purchase_manager,group_purchase_user" - web_icon="images/purchases.png" - web_icon_hover="images/purchases-hover.png"/> - <menuitem id="menu_procurement_management" name="Purchase" + + <!-- Top menu item --> + <menuitem name="Purchases" + id="base.menu_purchase_root" + groups="group_purchase_manager,group_purchase_user" + sequence="40"/> + <menuitem id="menu_procurement_management" name="Purchase" parent="base.menu_purchase_root" sequence="1" /> <menuitem id="menu_purchase_config_purchase" name="Configuration" @@ -222,7 +224,7 @@ <field name="amount_tax"/> <div class="oe_subtotal_footer_separator oe_inline"> <label for="amount_total"/> - <button name="button_dummy" + <button name="button_dummy" states="draft" string="(update)" type="object" class="oe_edit_only oe_link"/> </div> <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator"/> diff --git a/addons/purchase/stock_view.xml b/addons/purchase/stock_view.xml index 94210926075..27318adc0f5 100644 --- a/addons/purchase/stock_view.xml +++ b/addons/purchase/stock_view.xml @@ -11,7 +11,7 @@ <field name="purchase_line_id"/> </xpath> </field> - </record> + </record> <record id="stock_picking_inherit_purchase" model="ir.ui.view"> <field name="name">Picking list</field> <field name="model">stock.picking</field> @@ -38,7 +38,7 @@ </xpath> </field> </record> - + <!-- Picking to Invoice --> <record id="view_picking_in_search_picking_to_invoice" model="ir.ui.view"> <field name="name">stock.picking.in.search</field> @@ -89,7 +89,7 @@ <field name="context">{'search_default_purchase_id': active_id,'default_type': 'in'}</field> <field name="search_view_id" ref="view_picking_in_search_picking_to_invoice"/> </record> - + <record id="purchase_order_2_stock_picking" model="ir.ui.view"> <field name="name">Purchase Picking Inherited</field> <field name="model">purchase.order</field> @@ -105,7 +105,7 @@ </xpath> </field> </record> - + <record id="action_picking_tree4_picking_to_invoice" model="ir.actions.act_window"> <field name="name">Based on Incoming Shipments</field> <field name="res_model">stock.picking</field> diff --git a/addons/sale/res_partner_view.xml b/addons/sale/res_partner_view.xml index bb5695eac39..11ac318b7a7 100644 --- a/addons/sale/res_partner_view.xml +++ b/addons/sale/res_partner_view.xml @@ -1,7 +1,24 @@ <?xml version="1.0"?> <openerp> <data> - <!-- Partner kanban view inherte --> + <record id="act_res_partner_2_sale_order" model="ir.actions.act_window"> + <field name="name">Quotations and Sales</field> + <field name="res_model">sale.order</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form,graph</field> + <field name="context">{'search_default_partner_id': active_id}</field> + <field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/> + <field name="help"> + This customer has no quotation or sale order. + Click here to create a new quotation. + <p> + The "Quotation" is the first step of the Sales flow. Manage your sales from quotation to invoice. + <p> + You will be able to sell products (manage deliveries) as well as services (create projects). + </field> + </record> + + <!-- Partner kanban view inherte --> <record model="ir.ui.view" id="crm_lead_partner_kanban_view"> <field name="name">res.partner.kanban.saleorder.inherit</field> <field name="model">res.partner</field> @@ -18,6 +35,22 @@ </xpath> </field> </record> + + <record id="res_partner_view_buttons" model="ir.ui.view"> + <field name="name">res.partner.view.buttons</field> + <field name="model">res.partner</field> + <field name="type">form</field> + <field name="inherit_id" ref="base.view_partner_form" /> + <field name="priority" eval="20"/> + <field name="arch" type="xml"> + <xpath expr="//div[@name='buttons']" position="inside"> + <button name="%(sale.act_res_partner_2_sale_order)d" type="action" + string="Quotations and Sales" + groups="base.group_sale_salesman"/> + </xpath> + </field> + </record> + </data> </openerp> diff --git a/addons/sale/sale_data.xml b/addons/sale/sale_data.xml index 4622577ac3d..9768f606793 100644 --- a/addons/sale/sale_data.xml +++ b/addons/sale/sale_data.xml @@ -27,4 +27,28 @@ <function eval="('default',False,'shop_id', [('sale.order', False)], shop, True, False, False, False, True)" id="sale_default_set" model="ir.values" name="set"/> </data> + <data> + + <record id="message_welcome_sale" model="mail.message"> + <field name="subject">Module sale installed!</field> + <field name="type">comment</field> + <field name="subtype">text</field> + <field name="model">res.users</field> + <field name="res_id" ref="base.user_root"/> + <field name="body_text">Welcome to OpenERP + + You can click on the top menu Sales to manage your + customers, your quotations and sales orders. + + If you need to manage your sales pipeline (leads, + opportunities, phonecalls), you can install the CRM module + from the Settings top menu. + </field> + </record> + <record id="message_welcome_sale_root" model="mail.notification"> + <field name="user_id" ref="base.user_root"/> + <field name="message_id" ref="message_welcome_sale"/> + </record> + + </data> </openerp> diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index e7420edb910..03a2f35cbbe 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -1,6 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> <openerp> <data> - <menuitem icon="terp-partner" id="base.menu_base_partner" name="Sales" sequence="1" groups="base.group_sale_salesman,base.group_sale_manager"/> + + <!-- Top menu item --> + <menuitem name="Sales" + id="base.menu_base_partner" + groups="base.group_sale_salesman,base.group_sale_manager" + sequence="30"/> + <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/> @@ -146,10 +153,10 @@ <button name="invoice_corrected" states="invoice_except" string="Ignore Exception"/> <button name="ship_recreate" states="shipping_except" string="Recreate Delivery Order"/> <button name="ship_corrected" states="shipping_except" string="Ignore Exception"/> - <button name="action_quotation_send" string="Send by Mail" type="object" states="draft,sent" class="oe_highlight"/> + <button name="action_quotation_send" string="Send by Mail" type="object" states="draft,sent"/> <button name="manual_invoice" states="manual" string="Create Final Invoice" type="object" class="oe_highlight"/> - <button name="print_quotation" string="Send by Post" type="object" states="draft,sent" class="oe_highlight"/> - <button name="action_button_confirm" states="draft" string="Confirm" type="object"/> + <button name="print_quotation" string="Send by Post" type="object" states="draft,sent"/> + <button name="action_button_confirm" states="draft" string="Confirm" type="object" class="oe_highlight"/> <button name="action_button_confirm" states="sent" string="Confirm" class="oe_highlight" type="object"/> <button name="action_view_invoice" string="Open Invoice" type="object" class="oe_highlight" attrs="{'invisible': ['|','|',('state', '!=','progress'), ('invoiced', '=', True),('order_policy','=','picking')]}"/> @@ -171,10 +178,9 @@ </h1> <group> <group> - <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": true}'/> + <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": true, "highlight_first_line": true}'/> <field domain="[('parent_id','=',partner_id)]" name="partner_invoice_id" groups="sale.group_delivery_invoice_address"/> <field domain="[('parent_id','=',partner_id)]" name="partner_shipping_id" groups="sale.group_delivery_invoice_address"/> - <field name="project_id" context="{'partner_id':partner_id, 'pricelist_id':pricelist_id, 'default_name':name}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/> </group> <group> @@ -197,7 +203,7 @@ <group> <field name="product_id" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" - groups="base.group_user" + groups="base.group_user" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, context)"/> <label for="product_uom_qty"/> <div> @@ -263,6 +269,8 @@ <field name="amount_tax"/> <field name="amount_total" class="oe_subtotal_footer_separator"/> </group> + <group name="sale_margin_grp"> + </group> <div class="oe_clear"> <label for="note"/> </div> @@ -297,7 +305,7 @@ <tree string="Invoices" colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel'"> <field name="date_invoice"/> <field name="number"/> - <field name="partner_id"/> + <field name="partner_id" string="Customer"/> <field name="user_id"/> <field name="date_due"/> <field name="amount_total"/> @@ -570,14 +578,6 @@ </record> <act_window - context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}" - id="act_res_partner_2_sale_order" - name="Quotations and Sales" - groups="base.group_sale_salesman" - res_model="sale.order" - src_model="res.partner"/> - - <act_window context="{'search_default_product_id': active_id, 'default_product_id': active_id}" id="action_order_line_product_tree" name="Sales Order Lines" diff --git a/addons/sale/stock_view.xml b/addons/sale/stock_view.xml index daef529b97b..928eebafcae 100644 --- a/addons/sale/stock_view.xml +++ b/addons/sale/stock_view.xml @@ -7,7 +7,7 @@ <field name="type">form</field> <field name="inherit_id" ref="stock.view_picking_form"/> <field name="arch" type="xml"> - <field name="auto_picking" position="after"> + <field name="move_type" position="before"> <field name="sale_id"/> </field> </field> diff --git a/addons/sale/wizard/sale_make_invoice.py b/addons/sale/wizard/sale_make_invoice.py index 5265afb9bff..b4b3772a91a 100644 --- a/addons/sale/wizard/sale_make_invoice.py +++ b/addons/sale/wizard/sale_make_invoice.py @@ -68,4 +68,4 @@ class sale_make_invoice(osv.osv_memory): sale_make_invoice() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/sale_margin/sale_margin_view.xml b/addons/sale_margin/sale_margin_view.xml index 4696eec6eb2..30c2a0dea14 100644 --- a/addons/sale_margin/sale_margin_view.xml +++ b/addons/sale_margin/sale_margin_view.xml @@ -8,8 +8,13 @@ <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> - <xpath expr="//group[@name='sale_total']" position="inside"> - <field name="margin"/> + <xpath expr="//group[@name='sale_margin_grp']" position="inside"> + <group> + <label for="margin"/> + <div> + <field name="margin"/> + </div> + </group> </xpath> </field> </record> diff --git a/addons/sale_mrp/sale_mrp.py b/addons/sale_mrp/sale_mrp.py index 840c33770a7..7397edbec2b 100644 --- a/addons/sale_mrp/sale_mrp.py +++ b/addons/sale_mrp/sale_mrp.py @@ -70,8 +70,8 @@ class mrp_production(osv.osv): return res _columns = { - 'sale_name': fields.function(_ref_calc, multi='sale_name', type='char', string='Sales Name', help='Indicate the name of sales order.'), - 'sale_ref': fields.function(_ref_calc, multi='sale_name', type='char', string='Sales Reference', help='Indicate the Customer Reference from sales order.'), + 'sale_name': fields.function(_ref_calc, multi='sale_name', type='char', string='Sale Name', help='Indicate the name of sales order.'), + 'sale_ref': fields.function(_ref_calc, multi='sale_name', type='char', string='Sale Reference', help='Indicate the Customer Reference from sales order.'), } mrp_production() diff --git a/addons/sale_mrp/sale_mrp_view.xml b/addons/sale_mrp/sale_mrp_view.xml index fbf2e7a9327..882663680c5 100644 --- a/addons/sale_mrp/sale_mrp_view.xml +++ b/addons/sale_mrp/sale_mrp_view.xml @@ -8,10 +8,12 @@ <field name="inherit_id" ref="mrp.mrp_production_form_view"/> <field name="type">form</field> <field name="arch" type="xml"> - <xpath expr="//field[@name='move_prod_id']" position="after"> - <field name="sale_name"/> + <xpath expr="//field[@name='company_id']" position="after"> <field name="sale_ref"/> </xpath> + <xpath expr="//field[@name='sale_ref']" position="after"> + <field name="sale_name"/> + </xpath> </field> </record> diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index ceed0808ef4..e90a2bb8162 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -2,15 +2,17 @@ <openerp> <data> - <menuitem icon="terp-stock" id="menu_stock_root" name="Warehouse" - groups="group_stock_manager,group_stock_user" sequence="5" - web_icon="images/warehouse.png" - web_icon_hover="images/warehouse-hover.png"/> + <!-- Top menu item --> + <menuitem name="Warehouse" + id="menu_stock_root" + groups="group_stock_manager,group_stock_user" + sequence="50"/> + <menuitem id="menu_stock_warehouse_mgmt" name="Receive/Deliver By Orders" parent="menu_stock_root" sequence="1"/> <menuitem id="menu_stock_products_moves" name="Receive/Deliver Products" parent="menu_stock_root" sequence="2"/> <menuitem id="menu_stock_product" name="Products" parent="menu_stock_root" sequence="6"/> <menuitem name="Products by Category" id="menu_product_by_category_stock_form" action="product.product_category_action" - parent="stock.menu_stock_product" sequence="0"/> + parent="stock.menu_stock_product" sequence="0"/> <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/> <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15" groups="group_stock_manager"/> <menuitem id="menu_warehouse_config" name="Warehouse Management" parent="menu_stock_configuration" sequence="40" groups="base.group_no_one"/> @@ -20,19 +22,19 @@ parent="stock.menu_stock_configuration" sequence="45" groups="base.group_no_one"/> <menuitem action="product.product_category_action_form" id="menu_product_category_config_stock" - parent="stock.menu_product_in_config_stock" sequence="0" /> + parent="stock.menu_product_in_config_stock" sequence="0"/> <menuitem action="product.product_ul_form_action" groups="product.group_stock_packaging" id="menu_product_packaging_stock_action" parent="stock.menu_product_in_config_stock" sequence="1"/> - <menuitem + <menuitem id="menu_stock_unit_measure_stock" name="Units of Measure" parent="stock.menu_product_in_config_stock" sequence="35" groups="product.group_uom"/> - <menuitem - action="product.product_uom_categ_form_action" id="menu_stock_uom_categ_form_action" - parent="menu_stock_configuration" sequence="30" groups="product.group_uom"/> - <menuitem - action="product.product_uom_form_action" id="menu_stock_uom_form_action" - parent="menu_stock_configuration" sequence="35" groups="product.group_uom"/> + <menuitem + action="product.product_uom_categ_form_action" id="menu_stock_uom_categ_form_action" + parent="menu_stock_configuration" sequence="30" groups="product.group_uom"/> + <menuitem + action="product.product_uom_form_action" id="menu_stock_uom_form_action" + parent="menu_stock_configuration" sequence="35" groups="product.group_uom"/> <record id="stock_inventory_line_tree" model="ir.ui.view"> <field name="name">stock.inventory.line.tree</field> @@ -116,8 +118,8 @@ <header> <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" class="oe_highlight"/> <button name="action_done" states="confirm" string="Validate Inventory" type="object" class="oe_highlight"/> - <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" /> - <button name="action_cancel_inventory" states="draft,confirm,done" string="Cancel Inventory" type="object" /> + <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/> + <button name="action_cancel_inventory" states="draft,confirm,done" string="Cancel Inventory" type="object"/> <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/> </header> <sheet> @@ -204,7 +206,7 @@ <field name="res_model">stock.inventory</field> <field name="view_type">form</field> <field name="view_id" ref="view_inventory_tree"/> - <field name="search_view_id" ref="view_inventory_filter" /> + <field name="search_view_id" ref="view_inventory_filter"/> <field name="help">Periodical Inventories are used to count the number of products available per location. You can use it once a year when you do the general inventory or whenever you need it, to correct the current stock level of a product.</field> </record> <menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="30"/> @@ -275,9 +277,9 @@ <field name="field_parent">child_ids</field> <field name="arch" type="xml"> <tree colors="grey:not active" string="Packs"> - <field name="name" /> - <field name="serial" /> - <field name="date" /> + <field name="name"/> + <field name="serial"/> + <field name="date"/> </tree> </field> </record> @@ -291,7 +293,7 @@ <group> <field name="name" string="Pack" filter_domain="['|',('name','ilike',self),('serial','ilike',self)]"/> <separator orientation="vertical"/> - <field name="date" /> + <field name="date"/> <separator orientation="vertical"/> <field name="active"/> </group> @@ -387,7 +389,7 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Serial Number"> - <field name="prefix" /> + <field name="prefix"/> <field name="name"/> <field name="ref"/> <field name="product_id"/> @@ -408,7 +410,7 @@ <separator orientation="vertical"/> <field name="date"/> <separator orientation="vertical"/> - <filter icon="terp-check" name="available" string="Available" domain="[('stock_available', '>', 0)]" help="Available Product Lots" /> + <filter icon="terp-check" name="available" string="Available" domain="[('stock_available', '>', 0)]" help="Available Product Lots"/> <separator orientation="vertical"/> <field name="product_id"/> </group> @@ -426,7 +428,7 @@ <field name="res_model">stock.production.lot</field> <field name="view_type">form</field> <field name="view_id" ref="view_production_lot_tree"/> - <field name="search_view_id" ref="search_product_lot_filter" /> + <field name="search_view_id" ref="search_product_lot_filter"/> <field name="context">{}</field> <field name="help">This is the list of all the production lots (serial numbers) you recorded. When you select a lot, you can get the upstream or downstream traceability of the products contained in lot. By default, the list is filtred on the serial numbers that are available in your warehouse but you can uncheck the 'Available' button to get all the lots you produced, received or delivered to customers.</field> </record> @@ -444,8 +446,8 @@ <field name="field_parent">move_history_ids</field> <field name="arch" type="xml"> <tree colors="grey:state == 'cancel'" string="Moves"> - <field name="product_id" /> - <field name="product_qty" /> + <field name="product_id"/> + <field name="product_qty"/> <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> <field name="prodlot_id" groups="stock.group_production_lot"/> <field name="tracking_id" groups="stock.group_tracking_lot"/> @@ -468,8 +470,8 @@ <field name="field_parent">move_history_ids2</field> <field name="arch" type="xml"> <tree colors="grey:state == 'cancel'" string="Moves"> - <field name="product_id" /> - <field name="product_qty" /> + <field name="product_id"/> + <field name="product_qty"/> <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> <field name="prodlot_id" groups="stock.group_production_lot"/> <field name="tracking_id" groups="stock.group_tracking_lot"/> @@ -569,11 +571,11 @@ <field name="name" string="Stock Locations"/> <separator orientation="vertical"/> <filter icon="terp-go-home" name="in_location" - string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" /> + string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations"/> <filter icon="terp-personal" name="customer" - string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" /> + string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations"/> <filter icon="terp-personal" name="supplier" - string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" /> + string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations"/> <separator orientation="vertical"/> <field name="location_id" string="Parent Location"/> </search> @@ -737,7 +739,7 @@ <button name="force_assign" states="confirmed" string="Force Availability" type="object" class="oe_highlight"/> <button name="action_process" states="assigned" string="Confirm & Transfer" groups="stock.group_stock_user" type="object" class="oe_highlight"/> <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" class="oe_highlight"/> - <button name="%(act_stock_return_picking)d" string="Reverse Transfer" states="done" type="action" /> + <button name="%(act_stock_return_picking)d" string="Reverse Transfer" states="done" type="action"/> <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel"/> <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done" statusbar_colors='{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}'/> </header> @@ -782,7 +784,7 @@ string="Split in Serial Number" groups="stock.group_production_lot" type="action" icon="terp-stock_effects-object-colorize" - states="draft,waiting,confirmed,assigned" /> + states="draft,waiting,confirmed,assigned"/> <field groups="stock.group_tracking_lot" name="tracking_id"/> <button name="setlast_tracking" string="Put in current pack" type="object" attrs="{'invisible': [('tracking_id','<>',False)]}" @@ -801,7 +803,7 @@ <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/> <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/> <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/> - <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done" /> + <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done"/> </header> <group> <group> @@ -860,7 +862,7 @@ </form> </field> </page> - <page string="Additional info"> + <page string="Additional Info"> <group> <group> <field name="move_type"/> @@ -892,7 +894,7 @@ <field name="name" string="Internal Picking List" filter_domain="['|',('name','ilike', self),('origin','ilike',self)]"/> <separator orientation="vertical"/> <filter icon="terp-check" string="Ready" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/> - <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" /> + <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves"/> <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/> <separator orientation="vertical"/> <field name="partner_id"/> @@ -907,7 +909,7 @@ <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/> <separator orientation="vertical"/> <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/> - <separator orientation="vertical" /> + <separator orientation="vertical"/> <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/> </group> </search> @@ -971,7 +973,7 @@ <data> <xpath expr="/form/header/button[@name='%(act_stock_return_picking)d']" position="replace"> <button name="%(report_picking_list_out)d" string="Print Delivery Slip" type="action" states="done" class="oe_highlight"/> - <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" /> + <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action"/> </xpath> <xpath expr="/form/header/button[@name='draft_validate']" position="replace"> <button name="draft_validate" states="draft" string="Confirm & Deliver" type="object" class="oe_highlight"/> @@ -1015,13 +1017,13 @@ </group> <newline/> <group expand="0" string="Group By..."> - <separator orientation="vertical" /> + <separator orientation="vertical"/> <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/> - <separator orientation="vertical" /> + <separator orientation="vertical"/> <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/> <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/> - <separator orientation="vertical" /> - <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" /> + <separator orientation="vertical"/> + <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/> </group> </search> </field> @@ -1088,7 +1090,7 @@ <field name="arch" type="xml"> <data> <xpath expr="//button[@name='%(act_stock_return_picking)d']" position="replace"> - <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" /> + <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action"/> </xpath> <xpath expr="//button[@name='draft_validate']" position="replace"> <button name="draft_validate" states="draft" string="Confirm & Receive" type="object" class="oe_highlight"/> @@ -1116,23 +1118,23 @@ <group> <field name="name" string="Incoming Shipments" filter_domain="['|',('name','ilike',self),('origin','ilike',self)]"/> <separator orientation="vertical"/> - <filter icon="terp-check" name="available" string="Ready to Process" domain="[('state','=','assigned')]" help="Incoming Shipments Available" /> + <filter icon="terp-check" name="available" string="Ready to Process" domain="[('state','=','assigned')]" help="Incoming Shipments Available"/> <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/> <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/> - <filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" /> + <filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]"/> <separator orientation="vertical"/> <field name="stock_journal_id" widget="selection"/> <field name="product_id"/> </group> <newline/> <group expand="0" string="Group By..."> - <separator orientation="vertical" /> + <separator orientation="vertical"/> <filter icon="terp-stock_effects-object-colorize" name="state" string="Status" domain="[]" context="{'group_by':'state'}"/> - <separator orientation="vertical" /> + <separator orientation="vertical"/> <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/> <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/> - <separator orientation="vertical" /> - <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" /> + <separator orientation="vertical"/> + <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/> </group> </search> </field> @@ -1190,7 +1192,7 @@ string="Scrap Products" type="action" icon="gtk-convert" context="{'scrap': True}" states="draft,waiting,confirmed,assigned" - /> + /> <field name="prodlot_id" groups="stock.group_production_lot"/> <button name="%(track_line)d" string="Split in Serial Numbers" type="action" icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}" @@ -1249,8 +1251,8 @@ </div> <label for="product_uos_qty" groups="product.group_uos"/> <div groups="product.group_uos"> - <field name="product_uos_qty" - on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" + <field name="product_uos_qty" + on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" class="oe_inline"/> <field name="product_uos" class="oe_inline"/> </div> @@ -1266,7 +1268,7 @@ <field name="location_dest_id" groups="stock.group_locations"/> <field name="partner_id" context="{'contact_display':'partner'}"/> <field name="date_expected" on_change="onchange_date(date,date_expected)"/> - <field name="date" groups="base.group_no_one" /> + <field name="date" groups="base.group_no_one"/> </group> <group string="Tracability"> <label for="tracking_id"/> @@ -1327,7 +1329,7 @@ <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/> <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/> <separator orientation="vertical"/> - <filter icon="terp-stock_effects-object-colorize" string="Status" domain="[]" context="{'group_by':'state'}" /> + <filter icon="terp-stock_effects-object-colorize" string="Status" domain="[]" context="{'group_by':'state'}"/> <separator orientation="vertical"/> <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" groups="base.group_no_one"/> <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/> @@ -1359,13 +1361,13 @@ <field name="name">stock.move.tree2</field> <field name="model">stock.move</field> <field name="type">tree</field> - <field name="priority" eval="6" /> + <field name="priority" eval="6"/> <field name="arch" type="xml"> <tree colors="grey:state == 'cancel'" string="Moves"> <field name="picking_id" string="Reference"/> <field name="origin"/> <field name="product_id"/> - <field name="product_qty" /> + <field name="product_qty"/> <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> <button name="%(stock.move_scrap)d" string="Scrap Products" type="action" @@ -1401,9 +1403,9 @@ <tree string="Moves"> <field name="picking_id" string="Reference"/> <field name="product_id"/> - <field name="product_qty" /> + <field name="product_qty"/> <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/> - <field name="date" groups="base.group_no_one" /> + <field name="date" groups="base.group_no_one"/> </tree> </field> </record> diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml index 20f6f42a929..fb4b232f512 100644 --- a/addons/survey/survey_view.xml +++ b/addons/survey/survey_view.xml @@ -1,14 +1,16 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> - <menuitem name="Surveys" id="menu_surveys" parent="base.menu_tools" sequence="2" groups="base.group_tool_user,base.group_tool_manager,base.group_survey_user"/> - <menuitem name="Define Surveys" id="menu_define_survey" - groups="base.group_tool_manager" - parent="menu_surveys" /> - <menuitem id="menu_answer_surveys" name="Answer Surveys" parent="menu_surveys" groups="base.group_tool_user,base.group_tool_manager,base.group_survey_user"/> - <menuitem name="Reporting" parent="base.menu_tools" - id="base.menu_lunch_reporting" sequence="6"/> - <menuitem name="Reporting" id="menu_reporting" parent="menu_surveys" sequence="60"/> + + <menuitem name="Surveys" id="menu_surveys" parent="base.menu_tools" sequence="2" groups="base.group_tool_user,base.group_tool_manager,base.group_survey_user"/> + <menuitem name="Define Surveys" id="menu_define_survey" + groups="base.group_tool_manager" + parent="menu_surveys" /> + <menuitem id="menu_answer_surveys" name="Answer Surveys" parent="menu_surveys" groups="base.group_tool_user,base.group_tool_manager,base.group_survey_user"/> + <menuitem name="Reporting" parent="base.menu_tools" + id="base.menu_lunch_reporting" sequence="6"/> + <menuitem name="Reporting" id="menu_reporting" parent="menu_surveys" sequence="60"/> + <!-- Survey --> @@ -269,7 +271,7 @@ </field> </record> - <record id="survey_search" model="ir.ui.view"> + <record id="survey_search" model="ir.ui.view"> <field name="name">survey_search</field> <field name="model">survey</field> <field name="type">search</field> @@ -295,7 +297,7 @@ </search> </field> </record> - + <record model="ir.ui.view" id="view_survey_kanban"> <field name="name">event.survey.kanban</field> <field name="model">survey</field> @@ -750,7 +752,7 @@ </field> </record> - <record id="survey_question_search" model="ir.ui.view"> + <record id="survey_question_search" model="ir.ui.view"> <field name="name">survey_question_search</field> <field name="model">survey.question</field> <field name="type">search</field> diff --git a/addons/wiki/wiki_view.xml b/addons/wiki/wiki_view.xml index 700585122d3..b0f0ab0198e 100644 --- a/addons/wiki/wiki_view.xml +++ b/addons/wiki/wiki_view.xml @@ -1,15 +1,18 @@ <?xml version="1.0"?> <openerp> <data> - <menuitem name="Knowledge" icon="terp-stock" - id="knowledge.menu_document" sequence="19" /> - <menuitem name="Configuration" - id="knowledge.menu_document_configuration" - parent="knowledge.menu_document" sequence="50"/> + <!-- Top menu item --> + <menuitem name="Knowledge" + id="knowledge.menu_document" + sequence="130"/> - <menuitem name="Wiki" id="menu_wiki_configuration" - parent="knowledge.menu_document_configuration" sequence="2" /> + <menuitem name="Configuration" + id="knowledge.menu_document_configuration" + parent="knowledge.menu_document" sequence="50"/> + + <menuitem name="Wiki" id="menu_wiki_configuration" + parent="knowledge.menu_document_configuration" sequence="2"/> <!-- Wiki Groups Tree view --> @@ -38,7 +41,7 @@ <group col="2" colspan="1"> <field name="method"/> <field name="home" domain="[('group_id','=',active_id)]" - attrs="{'required':[('method','=','page')], 'readonly':[('method','!=','page')]}" /> + attrs="{'required':[('method','=','page')], 'readonly':[('method','!=','page')]}"/> </group> <notebook colspan="4"> <page string="Notes"> @@ -61,7 +64,7 @@ name="open_wiki_page" string="Open Wiki Page" type="object" - icon="gtk-ok" /> + icon="gtk-ok"/> </form> </field> </record> @@ -131,7 +134,7 @@ <sheet> <div class="oe_title"> <label for="name" class="oe_edit_only"/> - <h1><field name="name" select="1" /></h1> + <h1><field name="name" select="1"/></h1> <label for="group_id" class="oe_edit_only"/> <h2> <field name="group_id" string="Topic" select="1" on_change="onchange_group_id(group_id, text_area)"/></h2> @@ -155,7 +158,7 @@ </group> <group col="2" colspan="2"> <separator colspan="4" string="Meta Information"/> - <field name="tags"/> + <field name="tags" widget="many2many_tags"/> <field name="toc" groups="base.group_no_one"/> </group> </sheet> @@ -203,7 +206,7 @@ <menuitem parent="knowledge.menu_document2" id="menu_action_wiki_wiki" name="Wiki Pages" - action="action_wiki" /> + action="action_wiki"/> <!-- Pages Waiting Review --> <record model="ir.actions.act_window" id="action_wiki_review"> @@ -258,7 +261,7 @@ <field name="view_mode">tree,form</field> </record> - <act_window + <act_window context="{'search_default_wiki_id': [active_id], 'default_wiki_id': active_id}" id="act_wiki_wiki_history" name="Page History" diff --git a/addons/wiki_sale_faq/wiki_sale_faq_view.xml b/addons/wiki_sale_faq/wiki_sale_faq_view.xml index b43649af23a..f3116bc73b5 100644 --- a/addons/wiki_sale_faq/wiki_sale_faq_view.xml +++ b/addons/wiki_sale_faq/wiki_sale_faq_view.xml @@ -17,7 +17,7 @@ </record> <record model="ir.actions.act_window" id="action_wiki_test"> - <field name="name">Wiki Pages</field> + <field name="name">Sales FAQ</field> <field name="res_model">wiki.wiki</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> |
