- Click to create a new leave request.
+ Click to create a new leave request.
Once you have recorded your leave request, it will be sent
to a manager for validation. Be sure to set the right leave
@@ -298,7 +296,7 @@
-
+
@@ -392,7 +390,7 @@
-
+
hr.holidays.status.filterhr.holidays.status
@@ -443,6 +441,7 @@
+
hr.holidays.status.normal.treehr.holidays.status
@@ -477,9 +476,9 @@
-
+
-
+
resource.calendar.leaves.form.inheritresource.calendar.leaves
@@ -491,7 +490,7 @@
-
+
Leavesir.actions.act_window
@@ -504,8 +503,7 @@
-
-
+
hr.employee.leave.treehr.employee
@@ -534,7 +532,6 @@
-
hr.employee.leave.form.inherithr.employee
diff --git a/addons/hr_recruitment/__openerp__.py b/addons/hr_recruitment/__openerp__.py
index a5a1ec310d5..63c1cf47ccb 100644
--- a/addons/hr_recruitment/__openerp__.py
+++ b/addons/hr_recruitment/__openerp__.py
@@ -24,7 +24,7 @@
'name': 'Recruitment Process',
'version': '1.0',
'category': 'Human Resources',
- 'sequence': 24,
+ 'sequence': 25,
'summary': 'Jobs, Recruitment, Applications, Job Interviews',
'description': """
Manage job positions and the recruitment process
diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py
index 48867d3522f..155f20daf4d 100644
--- a/addons/hr_recruitment/hr_recruitment.py
+++ b/addons/hr_recruitment/hr_recruitment.py
@@ -258,6 +258,17 @@ class hr_applicant(base_stage, osv.Model):
stage_id = stage_ids and stage_ids[0] or False
return {'value': {'stage_id': stage_id}}
+ def onchange_partner_id(self, cr, uid, ids, partner_id, context=None):
+ data = {'partner_phone': False,
+ 'partner_mobile': False,
+ 'email_from': False}
+ if partner_id:
+ addr = self.pool.get('res.partner').browse(cr, uid, partner_id, context)
+ data.update({'partner_phone': addr.phone,
+ 'partner_mobile': addr.mobile,
+ 'email_from': addr.email})
+ return {'value': data}
+
def stage_find(self, cr, uid, cases, section_id, domain=[], order='sequence', context=None):
""" Override of the base.stage method
Parameter of the stage search taken from the lead:
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index 1028db60890..03561da569e 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -135,7 +135,7 @@
+ on_change="onchange_partner_id(partner_id)"/>
diff --git a/addons/hr_timesheet/__openerp__.py b/addons/hr_timesheet/__openerp__.py
index c7af21ee0be..bff25e8e55d 100644
--- a/addons/hr_timesheet/__openerp__.py
+++ b/addons/hr_timesheet/__openerp__.py
@@ -24,6 +24,7 @@
'name': 'Timesheets',
'version': '1.0',
'category': 'Human Resources',
+ 'sequence': 23,
'description': """
This module implements a timesheet system.
==========================================
diff --git a/addons/hr_timesheet_sheet/__openerp__.py b/addons/hr_timesheet_sheet/__openerp__.py
index fd025491588..5f988439b50 100644
--- a/addons/hr_timesheet_sheet/__openerp__.py
+++ b/addons/hr_timesheet_sheet/__openerp__.py
@@ -24,7 +24,7 @@
'name': 'Timesheets',
'version': '1.0',
'category': 'Human Resources',
- 'sequence': 16,
+ 'sequence': 24,
'summary': 'Timesheets, Attendances, Activities',
'description': """
Record and validate timesheets and attendances easily
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index 9133e5de257..bfda31119f2 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -1385,7 +1385,8 @@ openerp.mail = function (session) {
* When you use this option, the domain is not used for the fetch root.
* @param {String} [no_message] Message to display when there are no message
*/
- init: function (parent, options) {
+ init: function (parent, action) {
+ var options = action.params || {};
this._super(parent);
this.domain = options.domain || [];
this.context = options.context || {};
@@ -1513,7 +1514,7 @@ openerp.mail = function (session) {
this.root.destroy();
}
// create and render Thread widget
- this.root = new mail.Widget(this, {
+ this.root = new mail.Widget(this, { params: {
'domain' : domain,
'context' : this.options.context,
'typeof_thread': this.options.context['typeof_thread'] || 'other',
@@ -1524,7 +1525,7 @@ openerp.mail = function (session) {
'message_ids': message_ids,
'show_compact_message': true,
'no_message': this.node.attrs.help
- }
+ }}
);
return this.root.replace(this.$('.oe_mail-placeholder'));
@@ -1552,9 +1553,10 @@ openerp.mail = function (session) {
* @param {Object} [options.context] context, is an object. It should
* contain default_model, default_res_id, to give it to the threads.
*/
- init: function (parent, options) {
+ init: function (parent, action) {
this._super(parent);
- this.options = options || {};
+ var options = action.params || {};
+ this.options = options;
this.options.domain = options.domain || [];
this.options.context = options.context || {};
this.search_results = {'domain': [], 'context': {}, 'groupby': {}}
@@ -1611,7 +1613,7 @@ openerp.mail = function (session) {
message_render: function (search) {
var domain = this.options.domain.concat(this.search_results['domain']);
var context = _.extend(this.options.context, search&&search.search_results['context'] ? search.search_results['context'] : {});
- this.root = new mail.Widget(this, {
+ this.root = new mail.Widget(this, { params: {
'domain' : domain,
'context' : context,
'typeof_thread': context['typeof_thread'] || 'other',
@@ -1620,7 +1622,7 @@ openerp.mail = function (session) {
'show_read_unread_button': 11,
'show_compose_message': true,
'show_compact_message': false,
- }
+ }}
);
return this.root.replace(this.$('.oe_mail-placeholder'));
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py
index b2cee5f5b30..af1664b1f9e 100644
--- a/addons/mrp/mrp.py
+++ b/addons/mrp/mrp.py
@@ -196,8 +196,8 @@ class mrp_bom(osv.osv):
'code': fields.char('Reference', size=16),
'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the bills of material without removing it."),
'type': fields.selection([('normal','Normal BoM'),('phantom','Sets / Phantom')], 'BoM Type', required=True,
- help= "If a sub-product is used in several products, it can be useful to create its own BoM. "\
- "Though if you don't want separated production orders for this sub-product, select Set/Phantom as BoM type. "\
+ help= "If a by-product is used in several products, it can be useful to create its own BoM. "\
+ "Though if you don't want separated production orders for this by-product, select Set/Phantom as BoM type. "\
"If a Phantom BoM is used for a root product, it will be sold and shipped as a set of components, instead of being produced."),
'method': fields.function(_compute_type, string='Method', type='selection', selection=[('',''),('stock','On Stock'),('order','On Order'),('set','Set / Pack')]),
'date_start': fields.date('Valid From', help="Validity of this BoM or component. Keep empty if it's always valid."),
@@ -230,7 +230,7 @@ class mrp_bom(osv.osv):
_parent_name = "bom_id"
_sql_constraints = [
('bom_qty_zero', 'CHECK (product_qty>0)', 'All product quantities must be greater than 0.\n' \
- 'You should install the mrp_subproduct module if you want to manage extra products on BoMs !'),
+ 'You should install the mrp_byproduct module if you want to manage extra products on BoMs !'),
]
def _check_recursion(self, cr, uid, ids, context=None):
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index a34d94a584c..e4e28b6f07c 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -507,7 +507,7 @@
Click to add a component to a bill of material.
- Bills of materials components are components and sub-products
+ Bills of materials components are components and by-products
used to create master bills of materials. Use this menu to
search in which BoM a specific component is used.
diff --git a/addons/mrp/res_config.py b/addons/mrp/res_config.py
index 2cb9fd77f80..c1712b81a26 100644
--- a/addons/mrp/res_config.py
+++ b/addons/mrp/res_config.py
@@ -44,11 +44,11 @@ class mrp_config_settings(osv.osv_memory):
'module_mrp_operations': fields.boolean("Allow detailed planning of work order",
help="""This allows to add state, date_start,date_stop in production order operation lines (in the "Work Centers" tab).
This installs the module mrp_operations."""),
- 'module_mrp_subproduct': fields.boolean("Produce several products from one manufacturing order",
- help="""You can configure sub-products in the bill of material.
+ 'module_mrp_byproduct': fields.boolean("Produce several products from one manufacturing order",
+ help="""You can configure by-products in the bill of material.
Without this module: A + B + C -> D.
With this module: A + B + C -> D + E.
- This installs the module mrp_subproduct."""),
+ This installs the module mrp_byproduct."""),
'module_mrp_jit': fields.boolean("Generate procurement in real time",
help="""This allows Just In Time computation of procurement orders.
All procurement orders will be processed immediately, which could in some
diff --git a/addons/mrp/res_config_view.xml b/addons/mrp/res_config_view.xml
index 92b8abc92d1..6b4058fb7b4 100644
--- a/addons/mrp/res_config_view.xml
+++ b/addons/mrp/res_config_view.xml
@@ -28,8 +28,8 @@
-
-
+
+
diff --git a/addons/mrp_byproduct/test/mrp_byproduct.yml b/addons/mrp_byproduct/test/mrp_byproduct.yml
index 99da9f22baf..2b5fc68406e 100644
--- a/addons/mrp_byproduct/test/mrp_byproduct.yml
+++ b/addons/mrp_byproduct/test/mrp_byproduct.yml
@@ -1,6 +1,6 @@
-
- In order to test mrp_subproduct with OpenERP, I add subproduct in bill of material.
- I make a production order, confirm it so stock moves for subproducts are generated.
+ In order to test mrp_byproduct with OpenERP, I add byproduct in bill of material.
+ I make a production order, confirm it so stock moves for byproducts are generated.
-
I add a sub product in Bill of material for product External Hard Disk.
-
@@ -37,7 +37,7 @@
!assert {model: mrp.production, id: mrp_production_mo0, severity: error, string: Production order should be in state confirmed}:
- state == 'confirmed'
-
- Now I check the stock moves for the subproduct I created in the bill of material.
+ Now I check the stock moves for the byproduct I created in the bill of material.
This move is created automatically when I confirmed the production order.
-
!python {model: stock.move}: |
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js
index 360f88b715b..d7d6d3181f1 100644
--- a/addons/point_of_sale/static/src/js/models.js
+++ b/addons/point_of_sale/static/src/js/models.js
@@ -465,7 +465,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
var product_list = this.pos.get('product_list');
var product = this.get_product();
- var taxes_ids = product.taxes_id;
+ var taxes_ids = product.get('taxes_id');;
var taxes = self.pos.get('taxes');
var taxtotal = 0;
_.each(taxes_ids, function(el) {
diff --git a/addons/point_of_sale/static/src/js/widgets.js b/addons/point_of_sale/static/src/js/widgets.js
index 28ab79c65b2..ed9b1fd060a 100644
--- a/addons/point_of_sale/static/src/js/widgets.js
+++ b/addons/point_of_sale/static/src/js/widgets.js
@@ -202,12 +202,8 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
this.currentOrderLines.bind('remove', this.renderElement, this);
},
update_numpad: function() {
- var reset = false;
- if (this.selected_line !== this.pos.get('selectedOrder').getSelectedLine()) {
- reset = true;
- }
this.selected_line = this.pos.get('selectedOrder').getSelectedLine();
- if (reset && this.numpadState)
+ if (this.numpadState)
this.numpadState.reset();
},
renderElement: function() {
diff --git a/addons/project_gtd/__openerp__.py b/addons/project_gtd/__openerp__.py
index eb05cdfa848..441f8859dc6 100644
--- a/addons/project_gtd/__openerp__.py
+++ b/addons/project_gtd/__openerp__.py
@@ -24,7 +24,7 @@
'name': 'Todo Lists',
'version': '1.0',
'category': 'Project Management',
- 'sequence': 20,
+ 'sequence': 9,
'summary': 'Personal Tasks, Contexts, Timeboxes',
'description': """
Implement concepts of the "Getting Things Done" methodology
diff --git a/addons/project_issue/__openerp__.py b/addons/project_issue/__openerp__.py
index f35ca0251d3..b2e9197cefd 100644
--- a/addons/project_issue/__openerp__.py
+++ b/addons/project_issue/__openerp__.py
@@ -24,7 +24,7 @@
'name': 'Issue Tracker',
'version': '1.0',
'category': 'Project Management',
- 'sequence': 22,
+ 'sequence': 9,
'summary': 'Support, Bug Tracker, Helpdesk',
'description': """
Track Issues/Bugs Management for Projects