[IMP] Account: Access rights for Analytic Account (Add analytic group on all modules) where this field appear

bzr revid: ara@tinyerp.com-20101004111344-8rx877ce28g5eigv
This commit is contained in:
ARA (OpenERP) 2010-10-04 16:43:44 +05:30
parent 629f5acc87
commit c791e55ef6
30 changed files with 164 additions and 164 deletions

View File

@ -1568,7 +1568,7 @@
<field name="sequence"/>
<field name="name"/>
<field name="account_id"/>
<field name="analytic_account_id"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="partner_id"/>
<field name="debit"/>
<field name="credit"/>
@ -1587,7 +1587,7 @@
<field colspan="4" name="name" select="1"/>
<field name="sequence"/>
<field name="account_id" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
<field name="analytic_account_id"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="partner_id"/>
<field name="debit" select="1"/>
<field name="credit" select="1"/>

View File

@ -38,7 +38,7 @@ class analytic_entries_report(osv.osv):
'partner_id': fields.many2one('res.partner', 'Partner'),
'company_id': fields.many2one('res.company', 'Company', required=True),
'currency_id': fields.many2one('res.currency', 'Currency', required=True),
'account_id': fields.many2one('account.analytic.account', 'Account', required=True),
'account_id': fields.many2one('account.analytic.account', 'Account', required=False),
'general_account_id': fields.many2one('account.account', 'General Account', required=True),
'journal_id': fields.many2one('account.analytic.journal', 'Journal', required=True),
'move_id': fields.many2one('account.move.line', 'Move', required=True),

View File

@ -16,7 +16,7 @@
<field name="partner_id" invisible="1"/>
<field name="company_id" invisible="1" groups="base.group_multi_company"/>
<field name="currency_id" invisible="1"/>
<field name="account_id" invisible="1"/>
<field name="account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
<field name="general_account_id" invisible="1"/>
<field name="journal_id" invisible="1"/>
<field name="product_id" invisible="1"/>
@ -49,7 +49,7 @@
help="Analytic Entries during last 7 days"/>
<separator orientation="vertical"/>
<field name="date" />
<field name="account_id" />
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="product_id" />
<field name="user_id">
<filter icon="terp-personal" domain="[('user_id','=',uid)]" help="My Entries"/>
@ -63,7 +63,7 @@
<field name="journal_id" widget="selection"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
</group>
<newline/>
@ -72,7 +72,7 @@
<filter string="Partner" icon="terp-personal" context="{'group_by':'partner_id'}"/>
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
<separator orientation="vertical"/>
<filter string="Account" name="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
<filter string="Account" name="Account" icon="terp-folder-green" context="{'group_by':'account_id'}" groups="analytic.group_analytic_accounting"/>
<filter string="General Account" icon="terp-folder-green" context="{'group_by':'general_account_id'}"/>
<filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
<separator orientation="vertical"/>

View File

@ -8,7 +8,7 @@
<field name="arch" type="xml">
<tree string="Analytic Defaults">
<field name="sequence"/>
<field name="analytic_id" required="1" domain="[('parent_id','!=',False)]"/>
<field name="analytic_id" required="0" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
<field name="product_id"/>
<field name="partner_id"/>
<field name="user_id"/>
@ -25,7 +25,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Analytic Defaults">
<field name="analytic_id" required="1" domain="[('parent_id','!=',False)]"/>
<field name="analytic_id" required="1" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
<field name="sequence"/>
<separator string="Conditions" colspan="4"/>
<field name="product_id"/>
@ -44,7 +44,7 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Accounts">
<field name="analytic_id"/>
<field name="analytic_id" groups="analytic.group_analytic_accounting"/>
<field name="product_id"/>
<field name="partner_id"/>
<field name="user_id"/>

View File

@ -64,7 +64,7 @@ class account_analytic_plan_line(osv.osv):
'plan_id':fields.many2one('account.analytic.plan','Analytic Plan'),
'name': fields.char('Plan Name', size=64, required=True, select=True),
'sequence':fields.integer('Sequence'),
'root_analytic_id': fields.many2one('account.analytic.account','Root Account',help="Root account of this plan.",required=True),
'root_analytic_id': fields.many2one('account.analytic.account','Root Account',help="Root account of this plan.",required=False),
'min_required': fields.float('Minimum Allowed (%)'),
'max_required': fields.float('Maximum Allowed (%)'),
}

View File

@ -140,7 +140,7 @@
<field name="arch" type="xml">
<form string="Analytic Distribution Line">
<field name="plan_id"/>
<field name="analytic_account_id" groups="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="rate"/>
</form>
</field>
@ -153,7 +153,7 @@
<field name="arch" type="xml">
<tree string="Analytic Distribution Lines">
<field name="plan_id" select="1"/>
<field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="analytic_account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="rate"/>
</tree>
</field>
@ -210,7 +210,7 @@
<form string="Analytic Plan Line">
<field name="name"/>
<field name="sequence"/>
<field name="root_analytic_id"/>
<field name="root_analytic_id" groups="analytic.group_analytic_accounting"/>
<newline/>
<field name="min_required"/>
<field name="max_required"/>
@ -226,7 +226,7 @@
<tree string="Analytic Plan Lines">
<field name="name" select="1"/>
<field name="sequence"/>
<field name="root_analytic_id"/>
<field name="root_analytic_id" groups="analytic.group_analytic_accounting"/>
<field name="min_required"/>
<field name="max_required"/>
</tree>

View File

@ -30,7 +30,7 @@ class account_crossovered_analytic(osv.osv_memory):
'date1': fields.date('Start Date', required=True),
'date2': fields.date('End Date', required=True),
'journal_ids': fields.many2many('account.analytic.journal', 'crossovered_journal_rel', 'crossover_id', 'journal_id', 'Analytic Journal'),
'ref': fields.many2one('account.analytic.account', 'Analytic Account Reference', required=True),
'ref': fields.many2one('account.analytic.account', 'Analytic Account Reference', required=False),
'empty_line': fields.boolean('Dont show empty lines'),
}
_defaults = {

View File

@ -12,7 +12,7 @@
<group col="4" colspan="6">
<field name="date1"/>
<field name="date2"/>
<field name="ref"/>
<field name="ref" groups="analytic.group_analytic_accounting"/>
<field name="empty_line"/>
<separator colspan="4" string="Analytic Journal"/>
<field name="journal_ids" colspan="4" nolabel="1"/>

View File

@ -238,7 +238,7 @@ class crossovered_budget_lines(osv.osv):
_description = "Budget Line"
_columns = {
'crossovered_budget_id': fields.many2one('crossovered.budget', 'Budget', ondelete='cascade', select=True, required=True),
'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=True),
'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=False),
'general_budget_id': fields.many2one('account.budget.post', 'Budgetary Position',required=True),
'date_from': fields.date('Start Date', required=True),
'date_to': fields.date('End Date', required=True),

View File

@ -77,13 +77,13 @@
<page string="Budget Lines">
<field name="crossovered_budget_line" widget="one2many_list" colspan="4" nolabel="1" mode="graph,tree">
<graph type="bar" string="Lines">
<field name="analytic_account_id" groups="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="planned_amount" operator="+"/>
<field group="True" name="general_budget_id"/>
</graph>
<tree string="Budget Lines" editable="top">
<field name="crossovered_budget_id"/>
<field name="analytic_account_id" groups="base.group_extended" domain="[('parent_id','!=',False)]"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="paid_date"/>
@ -94,7 +94,7 @@
</tree>
<form string="Budget Lines">
<field name="crossovered_budget_id"/>
<field name="analytic_account_id" groups="base.group_extended" domain="[('parent_id','!=',False)]" />
<field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
<field name="date_from"/>
<field name="date_to"/>
<field name="paid_date"/>
@ -125,7 +125,7 @@
<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="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="general_budget_id"/>
<field name="date_from"/>
<field name="date_to"/>
@ -136,7 +136,7 @@
<field name="percentage"/>
</tree>
<form string="Budget Lines">
<field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="analytic_account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="general_budget_id" select="1"/>
<field name="date_from"/>
<field name="date_to"/>
@ -213,7 +213,7 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Budget Lines">
<field name="analytic_account_id" groups="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="general_budget_id"/>
<field name="date_from"/>
<field name="date_to"/>
@ -232,7 +232,7 @@
<field name="arch" type="xml">
<form string="Budget Lines">
<field name="crossovered_budget_id"/>
<field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="analytic_account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="general_budget_id" select="1"/>
<field name="date_from"/>
<field name="date_to"/>

View File

@ -100,7 +100,7 @@ class auction_dates(osv.osv):
'adj_total': fields.function(_adjudication_get, method=True, string='Total Adjudication', store=True),
'state': fields.selection((('draft', 'Draft'), ('closed', 'Closed')), 'State', select=1, readonly=True,
help='When auction starts the state is \'Draft\'.\n At the end of auction, the state becomes \'Closed\'.'),
'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True),
'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=False),
'buyer_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Buyer Invoice", type='many2many', multi=True),
'seller_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Seller Invoice", type='many2many', multi=True),
}

View File

@ -134,7 +134,7 @@
<separator string="Analytic" colspan="4"/>
<field name="journal_id"/>
<field name="journal_seller_id"/>
<field name="account_analytic_id" groups="base.group_extended"/>
<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
</group>
</group>
</page>

View File

@ -13,7 +13,7 @@
<field name="date_value"/>
<field name="name"/>
<field name="ref"/>
<field domain="[('type','=','normal'), ('parent_id','!=',False)]" name="analytic_account" groups="base.group_extended"/>
<field domain="[('type','=','normal'), ('parent_id','!=',False)]" name="analytic_account" groups="analytic.group_analytic_accounting"/>
<field name="unit_amount"/>
<field name="unit_quantity"/>
<field name="total_amount"/>

View File

@ -15,7 +15,7 @@
<field name="month" invisible="1"/>
<field name="day" invisible="1"/>
<field name="invoice_id" invisible="1"/>
<field name="analytic_account" invisible="1"/>
<field name="analytic_account" invisible="1" groups="analytic.group_analytic_accounting"/>
<field name="department_id" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="currency_id" invisible="1"/>
@ -93,9 +93,9 @@
<filter string="Department" icon="terp-personal+" context="{'group_by':'department_id'}"/>
<separator orientation="vertical"/>
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
<separator orientation="vertical"/>
<filter string="Analytic account" icon="terp-folder-green" context="{'group_by':'analytic_account'}"/>
<separator orientation="vertical"/>
<separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
<filter string="Analytic account" icon="terp-folder-green" context="{'group_by':'analytic_account'}" groups="analytic.group_analytic_accounting"/>
<separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
<separator orientation="vertical"/>

View File

@ -296,7 +296,7 @@
<group col="6" colspan="4">
<field name="name" colspan="4" select="1"/>
<field name="code" select="1"/>
<field name="account_id" select="1" groups="base.group_extended"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="company_id"/>
</group>
<notebook colspan="4">
@ -361,7 +361,7 @@
<field name="amount_type"/>
<field name="amount" on_change="onchange_amount(amount, amount_type)"/>
<field name="account_id"/>
<field name="analytic_account_id" groups="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</tree>
</field>
</record>
@ -389,7 +389,7 @@
<group col="2" colspan="2">
<separator colspan="4" string="Accounting Informations"/>
<field name="account_id"/>
<field name="analytic_account_id" groups="base.group_extended"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<separator colspan="4" string="Company contribution"/>
<field name="company_contrib"/>
</group>

View File

@ -27,7 +27,7 @@ class hr_so_project(osv.osv_memory):
_name = 'hr.sign.out.project'
_description = 'Sign Out By Project'
_columns = {
'account_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True, domain=[('type','=','normal')]),
'account_id': fields.many2one('account.analytic.account', 'Analytic Account', domain=[('type','=','normal')]),
'info': fields.char('Work Description', size=256, required=True),
'date_start': fields.datetime('Starting Date', readonly=True),
'date': fields.datetime('Closing Date'),

View File

@ -70,7 +70,7 @@
<field name="date_start"/>
<field name="server_date"/>
<separator string="Work done in the last period" colspan="4" />
<field name="account_id" colspan="2"/>
<field name="account_id" colspan="2" groups="analytic.group_analytic_accounting"/>
<field name="info" colspan="2"/>
<field name="date"/>
<label string="(Keep empty for current_time)" colspan="2"/>

View File

@ -13,7 +13,7 @@
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Timesheet Line" type="bar">
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="quantity" operator="+"/>
<field group="True" name="user_id"/>
</graph>
@ -33,7 +33,7 @@
<field name="user_id" invisible="1"/>
<field name="name" invisible="1"/>
<field name="month" invisible="1"/>
<field name="account_id" invisible="1"/>
<field name="account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
<field name="product_id" invisible="1"/>
<field name="invoice_id" invisible="1"/>
</tree>
@ -66,7 +66,7 @@
help="Non Assigned timesheets to users"
domain="[('user_id','=',False)]"/>
</field>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="product_id"/>
</group>
<newline/>
@ -192,7 +192,7 @@
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Timesheet by invoice">
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="amount_invoice" operator="+"/>
</graph>
</field>
@ -204,7 +204,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Timesheet by invoice">
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="manager_id" select="1"/>
<field name="user_id" select="1"/>
</form>
@ -218,7 +218,7 @@
<field name="arch" type="xml">
<search string="Timesheet by invoice">
<separator orientation="vertical"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="manager_id" select="1"/>
<field name="user_id" select="1"/>
</search>
@ -232,7 +232,7 @@
<field name="arch" type="xml">
<tree string="Timesheets to invoice">
<field name="user_id"/>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="manager_id"/>
<field name="quantity"/>
<field name="amount_invoice"/>
@ -259,7 +259,7 @@
<tree string="Daily timesheet per account">
<field name="name"/>
<field name="month" select="1"/>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="user_id"/>
<field name="quantity"/>
</tree>
@ -271,7 +271,7 @@
<field name="type">graph</field>
<field name="arch" type="xml">
<graph orientation="horizontal" string="Daily timesheet per account">
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="quantity" operator="+"/>
<field group="True" name="user_id"/>
</graph>
@ -286,7 +286,7 @@
<form string="Daily timesheet by account">
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="user_id" select="1"/>
<field name="quantity"/>
</form>
@ -306,7 +306,7 @@
<separator orientation="vertical"/>
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="user_id" select="1"/>
</group>
</search>
@ -332,7 +332,7 @@
<tree string="Timesheet per account">
<field name="name"/>
<field name="month" />
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="user_id"/>
<field name="quantity"/>
</tree>
@ -344,7 +344,7 @@
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Timesheet per account">
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="quantity" operator="+"/>
<field group="True" name="user_id"/>
</graph>
@ -359,7 +359,7 @@
<form string="Timesheet by account">
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="user_id" select="1"/>
<field name="quantity"/>
</form>
@ -379,7 +379,7 @@
<separator orientation="vertical"/>
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="user_id" select="1"/>
</group>
</form>
@ -433,7 +433,7 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Random Timesheets">
<field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="analytic_account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="name" select="1"/>
<field name="quantity" select="2" />
<field name="date" select="1"/>
@ -486,7 +486,7 @@
<field name="name" select="1"/>
<field name="quantity" />
<field name="product_id" select="1"/>
<field name="analytic_account_id" select="1" groups="base.group_extended"/>
<field name="analytic_account_id" select="1" groups="analytic.group_analytic_accounting"/>
<field name="uom_id" />
<field name="amount" />
<field name="to_invoice" select="1"/>

View File

@ -8,7 +8,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Expired analytic accounts">
<field name="name" select="1"/>
<field name="name" select="1" groups="analytic.group_analytic_accounting"/>
<field name="partner_id" select="1"/>
<field name="quantity" select="1"/>
<field name="state" select="1"/>
@ -26,7 +26,7 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Expired analytic accounts">
<field name="name"/>
<field name="name" groups="analytic.group_analytic_accounting"/>
<field name="partner_id"/>
<field name="state"/>
<field name="quantity"/>
@ -66,7 +66,7 @@
<form string="Analytic Lines to Invoice">
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
<newline/>
<field name="product_id" select="1"/>
<field name="product_uom_id"/>
@ -86,7 +86,7 @@
<field name="name"/>
<field name="month"/>
<field name="product_id"/>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="amount"/>
<field name="sale_price"/>
<field name="unit_amount"/>
@ -120,7 +120,7 @@
<field name="name" select="1"/>
<field name="month" select="1"/>
<field name="product_id" select="1"/>
<field name="account_id" select="1"/>
<field name="account_id" select="1" groups="analytic.group_analytic_accounting"/>
</group>
</search>
</field>

View File

@ -20,7 +20,7 @@
<separator string="Force to use a specific product" colspan="4"/>
<field name="product"/>
</page>
<page string="Filter on Accounts" groups="base.group_extended">
<page string="Filter on Accounts" groups="analytic.group_analytic_accounting">
<separator string="Choose accounts you want to invoice" colspan="4"/>
<field name="accounts" colspan="4" nolabel="1"/>
</page>

View File

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

View File

@ -26,7 +26,7 @@
<field name="company_id" invisible="1"/>
<field name="journal_id" invisible="1"/>
<field name="product_id" invisible="1"/>
<field name="account_id" invisible="1"/>
<field name="account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
<field name="general_account_id" invisible="1"/>
<field name="quantity" sum="Hours"/>
@ -54,8 +54,8 @@
domain="[('date','&lt;=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date','&gt;',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet of last month"/>
<separator orientation="vertical"/>
<field name="account_id"/>
<field name="user_id" />
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="user_id"/>
</group>
<newline/>
<group expand="0" string="Extended Filters..." groups="base.group_extended">
@ -71,8 +71,8 @@
<group expand="1" string="Group By...">
<filter string="User" name="group_user_id" icon="terp-personal" context="{'group_by':'user_id'}"/>
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
<separator orientation="vertical"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
<separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}" groups="analytic.group_analytic_accounting"/>
<filter string="General Account" icon="terp-folder-orange" context="{'group_by':'general_account_id'}"/>
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
<separator orientation="vertical"/>

View File

@ -29,7 +29,7 @@
<field name="company_id" invisible="1"/>
<field name="to_invoice" invisible="1"/>
<field name="product_id" invisible="1"/>
<field name="account_id" invisible="1"/>
<field name="account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
<field name="general_account_id" invisible="1"/>
<field name="year" invisible="1"/>
<field name="day" invisible="1"/>
@ -71,7 +71,7 @@
string="Done"
domain="[('state','=','done')]"/>
<separator orientation="vertical"/>
<field name="account_id"/>
<field name="account_id" groups="analytic.group_analytic_accounting"/>
<field name="user_id" />
</group>
<newline/>
@ -97,7 +97,7 @@
<separator orientation="vertical"/>
<filter string="Type of Invoicing" icon="terp-stock_symbol-selection" context="{'group_by':'to_invoice'}"/>
<separator orientation="vertical"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}" groups="analytic.group_analytic_accounting"/>
<filter string="General Account" icon="terp-folder-orange" context="{'group_by':'general_account_id'}"/>
<separator orientation="vertical"/>
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>

View File

@ -163,7 +163,7 @@
<field name="time_stop" widget="float_time"/>
</group>
</page>
<page string="Analytic Accounting" groups="base.group_extended">
<page string="Analytic Accounting" groups="analytic.group_analytic_accounting">
<field name="costs_hour"/>
<field name="costs_hour_account_id"/>
<field name="costs_cycle"/>

View File

@ -215,7 +215,7 @@ class report_account_analytic_planning_line(osv.osv):
return result
_columns = {
'account_id': fields.many2one('account.analytic.account', 'Analytic account', required=True),
'account_id': fields.many2one('account.analytic.account', 'Analytic account'),
'planning_id': fields.many2one('report_account_analytic.planning', 'Planning', required=True, ondelete='cascade'),
'user_id': fields.many2one('res.users', 'User'),
'amount': fields.float('Quantity', required=True),
@ -577,7 +577,7 @@ WHERE user_id=%s and account_id=%s and date>=%s and date<=%s''', (line.user_id.i
'planning_id': fields.many2one('report_account_analytic.planning', 'Planning'),
'user_id': fields.many2one('res.users', 'User'),
'manager_id': fields.many2one('res.users', 'Manager'),
'account_id': fields.many2one('account.analytic.account', 'Account', required=True),
'account_id': fields.many2one('account.analytic.account', 'Account'),
'sum_amount': fields.float('Planned Days', required=True),
'sum_amount_real': fields.function(_sum_amount_real, method=True, string='Timesheet'),
'sum_amount_tasks': fields.function(_sum_amount_tasks, method=True, string='Tasks'),

View File

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

View File

@ -257,7 +257,7 @@
<field name="date_planned" widget="date"/>
<field name="price_unit"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<field name="account_analytic_id" colspan="4" groups="base.group_extended" domain="[('parent_id','!=',False)]" />
<field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
<group colspan="4" col="4" groups="base.group_extended">
<separator colspan="4" string="Taxes"/>
<field colspan="4" nolabel="1" name="taxes_id"
@ -319,7 +319,7 @@
<field name="date_planned" widget="date" readonly="1"/>
<field name="price_unit"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
<field name="account_analytic_id" colspan="4" groups="base.group_extended" domain="[('parent_id','!=',False)]"/>
<field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
<group colspan="4" col="4" groups="base.group_extended">
<separator colspan="4" string="Taxes"/>
<field colspan="4" nolabel="1" name="taxes_id"

View File

@ -26,7 +26,7 @@
<field name="price_total" sum="Total Price"/>
<field name="delay" sum="Commitment Delay"/>
<field name="state" invisible="1"/>
<field name="analytic_account_id" invisible="1" groups="base.group_extended"/>
<field name="analytic_account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
</tree>
</field>
</record>
@ -101,9 +101,9 @@
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id','set_visible':True}"/>
<filter string="Default UoM" icon="terp-mrp" context="{'group_by':'uom_name'}"/>
<filter string="Category of Product" icon="terp-stock_symbol-selection" context="{'group_by':'categ_id'}"/>
<separator orientation="vertical"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'analytic_account_id'}"/>
<separator orientation="vertical"/>
<separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'analytic_account_id'}" groups="analytic.group_analytic_accounting"/>
<separator orientation="vertical" groups="analytic.group_analytic_accounting"/>
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>
<filter string="Shop" icon="terp-go-home" context="{'group_by':'shop_id'}"/>

View File

@ -19,7 +19,7 @@
<separator colspan="4" string="Accounting"/>
<field name="payment_default_id"/>
<field domain="[('type','=','sale')]" name="pricelist_id" select="1"/>
<field name="project_id" select="1"/>
<field name="project_id" select="1" groups="analytic.group_analytic_accounting"/>
</form>
</field>
</record>
@ -32,7 +32,7 @@
<field name="name"/>
<field name="warehouse_id"/>
<field name="pricelist_id"/>
<field name="project_id"/>
<field name="project_id" groups="analytic.group_analytic_accounting"/>
</tree>
</field>
</record>
@ -115,7 +115,7 @@
<field domain="[('type','=','sale')]" name="pricelist_id" groups="base.group_extended"/>
<field name="project_id"
context="{'partner_id':partner_id, 'contact_id':partner_order_id, 'pricelist_id':pricelist_id, 'default_name':name}"
groups="base.group_extended" domain="[('parent_id','!=',False)]" />
groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
<newline/>
<field colspan="4" mode="tree,form,graph" name="order_line" nolabel="1" widget="one2many_list">
<form string="Sale Order Lines">

View File

@ -13,7 +13,7 @@
<group colspan="4">
<field name="partner_id" required="1"/>
<field name="shop_id" required="1" widget="selection"/>
<field name="analytic_account" domain="[('parent_id','!=',False)]" />
<field name="analytic_account" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting" />
<field name="close" required="1"/>
</group>
<field colspan="4" mode="tree,form,graph" name="sale_order_line" nolabel="1" widget="one2many_list">