[IMP] Analytic account with group extended with all modules where it refrence

bzr revid: mra@mra-laptop-20100817111335-8zu0l0tqno8dj5u9
This commit is contained in:
PSI(OpenERP) 2010-08-17 16:43:35 +05:30 committed by Mustufa Rangwala
parent 5dbdc3ccbe
commit 2f80a95c91
24 changed files with 233 additions and 222 deletions

View File

@ -62,7 +62,7 @@
<field colspan="4" name="name"/> <field colspan="4" name="name"/>
<field colspan="4" name="origin" groups="base.group_extended"/> <field colspan="4" name="origin" groups="base.group_extended"/>
<field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)" groups="base.group_user"/> <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)" groups="base.group_user"/>
<field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id" groups="account.group_account_user"/> <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id" groups="base.group_extended"/>
<newline/> <newline/>
<field name="price_subtotal"/> <field name="price_subtotal"/>
@ -154,7 +154,7 @@
<field name="number" readonly="1"/> <field name="number" readonly="1"/>
<field name="type" invisible="1"/> <field name="type" invisible="1"/>
<field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" width="50"/> <field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" width="50"/>
<button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}"/> <button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/>
<newline/> <newline/>
<field name="partner_id" domain="[('supplier','=', 1)]" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'default_customer': 0}"/> <field name="partner_id" domain="[('supplier','=', 1)]" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'default_customer': 0}"/>
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/> <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
@ -178,7 +178,7 @@
<field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/> <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/>
<field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)"/> <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)"/>
<field name="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/> <field name="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/>
<field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id"/> <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id" groups="base.group_extended"/>
<field name="quantity"/> <field name="quantity"/>
<field name="price_unit"/> <field name="price_unit"/>
<!-- Removed if subtotal is set --> <!-- Removed if subtotal is set -->
@ -263,7 +263,7 @@
<field name="number"/> <field name="number"/>
<field name="type" invisible="1"/> <field name="type" invisible="1"/>
<field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" width="50"/> <field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" width="50"/>
<button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}"/> <button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/>
<newline/> <newline/>
<field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user"/> <field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user"/>
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/> <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
@ -302,7 +302,7 @@
<field name="state"/> <field name="state"/>
<field name="residual"/> <field name="residual"/>
<group col="7" colspan="4" groups="base.group_user"> <group col="7" colspan="4" groups="base.group_user">
<button name="invoice_proforma2" states="draft" string="PRO-FORMA" icon="terp-check"/> <button name="invoice_proforma2" states="draft" string="PRO-FORMA" icon="terp-check" groups="account.group_account_user"/>
<button name="invoice_open" states="draft,proforma2" string="Create" icon="terp-document-new"/> <button name="invoice_open" states="draft,proforma2" string="Create" icon="terp-document-new"/>
<button name="%(action_account_invoice_refund)d" type='action' string='Refund' states='open,paid' icon="gtk-execute"/> <button name="%(action_account_invoice_refund)d" type='action' string='Refund' states='open,paid' icon="gtk-execute"/>
<button name="%(action_account_invoice_pay)d" type='action' string='Pay Invoice' states='open' icon="terp-dolar_ok!"/> <button name="%(action_account_invoice_pay)d" type='action' string='Pay Invoice' states='open' icon="terp-dolar_ok!"/>

View File

@ -7,7 +7,7 @@
<menuitem id="menu_finance_payables" name="Payables" parent="menu_finance" sequence="2" groups="group_account_user,group_account_manager,base.group_system"/> <menuitem id="menu_finance_payables" name="Payables" parent="menu_finance" sequence="2" groups="group_account_user,group_account_manager,base.group_system"/>
<menuitem id="menu_finance_bank_and_cash" name="Bank and Cash" parent="menu_finance" sequence="3"/> <menuitem id="menu_finance_bank_and_cash" name="Bank and Cash" parent="menu_finance" sequence="3"/>
<!-- <menuitem id="menu_accounting" name="Accounting" parent="menu_finance" sequence="5"/>--> <!-- <menuitem id="menu_accounting" name="Accounting" parent="menu_finance" sequence="5"/>-->
<menuitem id="menu_finance_periodical_processing" name="Periodical Processing" parent="menu_finance" sequence="8"/> <menuitem id="menu_finance_periodical_processing" name="Periodical Processing" parent="menu_finance" sequence="8" groups="group_account_user,group_account_manager,base.group_system"/>
<menuitem id="periodical_processing_journal_entries_validation" name="Draft Entries" parent="menu_finance_periodical_processing" groups="group_account_user,group_account_manager,base.group_system"/> <menuitem id="periodical_processing_journal_entries_validation" name="Draft Entries" parent="menu_finance_periodical_processing" groups="group_account_user,group_account_manager,base.group_system"/>
<menuitem id="periodical_processing_reconciliation" name="Reconciliation" parent="menu_finance_periodical_processing"/> <menuitem id="periodical_processing_reconciliation" name="Reconciliation" parent="menu_finance_periodical_processing"/>
<!-- <menuitem id="periodical_processing_recurrent_entries" name="Recurrent Entries" parent="menu_finance_periodical_processing"/>--> <!-- <menuitem id="periodical_processing_recurrent_entries" name="Recurrent Entries" parent="menu_finance_periodical_processing"/>-->
@ -20,8 +20,8 @@
<menuitem id="menu_finance_management_belgian_reports" name="Belgian Reports" parent="menu_finance_reporting"/> <menuitem id="menu_finance_management_belgian_reports" name="Belgian Reports" parent="menu_finance_reporting"/>
<menuitem id="menu_finance_configuration" name="Configuration" parent="menu_finance" sequence="13" groups="base.group_system"/> <menuitem id="menu_finance_configuration" name="Configuration" parent="menu_finance" sequence="13" groups="base.group_system"/>
<menuitem id="menu_finance_accounting" name="Financial Accounting" parent="menu_finance_configuration"/> <menuitem id="menu_finance_accounting" name="Financial Accounting" parent="menu_finance_configuration"/>
<menuitem id="menu_analytic_accounting" name="Analytic Accounting" parent="menu_finance_configuration"/> <menuitem id="menu_analytic_accounting" name="Analytic Accounting" parent="menu_finance_configuration" groups="base.group_extended"/>
<menuitem id="menu_analytic" parent="menu_analytic_accounting" name="Accounts"/> <menuitem id="menu_analytic" parent="menu_analytic_accounting" name="Accounts" groups="base.group_extended"/>
<menuitem id="menu_low_level" name="Low Level" parent="menu_finance_accounting" groups="base.group_extended"/> <menuitem id="menu_low_level" name="Low Level" parent="menu_finance_accounting" groups="base.group_extended"/>
<menuitem id="menu_configuration_misc" name="Miscellaneous" parent="menu_finance_configuration"/> <menuitem id="menu_configuration_misc" name="Miscellaneous" parent="menu_finance_configuration"/>
<menuitem id="base.menu_action_currency_form" parent="menu_configuration_misc" sequence="20"/> <menuitem id="base.menu_action_currency_form" parent="menu_configuration_misc" sequence="20"/>

View File

@ -455,7 +455,7 @@ class account_move_line(osv.osv):
'invoice': fields.function(_invoice, method=True, string='Invoice', 'invoice': fields.function(_invoice, method=True, string='Invoice',
type='many2one', relation='account.invoice', fnct_search=_invoice_search), type='many2one', relation='account.invoice', fnct_search=_invoice_search),
'account_tax_id':fields.many2one('account.tax', 'Tax'), 'account_tax_id':fields.many2one('account.tax', 'Tax'),
'analytic_account_id' : fields.many2one('account.analytic.account', 'Analytic Account'), 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account'),
#TODO: remove this #TODO: remove this
'amount_taxed':fields.float("Taxed Amount", digits_compute=dp.get_precision('Account')), 'amount_taxed':fields.float("Taxed Amount", digits_compute=dp.get_precision('Account')),
'company_id': fields.related('account_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True) 'company_id': fields.related('account_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True)

View File

@ -113,7 +113,7 @@
<field name="model">account.period</field> <field name="model">account.period</field>
<field name="type">tree</field> <field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree colors="blue:state in ('draft');gray:state in ('done') " string="Period"> <tree colors="blue:state in ('draft');gray:state in ('done') " string="Period">
<field name="code"/> <field name="code"/>
<field name="name"/> <field name="name"/>
<field name="date_start"/> <field name="date_start"/>
@ -895,7 +895,7 @@
<field name="debit" sum="Total debit"/> <field name="debit" sum="Total debit"/>
<field name="credit" sum="Total credit"/> <field name="credit" sum="Total credit"/>
<field name="account_tax_id" groups="base.group_extended"/> <field name="account_tax_id" groups="base.group_extended"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="amount_currency" groups="base.group_extended"/> <field name="amount_currency" groups="base.group_extended"/>
<field name="currency_id" groups="base.group_extended"/> <field name="currency_id" groups="base.group_extended"/>
<field name="reconcile_partial_id" groups="base.group_extended"/> <field name="reconcile_partial_id" groups="base.group_extended"/>
@ -970,15 +970,15 @@
<field name="blocked"/> <field name="blocked"/>
</group> </group>
<group col="2" colspan="2"> <group col="2" colspan="2" groups="base.group_extended">
<separator colspan="2" string="Analytic"/> <separator colspan="2" string="Analytic"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</group> </group>
<separator string="Narration" colspan="4"/> <separator string="Narration" colspan="4"/>
<field name="narration" colspan="4" nolabel="1"/> <field name="narration" colspan="4" nolabel="1"/>
</page> </page>
<page string="Analytic Lines"> <page string="Analytic Lines" groups="base.group_extended">
<field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/> <field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}" groups="base.group_extended"/>
</page> </page>
</notebook> </notebook>
</form> </form>
@ -1017,15 +1017,15 @@
<field name="blocked" select="3"/> <field name="blocked" select="3"/>
<newline/> <newline/>
<field name="account_tax_id" domain="[('parent_id','=',False)]"/> <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<separator colspan="4" string="State"/> <separator colspan="4" string="State"/>
<newline/> <newline/>
<field name="reconcile_id"/> <field name="reconcile_id"/>
<field name="reconcile_partial_id"/> <field name="reconcile_partial_id"/>
<field name="state"/> <field name="state"/>
</page> </page>
<page string="Analytic Lines"> <page string="Analytic Lines" groups="base.group_extended">
<field colspan="4" name="analytic_lines" nolabel="1"/> <field colspan="4" name="analytic_lines" nolabel="1" groups="base.group_extended"/>
</page> </page>
</notebook> </notebook>
</form> </form>
@ -1243,15 +1243,15 @@
<field name="blocked"/> <field name="blocked"/>
</group> </group>
<group col="2" colspan="2"> <group col="2" colspan="2" groups="base.group_extended">
<separator colspan="2" string="Analytic"/> <separator colspan="2" string="Analytic"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</group> </group>
<separator string="Narration" colspan="4"/> <separator string="Narration" colspan="4"/>
<field name="narration" colspan="4" nolabel="1"/> <field name="narration" colspan="4" nolabel="1"/>
</page> </page>
<page string="Analytic Lines"> <page string="Analytic Lines" groups="base.group_extended">
<field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/> <field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}" groups="base.group_extended"/>
</page> </page>
</notebook> </notebook>
</form> </form>
@ -1264,7 +1264,7 @@
<field name="date_maturity"/> <field name="date_maturity"/>
<field name="debit" sum="Total Debit"/> <field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/> <field name="credit" sum="Total Credit"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="amount_currency" groups="base.group_extended"/> <field name="amount_currency" groups="base.group_extended"/>
<field name="currency_id" groups="base.group_extended"/> <field name="currency_id" groups="base.group_extended"/>
<field name="tax_code_id"/> <field name="tax_code_id"/>
@ -1910,7 +1910,7 @@
<field name="debit" sum="Total debit"/> <field name="debit" sum="Total debit"/>
<field name="credit" sum="Total credit"/> <field name="credit" sum="Total credit"/>
<field name="account_tax_id"/> <field name="account_tax_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="state"/> <field name="state"/>
</tree> </tree>
</field> </field>

View File

@ -49,7 +49,7 @@
<field name="view_id" ref="board_account_form"/> <field name="view_id" ref="board_account_form"/>
</record> </record>
<menuitem id="menu_dashboard_acc" name="Dashboard" sequence="2" parent="account.menu_finance_reporting"/> <menuitem id="menu_dashboard_acc" name="Dashboard" sequence="2" parent="account.menu_finance_reporting" groups="group_account_user,group_account_manager,base.group_system"/>
<menuitem action="open_board_account" icon="terp-graph" id="menu_board_account" parent="menu_dashboard_acc" sequence="1"/> <menuitem action="open_board_account" icon="terp-graph" id="menu_board_account" parent="menu_dashboard_acc" sequence="1"/>
<menuitem icon="terp-account" id="account.menu_finance" name="Accounting" sequence="13" action="open_board_account"/> <menuitem icon="terp-account" id="account.menu_finance" name="Accounting" sequence="13" action="open_board_account"/>
</data> </data>

View File

@ -78,7 +78,7 @@
<group colspan="4" col="6"> <group colspan="4" col="6">
<field name="name" select="1" colspan="4"/> <field name="name" select="1" colspan="4"/>
<field name="code" select="1"/> <field name="code" select="1"/>
<field name="parent_id" on_change="on_change_parent(parent_id)"/> <field name="parent_id" on_change="on_change_parent(parent_id)" groups="base.group_extended"/>
<field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/> <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/>
<field name="type" select="2"/> <field name="type" select="2"/>
<field name="company_currency_id" select="2"/> <field name="company_currency_id" select="2"/>
@ -113,7 +113,7 @@
<field name="search_view_id" ref="account.view_account_analytic_account_search"/> <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
</record> </record>
<!--<menuitem id="menu_analytic_account" name="Analytic Accounts" parent="account.menu_analytic_accounting"/>--> <!--<menuitem id="menu_analytic_account" name="Analytic Accounts" parent="account.menu_analytic_accounting"/>-->
<menuitem action="action_account_analytic_account_form" id="account_analytic_def_account" parent="menu_analytic_accounting"/> <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account" parent="menu_analytic_accounting" groups="base.group_extended"/>
<record id="act_account_renew_view" model="ir.actions.act_window"> <record id="act_account_renew_view" model="ir.actions.act_window">
<field name="name">Accounts to Renew</field> <field name="name">Accounts to Renew</field>
@ -144,7 +144,7 @@
<!-- <wizard id="wizard_analytic_account_chart" menu="False" model="account.analytic.account" name="account.analytic.account.chart" string="Analytic Chart of Accounts"/> <!-- <wizard id="wizard_analytic_account_chart" menu="False" model="account.analytic.account" name="account.analytic.account.chart" string="Analytic Chart of Accounts"/>
<menuitem icon="STOCK_INDENT" action="wizard_analytic_account_chart" id="menu_action_analytic_account_tree2" parent="account.menu_finance_charts" type="wizard"/>--> <menuitem icon="STOCK_INDENT" action="wizard_analytic_account_chart" id="menu_action_analytic_account_tree2" parent="account.menu_finance_charts" type="wizard"/>-->
<menuitem id="next_id_40" name="Analytic" parent="account.menu_finance_generic_reporting" sequence="4"/> <menuitem id="next_id_40" name="Analytic" parent="account.menu_finance_generic_reporting" sequence="4" groups="base.group_extended"/>
<!-- <menuitem action="action_account_analytic_account_tree2" id="account_analytic_chart_balance" parent="next_id_40"/>--> <!-- <menuitem action="action_account_analytic_account_tree2" id="account_analytic_chart_balance" parent="next_id_40"/>-->
<record id="view_account_analytic_line_form" model="ir.ui.view"> <record id="view_account_analytic_line_form" model="ir.ui.view">
@ -157,7 +157,7 @@
<field colspan="4" name="name" select="1"/> <field colspan="4" name="name" select="1"/>
<field name="amount" select="2"/> <field name="amount" select="2"/>
<field name="date" select="1"/> <field name="date" select="1"/>
<field name="account_id" select="1"/> <field name="account_id" select="1" groups="base.group_extended"/>
<field name="journal_id" select="2"/> <field name="journal_id" select="2"/>
<field name="general_account_id" select="2"/> <field name="general_account_id" select="2"/>
<field name="move_id" select="2"/> <field name="move_id" select="2"/>
@ -183,7 +183,7 @@
<field name="name"/> <field name="name"/>
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total quantity"/> <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total quantity"/>
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/> <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
<field domain="[('type','=','normal')]" name="account_id"/> <field domain="[('type','=','normal')]" name="account_id" groups="base.group_extended"/>
<field invisible="True" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/> <field invisible="True" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
<field name="amount" sum="Total amount"/> <field name="amount" sum="Total amount"/>
<field name="general_account_id"/> <field name="general_account_id"/>
@ -203,7 +203,7 @@
<search string="Search Analytic Lines"> <search string="Search Analytic Lines">
<group col='6' colspan='4'> <group col='6' colspan='4'>
<field name="name" select="1"/> <field name="name" select="1"/>
<field name="account_id" select="1"/> <field name="account_id" select="1" groups="base.group_extended"/>
<field name="amount" select="1"/> <field name="amount" select="1"/>
<field name="date" select="1"/> <field name="date" select="1"/>
<field name="user_id" widget="selection"/> <field name="user_id" widget="selection"/>
@ -215,7 +215,7 @@
<newline/> <newline/>
<group string="Group By..." expand="0"> <group string="Group By..." expand="0">
<filter string="General Account" context="{'group_by':'general_account_id'}"/> <filter string="General Account" context="{'group_by':'general_account_id'}"/>
<filter string="Analytic Account" context="{'group_by':'account_id'}"/> <filter string="Analytic Account" context="{'group_by':'account_id'}" groups="base.group_extended"/>
<filter string="Analytic Journal" context="{'group_by':'journal_id'}"/> <filter string="Analytic Journal" context="{'group_by':'journal_id'}"/>
<filter string="Product" context="{'group_by':'product_id'}"/> <filter string="Product" context="{'group_by':'product_id'}"/>
</group> </group>
@ -263,7 +263,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Project line"> <form string="Project line">
<field name="name"/> <field name="name"/>
<field name="account_id"/> <field name="account_id" groups="base.group_extended"/>
<field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/> <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
<field name="journal_id"/> <field name="journal_id"/>
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/> <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
@ -308,12 +308,12 @@
<field name="type">search</field> <field name="type">search</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Analytic Journals"> <search string="Analytic Journals">
<group> <group>
<field name="name"/> <field name="name"/>
<field name="code"/> <field name="code"/>
<field name="type"/> <field name="type"/>
</group> </group>
<newline/> <newline/>
<group expand="0" string="Group By..."> <group expand="0" string="Group By...">
<filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/> <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
</group> </group>
@ -342,7 +342,7 @@
<field name="view_mode">tree,form,search</field> <field name="view_mode">tree,form,search</field>
<field name="search_view_id" ref="view_analytic_journal_search" /> <field name="search_view_id" ref="view_analytic_journal_search" />
</record> </record>
<menuitem action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting"/> <menuitem action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" groups="base.group_extended"/>
# #
# Open journal entries # Open journal entries
@ -390,7 +390,7 @@
<field name="view_type">tree</field> <field name="view_type">tree</field>
<field name="help">To print an analytics (or costs) journal for a given period. The report give code, move name, account number, general amount and analytic amount.</field> <field name="help">To print an analytics (or costs) journal for a given period. The report give code, move name, account number, general amount and analytic amount.</field>
</record> </record>
<menuitem action="action_account_analytic_journal_tree" id="account_analytic_journal_print" parent="account.next_id_40"/> <menuitem action="action_account_analytic_journal_tree" id="account_analytic_journal_print" parent="account.next_id_40" groups="base.group_extended"/>
<!-- <record id="action_account_analytic_journal_tree2" model="ir.actions.act_window">--> <!-- <record id="action_account_analytic_journal_tree2" model="ir.actions.act_window">-->

View File

@ -38,7 +38,8 @@
parent="account.menu_finance_charts" parent="account.menu_finance_charts"
action="action_account_analytic_chart" action="action_account_analytic_chart"
id="menu_action_analytic_account_tree2" id="menu_action_analytic_account_tree2"
icon="STOCK_INDENT"/> icon="STOCK_INDENT"
groups="base.group_extended"/>
</data> </data>
</openerp> </openerp>

View File

@ -107,7 +107,7 @@
<field name="help">A tool search lets you know statistics on your analytics records that match your needs.</field> <field name="help">A tool search lets you know statistics on your analytics records that match your needs.</field>
</record> </record>
<menuitem action="action_analytic_entries_report" id="menu_action_analytic_entries_report" parent="account.menu_finance_statistic_report_statement" sequence="4"/> <menuitem action="action_analytic_entries_report" id="menu_action_analytic_entries_report" parent="account.menu_finance_statistic_report_statement" sequence="4" groups="base.group_extended"/>
</data> </data>
</openerp> </openerp>

View File

@ -8,7 +8,7 @@
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Standard entries"> <form string="Standard entries">
</form> </form>
</field> </field>
</record> </record>
@ -21,7 +21,7 @@
<field name="context">{'journal_type':'sale','view_mode':False}</field> <field name="context">{'journal_type':'sale','view_mode':False}</field>
<field name="target">new</field> <field name="target">new</field>
</record> </record>
<menuitem action="action_account_moves_sale" sequence="10" id="menu_eaction_account_moves_sale" parent="menu_finance_receivables" icon="STOCK_JUSTIFY_FILL"/> <menuitem action="action_account_moves_sale" sequence="10" id="menu_eaction_account_moves_sale" parent="menu_finance_receivables" icon="STOCK_JUSTIFY_FILL" groups="group_account_user,group_account_manager,base.group_system"/>
<!-- <record id="action_account_moves_purchase_refund" model="ir.actions.act_window">--> <!-- <record id="action_account_moves_purchase_refund" model="ir.actions.act_window">-->
<!-- <field name="name">Journal Refund Items</field>--> <!-- <field name="name">Journal Refund Items</field>-->
@ -42,7 +42,10 @@
<field name="target">new</field> <field name="target">new</field>
</record> </record>
<menuitem action="action_account_moves_purchase" sequence="10" <menuitem action="action_account_moves_purchase" sequence="10"
id="menu_eaction_account_moves_purchase" parent="menu_finance_payables" icon="STOCK_JUSTIFY_FILL"/> id="menu_eaction_account_moves_purchase"
parent="menu_finance_payables"
icon="STOCK_JUSTIFY_FILL"
groups="group_account_user,group_account_manager,base.group_system"/>
<!-- <record id="action_account_moves_sale_refund" model="ir.actions.act_window">--> <!-- <record id="action_account_moves_sale_refund" model="ir.actions.act_window">-->
<!-- <field name="name">Journal Refund Items</field>--> <!-- <field name="name">Journal Refund Items</field>-->
@ -69,6 +72,7 @@
id="menu_eaction_account_moves_all" id="menu_eaction_account_moves_all"
parent="account.menu_finance_entries" parent="account.menu_finance_entries"
sequence="4" sequence="4"
groups="group_account_user,group_account_manager,base.group_system"
/> />
</data> </data>
</openerp> </openerp>

View File

@ -1,7 +1,7 @@
<openerp> <openerp>
<data> <data>
<menuitem icon="terp-project" id="base.menu_main_pm" name="Project" sequence="10"/> <menuitem icon="terp-project" id="base.menu_main_pm" name="Project" sequence="10"/>
<menuitem id="menu_invoicing" name="Billing" parent="base.menu_main_pm" sequence="4"/> <menuitem id="menu_invoicing" name="Billing" parent="base.menu_main_pm" sequence="4" groups="base.group_extended"/>
<record id="action_hr_tree_invoiced_all" model="ir.actions.act_window"> <record id="action_hr_tree_invoiced_all" model="ir.actions.act_window">
<field name="name">All Uninvoiced Entries</field> <field name="name">All Uninvoiced Entries</field>
@ -11,7 +11,7 @@
<field name="domain">[('invoice_id','=',False),('to_invoice','!=',False)]</field> <field name="domain">[('invoice_id','=',False),('to_invoice','!=',False)]</field>
<field name="search_view_id" ref="account.view_account_analytic_line_filter"/> <field name="search_view_id" ref="account.view_account_analytic_line_filter"/>
</record> </record>
<menuitem action="action_hr_tree_invoiced_all" id="menu_action_hr_tree_invoiced_all" parent="menu_invoicing"/> <menuitem action="action_hr_tree_invoiced_all" id="menu_action_hr_tree_invoiced_all" parent="menu_invoicing" groups="base.group_extended"/>
<record id="action_account_analytic_managed_overpassed" model="ir.actions.act_window"> <record id="action_account_analytic_managed_overpassed" model="ir.actions.act_window">
<field name="name">Overpassed Accounts</field> <field name="name">Overpassed Accounts</field>
@ -20,6 +20,6 @@
<field name="view_mode">tree,form,graph</field> <field name="view_mode">tree,form,graph</field>
<field name="domain">[('date','&lt;=',time.strftime('%Y-%m-%d')),('state','=','open')]</field> <field name="domain">[('date','&lt;=',time.strftime('%Y-%m-%d')),('state','=','open')]</field>
</record> </record>
<menuitem action="action_account_analytic_managed_overpassed" id="menu_action_account_analytic_managed_overpassed" sequence="50" parent="menu_invoicing"/> <menuitem action="action_account_analytic_managed_overpassed" id="menu_action_account_analytic_managed_overpassed" sequence="50" parent="menu_invoicing" groups="base.group_extended"/>
</data> </data>
</openerp> </openerp>

View File

@ -52,7 +52,7 @@
</search> </search>
</field> </field>
</record> </record>
<record id="action_analytic_default_form" model="ir.actions.act_window"> <record id="action_analytic_default_form" model="ir.actions.act_window">
<field name="name">Analytic Defaults</field> <field name="name">Analytic Defaults</field>
<field name="res_model">account.analytic.default</field> <field name="res_model">account.analytic.default</field>
@ -81,7 +81,8 @@
id="analytic_rule_action_user" id="analytic_rule_action_user"
res_model="account.analytic.default" res_model="account.analytic.default"
src_model="res.users" src_model="res.users"
domain="[('user_id','=',active_id)]"/> domain="[('user_id','=',active_id)]"
groups="base.group_extended"/>
<act_window <act_window
name="Analytic Rules" name="Analytic Rules"

View File

@ -53,7 +53,7 @@ class account_analytic_plan(osv.osv):
'name': fields.char('Analytic Plan', size=64, required=True, select=True,), 'name': fields.char('Analytic Plan', size=64, required=True, select=True,),
'plan_ids': fields.one2many('account.analytic.plan.line','plan_id','Analytic Plans'), 'plan_ids': fields.one2many('account.analytic.plan.line','plan_id','Analytic Plans'),
} }
account_analytic_plan() account_analytic_plan()
class account_analytic_plan_line(osv.osv): class account_analytic_plan_line(osv.osv):
@ -72,7 +72,7 @@ class account_analytic_plan_line(osv.osv):
'min_required': 100.0, 'min_required': 100.0,
'max_required': 100.0, 'max_required': 100.0,
} }
account_analytic_plan_line() account_analytic_plan_line()
class account_analytic_plan_instance(osv.osv): class account_analytic_plan_instance(osv.osv):
@ -168,7 +168,7 @@ class account_analytic_plan_instance(osv.osv):
<field name="account%d_ids" string="%s" colspan="4"> <field name="account%d_ids" string="%s" colspan="4">
<tree string="%s" editable="bottom"> <tree string="%s" editable="bottom">
<field name="rate"/> <field name="rate"/>
<field name="analytic_account_id" domain="[('parent_id','child_of',[%d])]"/> <field name="analytic_account_id" domain="[('parent_id','child_of',[%d])]" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
<newline/>"""%(i,tools.to_xml(line.name),tools.to_xml(line.name),line.root_analytic_id and line.root_analytic_id.id or 0) <newline/>"""%(i,tools.to_xml(line.name),tools.to_xml(line.name),line.root_analytic_id and line.root_analytic_id.id or 0)
@ -189,7 +189,7 @@ class account_analytic_plan_instance(osv.osv):
pids = self.pool.get('account.analytic.plan.instance').search(cr, uid, [('name','=',vals['name']),('code','=',vals['code']),('plan_id','<>',False)]) pids = self.pool.get('account.analytic.plan.instance').search(cr, uid, [('name','=',vals['name']),('code','=',vals['code']),('plan_id','<>',False)])
if pids: if pids:
raise osv.except_osv(_('Error'), _('A model having this name and code already exists !')) raise osv.except_osv(_('Error'), _('A model having this name and code already exists !'))
acct_anal_acct = self.pool.get('account.analytic.account') acct_anal_acct = self.pool.get('account.analytic.account')
acct_anal_plan_line_obj = self.pool.get('account.analytic.plan.line') acct_anal_plan_line_obj = self.pool.get('account.analytic.plan.line')
res = acct_anal_plan_line_obj.search(cr, uid, [('plan_id','=',journal.plan_id.id)]) res = acct_anal_plan_line_obj.search(cr, uid, [('plan_id','=',journal.plan_id.id)])
@ -256,7 +256,7 @@ class account_journal(osv.osv):
_columns = { _columns = {
'plan_id':fields.many2one('account.analytic.plan', 'Analytic Plans'), 'plan_id':fields.many2one('account.analytic.plan', 'Analytic Plans'),
} }
account_journal() account_journal()
class account_invoice_line(osv.osv): class account_invoice_line(osv.osv):
@ -282,7 +282,7 @@ class account_invoice_line(osv.osv):
if rec and rec.analytics_id: if rec and rec.analytics_id:
res_prod['value'].update({'analytics_id':rec.analytics_id.id}) res_prod['value'].update({'analytics_id':rec.analytics_id.id})
return res_prod return res_prod
account_invoice_line() account_invoice_line()
class account_move_line(osv.osv): class account_move_line(osv.osv):
@ -396,7 +396,7 @@ class analytic_default(osv.osv):
_columns = { _columns = {
'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'), 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
} }
analytic_default() analytic_default()
class sale_order_line(osv.osv): class sale_order_line(osv.osv):
@ -409,7 +409,7 @@ class sale_order_line(osv.osv):
sale_line = self.browse(cr, uid, ids[0], context) sale_line = self.browse(cr, uid, ids[0], context)
inv_line_obj = self.pool.get('account.invoice.line') inv_line_obj = self.pool.get('account.invoice.line')
acct_anal_def_obj = self.pool.get('account.analytic.default') acct_anal_def_obj = self.pool.get('account.analytic.default')
for line in inv_line_obj.browse(cr, uid, create_ids, context): for line in inv_line_obj.browse(cr, uid, create_ids, context):
rec = acct_anal_def_obj.account_get(cr, uid, line.product_id.id, sale_line.order_id.partner_id.id, uid, time.strftime('%Y-%m-%d'), context) rec = acct_anal_def_obj.account_get(cr, uid, line.product_id.id, sale_line.order_id.partner_id.id, uid, time.strftime('%Y-%m-%d'), context)

View File

@ -24,7 +24,7 @@
<field name="inherit_id" ref="account.view_move_form"/> <field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="analytic_account_id" position="replace"> <field name="analytic_account_id" position="replace">
<field name="analytics_id" context="{'journal_id':journal_id}"/> <field name="analytics_id" context="{'journal_id':journal_id}" groups="base.group_extended"/>
</field> </field>
</field> </field>
</record> </record>
@ -60,7 +60,7 @@
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="account_analytic_id" position="replace"> <field name="account_analytic_id" position="replace">
<field name="analytics_id" context="{'journal_id':parent.journal_id}" domain="[('plan_id','&lt;&gt;',False)]"/> <field name="analytics_id" context="{'journal_id':parent.journal_id}" domain="[('plan_id','&lt;&gt;',False)]" groups="base.group_extended"/>
</field> </field>
</field> </field>
</record> </record>
@ -73,7 +73,7 @@
<field name="priority">2</field> <field name="priority">2</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="account_analytic_id" position="replace"> <field name="account_analytic_id" position="replace">
<field name="analytics_id" domain="[('plan_id','&lt;&gt;',False)]" context="{'journal_id':parent.journal_id}" /> <field name="analytics_id" domain="[('plan_id','&lt;&gt;',False)]" context="{'journal_id':parent.journal_id}" groups="base.group_extended"/>
</field> </field>
</field> </field>
</record> </record>
@ -90,13 +90,13 @@
<field name="plan_id" required="True"/> <field name="plan_id" required="True"/>
<field name="journal_id"/> <field name="journal_id"/>
<field name="account_ids" nolabel="1" colspan="4"> <field name="account_ids" nolabel="1" colspan="4">
<form string="Analytic Distribution"> <form string="Analytic Distribution">
<field name="rate"/> <field name="rate"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</form> </form>
<tree string="Analytic Distribution" editable="bottom"> <tree string="Analytic Distribution" editable="bottom">
<field name="rate"/> <field name="rate"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
</form> </form>
@ -140,7 +140,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Analytic Distribution Line"> <form string="Analytic Distribution Line">
<field name="plan_id"/> <field name="plan_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="rate"/> <field name="rate"/>
</form> </form>
</field> </field>
@ -153,7 +153,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Analytic Distribution Lines"> <tree string="Analytic Distribution Lines">
<field name="plan_id" select="1"/> <field name="plan_id" select="1"/>
<field name="analytic_account_id" select="1"/> <field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="rate"/> <field name="rate"/>
</tree> </tree>
</field> </field>

View File

@ -78,14 +78,14 @@
<page string="Budget Lines"> <page string="Budget Lines">
<field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="graph,tree"> <field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="graph,tree">
<graph type="bar" string="Lines"> <graph type="bar" string="Lines">
<field name="analytic_account_id" /> <field name="analytic_account_id" groups="base.group_extended"/>
<!--<field name="general_budget_id" operator="+" />--> <!--<field name="general_budget_id" operator="+" />-->
<field name="planned_amount" operator="+"/> <field name="planned_amount" operator="+"/>
<field group="True" name="general_budget_id"/> <field group="True" name="general_budget_id"/>
</graph> </graph>
<tree string="Budget Lines" editable="top"> <tree string="Budget Lines" editable="top">
<field name="crossovered_budget_id"/> <field name="crossovered_budget_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>
<field name="paid_date"/> <field name="paid_date"/>
@ -96,7 +96,7 @@
</tree> </tree>
<form string="Budget Lines"> <form string="Budget Lines">
<field name="crossovered_budget_id"/> <field name="crossovered_budget_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>
<field name="paid_date"/> <field name="paid_date"/>
@ -126,7 +126,7 @@
<field name="date_to"/> <field name="date_to"/>
<field name="crossovered_budget_line" colspan="4" nolabel="1"> <field name="crossovered_budget_line" colspan="4" nolabel="1">
<tree string="Budget Lines"> <tree string="Budget Lines">
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="general_budget_id"/> <field name="general_budget_id"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>
@ -137,7 +137,7 @@
<field name="percentage"/> <field name="percentage"/>
</tree> </tree>
<form string="Budget Lines"> <form string="Budget Lines">
<field name="analytic_account_id" select="1"/> <field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="general_budget_id" select="1"/> <field name="general_budget_id" select="1"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>
@ -163,7 +163,7 @@
<field name="model">crossovered.budget</field> <field name="model">crossovered.budget</field>
<field name="type">tree</field> <field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree colors="blue:state in ('draft');gray:state in ('done','cancel');black:state in ('confirm','validate')" string="Budget"> <tree colors="blue:state in ('draft');gray:state in ('done','cancel');black:state in ('confirm','validate')" string="Budget">
<field name="name" colspan="1" select="1"/> <field name="name" colspan="1" select="1"/>
<field name="code" colspan="1" select="1" /> <field name="code" colspan="1" select="1" />
<field name="state"/> <field name="state"/>
@ -211,7 +211,7 @@
<field name="type">tree</field> <field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Budget Lines"> <tree string="Budget Lines">
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="general_budget_id"/> <field name="general_budget_id"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>
@ -230,7 +230,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Budget Lines"> <form string="Budget Lines">
<field name="crossovered_budget_id"/> <field name="crossovered_budget_id"/>
<field name="analytic_account_id" select="1"/> <field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="general_budget_id" select="1"/> <field name="general_budget_id" select="1"/>
<field name="date_from"/> <field name="date_from"/>
<field name="date_to"/> <field name="date_to"/>

View File

@ -5,9 +5,9 @@
<menuitem name="Configuration" parent="auction_menu_root" id="auction_config_menu" sequence="7"/> <menuitem name="Configuration" parent="auction_menu_root" id="auction_config_menu" sequence="7"/>
<menuitem name="Tools Bar Codes" id="auction_outils_menu" parent="auction_menu_root" sequence="5" /> <menuitem name="Tools Bar Codes" id="auction_outils_menu" parent="auction_menu_root" sequence="5" />
<menuitem name="Deliveries Management" action="action_auction_taken" id="menu_wizard_emporte" parent="auction_outils_menu"/> <menuitem name="Deliveries Management" action="action_auction_taken" id="menu_wizard_emporte" parent="auction_outils_menu"/>
<!-- Auction Management/Configuration/artist --> <!-- Auction Management/Configuration/artist -->
<record model="ir.ui.view" id="view_auction_artist_tree"> <record model="ir.ui.view" id="view_auction_artist_tree">
<field name="name">auction.artists.tree</field> <field name="name">auction.artists.tree</field>
<field name="model">auction.artists</field> <field name="model">auction.artists</field>
@ -42,9 +42,9 @@
</record> </record>
<menuitem name="Artists" parent="auction_config_menu" action="action_auction_artist" id="menu_auction_artist"/> <menuitem name="Artists" parent="auction_config_menu" action="action_auction_artist" id="menu_auction_artist"/>
<!-- Auction Management/Configuration/objectcategories --> <!-- Auction Management/Configuration/objectcategories -->
<record model="ir.ui.view" id="view_auction_object_categories_tree"> <record model="ir.ui.view" id="view_auction_object_categories_tree">
<field name="name">auction.lot.category.tree</field> <field name="name">auction.lot.category.tree</field>
<field name="model">auction.lot.category</field> <field name="model">auction.lot.category</field>
@ -55,7 +55,7 @@
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="view_auction_object_categories_form"> <record model="ir.ui.view" id="view_auction_object_categories_form">
<field name="name">auction.lot.category.form</field> <field name="name">auction.lot.category.form</field>
<field name="model">auction.lot.category</field> <field name="model">auction.lot.category</field>
@ -71,17 +71,17 @@
</form> </form>
</field> </field>
</record> </record>
<record model="ir.actions.act_window" id="action_auction_object_categories"> <record model="ir.actions.act_window" id="action_auction_object_categories">
<field name="res_model">auction.lot.category</field> <field name="res_model">auction.lot.category</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_id" ref="view_auction_object_categories_tree"/> <field name="view_id" ref="view_auction_object_categories_tree"/>
</record> </record>
<menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories" id="menu_auction_object_cat"/> <menuitem name="Object Categories" parent="auction_config_menu" action="action_auction_object_categories" id="menu_auction_object_cat"/>
<!-- Auction Management/Auction Dates/New Auction Dates --> <!-- Auction Management/Auction Dates/New Auction Dates -->
<record model="ir.ui.view" id="view_auction_dates_tree"> <record model="ir.ui.view" id="view_auction_dates_tree">
<field name="name">Auction dates</field> <field name="name">Auction dates</field>
<field name="model">auction.dates</field> <field name="model">auction.dates</field>
@ -95,7 +95,7 @@
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="view_auction_dates_form"> <record model="ir.ui.view" id="view_auction_dates_form">
<field name="name">Auction dates</field> <field name="name">Auction dates</field>
<field name="model">auction.dates</field> <field name="model">auction.dates</field>
@ -122,8 +122,8 @@
<separator string="Analytic" colspan="4"/> <separator string="Analytic" colspan="4"/>
<field name="journal_id"/> <field name="journal_id"/>
<field name="journal_seller_id"/> <field name="journal_seller_id"/>
<field name="account_analytic_id"/> <field name="account_analytic_id" groups="base.group_extended"/>
</page> </page>
<page string="Commissions"> <page string="Commissions">
<group col="4" colspan="4"> <group col="4" colspan="4">
<group col="2" colspan="4"> <group col="2" colspan="4">
@ -194,7 +194,7 @@
<field name="name">Auctions</field> <field name="name">Auctions</field>
<field name="res_model">auction.dates</field> <field name="res_model">auction.dates</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_mode">tree,form,calendar</field> <field name="view_mode">tree,form,calendar</field>
<field name="search_view_id" ref="view_auction_dates_filter"/> <field name="search_view_id" ref="view_auction_dates_filter"/>
<field name="context">{"search_default_draft": "1"}</field> <field name="context">{"search_default_draft": "1"}</field>
</record> </record>
@ -208,8 +208,8 @@
<menuitem name="Auctions" parent="auction_menu_root" id="auction_date_menu" sequence="1"/> <menuitem name="Auctions" parent="auction_menu_root" id="auction_date_menu" sequence="1"/>
<menuitem name="Auctions" parent="auction_date_menu" id="menu_auction_dates_next1" action="action_auction_dates_next"/> <menuitem name="Auctions" parent="auction_date_menu" id="menu_auction_dates_next1" action="action_auction_dates_next"/>
<record model="ir.ui.view" id="view_auction_lot_tree"> <record model="ir.ui.view" id="view_auction_lot_tree">
<field name="name">Auction lots</field> <field name="name">Auction lots</field>
<field name="model">auction.lots</field> <field name="model">auction.lots</field>
@ -246,13 +246,13 @@
<newline/> <newline/>
<field name="auction_id"/> <field name="auction_id"/>
<field name="lot_type"/> <field name="lot_type"/>
<field name="lot_local"/> <field name="lot_local"/>
</group> </group>
<notebook colspan="4"> <notebook colspan="4">
<page string="Catalog"> <page string="Catalog">
<separator string="Inventory" colspan="2"/> <separator string="Inventory" colspan="2"/>
<group colspan="4" col="6"> <group colspan="4" col="6">
<group colspan="2" col="4"> <group colspan="2" col="4">
<field name="product_id" colspan="4"/> <field name="product_id" colspan="4"/>
<field name="lot_num" select="1" /> <field name="lot_num" select="1" />
<field name="bord_vnd_id"/> <field name="bord_vnd_id"/>
@ -295,7 +295,7 @@
<field name="paid_ach"/> <field name="paid_ach"/>
<field name="ach_inv_id"/> <field name="ach_inv_id"/>
<field name="ach_emp"/> <field name="ach_emp"/>
</group> </group>
<group colspan="2" col="4"> <group colspan="2" col="4">
<separator string="Seller Information" colspan="4"/> <separator string="Seller Information" colspan="4"/>
<field name="seller_id"/> <field name="seller_id"/>
@ -306,7 +306,7 @@
<field name="paid_vnd"/> <field name="paid_vnd"/>
</group> </group>
</group> </group>
<group colspan="4" col="4"> <group colspan="4" col="4">
<separator string="" colspan="4"/> <separator string="" colspan="4"/>
<field name="state" colspan="1"/> <field name="state" colspan="1"/>
<group col="8" colspan="2"> <group col="8" colspan="2">
@ -314,8 +314,8 @@
<button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/> <button name="button_not_bought" string="Not sold" states="draft" type="object" icon="gtk-undo"/>
<button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/> <button name="button_taken_away" string="Taken away" states="sold" type="object" icon="gtk-goto-last"/>
<button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/> <button name="button_unpaid" string="Set to draft" states="sold,unsold,paid" type="object" icon="gtk-convert"/>
</group> </group>
</group> </group>
</page> </page>
<page string="Bids"> <page string="Bids">
<field name="bid_lines" colspan="4" nolabel="1" editable="top"> <field name="bid_lines" colspan="4" nolabel="1" editable="top">
@ -358,7 +358,7 @@
</form> </form>
</field> </field>
</group> </group>
<group colspan="2" col="2"> <group colspan="2" col="2">
<field name="history_ids" colspan="4" readonly="1" nolabel="1"> <field name="history_ids" colspan="4" readonly="1" nolabel="1">
<tree string="History"> <tree string="History">
<field name="name"/> <field name="name"/>
@ -373,7 +373,7 @@
</form> </form>
</field> </field>
</record> </record>
<record id="view_auction_lots_filter" model="ir.ui.view"> <record id="view_auction_lots_filter" model="ir.ui.view">
<field name="name">Auction Lots search</field> <field name="name">Auction Lots search</field>
<field name="model">auction.lots</field> <field name="model">auction.lots</field>
@ -416,9 +416,9 @@
</search> </search>
</field> </field>
</record> </record>
<!-- Graph view for Auction Lots --> <!-- Graph view for Auction Lots -->
<record model="ir.ui.view" id="auction_lot_graph"> <record model="ir.ui.view" id="auction_lot_graph">
<field name="name">Auction lots</field> <field name="name">Auction lots</field>
<field name="model">auction.lots</field> <field name="model">auction.lots</field>
@ -440,9 +440,9 @@
<field name="search_view_id" ref="view_auction_lots_filter"/> <field name="search_view_id" ref="view_auction_lots_filter"/>
<field name="context">{"search_default_draft": "1"}</field> <field name="context">{"search_default_draft": "1"}</field>
</record> </record>
<!-- Action for Bids --> <!-- Action for Bids -->
<act_window name="Open Bids" <act_window name="Open Bids"
domain="[('lot_id', '=', active_id)]" domain="[('lot_id', '=', active_id)]"
res_model="auction.bid_line" res_model="auction.bid_line"
@ -468,62 +468,62 @@
<newline/> <newline/>
<notebook colspan="4"> <notebook colspan="4">
<page string="General Information"> <page string="General Information">
<field name="lot_id" colspan="4" mode="tree,graph" nolabel="1"> <field name="lot_id" colspan="4" mode="tree,graph" nolabel="1">
<tree string="Objects"> <tree string="Objects">
<field name="lot_num"/> <field name="lot_num"/>
<field name="obj_num"/> <field name="obj_num"/>
<field name="auction_id"/> <field name="auction_id"/>
<field name="name"/> <field name="name"/>
<field name="obj_price"/> <field name="obj_price"/>
<field name="vnd_lim"/> <field name="vnd_lim"/>
<field name="lot_est1"/> <field name="lot_est1"/>
<field name="lot_est2"/> <field name="lot_est2"/>
</tree> </tree>
<form string="Objects"> <form string="Objects">
<notebook colspan="4"> <notebook colspan="4">
<page string="Description"> <page string="Description">
<field name="auction_id" colspan="4"/> <field name="auction_id" colspan="4"/>
<field name="lot_num"/> <field name="lot_num"/>
<field name="obj_num"/> <field name="obj_num"/>
<newline/> <newline/>
<field name="name"/> <field name="name"/>
<field name="lot_type" select="1"/> <field name="lot_type" select="1"/>
<field name="name2"/> <field name="name2"/>
<newline/> <newline/>
<field name="artist_id"/> <field name="artist_id"/>
<field name="artist2_id"/> <field name="artist2_id"/>
<separator string="Objects Description" colspan="4"/> <separator string="Objects Description" colspan="4"/>
<field name="obj_desc" colspan="4" nolabel="1"/> <field name="obj_desc" colspan="4" nolabel="1"/>
<field name="vnd_lim"/> <field name="vnd_lim"/>
<field name="vnd_lim_net"/> <field name="vnd_lim_net"/>
<field name="lot_est1"/> <field name="lot_est1"/>
<field name="lot_est2"/> <field name="lot_est2"/>
<field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/> <field name="author_right" domain="[('domain','=','sabam'),('parent_id','=',False),('type_tax_use','&lt;&gt;','sale')]"/>
<field name="product_id" domain="[('sale_ok','=',True)]"/> <field name="product_id" domain="[('sale_ok','=',True)]"/>
<field name="state" readonly="1" colspan="4"/> <field name="state" readonly="1" colspan="4"/>
</page> </page>
<page string="Photos"> <page string="Photos">
<field name="image" colspan="4" widget="image"/> <field name="image" colspan="4" widget="image"/>
</page> </page>
</notebook> </notebook>
</form> </form>
</field> </field>
</page> </page>
<page string="Extra Costs"> <page string="Extra Costs">
<field name="specific_cost_ids" widget="one2many_list" nolabel="1" colspan="4"> <field name="specific_cost_ids" widget="one2many_list" nolabel="1" colspan="4">
<tree string="Deposit Costs" editable="top"> <tree string="Deposit Costs" editable="top">
<field name="name"/> <field name="name"/>
<field name="amount"/> <field name="amount"/>
<field name="account" domain="[('type','=','income')]"/> <field name="account" domain="[('type','=','income')]"/>
</tree> </tree>
<form string="Deposit Costs"> <form string="Deposit Costs">
<field name="name"/> <field name="name"/>
<field name="amount"/> <field name="amount"/>
<field name="account"/> <field name="account"/>
</form> </form>
</field> </field>
</page> </page>
</notebook> </notebook>
</form> </form>
</field> </field>
</record> </record>
@ -543,7 +543,7 @@
</tree> </tree>
</field> </field>
</record> </record>
<record id="view_deposit_border_filter" model="ir.ui.view"> <record id="view_deposit_border_filter" model="ir.ui.view">
<field name="name">Deposit border</field> <field name="name">Deposit border</field>
<field name="model">auction.deposit</field> <field name="model">auction.deposit</field>
@ -569,7 +569,7 @@
<filter string="Deposit Date" <filter string="Deposit Date"
icon="terp-go-month" icon="terp-go-month"
help="Deposit Date" domain="[]" help="Deposit Date" domain="[]"
context="{'group_by':'date_dep'}"/> context="{'group_by':'date_dep'}"/>
</group> </group>
</search> </search>
</field> </field>
@ -603,7 +603,7 @@
<menuitem name="Deposit border" parent="auction_seller_menu" action="action_deposit_border" id="menu_auction_deposit_border"/> <menuitem name="Deposit border" parent="auction_seller_menu" action="action_deposit_border" id="menu_auction_deposit_border"/>
<!-- Bids Lines View --> <!-- Bids Lines View -->
<record model="ir.ui.view" id="view_bids_tree"> <record model="ir.ui.view" id="view_bids_tree">
<field name="name">auction.bid_line.tree1</field> <field name="name">auction.bid_line.tree1</field>
<field name="model">auction.bid_line</field> <field name="model">auction.bid_line</field>
@ -617,7 +617,7 @@
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="view_bids_form"> <record model="ir.ui.view" id="view_bids_form">
<field name="name">auction.bid_line.form1</field> <field name="name">auction.bid_line.form1</field>
<field name="model">auction.bid_line</field> <field name="model">auction.bid_line</field>
@ -708,7 +708,7 @@
<menuitem name="Buyers" id="auction_buyers_menu" parent="auction_menu_root" sequence="4"/> <menuitem name="Buyers" id="auction_buyers_menu" parent="auction_menu_root" sequence="4"/>
<menuitem name="Bids" parent="auction_buyers_menu" action="action_bid_open" id="menu_action_bid_open"/> <menuitem name="Bids" parent="auction_buyers_menu" action="action_bid_open" id="menu_action_bid_open"/>
<menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6"/> <menuitem name="Reporting" id="auction_report_menu" parent="auction_menu_root" sequence="6"/>
<act_window name="Deposit slip" <act_window name="Deposit slip"
@ -718,5 +718,5 @@
id="act_auction_lot_open_deposit"/> id="act_auction_lot_open_deposit"/>
</data> </data>
</openerp> </openerp>

View File

@ -13,7 +13,7 @@
<field name="date_value"/> <field name="date_value"/>
<field name="name"/> <field name="name"/>
<field name="ref"/> <field name="ref"/>
<field domain="[('type','=','normal')]" name="analytic_account"/> <field domain="[('type','=','normal')]" name="analytic_account" groups="base.group_extended"/>
<field name="unit_amount"/> <field name="unit_amount"/>
<field name="unit_quantity"/> <field name="unit_quantity"/>
<field name="total_amount"/> <field name="total_amount"/>
@ -67,6 +67,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Expenses Sheet"> <form string="Expenses Sheet">
<group colspan="4" col="6"> <group colspan="4" col="6">
<field name="employee_id"/>
<field name="name" select="1"/> <field name="name" select="1"/>
<field name="ref" groups="base.group_extended"/> <field name="ref" groups="base.group_extended"/>
<field name="date" select="1"/> <field name="date" select="1"/>
@ -104,13 +105,17 @@
</group> </group>
</page> </page>
<page string="Other Info" groups="base.group_extended"> <page string="Other Info" groups="base.group_extended">
<separator colspan="4" string="Accounting data"/> <group col="2" colspan="2">
<separator colspan="2" string="Accounting data"/>
<field name="journal_id"/> <field name="journal_id"/>
<separator colspan="4" string="Validation"/> <field name="invoice_id"/>
</group>
<group col="2" colspan="2">
<separator colspan="2" string="Validation"/>
<field name="date_confirm" readonly = "1"/> <field name="date_confirm" readonly = "1"/>
<field name="date_valid" readonly = "1"/> <field name="date_valid" readonly = "1"/>
<field name="user_valid"/> <field name="user_valid"/>
<field name="invoice_id"/> </group>
<separator colspan="4" string="Notes"/> <separator colspan="4" string="Notes"/>
<field colspan="4" name="note" nolabel="1"/> <field colspan="4" name="note" nolabel="1"/>
</page> </page>

View File

@ -193,7 +193,7 @@
<field name="amount_type"/> <field name="amount_type"/>
<field name="amount" on_change="onchange_amount(amount, amount_type)"/> <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
<field name="account_id"/> <field name="account_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
</page> </page>
@ -298,7 +298,7 @@
<group col="6" colspan="4"> <group col="6" colspan="4">
<field name="name" colspan="4" select="1"/> <field name="name" colspan="4" select="1"/>
<field name="code" select="1"/> <field name="code" select="1"/>
<field name="account_id" select="1"/> <field name="account_id" select="1" groups="base.group_extended"/>
<field name="company_id"/> <field name="company_id"/>
</group> </group>
<notebook colspan="4"> <notebook colspan="4">
@ -335,7 +335,7 @@
<separator colspan="4" string="Payroll Accounting"/> <separator colspan="4" string="Payroll Accounting"/>
<field name="company_id" widget="selection" select="2"/> <field name="company_id" widget="selection" select="2"/>
<field name="code"/> <field name="code"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="account_id"/> <field name="account_id"/>
</group> </group>
<group col="2" colspan="2"> <group col="2" colspan="2">
@ -363,7 +363,7 @@
<field name="amount_type"/> <field name="amount_type"/>
<field name="amount" on_change="onchange_amount(amount, amount_type)"/> <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
<field name="account_id"/> <field name="account_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
</record> </record>
@ -391,7 +391,7 @@
<group col="2" colspan="2"> <group col="2" colspan="2">
<separator colspan="4" string="Accounting Informations"/> <separator colspan="4" string="Accounting Informations"/>
<field name="account_id"/> <field name="account_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<separator colspan="4" string="Company contribution"/> <separator colspan="4" string="Company contribution"/>
<field name="company_contrib"/> <field name="company_contrib"/>
</group> </group>
@ -463,7 +463,7 @@
<field name="amount" on_change="onchange_amount(amount, amount_type)"/> <field name="amount" on_change="onchange_amount(amount, amount_type)"/>
<field name="total"/> <field name="total"/>
<field name="account_id"/> <field name="account_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
@ -956,7 +956,7 @@
<form string="Contribution"> <form string="Contribution">
<field name="name" select="1"/> <field name="name" select="1"/>
<field name="account_id"/> <field name="account_id"/>
<field name="analytic_account_id"/> <field name="analytic_account_id" groups="base.group_extended"/>
<field name="company_id" select="1"/> <field name="company_id" select="1"/>
<notebook colspan="4"> <notebook colspan="4">
<page string="Contribution Lines"> <page string="Contribution Lines">

View File

@ -34,7 +34,7 @@
<newline/> <newline/>
<field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1" domain="[('type','=','service')]"/> <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" required="1" domain="[('type','=','service')]"/>
<field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/> <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
<field domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" name="account_id" select="1"/> <field domain="[('type','=','normal'),('state', '&lt;&gt;', 'close')]" name="account_id" select="1" groups="base.group_extended"/>
<field name="amount"/> <field name="amount"/>
<field name="general_account_id"/> <field name="general_account_id"/>
<field name="journal_id"/> <field name="journal_id"/>

View File

@ -47,26 +47,26 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Timesheet by user"> <search string="Timesheet by user">
<group col="10" colspan="4"> <group col="10" colspan="4">
<filter icon="terp-go-year" string="This Year" <filter icon="terp-go-year" string="This Year"
domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]" domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines in this year"/> help="Timesheet lines in this year"/>
<filter icon="terp-go-month" string="This Month" <filter icon="terp-go-month" string="This Month"
name="month" name="month"
domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')), ('date','&gt;',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]" domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')), ('date','&gt;',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines in this month"/> help="Timesheet lines in this month"/>
<filter icon="terp-go-week" <filter icon="terp-go-week"
string=" 7 Days " string=" 7 Days "
separator="1" separator="1"
domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')), ('date','&gt;',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]" domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')), ('date','&gt;',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines during last 7 days"/> help="Timesheet lines during last 7 days"/>
<separator orientation="vertical"/> <separator orientation="vertical"/>
<field name="user_id" widget="selection"> <field name="user_id" widget="selection">
<filter icon="terp-personal" <filter icon="terp-personal"
string="Non Assigned timesheets to users" string="Non Assigned timesheets to users"
help="Non Assigned timesheets to users" help="Non Assigned timesheets to users"
domain="[('user_id','=',False)]"/> domain="[('user_id','=',False)]"/>
</field> </field>
<field name="account_id"/> <field name="account_id"/>
<field name="product_id"/> <field name="product_id"/>
</group> </group>
<group expand="0" string="Group By..."> <group expand="0" string="Group By...">
@ -417,7 +417,7 @@
<field name="type">tree</field> <field name="type">tree</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Random Timesheets"> <tree string="Random Timesheets">
<field name="analytic_account_id" select="1"/> <field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="name" select="1"/> <field name="name" select="1"/>
<field name="quantity" select="2" /> <field name="quantity" select="2" />
<field name="date" select="1"/> <field name="date" select="1"/>
@ -435,7 +435,7 @@
<!-- Random Timesheet Lines of random activities --> <!-- Random Timesheet Lines of random activities -->
<record id="view_random_timesheet_lines_search" model="ir.ui.view"> <record id="view_random_timesheet_lines_search" model="ir.ui.view">
<field name="name">random.timesheet.lines.search</field> <field name="name">random.timesheet.lines.search</field>
<field name="model">random.timesheet.lines</field> <field name="model">random.timesheet.lines</field>
<field name="type">search</field> <field name="type">search</field>
@ -444,8 +444,8 @@
<group col='15' colspan='4'> <group col='15' colspan='4'>
<filter icon="terp-check" string="Current" default="1" domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]"/> <filter icon="terp-check" string="Current" default="1" domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]"/>
<separator orientation="vertical"/> <separator orientation="vertical"/>
<field name="user_id" widget="selection"/> <field name="user_id" widget="selection"/>
<field name="product_id" widget="selection"/> <field name="product_id" widget="selection"/>
</group> </group>
<newline/> <newline/>
<group expand="0" string="Group By..."> <group expand="0" string="Group By...">
@ -453,7 +453,7 @@
<separator orientation="vertical"/> <separator orientation="vertical"/>
<filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/> <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
<filter string="Analytic Account" icon="terp-folder-green" domain="[]" context="{'group_by':'analytic_account_id'}"/> <filter string="Analytic Account" icon="terp-folder-green" domain="[]" context="{'group_by':'analytic_account_id'}"/>
<filter string="General Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'general_account_id'}"/> <filter string="General Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'general_account_id'}"/>
</group> </group>
</search> </search>
</field> </field>
@ -470,7 +470,7 @@
<field name="name" select="1"/> <field name="name" select="1"/>
<field name="quantity" /> <field name="quantity" />
<field name="product_id" select="1"/> <field name="product_id" select="1"/>
<field name="analytic_account_id" select="1"/> <field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="uom_id" /> <field name="uom_id" />
<field name="amount" /> <field name="amount" />
<field name="to_invoice" select="1"/> <field name="to_invoice" select="1"/>

View File

@ -39,7 +39,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Timesheet by Accounts"> <form string="Timesheet by Accounts">
<field name="sheet_id" select="1"/> <field name="sheet_id" select="1"/>
<field name="name" select="1"/> <field name="name" select="1" groups="base.group_extended"/>
<field name="total" sum="Total"/> <field name="total" sum="Total"/>
<field name="invoice_rate"/> <field name="invoice_rate"/>
</form> </form>
@ -53,7 +53,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="Timesheet by Accounts"> <tree string="Timesheet by Accounts">
<field name="sheet_id"/> <field name="sheet_id"/>
<field name="name"/> <field name="name" groups="base.group_extended"/>
<field name="total" sum="Total"/> <field name="total" sum="Total"/>
<field name="invoice_rate"/> <field name="invoice_rate"/>
</tree> </tree>

View File

@ -9,12 +9,12 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<notebook colspan="4"> <notebook colspan="4">
<page string="Worklogs"> <page string="Worklogs">
<field name="analytic_account_id" invisible="1"/> <field name="analytic_account_id" invisible="1" groups="base.group_extended"/>
<field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}"> <field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : user_id, 'default_account_id' : analytic_account_id}">
<tree editable="top" string="Timesheet"> <tree editable="top" string="Timesheet">
<field name="name"/> <field name="name"/>
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" widget="float_time"/> <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" widget="float_time"/>
<field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/> <field name="account_id" invisible="0" domain="[('partner_id', '=', parent.partner_id)]" on_change="on_change_account_id(account_id)"/>
<field name="date"/> <field name="date"/>
<field name="user_id"/> <field name="user_id"/>
<field invisible="1" name="journal_id"/> <field invisible="1" name="journal_id"/>

View File

@ -54,7 +54,7 @@
<field colspan="4" name="planning_account" <field colspan="4" name="planning_account"
nolabel="1" widget="one2many_list" readonly="1"> nolabel="1" widget="one2many_list" readonly="1">
<tree string="Planning By Account (in Days)"> <tree string="Planning By Account (in Days)">
<field name="account_id" /> <field name="account_id" groups="base.group_extended"/>
<field name="tasks" sum="Total Remaining Tasks"/> <field name="tasks" sum="Total Remaining Tasks"/>
<field name="plan_tasks" sum="Total Time Allocation of Tasks"/> <field name="plan_tasks" sum="Total Time Allocation of Tasks"/>
<field name="plan_open" sum="Total Time Allocation without Tasks"/> <field name="plan_open" sum="Total Time Allocation without Tasks"/>
@ -68,7 +68,7 @@
<tree editable="bottom" <tree editable="bottom"
string="Planning Lines"> string="Planning Lines">
<field name="user_id"/> <field name="user_id"/>
<field name="account_id" /> <field name="account_id" groups="base.group_extended"/>
<field name="amount" /> <field name="amount" />
<field name="amount_unit" /> <field name="amount_unit" />
<field name="task_ids" /> <field name="task_ids" />
@ -78,7 +78,7 @@
</tree> </tree>
<form string="Planning Lines"> <form string="Planning Lines">
<field name="user_id" domain="[('id','child_of',[parent.user_id])]"/> <field name="user_id" domain="[('id','child_of',[parent.user_id])]"/>
<field name="account_id"/> <field name="account_id" groups="base.group_extended"/>
<field name="amount" /> <field name="amount" />
<field name="amount_unit" /> <field name="amount_unit" />
<field name="task_ids" colspan="4" nolabel="1" mode="tree,form"> <field name="task_ids" colspan="4" nolabel="1" mode="tree,form">
@ -181,7 +181,7 @@
<tree string="Planning Line"> <tree string="Planning Line">
<field name="planning_id"/> <field name="planning_id"/>
<field name="user_id"/> <field name="user_id"/>
<field name="account_id" /> <field name="account_id" groups="base.group_extended"/>
<field name="amount" /> <field name="amount" />
<field name="amount_unit" /> <field name="amount_unit" />
<field name="note" select="1"/> <field name="note" select="1"/>
@ -198,7 +198,7 @@
<form string="Planning Line"> <form string="Planning Line">
<field name="planning_id" select="1"/> <field name="planning_id" select="1"/>
<field name="user_id" select="1"/> <field name="user_id" select="1"/>
<field name="account_id" select="1"/> <field name="account_id" select="1" groups="base.group_extended"/>
<field name="amount" /> <field name="amount" />
<field name="amount_unit" /> <field name="amount_unit" />
<separator string="Notes" colspan="4" /> <separator string="Notes" colspan="4" />
@ -234,7 +234,7 @@
<form string="Planning statistics"> <form string="Planning statistics">
<field name="planning_id" select="1" /> <field name="planning_id" select="1" />
<field name="user_id" select="1" /> <field name="user_id" select="1" />
<field name="account_id" select="1" /> <field name="account_id" select="1" groups="base.group_extended"/>
</form> </form>
</field> </field>
</record> </record>
@ -249,7 +249,7 @@
<field name="planning_id" /> <field name="planning_id" />
<field name="user_id" /> <field name="user_id" />
<field name="manager_id" /> <field name="manager_id" />
<field name="account_id" /> <field name="account_id" groups="base.group_extended"/>
<field name="sum_amount" /> <field name="sum_amount" />
<field name="sum_amount_real" /> <field name="sum_amount_real" />
<field name="sum_amount_tasks" /> <field name="sum_amount_tasks" />
@ -263,7 +263,7 @@
<field name="type">graph</field> <field name="type">graph</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<graph string="Planning statistics" type="bar"> <graph string="Planning statistics" type="bar">
<field name="account_id" /> <field name="account_id"/>
<field name="sum_amount" operator="+" /> <field name="sum_amount" operator="+" />
<field name="sum_amount_real" operator="+" /> <field name="sum_amount_real" operator="+" />
<field name="sum_amount_tasks" operator="+" /> <field name="sum_amount_tasks" operator="+" />
@ -283,7 +283,7 @@
<separator orientation="vertical"/> <separator orientation="vertical"/>
<field name="planning_id" select="1"/> <field name="planning_id" select="1"/>
<field name="user_id" select="1"/> <field name="user_id" select="1"/>
<field name="account_id" select="1"/> <field name="account_id" select="1" groups="base.group_extended"/>
</group> </group>
</search> </search>
</field> </field>
@ -325,7 +325,7 @@
<tree editable="bottom" <tree editable="bottom"
string="Planning Lines"> string="Planning Lines">
<field name="user_id"/> <field name="user_id"/>
<field name="account_id" /> <field name="account_id" groups="base.group_extended"/>
<field name="amount" /> <field name="amount" />
<field name="amount_unit" /> <field name="amount_unit" />
<field name="task_ids" /> <field name="task_ids" />

View File

@ -9,7 +9,7 @@
<field name="inherit_id" ref="purchase.purchase_order_line_form"/> <field name="inherit_id" ref="purchase.purchase_order_line_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="account_analytic_id" position="replace"> <field name="account_analytic_id" position="replace">
<field name="analytics_id" domain="[('plan_id','&lt;&gt;',False)]"/> <field name="analytics_id" domain="[('plan_id','&lt;&gt;',False)]" groups="base.group_extended"/>
</field> </field>
</field> </field>
</record> </record>

View File

@ -26,7 +26,7 @@
<field name="price_total" sum="Total Price"/> <field name="price_total" sum="Total Price"/>
<field name="delay" sum="Commitment Delay"/> <field name="delay" sum="Commitment Delay"/>
<field name="state" invisible="1"/> <field name="state" invisible="1"/>
<field name="analytic_account_id" invisible="1"/> <field name="analytic_account_id" invisible="1" groups="base.group_extended"/>
</tree> </tree>
</field> </field>
</record> </record>