diff options
| author | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-07-19 11:41:35 +0530 |
|---|---|---|
| committer | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-07-19 11:41:35 +0530 |
| commit | e071a67c91a03fa8c2fa7a5d9ee6d07c2b09b9b7 (patch) | |
| tree | ed6be6c976877f3a57509603541c52e6ea59a3b8 | |
| parent | 095c2d439118f9f5b2709fb0bb58ced3e19aef3e (diff) | |
| parent | 537126dbad9e4a1615b166d248772802d1171189 (diff) | |
[MERGE]:merged with parent branch
bzr revid: fka@tinyerp.com-20120719045834-pvptqr9g2qrgfyk4
bzr revid: apa@tinyerp.com-20120719061135-defy7b0x8f6r0k6g
65 files changed, 2104 insertions, 668 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..c71a7d56aae 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"/> @@ -322,11 +322,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 +340,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_view.xml b/addons/account/account_view.xml index f2c24feacb7..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"/> @@ -921,15 +930,15 @@ <field name="arch" type="xml"> <form string="Account Tax" version="7.0"> <group> - <group> + <group> <field name="name"/> <field name="description"/> - <group> - </group> + </group> + <group> <field name="type_tax_use"/> <field name="company_id" widget="selection" groups="base.group_multi_company"/> <field name="active"/> - </group> + </group> </group> <notebook> <page string="Tax Definition"> @@ -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/project/project_view.xml b/addons/account/project/project_view.xml index 492ab249a39..5c1542abc29 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -385,7 +385,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..bf1bca54447 100644 --- a/addons/account_voucher/voucher_sales_purchase_view.xml +++ b/addons/account_voucher/voucher_sales_purchase_view.xml @@ -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"> diff --git a/addons/anonymous/anonymous.xml b/addons/anonymous/anonymous.xml index 36be96db5ad..8ce9177aba1 100644 --- a/addons/anonymous/anonymous.xml +++ b/addons/anonymous/anonymous.xml @@ -1,12 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> - <record model="res.users" id="user"> + <record id="anonymous_user" model="res.users"> <field name="name">Anonymous</field> <field name="login">anonymous</field> <field name="password">anonymous</field> + <!-- Avoid auto-including this demo user in any default group --> <field name="groups_id" eval="[(5,)]"/> <field name="avatar">iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAAAAAAZai4+AAAMQElEQVR4nO2ce4wV1R3Hv7/fmbvrPliQZWEXWFgWEFgQBRNI0dZW7euPxliTRhNbW5NatammoaaPNKmpKRYiUunDFzEU28YYkRaiaX0hYhUELApaKG90l2VZdmVl2WXvnPPrH/c1M3d2uWdmePzB75+9d+7Mmc/8zjm/+T3OWRJciMLnGyBcLmLZyEUsG7mIZSNOAm2IQAAQQAAEAhBRrCYprjkVI6GPpkXFIIuHJYYJ6D/Wsb+97fiJk339A0ZVDa8bP3lG4xhAjDofWGIUcOifW3ceOFr026Q5V980CSbq2I2B5To49dILL/YAQE4tkhlf0ABG3Pzta+FG7EqJKEZL1/IZANgJuzMrBpxvvCuio7QeFcsVWTsLUEMogxSh7IEBcc8dVlrabyeoM40cRfjS3ihc0bC0bJoOp5R5lkLT1ghckbC0WV1bqiF20PCB/fiKpq30VUiVRgUozOgUY3mDaHaFKkmXeq5O/XehsTVDEc2dzX3Szqp1XPJTZCRRD4KYw+yFyBJtaVSTxGIxRkKmp6ZNG9nYNZUQEgAyo66ZnQrTizLPw250JYfF+OmHG7ZsukWKuQzeH1B2XJEMhHt10fM4+HHGDPwQRf1IqD1oZ7uS0hbpkfcYDWj51VgT1Jeo4+12vZhYJ8qoOlaAkrqWsGdtt2stMW3lfC6RyWG/n7ZrLvnIh04mcJ+ksYzqWE8hNmqYXTMRAzJWAXvOxABgDN/XporeNEL1sLLzEbF6deDWGr0AtOKFzxa//8g01Nq1HxFrfmUq0FO6UYmb6r37GcctOptkyuhzoS1+NGibBMSU2nTfu1xMBZYpZdoqZoyGRcVevGF1YvGy/lQ65HQj11m+EyMHZH4xrpi/zRpkYhPVHbH0T5PBckVeuQYYJDpTuM82ykgEKy2d38Wg4RnzsI+MZZCRBJaWVy4DDzqkU1hsHZIlgOXKCmeIQMjBl11jG/nEx3JllaJB32GUwhWt1lTxsbS8VD44FQM3tEbIjsTFMuZkS7E7moNycMnP+qPkbOJiubJ8MJNMCvjKZrGOqBPAMiZ9HYUqixygeZVIOgpVeDq2dBFufR9hIaDSbt1d99RDR7tBXCx0HA+LTJUu+8G9U+CWlGxKHivcSSfS1y5aAM2RWz8rVQymn7+6QJsYifkkqhhBYf3gL030nDxwVrSlzNd/4cZs+CxgGbqbB7f7pUn8TuQAAUnVVbGfNjaWMUX2IV0et9H4WJWTHT8X6ZpYoz3TSNzCnT5VbAaq4hUTkQDW2ZH4Qz77XCIioEwKILayktJWvqKpQ3PN1pIMllY4/f7h42r8lfUwiZjCeP5WRlxp/3VLJQA0LjwWrYAYkCSwXHm1GQA7DgPTdyfBlUhAtiYFJzvYHUw7oiM5pAljabO7xjOhU7gtUr3VL/HHp9BDPZ6clque26zsKikhEhtL+MA6b7JUaGBN3DYTwDK0q0vEd2BT/D5IwMik/VUekb2nbJNsRZIAVlFWpNeyNhAiCah7Qk1ANzWXxG00PhaZGXN9LjLTnIqQ4p2dJGAg+E4fBcnXwsoYdhL/VS3QX329YLhS6VnvVMV3bWIbZDFycAJSTABIpVD/XgIvxWRe1R/NBaAUA5gfYY1IsSTk2PQsagaAinlP9SXi2CTjBhpG95ZuU9Ewj5JxAxNzmjOOjZELyWkGIEZAcWP8vFygAdkFukr3IpaNXMSykeg5CI/bEMgk5X/QkVeCRzMQIia8duE/iwDRFMXAWmPliU6o6uwhs9eT6qZ09dgsVNdT82aOBgAtbKk1m04UgYCZobt27HhLLctm14w8s2RYbkkGG17dIAyAzMhh1zW3tMyb05gCRJO3e0u4V0lidDoTK3e/ufLez9cqVG7PuwpGfwsOcsH+s/mg2pUHAaBq7veffKNLRETSbol5gBKwjE6ntYhI/4F/PXzjpDIAoIo3CyG9lr4FcEBE5GCRJ9R35TsoZwBINd+8fENbBi1dQo5iaCxjXNcVETndvfH3d3wus1BGOaqMVspA4TQthyeDATDu9FbqjHtyPhSxykyP8Tfc/+yeUyIi2nWH9soGxzI6nbnDwO7V919bT1kiJoLCbyTtPdeVrWNAYHzTrwotB5vAAIiVwwBQOev2Fe/1ioiYoXo0FMtoN3PJwKH1S2+9fExmMDu5ma5wh0n7r0jLYjhEFfsCvqkr/x6WNxCUXV0/fPpNi9d/rEVE9CBsRTNRRDKrP/p2bv5o5+4OAHBgRPJlAaVv/ENw1SuZk4DA9AXsjXIXPHkrZa2QaIDA9NmJXWtQP+PK2dc0OQxooMi0ebEERkgRYPbv2rHzncMaABPE+BYZsZ73VEVwQRLTAQiQPjozwOW4t+x5wJOSkCyFtLevR/nsBbNmT68BoIXYG8XlsTSYoKAPtW3btr31GAAwS3HlBISb69ygkknvgoDNkaKkCJvvLT4VMNoGADHM6S1bUFl/+fx5k8aVAzCeCqSnQ/v3vHD/9fWZxkL3fWR+QsuJ4JIZIx0jQFBYKoFBJ2n50aA2mzhbNK79wsJ/7Pdemcd6+6HbWioZAKngur+AKPwlmIbU8hYDcPCTIJY2H1YPadyJM/Glqp57558O5NaXZLCMkesBwEmVUMhlXNUXmD6urAABDm4JArty16CrNzxsynEA4Jnc5Rl/iwyanXKGm9ZnfnUbtW1dYHOBoBUMCHrAvgYM/++vJSRKRLsuOFU5MzfsOdfuBNctPc/yWGAmEvaDAMGJgYC26dHPuEQnRdIVjQEswujSE4uaNmz0reIUdg9CAEHHp75mDO9YWXJWiTBlZO5zHmt86OKPcFHmCb+jRt1tGZyj/pXDgiWnSlUWCNNY/NoCGpzSk1Ka1273rhURnGiDAMI9x73aMvzBmtJ3OxCmIu+25Q6Nqyn1ckCod6nvOw71cmZD52H/eb/rLdn9JYOW/Jc8Vk1d6VgwtHa3Tw37cqr+xKMtrXY8V7y+efBGKxrznZf7a6jWIrMo3LPSd/a+3IdDvvMW9ZbcJAijJuYR8lhlE2wSnoZWdhbGMmFPFheefZ1GbX3eKrnbWCdBLNBEGyxR7U/nx6ewuy/Td4SufCsCLHNLnoYAoblgpAtRdVPpUAA0Huss7JHp+iyDJWjPJwPtpiEAzCh8zDVCaLQq1Ig6uDrXQ4JPjufU8ml3buqR/LbPQlkQzCn0VwGrPlgjOUMr9ETOjTI42MPZpk92ZZ/O8NvP22xoI6meWowFNIwo2p8zlBj+z4v5PtqdP9zTmf/4SNoqZJfLxoRpa/gltrWHx3N1Q9mVGwA0kH0pat60tvQ9jAAY44aJ51u2PakaaYel6fUXM6OLB/ZksYTRkZuTj7hWSSrCJOjiTjSYYNMKAMbjGXWw25bXFg6DAGje+He7rZLiefX40m7jLLE0vbyNDWDQ6jGinRmdm0VpuyGhaaoHxoM10RILnP4jAAj29ecXAOEoGNDqjdfsbBbBOxG9WPW2WIbX7WUD4KDHtB/JeBKPpG3r1RO99/dgNdpWJ4W7l8NAsN/TzLEBiOENL1uuhWBMTZkQbRHGVNvWcjX9+bAjjD0ebbX3ADLwYNi+mqGEMM2rXg9WlY1rk4GgnhXQ3F+IpQV9ndDq9ddsdywLZoRiATWWG6oAgFZ1KnS1FuIAlm6QWWLdjuZxXpaCtkzFKNvGYPjQGsLRo4W3DA+0Qb1su18ZhNomr1IKhELjI1S+aWk3DnntuXyC9MMh+8jOJOObJBwLY+3XoGjevUYO+B7nY7xgabMAMGb6pm4BizAqwtIYweO0y3fkY3dZlNLFXN837+u00SKCzYmhLRtafWk1943NVq5D9rLJ/hHkSQZtt4hg86Loi/63xuXFW8HPKISyHb6sawHLSJela5OcMCZ3+DbeeB+sujESVvCaKJUnNF7qO+Ad8qmmSFjBeRKh5kZodnz/GsGjLYNo2kpADFr8T+M1hLDcZZycCKb4NeLDsvVPkxKS8mmDYgHjYBWTJSgN4/0kni+EusrYy9QiCaGp3G+BfVijLVJvSQqhJeWfvz6s2gRWz0URwhWBI14sqR5zTmnyImWBEe8baOfLcJEe0zwEFjD2XNLkhTC8PgDi/2Yb7ycjhCnBf+PgxxoXe410NGkJ3teLRZhwnrCmBw/4tXVpVezVyBHE8LTgIb+2Kkach6lIMnps0KH1YZnhDecBizFhZHDs/B9R17D2kvkawAAAAABJRU5ErkJggg==</field> </record> + + <!-- + A group dedicated to the anonymous user only, making groups + restrictions more convenient. + --> + <record id="group_anonymous" model="res.groups"> + <field name="name">Anonymous Group</field> + <field name="users" eval="[(4,ref('anonymous_user'))]"/> + </record> </data> </openerp> 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_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/delivery/delivery_view.xml b/addons/delivery/delivery_view.xml index cc1c7084b64..457b2d38c90 100644 --- a/addons/delivery/delivery_view.xml +++ b/addons/delivery/delivery_view.xml @@ -15,60 +15,82 @@ </tree> </field> </record> + <record id="view_delivery_carrier_form" model="ir.ui.view"> <field name="name">delivery.carrier.form</field> <field name="model">delivery.carrier</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Carrier" version="7.0"> - <group col="4" name="general"> - <field name="name"/> - <field name="partner_id"/> - <field name="product_id"/> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name"/> + </h1> + </div> + <group> + <group name="general"> + <field name="partner_id"/> + <field name="product_id"/> + </group> + <group> <field name="active"/> - <separator string="Pricing Information" colspan="4"/> - <group colspan="4" col="4"> + </group> + </group> + <group col="4"> + <group string="Pricing Information"> <field name="normal_price" attrs="{'readonly':[('use_detailed_pricelist', '=', True)]}"/> - <newline/> - <field name="free_if_more_than" attrs="{'readonly':[('use_detailed_pricelist', '=', True)]}"/> - <field name="amount" attrs="{'required':[('free_if_more_than','<>',False)], 'invisible':[('free_if_more_than','=',False)]}"/> + <label for="free_if_more_than"/> + <div> + <field name="free_if_more_than" attrs="{'readonly':[('use_detailed_pricelist', '=', True)]}"/> + <field name="amount" attrs="{'required':[('free_if_more_than','<>',False)], 'invisible':[('free_if_more_than','=',False)]}"/> + </div> </group> <newline/> <field name="use_detailed_pricelist"/> </group> - <field name="pricelist_ids" attrs="{'invisible':[('use_detailed_pricelist','=',False)]}" mode="tree,form"> - <tree string="Delivery grids"> + <field name="pricelist_ids" attrs="{'invisible':[('use_detailed_pricelist','=',False)]}" mode="tree"> + <tree string="Delivery grids"> <field name="sequence"/> <field name="name"/> - </tree> + </tree> <form string="Delivery grids" version="7.0"> - <group col="4"> - <field name="name"/> - <field name="active"/> - <field name="sequence"/> + <group> + <group> + <field name="name"/> + </group> + <group> + <field name="active"/> + <field name="sequence"/> + </group> </group> <notebook> - <page string="Grid definition"> - <field name="line_ids"/> - </page> - <page string="Destination"> - <group string="Countries"> - <field colspan="2" name="country_ids" nolabel="1"/> - </group> - <group string="States"> - <field colspan="2" name="state_ids" nolabel="1"/> - </group> - <group col="4"> - <field name="zip_from"/> - <field name="zip_to"/> - </group> - </page> - </notebook> - </form> + <page string="Grid definition"> + <field name="line_ids"/> + </page> + <page string="Destination"> + <group> + <group> + <field name="country_ids" widget="many2many_tags"/> + <field name="state_ids" widget="many2many_tags"/> + </group> + <group> + <label for="zip_from" string="Zip"/> + <div> + <field name="zip_from" class="oe_inline"/> + - + <field name="zip_to" class="oe_inline"/> + </div> + </group> + </group> + </page> + </notebook> + </form> </field> </form> </field> </record> + <record id="action_delivery_carrier_form" model="ir.actions.act_window"> <field name="name">Delivery Method</field> <field name="type">ir.actions.act_window</field> @@ -140,18 +162,28 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Grid Lines" version="7.0"> - <field colspan="4" name="name"/> - <div> - <label string="condition" for="type"/> - <field name="type" class="oe_inline"/> - <field name="operator" class="oe_inline"/> - <field name="max_value" class="oe_inline"/> - </div> - <group col="4"> - <field name="list_price"/> - <field name="standard_price"/> - <field name="price_type"/> - <field name="variable_factor" attrs="{'invisible':[('price_type','=','fixed')]}"/> + <group> + <field name="name"/> + </group> + <group> + <group> + <label for="type" string="Condition"/> + <div> + <field name="type" class="oe_inline"/> + <field name="operator" class="oe_inline"/> + <field name="max_value" class="oe_inline"/> + </div> + <label for="price_type"/> + <div> + <field name="price_type" class="oe_inline"/> + <label string=" in Function of " class="oe_inline" attrs="{'invisible':[('price_type','=','fixed')]}"/> + <field name="variable_factor" attrs="{'invisible':[('price_type','=','fixed')]}" class="oe_inline"/> + </div> + </group> + <group> + <field name="list_price"/> + <field name="standard_price"/> + </group> </group> </form> </field> @@ -178,7 +210,7 @@ <field name="model">stock.picking.out</field> <field name="inherit_id" ref="stock.view_picking_form"/> <field name="arch" type="xml"> - <field name="partner_id" position="after"> + <field name="min_date" position="after"> <field name="carrier_id"/> <field name="carrier_tracking_ref"/> <field name="number_of_packages"/> @@ -230,23 +262,10 @@ <field name="model">stock.move</field> <field name="inherit_id" ref="stock.view_move_form"/> <field name="arch" type="xml"> - <field name="picking_id" position="after"> + <xpath expr="//group[@name='main_grp']" position="inside"> <field name="weight"/> <field name="weight_net"/> - </field> - </field> - </record> - - <record id="view_move_reception_picking_withweight_form" model="ir.ui.view"> - <field name="name">stock.move.reception.packing.form.weight</field> - <field name="type">form</field> - <field name="model">stock.move</field> - <field name="inherit_id" ref="stock.view_move_form_reception_picking"/> - <field name="arch" type="xml"> - <field name="picking_id"> - <field name="weight"/> - <field name="weight_net"/> - </field> + </xpath> </field> </record> @@ -264,7 +283,7 @@ <button name="delivery_set" string="Add in Quote" type="object" class="oe_edit_only" attrs="{'invisible':['|',('carrier_id','=',False),('state','not in',('draft','sent'))]}"/> - <br/> + <br/> <label string="If you don't 'Add in Quote', the exact price will be computed when invoicing based on delivery order(s)." class="oe_edit_only" attrs="{'invisible':['|',('carrier_id','=',False),('state','not in',('draft','sent'))]}"/> 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/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/mail/res_users_view.xml b/addons/mail/res_users_view.xml index 918f77e0ace..15d32a29992 100644 --- a/addons/mail/res_users_view.xml +++ b/addons/mail/res_users_view.xml @@ -9,7 +9,7 @@ <field name="inherit_id" ref="base.view_users_form_simple_modif"/> <field name="arch" type="xml"> <data> - <field name="context_tz" position="after"> + <field name="user_email" position="before"> <field name="notification_email_pref" readonly="0"/> </field> </data> @@ -23,7 +23,7 @@ <field name="inherit_id" ref="base.view_users_form"/> <field name="arch" type="xml"> <data> - <field name="context_tz" position="after"> + <field name="user_email" position="before"> <field name="notification_email_pref"/> </field> <xpath expr="/form/sheet" position="after"> diff --git a/addons/plugin_outlook/plugin_outlook.xml b/addons/plugin_outlook/plugin_outlook.xml index 0340a7c502f..811661bf127 100644 --- a/addons/plugin_outlook/plugin_outlook.xml +++ b/addons/plugin_outlook/plugin_outlook.xml @@ -14,7 +14,7 @@ <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"/> diff --git a/addons/plugin_thunderbird/plugin_thunderbird.xml b/addons/plugin_thunderbird/plugin_thunderbird.xml index fef7772dfdf..69e83bf6df2 100644 --- a/addons/plugin_thunderbird/plugin_thunderbird.xml +++ b/addons/plugin_thunderbird/plugin_thunderbird.xml @@ -14,7 +14,7 @@ <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"/> diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py index 5e7e5578f72..4c0bb14cc10 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/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml index 4c45f90b904..3085eb6d672 100644 --- a/addons/procurement/procurement_view.xml +++ b/addons/procurement/procurement_view.xml @@ -55,34 +55,46 @@ <field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed" /> </header> <sheet> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name" class="oe_inline"/> + <label string="-" attrs="{'invisible':[('origin','=',False)]}"/> + <field name="origin" class="oe_inline"/> + </h1> <group> - <group string="References"> - <field name="name"/> - <field name="origin"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> - </group> - <group string="Planification"> + <group> <field name="date_planned"/> <field name="procure_method"/> <field name="priority"/> </group> + <group> + <field name="message"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> + </group> </group> <notebook> <page string="Procurement Details"> - <group string="Product & Location" col="4"> - <field name="product_id" on_change="onchange_product_id(product_id)"/> - <field name="location_id" domain="[('usage','=','internal')]"/> - <field name="product_qty"/> - <field name="product_uom"/> - - <field name="product_uos_qty" groups="product.group_uos"/> - <field name="product_uos" groups="product.group_uos"/> + <group> + <group> + <field name="product_id" on_change="onchange_product_id(product_id)"/> + <label for="product_qty"/> + <div> + <field name="product_qty" class="oe_inline"/> + <field name="product_uom" class="oe_inline"/> + </div> + <label for="product_uos_qty" groups="product.group_uos"/> + <div groups="product.group_uos"> + <field name="product_uos_qty" class="oe_inline"/> + <field name="product_uos" class="oe_inline"/> + </div> + </group> + <group> + <field name="location_id" domain="[('usage','=','internal')]"/> + </group> </group> - <separator string="Status"/> - <field name="message"/> </page> <page string="Extra Information"> - <group string="Details" col="4"> + <group> <field name="move_id"/> <field name="date_close"/> <field name="close_move"/> diff --git a/addons/procurement/wizard/schedulers_all_view.xml b/addons/procurement/wizard/schedulers_all_view.xml index 01712a0cedd..ee2a5d33e25 100644 --- a/addons/procurement/wizard/schedulers_all_view.xml +++ b/addons/procurement/wizard/schedulers_all_view.xml @@ -10,7 +10,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Scheduler Parameters" version="7.0"> - <group string="This wizard allows you to run all procurement, production and/or purchase orders that should be processed based on their configuration. By default, the scheduler is launched automatically every night by OpenERP. You can use this menu to force it to be launched now. Note that it runs in the background, you may have to wait for a few minutes until it has finished computing."> + <group> <field name="automatic"/> </group> <footer> diff --git a/addons/product_expiry/product_expiry_view.xml b/addons/product_expiry/product_expiry_view.xml index e0a249d09eb..3e2d6573443 100644 --- a/addons/product_expiry/product_expiry_view.xml +++ b/addons/product_expiry/product_expiry_view.xml @@ -8,7 +8,6 @@ <field name="type">form</field> <field name="arch" type="xml"> <field name="date" position="after"> - <separator string="Dates" colspan="4" /> <field name="life_date" /> <field name="use_date" /> <field name="removal_date" /> diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 26814892775..faca7071007 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -517,47 +517,44 @@ <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> diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index f768f293434..547902b4635 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -167,7 +167,7 @@ class purchase_order(osv.osv): help="Put an address if you want to deliver directly from the supplier to the customer. " \ "Otherwise, keep empty to deliver to your own company." ), - 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}), + 'warehouse_id': fields.many2one('stock.warehouse', 'Destination Warehouse', states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}), 'location_id': fields.many2one('stock.location', 'Destination', required=True, domain=[('usage','<>','view')]), 'pricelist_id':fields.many2one('product.pricelist', 'Pricelist', required=True, states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}, help="The pricelist sets the currency used for this purchase order. It also computes the supplier price for the selected products/quantities."), 'state': fields.selection(STATE_SELECTION, 'Status', readonly=True, help="The state of the purchase order or the quotation request. A quotation is a purchase order in a 'Draft' state. Then the order has to be confirmed by the user, the state switch to 'Confirmed'. Then the supplier must confirm the order to change the state to 'Approved'. When the purchase order is paid and received, the state becomes 'Done'. If a cancel action occurs in the invoice or in the reception of goods, the state becomes in exception.", select=True), diff --git a/addons/purchase/stock.py b/addons/purchase/stock.py index b7116e08445..b5b708119cc 100644 --- a/addons/purchase/stock.py +++ b/addons/purchase/stock.py @@ -40,6 +40,7 @@ class stock_picking(osv.osv): 'purchase_id': fields.many2one('purchase.order', 'Purchase Order', ondelete='set null', select=True), } + _defaults = { 'purchase_id': False, } @@ -133,5 +134,6 @@ class stock_picking_in(osv.osv): _columns = { 'purchase_id': fields.many2one('purchase.order', 'Purchase Order', ondelete='set null', select=True), + 'warehouse_id': fields.related('purchase_id', 'warehouse_id', type='many2one', relation='stock.warehouse', string='Destination Warehouse'), } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/purchase/stock_view.xml b/addons/purchase/stock_view.xml index f9d6239e0a5..94210926075 100644 --- a/addons/purchase/stock_view.xml +++ b/addons/purchase/stock_view.xml @@ -7,8 +7,8 @@ <field name="type">form</field> <field name="inherit_id" ref="stock.view_move_form"/> <field name="arch" type="xml"> - <xpath expr="//field[@name='tracking_id']" position="before"> - <field name="purchase_line_id" colspan="2" /> + <xpath expr="//group[@name='destination_grp']" position="inside"> + <field name="purchase_line_id"/> </xpath> </field> </record> @@ -30,9 +30,12 @@ <field name="type">form</field> <field name="inherit_id" ref="stock.view_picking_form"/> <field name="arch" type="xml"> - <xpath expr="/form/sheet/group/group/field[@name='date']" position="before"> + <xpath expr="//field[@name='date']" position="before"> <field name="purchase_id"/> </xpath> + <xpath expr="//field[@name='company_id']" position="after"> + <field name="warehouse_id"/> + </xpath> </field> </record> 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..aa30f023ae8 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -171,7 +171,7 @@ </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"/> @@ -570,14 +570,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 242d2c4cef6..daef529b97b 100644 --- a/addons/sale/stock_view.xml +++ b/addons/sale/stock_view.xml @@ -19,8 +19,8 @@ <field name="type">form</field> <field name="inherit_id" ref="stock.view_move_form"/> <field name="arch" type="xml"> - <xpath expr="//field[@name='tracking_id']" position="before"> - <field name="sale_line_id" colspan="2"/> + <xpath expr="//group[@name='origin_grp']" position="inside"> + <field name="sale_line_id"/> </xpath> </field> </record> 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/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py index 41871480f45..23245e12a2d 100644 --- a/addons/share/wizard/share_wizard.py +++ b/addons/share/wizard/share_wizard.py @@ -274,7 +274,6 @@ class share_wizard(osv.TransientModel): 'name': new_login, 'groups_id': [(6,0,[group_id])], 'share': True, - 'menu_tips' : False, 'company_id': current_user.company_id.id }, context) new_line = { 'user_id': user_id, diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 432b3ce365b..ceed0808ef4 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -121,20 +121,16 @@ <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/> </header> <sheet> - <div class="oe_title"> - <div class="oe_edit_only"> - <label for="name" /> - </div> + <div> + <label for="name" class="oe_edit_only"/> <h1> - <field name="name" placeholder="Annual inventory"/> + <field name="name" placeholder="e.g. Annual inventory" class="oe_inline"/> - + <field name="date" class="oe_inline"/> </h1> </div> - <group> <group> - <field name="date"/> <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> - </group> <notebook> <page string="General Informations"> <field name="inventory_line_id"> @@ -150,19 +146,27 @@ <field name="state" invisible="True"/> </tree> <form string="Products" version="7.0"> - <group col="4"> - <field domain="[('usage','=','internal')]" name="location_id"/> - <field context="{'location':location_id, 'uom':product_uom, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)" domain="[('type','<>','service')]"/> - <field name="product_qty"/> - <field name="product_uom" groups="product.group_uom"/> - <field name="prod_lot_id" groups="stock.group_production_lot"/> - <button name="%(stock.action_view_stock_inventory_line_split)d" + <group> + <group> + <field domain="[('usage','=','internal')]" name="location_id"/> + <field context="{'location':location_id, 'uom':product_uom, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)" domain="[('type','<>','service')]"/> + </group> + <group> + <label for="product_qty"/> + <div> + <field name="product_qty" class="oe_inline"/> + <field name="product_uom" class="oe_inline" groups="product.group_uom"/> + </div> + <field name="prod_lot_id" groups="stock.group_production_lot"/> + <button name="%(stock.action_view_stock_inventory_line_split)d" string="Split inventory lines" groups="stock.group_inventory_valuation" type="action" icon="terp-stock_effects-object-colorize"/> + </group> </group> </form> </field> - </page><page string="Posted Inventory"> + </page> + <page string="Posted Inventory"> <field name="move_ids" context="{'inventory_id':active_id}" > <tree string="Stock Moves"> <field name="product_id"/> @@ -331,18 +335,25 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Serial Number" version="7.0"> + <div class="oe_button_box oe_right"> + <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up"/> + <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down"/> + </div> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1> + <field name="name"/> + </h1> + </div> <group> - <group string="Serial Number Identification"> + <group> <field name="product_id"/> <field name="prefix"/> - <field name="name"/> <field name="ref"/> - <field name="date"/> </group> - <group string="Traceability"> + <group> + <field name="date"/> <field name="stock_available"/> - <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/> - <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down" colspan="2"/> </group> </group> <notebook> @@ -734,7 +745,7 @@ <label for="name" class="oe_edit_only"/> <h1> <field name="name" class="oe_inline"/> - <span attr="{'invisible': [('origin','=',False)]}"> - </span> + <span attrs="{'invisible': [('origin','=',False)]}"> - </span> <field name="origin" placeholder="PO0032" class="oe_inline"/> </h1> <label for="partner_id" class="oe_edit_only"/> @@ -793,7 +804,7 @@ <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done" /> </header> <group> - <group string="Move Information"> + <group> <field name="name" invisible="1"/> <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.partner_id)"/> <label for="product_qty"/> @@ -803,17 +814,16 @@ <button name="%(stock.move_scrap)d" string="Scrap" type="action" icon="gtk-convert" context="{'scrap': True}" - states="draft,waiting,confirmed,assigned" colspan="1"/> + states="draft,waiting,confirmed,assigned"/> </div> <label for="product_uos_qty" groups="product.group_uos"/> - <div> - <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" class="oe_inline"/> - <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/> + <div groups="product.group_uos"> + <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" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/> </div> <field name="product_packaging" groups="product.group_stock_packaging" domain="[('product_id','=',product_id)]"/> </group> - - <group string="Dates"> + <group> <field name="create_date" invisible="1"/> <field name="date"/> <field name="date_expected" on_change="onchange_date(date,date_expected)"/> @@ -1216,14 +1226,15 @@ <form string="Stock Moves" version="7.0"> <header> <button name="action_confirm" states="draft" string="Process Later" type="object" class="oe_highlight"/> - <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" class="oe_highlight"/> + <button name="%(action_partial_move_server)d" string="Process Partially" type="action" states="assigned" class="oe_highlight"/> + <button name="action_done" states="draft,assigned,confirmed" string="Process Entirely" type="object" class="oe_highlight"/> <button name="force_assign" states="confirmed" string="Set Available" type="object" class="oe_highlight"/> <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object"/> <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/> </header> <sheet> <group> - <group> + <group name="main_grp" string="Details"> <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/> <label for="product_qty"/> <div> @@ -1236,28 +1247,28 @@ icon="gtk-convert" context="{'scrap': True}" states="draft,waiting,confirmed,assigned" colspan="1"/> </div> - <label for="product_uso_qty" /> - <div> + <label for="product_uos_qty" groups="product.group_uos"/> + <div groups="product.group_uos"> <field name="product_uos_qty" - groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" class="oe_inline"/> - <field name="product_uos" groups="product.group_uos" colspan="4" class="oe_inline"/> + <field name="product_uos" class="oe_inline"/> </div> <field name="name" string="Reason"/> + <field name="company_id" groups="base.group_multi_company" widget="selection"/> </group> - <group> + <group name="origin_grp" string="Origin"> <field name="picking_id"/> - <field name="company_id" groups="base.group_multi_company" widget="selection"/> <field name="location_id" groups="stock.group_locations"/> + <field name="create_date" groups="base.group_no_one"/> + </group> + <group name="destination_grp" string="Destination"> <field name="location_dest_id" groups="stock.group_locations"/> <field name="partner_id" context="{'contact_display':'partner'}"/> - <field name="create_date" groups="base.group_no_one" /> - <field name="date" groups="base.group_no_one" /> <field name="date_expected" on_change="onchange_date(date,date_expected)"/> - + <field name="date" groups="base.group_no_one" /> </group> - <group> + <group string="Tracability"> <label for="tracking_id"/> <div> <field name="tracking_id" groups="stock.group_tracking_lot" class="oe_inline"/> @@ -1397,77 +1408,6 @@ </field> </record> - - <record id="view_move_form_reception_picking" model="ir.ui.view"> - <field name="name">stock.move.form2</field> - <field name="model">stock.move</field> - <field name="type">form</field> - <field eval="6" name="priority"/> - <field name="arch" type="xml"> - <form string="Receive Products" version="7.0"> - <header> - <button name="action_confirm" states="draft" string="Process Later" type="object" class="oe_highlight"/> - <button name="force_assign" states="confirmed" string="Set Available" type="object" class="oe_highlight"/> - <button name="%(action_partial_move_server)d" string="Process" type="action" states="assigned" class="oe_highlight"/> - <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object"/> - <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/> - </header> - <sheet> - <group> - <group> - <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/> - <label for="product_qty"/> - <div> - <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/> - <field name="product_uom" string="Unit Of Measure" groups="product.group_uom" class="oe_inline"/> - <button name="%(stock.move_scrap)d" - string="Scrap" type="action" - icon="gtk-convert" context="{'scrap': True}" - states="draft,waiting,confirmed,assigned" colspan="1"/> - </div> - <label for="product_uos_qty"/> - <div> - <field name="product_uos_qty" groups="product.group_uos" class="oe_inline" - on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)"/> - <field name="product_uos" groups="product.group_uos" class="oe_inline"/> - </div> - <field name="name" string="Reason"/> - <field name="company_id" groups="base.group_multi_company"/> - <field name="location_id" groups="stock.group_locations"/> - <field name="location_dest_id" groups="stock.group_locations"/> - <field name="partner_id" groups="stock.group_locations"/> - </group> - <group> - <field name="picking_id"/> - <field name="create_date" groups="base.group_no_one" /> - <field name="date" groups="base.group_no_one" string="Move Date"/> - <field name="date_expected" on_change="onchange_date(date,date_expected)"/> - <label for="tracking_id"/> - <div> - <field name="tracking_id" groups="stock.group_tracking_lot" class="oe_inline"/> - <button name="%(split_into)d" string="New Pack" type="action" - groups="product.group_stock_packaging" - icon="terp-stock_effects-object-colorize" - states="draft,assigned,confirmed,done" class="oe_inline"/> - </div> - <label for="prodlot_id"/> - <div> - <field name="prodlot_id" groups="stock.group_production_lot" - context="{'location_id':location_id, 'product_id':product_id}" - domain="[('product_id','=?',product_id)]" class="oe_inline" - on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)"/> - <button name="%(track_line)d" - groups="stock.group_tracking_lot" class="oe_inline" - states="draft,waiting,confirmed,assigned,done" - string="Split" type="action" icon="terp-stock_effects-object-colorize" /> - </div> - </group> - </group> - </sheet> - </form> - </field> - </record> - <record id="view_move_search_reception_incoming_picking" model="ir.ui.view"> <field name="name">stock.move.incoming.search2</field> <field name="model">stock.move</field> @@ -1552,7 +1492,7 @@ <record model="ir.actions.act_window.view" id="action_move_reception_picking_form"> <field name="sequence" eval="2"/> <field name="view_mode">form</field> - <field name="view_id" ref="view_move_form_reception_picking"/> + <field name="view_id" ref="view_move_form"/> <field name="act_window_id" ref="action_reception_picking_move"/> </record> diff --git a/addons/stock_planning/stock_planning_view.xml b/addons/stock_planning/stock_planning_view.xml index 705d23c4f19..a2fdc9788e1 100644 --- a/addons/stock_planning/stock_planning_view.xml +++ b/addons/stock_planning/stock_planning_view.xml @@ -242,10 +242,9 @@ <field name="type">form</field> <field name="priority">50</field> <field name="arch" type="xml"> - <form string="Stock Planning"> - <group colspan="4" col="7"> - <group colspan ="3" col="2"> - <separator colspan ="2" string = "General Info"/> + <form string="Stock Planning" version="7.0"> + <group> + <group string="General Info"> <field name="company_id" widget="selection" on_change="onchange_company(company_id)" groups="base.group_multi_company"/> <field name="warehouse_id" domain = "[('company_id','=',company_id)] " /> @@ -256,45 +255,48 @@ <field name="product_uom" domain = "[('category_id','in',[product_uom_categ,product_uos_categ])]" on_change = "onchange_uom(product_uom, product_id, active_uom, planned_outgoing, to_procure)"/> - <field name="active_uom" invisible = "True" /> - <separator colspan ="2" string = "Forecasts"/> + <field name="active_uom" invisible = "True"/> + <separator string="Current Period Situation" colspan="2"/> + <field name="stock_start"/> + <field name="already_out"/> + <field name="already_in"/> + <separator string="Minimum Stock Rule Indicators" colspan="2"/> + <field name="minimum_op"/> + <field name="maximum_op"/> + <separator string="Forecasts" colspan="2"/> <field name="warehouse_forecast"/> <field name="company_forecast"/> <field name="confirmed_forecasts_only"/> </group> - <group colspan ="2" col="2"> - <separator colspan ="2" string = "Current Period Situation"/> - <field name="stock_start"/> - <field name="already_out"/> - <field name="already_in"/> - <separator colspan ="2" string = "Planning and Situation for Calculated Period"/> + + <group> + <button name="calculate_planning" string="Compute Planning" type="object" icon="gtk-execute"/> + <separator string="Planning and Situation for Calculated Period" colspan="2"/> <field name="planned_outgoing"/> <field name="outgoing"/> <field name="outgoing_left"/> <field name="to_procure"/> <field name="incoming"/> - <field name="incoming_left"/> - <button name="calculate_planning" string="Calculate Planning" type="object" icon="gtk-execute" colspan="2"/> + <label for="incoming_left"/> + <div> + <field name="incoming_left" class="oe_inline"/> + <button name="procure_incomming_left" icon="gtk-convert" string="Make Procurement" type="object" class="oe_inline"/> + <button name="internal_supply" string="Make Picking" help="Supply from Another Warehouse" icon="gtk-convert" type="object" class="oe_inline"/> + </div> <field name="stock_only"/> - </group> - <group colspan ="2" col="2"> - <separator colspan ="2" string = "Minimum Stock Rule Indicators"/> - <field name="minimum_op"/> - <field name="maximum_op"/> - <separator colspan ="2" string = "Calculated Period Simulation"/> + <separator string="Calculated Period Simulation" colspan="2"/> <field name="outgoing_before"/> <field name="incoming_before"/> <field name="stock_simulation"/> - <button name="procure_incomming_left" icon="gtk-convert" string="Procure Incoming Left" type="object" colspan="2"/> <field name="procure_to_stock"/> - <separator colspan ="2" string = "Internal Supply"/> - <button name="internal_supply" string="Supply from Another Warehouse" icon="gtk-convert" type="object" colspan="2"/> + <separator string="Internal Supply" colspan="2"/> <field name="supply_warehouse_id" domain = "[('company_id','=',company_id)] "/> <field name="stock_supply_location"/> </group> </group> - <separator colspan ="4" string = "Procurement History"/> - <field name = "history" colspan = "2" nolabel = "1"/> + <group string="Procurement History" colspan="4"> + <field name="history" nolabel="1" colspan="4"/> + </group> </form> </field> </record> diff --git a/addons/stock_planning/wizard/stock_planning_create_periods_view.xml b/addons/stock_planning/wizard/stock_planning_create_periods_view.xml index e65f378a638..72d70ae5203 100644 --- a/addons/stock_planning/wizard/stock_planning_create_periods_view.xml +++ b/addons/stock_planning/wizard/stock_planning_create_periods_view.xml @@ -10,8 +10,12 @@ <field name="arch" type="xml"> <form string="Stock Periods" version="7.0"> <group col="4"> - <field name="date_start"/> - <field name="date_stop"/> + <label for="date_start" string="Duration"/> + <div> + <field name="date_start"/> + <label string="-"/> + <field name="date_stop"/> + </div> </group> <footer> <button name="create_stock_periods" string="Create Daily Periods" type="object" class="oe_highlight"/> diff --git a/addons/stock_planning/wizard/stock_planning_createlines_view.xml b/addons/stock_planning/wizard/stock_planning_createlines_view.xml index 458994621c1..be744987a45 100644 --- a/addons/stock_planning/wizard/stock_planning_createlines_view.xml +++ b/addons/stock_planning/wizard/stock_planning_createlines_view.xml @@ -9,16 +9,16 @@ <field name="arch" type="xml"> <form string="Create Stock Planning Lines" version="7.0"> <group col="4"> - <field name="period_id" widget="selection"/> + <field name="period_id"/> <field name="company_id" widget= "selection" on_change="onchange_company(company_id)" groups="base.group_multi_company"/> <field name="warehouse_id" domain = "[('company_id','=',company_id)] "/> <field name="forecasted_products"/> - <field name="product_categ_id" attrs="{'required':[('forecasted_products','=',0)]}" widget="selection"/> + <field name="product_categ_id" attrs="{'required':[('forecasted_products','=',0)]}"/> </group> <footer> <button name="create_planning" string="Create" type="object" class="oe_highlight"/> or - <button string="Cancel" class="oe_link" special="cancel" /> + <button string="Cancel" class="oe_link" special="cancel"/> </footer> </form> </field> |
