[MERGE] Sync with trunk, especially part about moving gauge/sparklin into web modules

bzr revid: tde@openerp.com-20130913084235-0bb673lq061ft7f5
This commit is contained in:
Thibault Delavallée 2013-09-13 10:42:35 +02:00
commit 23f9324b94
144 changed files with 1333 additions and 390 deletions

View File

@ -146,6 +146,7 @@ for a particular financial year and for preparation of vouchers there is a modul
'account_unit_test.xml',
],
'test': [
'test/account_test_users.yml',
'test/account_customer_invoice.yml',
'test/account_supplier_invoice.yml',
'test/account_change_currency.yml',

View File

@ -2788,6 +2788,7 @@ class account_chart_template(osv.osv):
'parent_id': fields.many2one('account.chart.template', 'Parent Chart Template'),
'code_digits': fields.integer('# of Digits', required=True, help="No. of Digits to use for account code"),
'visible': fields.boolean('Can be Visible?', help="Set this to False if you don't want this template to be used actively in the wizard that generate Chart of Accounts from templates, this is useful when you want to generate accounts of this template only when loading its child template."),
'currency_id': fields.many2one('res.currency', 'Currency'),
'complete_tax_set': fields.boolean('Complete Set of Taxes', help='This boolean helps you to choose if you want to propose to the user to encode the sale and purchase rates or choose from list of taxes. This last choice assumes that the set of tax defined on this template is complete'),
'account_root_id': fields.many2one('account.account.template', 'Root Account', domain=[('parent_id','=',False)]),
'tax_code_root_id': fields.many2one('account.tax.code.template', 'Root Tax Code', domain=[('parent_id','=',False)]),
@ -3043,12 +3044,6 @@ class wizard_multi_charts_accounts(osv.osv_memory):
'complete_tax_set': fields.boolean('Complete Set of Taxes', help='This boolean helps you to choose if you want to propose to the user to encode the sales and purchase rates or use the usual m2o fields. This last choice assumes that the set of tax defined for the chosen template is complete'),
}
def onchange_company_id(self, cr, uid, ids, company_id, context=None):
currency_id = False
if company_id:
currency_id = self.pool.get('res.company').browse(cr, uid, company_id, context=context).currency_id.id
return {'value': {'currency_id': currency_id}}
def onchange_tax_rate(self, cr, uid, ids, rate=False, context=None):
return {'value': {'purchase_tax_rate': rate or False}}
@ -3058,7 +3053,8 @@ class wizard_multi_charts_accounts(osv.osv_memory):
res['value'] = {'complete_tax_set': False, 'sale_tax': False, 'purchase_tax': False}
if chart_template_id:
data = self.pool.get('account.chart.template').browse(cr, uid, chart_template_id, context=context)
res['value'].update({'complete_tax_set': data.complete_tax_set})
currency_id = data.currency_id and data.currency_id.id or self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id
res['value'].update({'complete_tax_set': data.complete_tax_set, 'currency_id': currency_id})
if data.complete_tax_set:
# default tax is given by the lowest sequence. For same sequence we will take the latest created as it will be the case for tax created while isntalling the generic chart of account
sale_tax_ids = tax_templ_obj.search(cr, uid, [("chart_template_id"
@ -3090,7 +3086,11 @@ class wizard_multi_charts_accounts(osv.osv_memory):
ids = self.pool.get('account.chart.template').search(cr, uid, [('visible', '=', True)], context=context)
if ids:
if 'chart_template_id' in fields:
res.update({'only_one_chart_template': len(ids) == 1, 'chart_template_id': ids[0]})
#in order to get set default chart which was last created set max of ids.
chart_id = max(ids)
if context.get("default_charts"):
chart_id = self.pool.get('ir.model.data').search_read(cr, uid, [('model','=','account.chart.template'),('module','=',context.get("default_charts"))], ['res_id'], context=context)[0]['res_id']
res.update({'only_one_chart_template': len(ids) == 1, 'chart_template_id': chart_id})
if 'sale_tax' in fields:
sale_tax_ids = tax_templ_obj.search(cr, uid, [("chart_template_id"
, "=", ids[0]), ('type_tax_use', 'in', ('sale','all'))], order="sequence")

View File

@ -10,7 +10,7 @@
</form>
<footer position="replace">
<footer>
<button name="action_next" type="object" string="Continue" class="oe_highlight"/>
<button name="action_next" context="{'default_charts':charts}" type="object" string="Continue" class="oe_highlight"/>
</footer>
</footer>
<separator string="title" position="replace">

View File

@ -2120,7 +2120,7 @@
<field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
</group>
<group>
<field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"/> <!-- we assume that this wizard will be run only by administrators and as this field may cause problem if hidden (because of the default company of the user removed from the selection because already configured), we simply choosed to remove the group "multi company" of it -->
<field name="company_id" widget="selection"/> <!-- we assume that this wizard will be run only by administrators and as this field may cause problem if hidden (because of the default company of the user removed from the selection because already configured), we simply choosed to remove the group "multi company" of it -->
<field name="currency_id" class="oe_inline"/>
<field name="sale_tax" attrs="{'invisible': [('complete_tax_set', '!=', True)]}" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
<label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>

View File

@ -1,7 +1,10 @@
-
In order to test account invoice I create a new customer invoice
-
I will create bank detail
I will create bank detail with using manager access rights because account manager can only create bank details.
-
!context
uid: 'res_users_account_manager'
-
!record {model: res.partner.bank, id: res_partner_bank_0}:
state: bank
@ -11,6 +14,11 @@
footer: True
bank: base.res_bank_1
bank_name: Reserve
-
Test with that user which have rights to make Invoicing and payment and who is accountant.
-
!context
uid: 'res_users_account_user'
-
I create a customer invoice
-

View File

@ -1,3 +1,8 @@
-
Test with that user which have rights to make Invoicing.
-
!context
uid: 'res_users_account_user'
-
In order to test Confirm Draft Invoice wizard I create an invoice and confirm it with this wizard
-

View File

@ -1,3 +1,8 @@
-
Test with that Finance manager who can only create supplier invoice.
-
!context
uid: 'res_users_account_manager'
-
In order to test account invoice I create a new supplier invoice
-

View File

@ -0,0 +1,32 @@
-
Create a user as 'Accountant'
-
!record {model: res.users, id: res_users_account_user}:
company_id: base.main_company
name: Accountant
login: acc
password: acc
email: accountuser@yourcompany.com
-
I added groups for Accountant.
-
!record {model: res.users, id: res_users_account_user}:
groups_id:
- account.group_account_user
- base.group_partner_manager
-
Create a user as 'Financial Manager'
-
!record {model: res.users, id: res_users_account_manager}:
company_id: base.main_company
name: Financial Manager
login: fm
password: fm
email: accountmanager@yourcompany.com
-
I added groups for Financial Manager.
-
!record {model: res.users, id: res_users_account_manager}:
groups_id:
- account.group_account_manager
- base.group_partner_manager

View File

@ -1,3 +1,8 @@
-
Test validate account move with user who is accountant which have its rights.'
-
!context
uid: 'res_users_account_user'
-
In order to test the account move lines in OpenERP, I create account move
-

View File

@ -61,6 +61,7 @@ This module manages:
'account_voucher_data.xml',
],
'test' : [
'test/account_voucher_users.yml',
'test/case5_suppl_usd_usd.yml',
'test/account_voucher.yml',
'test/sales_receipt.yml',

View File

@ -1,3 +1,9 @@
-
I check the voucher module with user who is accountant.
-
!context
uid: 'res_users_account_voucher_user'
-
In order to check account voucher module in OpenERP I create a customer voucher
-

View File

@ -0,0 +1,32 @@
-
Create a user as 'Accountant for account voucher'
-
!record {model: res.users, id: res_users_account_voucher_user}:
company_id: base.main_company
name: Voucher Accountant
login: vacc
password: acc
email: accountant@yourcompany.com
-
I added groups to Accountant for account voucher.
-
!record {model: res.users, id: res_users_account_voucher_user}:
groups_id:
- base.group_partner_manager
- account.group_account_user
-
Create a user as 'Financial Manager for account voucher'
-
!record {model: res.users, id: res_users_account_voucher_manager}:
company_id: base.main_company
name: Financial Manager for voucher
login: fmv
password: fmv
email: finmanager@yourcompany.com
-
I added groups to Financial Manager for account voucher.
-
!record {model: res.users, id: res_users_account_voucher_manager}:
groups_id:
- base.group_partner_manager
- account.group_account_manager

View File

@ -1,4 +1,9 @@
##YAML test on the account_voucher as depicted in this bug report: https://bugs.launchpad.net/openobject-addons/+bug/954155
-
Only manager can create and take decision about bank and currency there I checkd this test with user who is finance manager.
-
!context
uid: 'res_users_account_voucher_manager'
-
In order to check the payment with multi-currency in OpenERP,
I create an invoice in EUR and make payment in USD based on the currency rating.

View File

@ -1,3 +1,8 @@
-
I test sales payment with user who is accountant.
-
!context
uid: 'res_users_account_voucher_user'
-
Create an invoice for the partner Seagate with amount 450.0
-

View File

@ -1,3 +1,8 @@
-
Accountant can also be created receipt and validate it there for I checked it with that user who is accountant.
-
!context
uid: 'res_users_account_voucher_user'
-
Creating a Voucher Receipt for partner Seagate with amount 30000.0
-

View File

@ -106,6 +106,7 @@ Dashboard for CRM will include:
'crm_action_rule_demo.xml',
],
'test': [
'test/crm_access_group_users.yml',
'test/crm_lead_message.yml',
'test/lead2opportunity2win.yml',
'test/lead2opportunity_assign_salesmen.yml',

View File

@ -5,6 +5,7 @@
<record id="base.group_sale_salesman" model="res.groups">
<field name="name">User: Own Leads Only</field>
<field name="category_id" ref="base.module_category_sales_management"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="comment">the user will have access to his own data in the sales application.</field>
</record>

View File

@ -0,0 +1,31 @@
-
Create a user as 'Crm Salesmanager'
-
!record {model: res.users, id: crm_res_users_salesmanager}:
company_id: base.main_company
name: Crm Sales manager
login: csm
password: csm
email: crmmanager@yourcompany.com
-
I added groups for Crm Salesmanager.
-
!record {model: res.users, id: crm_res_users_salesmanager}:
groups_id:
- base.group_sale_manager
-
Create a user as 'Crm Salesman'
-
!record {model: res.users, id: crm_res_users_salesman}:
company_id: base.main_company
name: Crm Salesman
login: csu
password: csu
email: crmuser@yourcompany.com
-
I added groups for Crm Salesman.
-
!record {model: res.users, id: crm_res_users_salesman}:
groups_id:
- base.group_sale_salesman_all_leads
- base.group_partner_manager

View File

@ -1,21 +1,24 @@
-
I set a new sale team (with Marketing at parent) .
I set a new sale team (with Marketing at parent) giving access rights of salesman.
-
!context
uid: 'crm_res_users_salesmanager'
-
!python {model: crm.lead}: |
section_id = self.pool.get('crm.case.section').create(cr, uid, {'name': "Phone Marketing", 'parent_id': ref("crm.crm_case_section_2")})
self.write(cr, uid, [ref("crm_case_1")], {'section_id': section_id})
-
I check unqualified lead .
Salesman check unqualified lead .
-
!assert {model: crm.lead, id: crm.crm_case_1, string: Lead is in new stage}:
- stage_id.sequence == 1
-
I escalate the lead to parent team.
Salesman escalate the lead to parent team.
-
!python {model: crm.lead}: |
self.case_escalate(cr, uid, [ref("crm_case_1")])
-
I check the lead is correctly escalated to the parent team.
Salesman check the lead is correctly escalated to the parent team.
-
!assert {model: crm.lead, id: crm.crm_case_1, string: Escalate lead to parent team}:
- section_id.name == "Marketing"

View File

@ -1,6 +1,8 @@
-
During a mixed merge (involving leads and opps), data should be handled a certain way following their type (m2o, m2m, text, ...) Start by creating two leads and an opp.
During a mixed merge (involving leads and opps), data should be handled a certain way following their type (m2o, m2m, text, ...) Start by creating two leads and an opp and giving the rights of Sales manager.
-
!context
uid: 'crm_res_users_salesmanager'
-
!record {model: crm.lead, id: test_crm_opp_1}:
type: 'opportunity'

View File

@ -1,3 +1,8 @@
-
Give the access rights of Salesman to communicate with customer.
-
!context
uid: 'crm_res_users_salesman'
-
Customer interested in our product, so he sends request by email to get more details.
-

View File

@ -1,5 +1,8 @@
-
I create a lead record to call a partner onchange, stage onchange and mailing opt-in onchange method.
Sales manager create a lead record to call a partner onchange, stage onchange and mailing opt-in onchange method.
-
!context
uid: 'crm_res_users_salesmanager'
-
!record {model: crm.lead, id: crm_case_25}:
name: 'Need more info about your pc2'
@ -7,7 +10,7 @@
type: opportunity
stage_id: crm.stage_lead1
-
I create a lead record to call a mailing opt-out onchange method.
Sales manager create a lead record to call a mailing opt-out onchange method.
-
!record {model: crm.lead, id: crm_case_18}:
name: 'Need 20 Days of Consultancy'
@ -15,7 +18,7 @@
stage_id: crm.stage_lead1
opt_out: True
-
I create a phonecall record to call a partner onchange method.
Sales manager create a phonecall record to call a partner onchange method.
-
!record {model: crm.phonecall, id: crm_phonecall_5}:
name: 'Bad time'

View File

@ -1,5 +1,8 @@
-
I Unlink the Lead.
Only Sales manager Unlink the Lead so test with Manager's access rights'.
-
!context
uid: 'crm_res_users_salesmanager'
-
!python {model: crm.lead}: |
self.unlink(cr, uid, [ref("crm_case_4")])

View File

@ -1,3 +1,8 @@
-
Giving access rights of salesman to convert the lead into opportunity.
-
!context
uid: 'crm_res_users_salesman'
-
In order to test the conversion of a lead into a opportunity,
-

View File

@ -1,5 +1,30 @@
-
During a lead to opp conversion, salesmen should be assigned to leads following the round-robin method. Start by creating 6 leads (1 to 6) and 4 salesmen (A to D).
During a lead to opp conversion, salesmen should be assigned to leads following the round-robin method. Start by creating 4 salesmen (A to D) and 6 leads (1 to 6).
-
!record {model: res.users, id: test_res_user_01}:
name: 'Test user A'
login: 'tua'
new_password: 'tua'
-
!record {model: res.users, id: test_res_user_02}:
name: 'Test user B'
login: 'tub'
new_password: 'tub'
-
!record {model: res.users, id: test_res_user_03}:
name: 'Test user C'
login: 'tuc'
new_password: 'tuc'
-
!record {model: res.users, id: test_res_user_04}:
name: 'Test user D'
login: 'tud'
new_password: 'tud'
-
Salesman also creates lead so giving access rights of salesman.
-
!context
uid: 'crm_res_users_salesman'
-
!record {model: crm.lead, id: test_crm_lead_01}:
type: 'lead'
@ -37,27 +62,7 @@
partner_name: 'Agrolait SuperSeed SA'
stage_id: stage_lead1
-
!record {model: res.users, id: test_res_user_01}:
name: 'Test user A'
login: 'tua'
new_password: 'tua'
-
!record {model: res.users, id: test_res_user_02}:
name: 'Test user B'
login: 'tub'
new_password: 'tub'
-
!record {model: res.users, id: test_res_user_03}:
name: 'Test user C'
login: 'tuc'
new_password: 'tuc'
-
!record {model: res.users, id: test_res_user_04}:
name: 'Test user D'
login: 'tud'
new_password: 'tud'
-
I create a mass convert wizard and convert all the leads.
Salesman create a mass convert wizard and convert all the leads.
-
!python {model: crm.lead2opportunity.partner.mass}: |
context.update({'active_model': 'crm.lead', 'active_ids': [ref("test_crm_lead_01"), ref("test_crm_lead_02"), ref("test_crm_lead_03"), ref("test_crm_lead_04"), ref("test_crm_lead_05"), ref("test_crm_lead_06")], 'active_id': ref("test_crm_lead_01")})

View File

@ -1,3 +1,8 @@
-
Salesman check the phone calls data so test with the access rights of salesman.
-
!context
uid: 'crm_res_users_salesman'
-
I schedule a phone call with a customer.
-

View File

@ -52,7 +52,7 @@ Key Features
'email_template.xml',
],
'demo': ['event_demo.xml'],
'test': ['test/process/event_draft2done.yml'],
'test': ['test/ui/event_users.yml','test/process/event_draft2done.yml'],
'css': ['static/src/css/event.css'],
'installable': True,
'application': True,

View File

@ -10,6 +10,7 @@
<record id="group_event_user" model="res.groups">
<field name="name">User</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="module_category_event_management"/>
</record>

View File

@ -1,3 +1,8 @@
-
Give the access rights of Event user to organize an event and also do registration.
-
!context
uid: 'res_users_eventuser'
-
I want to organize an event,
into this conference I should create two registration.

View File

@ -0,0 +1,30 @@
-
Create a user as 'Event manager'
-
!record {model: res.users, id: res_users_eventmanager}:
company_id: base.main_company
name: Event manager
login: em
password: em
email: eventmanager@yourcompany.com
-
I added groups for Event manager.
-
!record {model: res.users, id: res_users_eventmanager}:
groups_id:
- event.group_event_manager
-
Create a user as 'Event user'
-
!record {model: res.users, id: res_users_eventuser}:
company_id: base.main_company
name: User
login: eu
password: eu
email: eventuser@yourcompany.com
-
I added groups for Event user.
-
!record {model: res.users, id: res_users_eventuser}:
groups_id:
- event.group_event_user

View File

@ -64,6 +64,7 @@ You can manage:
],
'demo': ['hr_demo.xml'],
'test': [
'test/hr_users.yml',
'test/open2recruit2close_job.yml',
'test/hr_demo.yml',
],

View File

@ -1,3 +1,8 @@
-
Give the access rights of Hr Officer to create employee.
-
!context
uid: 'res_users_hr_officer'
-
!record {model: hr.job, id: job_developer, view: False}:
no_of_employee: 0.0

View File

@ -0,0 +1,42 @@
-
Create a user as 'HR Manager'
-
!record {model: res.users, id: res_users_hr_manager}:
company_id: base.main_company
name: HR manager
login: hrm
password: hrm
-
I added groups for HR Manager.
-
!record {model: res.users, id: res_users_hr_manager}:
groups_id:
- base.group_hr_manager
-
Create a user as 'HR Officer'
-
!record {model: res.users, id: res_users_hr_officer}:
company_id: base.main_company
name: HR Officer
login: hro
password: hro
-
I added groups for HR Officer.
-
!record {model: res.users, id: res_users_hr_officer}:
groups_id:
- base.group_hr_user
-
Create a user as 'Employee'
-
!record {model: res.users, id: res_users_employee}:
company_id: base.main_company
name: Employee
login: emp
password: emp
-
I added groups for Employee.
-
!record {model: res.users, id: res_users_employee}:
groups_id:
- base.group_user

View File

@ -1,3 +1,8 @@
-
Give the access rights of Hr Officer to the user to test the process of Human Resource Management.
-
!context
uid: 'res_users_hr_officer'
-
In order to test the process of Human Resource Management, I open Job Postion for "Developer".
-

View File

@ -1,3 +1,22 @@
-
Create a user as 'HR Attendance Officer'
-
!record {model: res.users, id: res_users_attendance_officer}:
company_id: base.main_company
name: HR Officer
login: ao
password: ao
-
I added groups for HR Attendance Officer.
-
!record {model: res.users, id: res_users_attendance_officer}:
groups_id:
- base.group_hr_user
-
Give the access rights of Hr Officer to test attendance process.
-
!context
uid: 'res_users_attendance_officer'
-
In order to test attendance process in OpenERP, I entry of SignIn of employee.
-

View File

@ -15,5 +15,12 @@
<field name="groups" eval="[(4,ref('base.group_hr_user'))]"/>
</record>
<record id="resource_leaves_officer" model="ir.rule">
<field name="name">Leaves Officer</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="domain_force">[(1,'=',1)]</field>
<field name="groups" eval="[(4,ref('base.group_hr_user'))]"/>
</record>
</data>
</openerp>

View File

@ -9,6 +9,9 @@
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
</record>
<record id="base.group_hr_user" model="res.groups">
<field name="implied_ids" eval="[(4, ref('base.group_survey_user'))]"/>
</record>
</data>
</openerp>

View File

@ -1,5 +1,23 @@
-
In Order to test process of Recruitment,
Create a user as 'HR Recruitment Officer'
-
!record {model: res.users, id: res_users_hr_recruitment_officer}:
company_id: base.main_company
name: HR Recruitment Officer
login: hrro
password: hrro
email: hrofcr@yourcompany.com
-
I added groups for HR Recruitment Officer.
-
!record {model: res.users, id: res_users_hr_recruitment_officer}:
groups_id:
- base.group_hr_user
-
In Order to test process of Recruitment so giving HR officer's rights,
-
!context
uid: 'res_users_hr_recruitment_officer'
-
An applicant is interested in the job position. So he sends a resume by email.
-

View File

@ -57,6 +57,7 @@ up a management by affair.
],
'demo': ['hr_timesheet_demo.xml'],
'test': [
'test/hr_timesheet_users.yml',
'test/test_hr_timesheet.yml',
'test/hr_timesheet_report.yml',
'test/hr_timesheet_demo.yml',

View File

@ -1,3 +1,8 @@
-
Give the access rights of Hr Officer to create employee.
-
!context
uid: 'res_hr_timesheet_officer'
-
!record {model: hr.analytic.timesheet, id: working_hours_coding, view: False}:
user_id: base.user_demo

View File

@ -0,0 +1,42 @@
-
Create a user as 'HR timesheet Manager'
-
!record {model: res.users, id: res_hr_timesheet_manager}:
company_id: base.main_company
name: HR timesheet manager
login: hrtm
password: hrtm
-
I added groups for HR timesheet Manager.
-
!record {model: res.users, id: res_hr_timesheet_manager}:
groups_id:
- base.group_hr_manager
-
Create a user as 'HR timesheet Officer'
-
!record {model: res.users, id: res_hr_timesheet_officer}:
company_id: base.main_company
name: HR timesheet Officer
login: hrto
password: hrto
-
I added groups for HR timesheet Officer.
-
!record {model: res.users, id: res_hr_timesheet_officer}:
groups_id:
- base.group_hr_user
-
Create a user as 'Timesheet Employee'
-
!record {model: res.users, id: res_hr_timesheet_employee}:
company_id: base.main_company
name: Timesheet Employee
login: empt
password: empt
-
I added groups for Timesheet Employee.
-
!record {model: res.users, id: res_hr_timesheet_employee}:
groups_id:
- base.group_user

View File

@ -1,6 +1,11 @@
-
In order to test hr_timesheet Module in OpenERP, I make "Sign In/Sign Out for Project" to encode and
track time spent on the different projects.
-
Give the access rights of Hr Officer to create employee.
-
!context
uid: 'res_hr_timesheet_officer'
-
I create employee "Gilles Gravie" as "User".
-
@ -9,6 +14,11 @@
name: Gilles Gravie
parent_id: 'hr.employee_al'
user_id: 'base.user_demo'
-
Give the access rights of Employee to Sign In/Sign Out in Project.
-
!context
uid: 'res_hr_timesheet_employee'
-
On "Sign In/Sign Out by Project" wizard i click on "Sign In/Sign Out" button of this wizard.
-

View File

@ -252,6 +252,7 @@
<field name="property_account_payable" ref="211"/>
<field name="property_account_expense_categ" ref="61_01"/>
<field name="property_account_income_categ" ref="411_01"/>
<field name="currency_id" ref="base.ARS"/>
</record>

View File

@ -2518,6 +2518,7 @@
<field name="property_account_income_categ" ref="chart4000"/>
<field name="property_account_expense" ref="chart5000"/>
<field name="property_account_income" ref="chart4000"/>
<field name="currency_id" ref="base.EUR"/>
</record>

View File

@ -13,6 +13,7 @@
<field name="property_account_expense_categ" ref="a_expense"/>
<field name="property_account_income_categ" ref="a_sale"/>
<field name="spoken_languages" eval="'nl_BE'"/>
<field name="currency_id" ref="base.EUR"/>
</record>

View File

@ -249,6 +249,7 @@
<field name="property_account_payable" ref="211"/>
<field name="property_account_expense_categ" ref="61_01"/>
<field name="property_account_income_categ" ref="411_01"/>
<field name="currency_id" ref="base.BOB"/>
</record>

View File

@ -11,6 +11,7 @@
<field name="property_account_payable" ref="account_template_201010100" />
<field name="property_account_expense_categ" ref="account_template_3010103010000" />
<field name="property_account_income_categ" ref="account_template_3010101010200" />
<field name="currency_id" ref="base.BRL"/>
</record>
</data>

View File

@ -13,6 +13,7 @@
<field name="property_account_payable" ref="chart2111_en"/>
<field name="property_account_income_categ" ref="chart411_en"/>
<field name="property_account_expense_categ" ref="chart5111_en"/>
<field name="currency_id" ref="base.CAD"/>
</record>
<record id="stock.property_stock_account_input_categ" model="ir.property">

View File

@ -12,6 +12,7 @@
<field name="property_account_payable" ref="chart2111_fr"/>
<field name="property_account_income_categ" ref="chart411_fr"/>
<field name="property_account_expense_categ" ref="chart5111_fr"/>
<field name="currency_id" ref="base.CAD"/>
</record>
<record id="stock.property_stock_account_input_categ" model="ir.property">

View File

@ -11812,6 +11812,7 @@
<field name="property_reserve_and_surplus_account" ref="ch_2991"/>
<field name="code_digits" eval="0"/>
<field name="spoken_languages" eval="'it_IT;de_DE'"/>
<field name="currency_id" ref="base.CHF"/>
</record>
</data>
</openerp>

View File

@ -248,6 +248,7 @@
<field name="property_account_payable" ref="211"/>
<field name="property_account_expense_categ" ref="61_01"/>
<field name="property_account_income_categ" ref="411_01"/>
<field name="currency_id" ref="base.AUD"/>
</record>

View File

@ -957,6 +957,7 @@
<field name="property_account_payable" ref="chart2202"/>
<field name="property_account_expense_categ" ref="chart1401"/>
<field name="property_account_income_categ" ref="chart6001"/>
<field name="currency_id" ref="base.CNY"/>
</record>
<!-- 增值税 -->
<record id="vats" model="account.tax.template">

View File

@ -103348,6 +103348,7 @@ participacion, de conformidad con las disposiciones legales vigentes.
<field name="property_account_payable" ref="chart238095999"/>
<field name="property_account_expense_categ" ref="chart529595999"/>
<field name="property_account_income_categ" ref="chart413595999"/>
<field name="currency_id" ref="base.COP"/>
</record>
</data>

View File

@ -16,6 +16,7 @@
<field name="property_account_expense" ref="account_account_template_0_511301"/>
<field name="property_account_income_categ" ref="account_account_template_0_410001"/>
<field name="property_account_expense_categ" ref="account_account_template_0_511301"/>
<field name="currency_id" ref="base.CRC"/>
</record>
<record id="account_chart_template_x" model="account.chart.template">
<field name="name">Costa Rica - Company 1</field>
@ -28,6 +29,7 @@
<field name="property_account_expense" ref="account_account_template_x511301"/>
<field name="property_account_income_categ" ref="account_account_template_x410001"/>
<field name="property_account_expense_categ" ref="account_account_template_x511301"/>
<field name="currency_id" ref="base.CRC"/>
</record>
</data>
</openerp>

View File

@ -12,6 +12,7 @@
<field name="property_account_payable" ref="account_1610"/>
<field name="property_account_expense_categ" ref="account_3400"/>
<field name="property_account_income_categ" ref="account_8400"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>
</openerp>

View File

@ -12,6 +12,7 @@
<field name="property_account_payable" ref="chart_skr04_3301"/>
<field name="property_account_expense_categ" ref="chart_skr04_5400"/>
<field name="property_account_income_categ" ref="chart_skr04_4400"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>
</openerp>

View File

@ -4202,7 +4202,8 @@
<field name="property_account_receivable" ref="4"/>
<field name="property_account_payable" ref="5"/>
<field name="property_account_expense_categ" ref="60101"/>
<field name="property_account_income_categ" ref="710101"/>
<field name="property_account_income_categ" ref="710101"/>
<field name="currency_id" ref="base.ECS"/>
</record>
</data>

View File

@ -13333,6 +13333,7 @@
<field name="property_account_payable" ref="pgc_4100_child"/>
<field name="property_account_expense_categ" ref="pgc_600_child"/>
<field name="property_account_income_categ" ref="pgc_7000_child"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>
</openerp>

View File

@ -12420,6 +12420,7 @@
<field name="property_account_payable" ref="pgc_assoc_4100_child"/>
<field name="property_account_expense_categ" ref="pgc_assoc_600_child"/>
<field name="property_account_income_categ" ref="pgc_assoc_7000_child"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>

View File

@ -11464,6 +11464,7 @@
<field name="property_account_payable" ref="pgc_pymes_4100_child"/>
<field name="property_account_expense_categ" ref="pgc_pymes_600_child"/>
<field name="property_account_income_categ" ref="pgc_pymes_7000_child"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>
</openerp>

View File

@ -441,6 +441,7 @@
<field name="property_account_payable" ref="fr_pcg_pay"/>
<field name="property_account_expense_categ" ref="pcg_6071"/>
<field name="property_account_income_categ" ref="pcg_7071"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>

View File

@ -21,6 +21,7 @@
<field name="property_account_payable" ref="chartgr_50_00"/>
<field name="property_account_expense_categ" ref="chartgr_64_98"/>
<field name="property_account_income_categ" ref="chartgr_71_00"/>
<field name="currency_id" ref="base.EUR"/>
</record>

View File

@ -31,6 +31,7 @@
<field name="property_account_payable" ref="cta210101"/>
<field name="property_account_income_categ" ref="cta410101"/>
<field name="property_account_expense_categ" ref="cta510101"/>
<field name="currency_id" ref="base.QTQ"/>
</record>
<!-- Compras e IVA por Cobrar -->

View File

@ -17,6 +17,7 @@
<field name="property_account_payable" ref="cta210101"/>
<field name="property_account_income_categ" ref="cta410101"/>
<field name="property_account_expense_categ" ref="cta510101"/>
<field name="currency_id" ref="base.HNL"/>
</record>
<!-- Compras e ISV por Cobrar -->

View File

@ -15,6 +15,7 @@
<field name="property_account_expense_categ" ref="kp_rrif4199"/>
<field name="property_account_income_categ" ref="kp_rrif7500"/>
<field name="currency_id" ref="base.HRK"/>
</record>
</data>

View File

@ -550,6 +550,7 @@
<field name="property_account_payable" ref="a215"/>
<field name="property_account_expense_categ" ref="a540"/>
<field name="property_account_income_categ" ref="a311"/>
<field name="currency_id" ref="base.INR"/>
</record>

View File

@ -988,6 +988,7 @@
<field name="property_account_payable" ref="p21000"/>
<field name="property_account_expense_categ" ref="p41010"/>
<field name="property_account_income_categ" ref="p31010"/>
<field name="currency_id" ref="base.INR"/>
</record>
</data>

View File

@ -11,6 +11,7 @@
<field name="property_account_payable" ref="2501"/>
<field name="property_account_expense_categ" ref="4101"/>
<field name="property_account_income_categ" ref="3101"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>
</openerp>

View File

@ -13,6 +13,7 @@
<field name="property_account_income_categ" ref="lu_2011_account_7051"/>
<field name="property_account_income_opening" ref="lu_2011_account_141"/>
<field name="property_account_expense_opening" ref="lu_2011_account_141"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>

View File

@ -742,7 +742,9 @@
<field name="account_root_id" ref="pcg_0"/>
<field name="tax_code_root_id" ref="vat_ma_tax_root"/>
<field name="bank_account_view_id" ref="pcg_514"/>
<field name="property_account_receivable" ref="pcg_3488"/>
<field name="property_account_payable" ref="pcg_4488"/>
<field name="currency_id" ref="base.MAD"/>
</record>
<record model="account.tax.template" id="tva_exo">

View File

@ -3695,6 +3695,7 @@ Cuentas del plan
<field name="property_account_income_categ" ref="cuenta5111001000"/>
<field name="property_stock_account_input_categ" ref="cuenta4111003000"/>
<field name="property_stock_account_output_categ" ref="cuenta4511003000"/>
<field name="currency_id" ref="base.MXN"/>
</record>

View File

@ -4102,6 +4102,7 @@
<field name="property_account_payable" ref="a_pay"/> <!-- crediteuren -->
<field name="property_account_expense_categ" ref="a_expense"/><!-- aankoop grondstoffen -->
<field name="property_account_income_categ" ref="a_sale"/> <!-- verkoop rekening -->
<field name="currency_id" ref="base.EUR"/>
</record>
<!-- BTW Template

View File

@ -242,6 +242,7 @@
<field name="property_account_payable" ref="211"/>
<field name="property_account_expense_categ" ref="62_01"/>
<field name="property_account_income_categ" ref="411_01"/>
<field name="currency_id" ref="base.PAB"/>
</record>

View File

@ -2257,7 +2257,8 @@
<field name="property_account_receivable" ref="121100"/>
<field name="property_account_payable" ref="421100"/>
<field name="property_account_expense_categ" ref="6011_01"/>
<field name="property_account_income_categ" ref="70111_01"/>
<field name="property_account_income_categ" ref="70111_01"/>
<field name="currency_id" ref="base.PEN"/>
</record>

View File

@ -3202,6 +3202,7 @@
<field name="property_account_payable" ref="chart221000000"/>
<field name="property_account_expense_categ" ref="chart330020000"/>
<field name="property_account_income_categ" ref="chart773010000"/>
<field name="currency_id" ref="base.PLZ"/>
</record>
</data>

View File

@ -16,6 +16,7 @@
<field name="property_account_income_categ" ref="chart_711"/>
<field name="property_account_expense_categ" ref="chart_311"/>
<field name="property_reserve_and_surplus_account" ref="chart_811"/>
<field name="currency_id" ref="base.EUR"/>
</record>
</data>

View File

@ -4587,7 +4587,7 @@
<field name="property_account_payable" ref="ro_pcg_pay"/> <!-- 4011 -->
<field name="property_account_expense_categ" ref="ro_pcg_expense"/> <!-- 607 -->
<field name="property_account_income_categ" ref="ro_pcg_sale"/> <!-- 707 -->
<field name="currency_id" ref="base.ROL"/>
</record>
</data>
</openerp>

View File

@ -1850,6 +1850,7 @@
<field name="property_account_payable" ref="pcg_4011"/>
<field name="property_account_expense_categ" ref="pcg_6011" />
<field name="property_account_income_categ" ref="pcg_7011" />
<field name="currency_id" ref="base.XOF"/>
</record>
<record model="account.tax.code.template" id="tax_col_ht">

View File

@ -477,6 +477,7 @@
<field name="property_account_income_categ" ref="a_sales"/>
<field name="property_account_expense" ref="a_exp_office"/>
<field name="property_account_income" ref="a_sales"/>
<field name="currency_id" ref="base.THB"/>
</record>

View File

@ -12,6 +12,7 @@
<field name="property_account_payable" ref="tr320"/>
<field name="property_account_expense_categ" ref="tr150"/>
<field name="property_account_income_categ" ref="tr600"/>
<field name="currency_id" ref="base.TRL"/>
</record>

View File

@ -6,6 +6,7 @@
<field name="name">Basic Chart of Account</field>
<field name="visible" eval="False" />
<field name="complete_tax_set" eval="False" />
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_cogs" model="account.chart.template">
@ -13,45 +14,53 @@
<field name="visible" eval="False" />
<field name="parent_id" ref="account_chart_template_basic"/>
<field name="complete_tax_set" eval="False" />
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_advertising" model="account.chart.template">
<field name="name">Advertising</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_cogs"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_agriculture" model="account.chart.template">
<field name="name">Agriculture</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_basic"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_construction" model="account.chart.template">
<field name="name">Construction Trades (Plumber, Electrician, HVAC, etc.)</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_cogs"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_financial_service" model="account.chart.template">
<field name="name">Financial Services other than Accounting or Bookkeeping</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_cogs"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_general_service" model="account.chart.template">
<field name="name">General Service-Based Business</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_cogs"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_legal_service" model="account.chart.template">
<field name="name">Legal Services</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_basic"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_general_product" model="account.chart.template">
<field name="name">General Product-Based Business</field>
<field name="complete_tax_set" eval="False" />
<field name="parent_id" ref="account_chart_template_basic"/>
<field name="currency_id" ref="base.USD"/>
</record>
</data>
</openerp>

View File

@ -6,33 +6,43 @@
<field name="account_root_id" ref="coa_basic"/>
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="tax_code_root_id" ref="tax_code_chart_root"/>
<field name="property_account_receivable" ref="account_receivable"/>
<field name="property_account_payable" ref="account_payable"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_advertising" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_agriculture" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_construction" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_financial_service" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_general_service" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_legal_service" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="account_chart_template_general_product" model="account.chart.template">
<field name="bank_account_view_id" ref="cash_expenditure"/>
<field name="currency_id" ref="base.USD"/>
</record>
</data>
</openerp>

View File

@ -1,5 +1,6 @@
<openerp>
<data noupdate="1">
<record id="account.action_wizard_multi_chart_todo" model="ir.actions.todo">
<field name="state">open</field>
</record>

View File

@ -1895,6 +1895,7 @@
<field name="property_account_payable" ref="uy_code_21100"/>
<field name="property_account_income_categ" ref="uy_code_4100"/>
<field name="property_account_expense_categ" ref="uy_code_5100"/>
<field name="currency_id" ref="base.UYP"/>
</record>

View File

@ -3315,6 +3315,7 @@
<field name="property_account_payable" ref="account_activa_account_2122001"/>
<field name="property_account_expense_categ" ref="account_activa_account_7151001"/>
<field name="property_account_income_categ" ref="account_activa_account_5111001"/>
<field name="currency_id" ref="base.VUB"/>
</record>
</data>
</openerp>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="tax0sale" model="account.tax.template">
<record id="tax0all" model="account.tax.template">
<field name="chart_template_id" ref="ve_chart_template_amd"/>
<field name="name">Exento</field>
<field name="amount">0.00000</field>
<field name="type">percent</field>
<field name="type_tax_use">sale</field>
<field name="type_tax_use">all</field>
<field name="collected_id" ref="account_activa_account_2172003"/>
<field name="paid_id" ref="account_activa_account_2172003"/>
<field name="base_code_id" ref="vat_code_base_due"/>
@ -54,19 +54,6 @@
<field name="ref_base_code_id" ref="vat_code_receivable_net"/>
<field name="ref_tax_code_id" ref="vat_code_payable"/>
</record>
<record id="tax0purchase" model="account.tax.template">
<field name="chart_template_id" ref="ve_chart_template_amd"/>
<field name="name">Exento</field>
<field name="amount">0.00000</field>
<field name="type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="collected_id" ref="account_activa_account_2172003"/>
<field name="paid_id" ref="account_activa_account_2172003"/>
<field name="base_code_id" ref="vat_code_base_due"/>
<field name="tax_code_id" ref="vat_code_due_tva"/>
<field name="ref_base_code_id" ref="vat_code_receivable_net"/>
<field name="ref_tax_code_id" ref="vat_code_payable"/>
</record>
<record id="tax1purchase" model="account.tax.template">
<field name="chart_template_id" ref="ve_chart_template_amd"/>
<field name="name">IVA (12.0%) compras</field>

View File

@ -2015,7 +2015,7 @@
<field name="property_account_payable" ref="chart331" />
<field name="property_account_expense_categ" ref="chart1561" />
<field name="property_account_income_categ" ref="chart5111" />
<field name="currency_id" ref="base.VND"/>
</record>
</data>

View File

@ -77,6 +77,7 @@ Dashboard / Reports for MRP will include:
#TODO: This yml tests are needed to be completely reviewed again because the product wood panel is removed in product demo as it does not suit for new demo context of computer and consultant company
# so the ymls are too complex to change at this stage
'test': [
'test/mrp_users.yml',
'test/order_demo.yml',
'test/order_process.yml',
'test/cancel_order.yml',

View File

@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2012-12-21 17:04+0000\n"
"PO-Revision-Date: 2011-11-09 21:53+0000\n"
"Last-Translator: OpenERP Danmark / Henning Dinsen <Unknown>\n"
"PO-Revision-Date: 2013-09-12 17:27+0000\n"
"Last-Translator: John Mertens Pallesen <Unknown>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2013-09-12 05:03+0000\n"
"X-Launchpad-Export-Date: 2013-09-13 05:39+0000\n"
"X-Generator: Launchpad (build 16761)\n"
#. module: mrp
@ -29,6 +29,14 @@ msgid ""
" * Notes for the technician and for the final customer.\n"
" This installs the module mrp_repair."
msgstr ""
"Tillad at administrere alle reperationer på produkter.\n"
" * Tilføj/fjern varer under reparation\n"
" * Påvirkning lager\n"
" * Fakturering (varer og/eller ydelser)\n"
" * Garanti behandling\n"
" * Tilbuds rapport reparation\n"
" * Notes for the technician and for the final customer.\n"
" This installs the module mrp_repair."
#. module: mrp
#: report:mrp.production.order:0
@ -38,7 +46,7 @@ msgstr ""
#. module: mrp
#: help:mrp.production,location_src_id:0
msgid "Location where the system will look for components."
msgstr ""
msgstr "Lokation hvor systemet vil lede efter komponenter."
#. module: mrp
#: field:mrp.production,workcenter_lines:0
@ -68,12 +76,12 @@ msgstr ""
#: code:addons/mrp/report/price.py:130
#, python-format
msgid "Hourly Cost"
msgstr ""
msgstr "Kostpris pr. time."
#. module: mrp
#: view:mrp.production:0
msgid "Scrap Products"
msgstr ""
msgstr "Kasser vare"
#. module: mrp
#: view:mrp.workcenter:0
@ -113,7 +121,7 @@ msgstr ""
#. module: mrp
#: view:product.product:0
msgid "False"
msgstr ""
msgstr "Falsk"
#. module: mrp
#: view:mrp.bom:0
@ -125,12 +133,12 @@ msgstr ""
#. module: mrp
#: view:mrp.production:0
msgid "Finished Products"
msgstr ""
msgstr "Færdigproduceret vare"
#. module: mrp
#: view:mrp.production:0
msgid "Manufacturing Orders which are currently in production."
msgstr ""
msgstr "Produktionsordre igang"
#. module: mrp
#: help:mrp.bom,message_summary:0
@ -145,7 +153,7 @@ msgstr ""
#: model:process.transition,name:mrp.process_transition_servicerfq0
#: model:process.transition,name:mrp.process_transition_stockrfq0
msgid "To Buy"
msgstr ""
msgstr "Indkøb"
#. module: mrp
#: model:process.transition,note:mrp.process_transition_purchaseprocure0
@ -187,12 +195,12 @@ msgstr ""
#. module: mrp
#: model:process.node,note:mrp.process_node_purchaseprocure0
msgid "For purchased material"
msgstr ""
msgstr "Indkøbte matrialer"
#. module: mrp
#: model:ir.ui.menu,name:mrp.menu_mrp_production_order_action
msgid "Order Planning"
msgstr ""
msgstr "Ordreplanlægning"
#. module: mrp
#: field:mrp.config.settings,module_mrp_operations:0
@ -203,7 +211,7 @@ msgstr ""
#: code:addons/mrp/mrp.py:633
#, python-format
msgid "Cannot cancel manufacturing order!"
msgstr ""
msgstr "Det er ikke muligt at annullere produktionsordre !"
#. module: mrp
#: field:mrp.workcenter,costs_cycle_account_id:0
@ -250,7 +258,7 @@ msgstr ""
#: view:mrp.production:0
#: field:mrp.production,move_created_ids2:0
msgid "Produced Products"
msgstr ""
msgstr "Produceret vare"
#. module: mrp
#: report:mrp.production.order:0
@ -265,7 +273,7 @@ msgstr ""
#. module: mrp
#: field:mrp.config.settings,module_mrp_byproduct:0
msgid "Produce several products from one manufacturing order"
msgstr ""
msgstr "Producer flere varer på samme produktionsordre"
#. module: mrp
#: help:mrp.config.settings,group_mrp_properties:0

View File

@ -27,7 +27,7 @@ from openerp.osv import fields, osv, orm
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP
from openerp.tools import float_compare
from openerp.tools.translate import _
from openerp import tools
from openerp import tools, SUPERUSER_ID
from openerp import SUPERUSER_ID
#----------------------------------------------------------
@ -817,7 +817,10 @@ class mrp_production(osv.osv):
account = wc.costs_hour_account_id.id
if value and account:
amount += value
analytic_line_obj.create(cr, uid, {
# we user SUPERUSER_ID as we do not garantee an mrp user
# has access to account analytic lines but still should be
# able to produce orders
analytic_line_obj.create(cr, SUPERUSER_ID, {
'name': wc_line.name + ' (H)',
'amount': value,
'account_id': account,
@ -833,7 +836,7 @@ class mrp_production(osv.osv):
account = wc.costs_cycle_account_id.id
if value and account:
amount += value
analytic_line_obj.create(cr, uid, {
analytic_line_obj.create(cr, SUPERUSER_ID, {
'name': wc_line.name+' (C)',
'amount': value,
'account_id': account,

View File

@ -4,6 +4,7 @@
<record id="group_mrp_user" model="res.groups">
<field name="name">User</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="category_id" ref="base.module_category_manufacturing"/>
</record>
<record id="group_mrp_manager" model="res.groups">

View File

@ -1,3 +1,8 @@
-
MRP user can cancelled Production Order, so let's check data with giving the access rights of user.
-
!context
uid: 'res_users_mrp_user'
-
I first confirm order for PC Assemble SC349.
-

View File

@ -0,0 +1,31 @@
-
Create a user as 'MRP Manager'
-
!record {model: res.users, id: res_users_mrp_manager}:
company_id: base.main_company
name: MRP Manager
login: mam
password: mam
email: mrp_manager@yourcompany.com
-
I added groups for MRP Manager.
-
!record {model: res.users, id: res_users_mrp_manager}:
groups_id:
- mrp.group_mrp_manager
- account.group_account_user
-
Create a user as 'MRP User'
-
!record {model: res.users, id: res_users_mrp_user}:
company_id: base.main_company
name: MRP User
login: mau
password: mau
email: mrp_user@yourcompany.com
-
I added groups for MRP User.
-
!record {model: res.users, id: res_users_mrp_user}:
groups_id:
- mrp.group_mrp_user

View File

@ -1,3 +1,8 @@
-
MRP user can create Production Order, so let's check data with giving the access rights of user.
-
!context
uid: 'res_users_mrp_user'
-
I create Production Order of PC Assemble SC349 to produce 5.0 Unit.
-

View File

@ -1,3 +1,8 @@
-
MRP user can doing all process related to Production Order, so let's check data with giving the access rights of user.
-
!context
uid: 'res_users_mrp_user'
-
I compute the production order.
-
@ -23,6 +28,7 @@
I confirm the Production Order.
-
!workflow {model: mrp.production, action: button_confirm, ref: mrp_production_test1}
-
I check details of Produce Move of Production Order to trace Final Product.
-
@ -58,6 +64,16 @@
assert move_line.product_uos.id == order_line.product_uos.id, "UOS is not correspond in 'To consume line'."
assert move_line.location_id.id == routing_loc or order.location_src_id.id, "Source location is not correspond in 'To consume line'."
assert move_line.location_dest_id.id == source_location_id, "Destination Location is not correspond in 'To consume line'."
-
I consume raw materials and put one material in scrap location due to waste it.
-
!python {model: mrp.production}: |
scrap_location_ids = self.pool.get('stock.location').search(cr, uid, [('scrap_location','=',True)])
scrap_location_id = scrap_location_ids[0]
order = self.browse(cr, uid, ref("mrp_production_test1"))
for move in order.move_lines:
if move.product_id.id == ref("product.product_product_6"):
move.action_scrap(5.0, scrap_location_id)
-
I check details of an Internal Shipment after confirmed production order to bring components in Raw Materials Location.
-
@ -155,17 +171,7 @@
order = self.browse(cr, uid, ref("mrp_production_test1"))
assert order.state == 'in_production', 'Production order should be in production State.'
-
I consume raw materials and put one material in scrap location due to waste it.
-
!python {model: mrp.production}: |
scrap_location_ids = self.pool.get('stock.location').search(cr, uid, [('scrap_location','=',True)])
scrap_location_id = scrap_location_ids[0]
order = self.browse(cr, uid, ref("mrp_production_test1"))
for move in order.move_lines:
if move.product_id.id == ref("product.product_product_6"):
move.action_scrap(5.0, scrap_location_id)
move.action_consume(move.product_qty)
-
I produce product.
-
!python {model: mrp.product.produce}: |
@ -183,7 +189,10 @@
order = self.browse(cr, uid, ref("mrp_production_test1"))
assert order.state == 'done', "Production order should be closed."
-
I check Total Costs at End of Production.
I check Total Costs at End of Production as a manager.
-
!context
uid: 'res_users_mrp_manager'
-
!python {model: mrp.production}: |
order = self.browse(cr, uid, ref("mrp_production_test1"))
@ -217,6 +226,9 @@
assert line.product_uom_id.id == wc.product_id.uom_id.id, "UOM is not correspond."
-
I print a "BOM Structure".
-
!context
uid: 'res_users_mrp_user'
-
!python {model: mrp.production}: |
import os

View File

@ -70,7 +70,7 @@ So, that we can compare the theoretic delay and real delay.
'mrp_operations_demo.yml'
],
'test': [
# 'test/workcenter_operations.yml',
'test/workcenter_operations.yml',
],
'installable': True,
'auto_install': False,

View File

@ -1,6 +1,24 @@
-
Create a user as 'MRP User'
-
!record {model: res.users, id: res_mrp_operation_user}:
company_id: base.main_company
name: MRP User
login: maou
password: maou
email: mrp_operation_user@yourcompany.com
-
I added groups for MRP User.
-
!record {model: res.users, id: res_mrp_operation_user}:
groups_id:
- mrp.group_mrp_user
-
In order to test mrp_operations with OpenERP, I refer created production order of PC Assemble SC349
with routing - Manual Component's Assembly to test complete production process with respect of workcenter.
with routing - Manual Component's Assembly to test complete production process with respect of workcenter with giving access rights of MRP User.
-
!context
uid: 'res_mrp_operation_user'
-
I compute the production order.
-
@ -92,7 +110,7 @@
I print a Barcode Report of Operation line.
-
!python {model: mrp_operations.operation.code}: |
import netsvc, tools, os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.mrp.code.barcode').create(cr, uid, [ref('mrp_operations.mrp_op_1'),ref('mrp_operations.mrp_op_2'),ref('mrp_operations.mrp_op_3'),ref('mrp_operations.mrp_op_4'),ref('mrp_operations.mrp_op_5')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-barcode_report.'+format), 'wb+').write(data)
@ -101,7 +119,7 @@
I print Workcenter's Barcode Report.
-
!python {model: mrp.workcenter}: |
import netsvc, tools, os
from openerp import netsvc, tools
(data, format) = netsvc.LocalService('report.mrp.wc.barcode').create(cr, uid, [ref('mrp.mrp_workcenter_0'),ref('mrp.mrp_workcenter_1')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'mrp_operations-workcenter_barcode_report.'+format), 'wb+').write(data)

View File

@ -52,7 +52,8 @@ The following topics should be covered by this module:
'mrp_repair_report.xml',
],
'demo': ['mrp_repair_demo.yml'],
'test': ['test/test_mrp_repair_noneinv.yml',
'test': ['test/mrp_repair_users.yml',
'test/test_mrp_repair_noneinv.yml',
'test/test_mrp_repair_b4inv.yml',
'test/test_mrp_repair_afterinv.yml',
'test/test_mrp_repair_cancel.yml',

View File

@ -0,0 +1,30 @@
-
Create a user as 'MRP Repair Manager'
-
!record {model: res.users, id: res_mrp_repair_manager}:
company_id: base.main_company
name: MRP Manager
login: marm
password: marm
email: mrp_repair_manager@yourcompany.com
-
I added groups for MRP Repair Manager.
-
!record {model: res.users, id: res_mrp_repair_manager}:
groups_id:
- mrp.group_mrp_manager
-
Create a user as 'MRP Repair User'
-
!record {model: res.users, id: res_mrp_repair_user}:
company_id: base.main_company
name: MRP User
login: maru
password: maru
email: mrp_repair_user@yourcompany.com
-
I added groups for MRP Repair User.
-
!record {model: res.users, id: res_mrp_repair_user}:
groups_id:
- mrp.group_mrp_user

View File

@ -1,5 +1,8 @@
-
In order to test Invoice Method 'After Repair'.
In order to test Invoice Method 'After Repair' with giving the access rights of mrp user.
-
!context
uid: 'res_mrp_repair_user'
-
I confirm Repair order taking Invoice Method 'After Repair'.
-

Some files were not shown because too many files have changed in this diff Show More