"].join(""));
- return container;
+ return container;
},
// multi
prepareOpts: function () {
- var opts = this.parent.prepareOpts.apply(this, arguments);
+ var opts = this.parent.prepareOpts.apply(this, arguments),
+ self=this;
// TODO validate placeholder is a string if specified
if (opts.element.get(0).tagName.toLowerCase() === "select") {
// install sthe selection initializer
- opts.initSelection = function (element,callback) {
+ opts.initSelection = function (element, callback) {
var data = [];
- element.find(":selected").each2(function (i, elm) {
- data.push({id: elm.attr("value"), text: elm.text()});
- });
- if ($.isFunction(callback))
- callback(data);
+ element.find("option").filter(function() { return this.selected }).each2(function (i, elm) {
+ data.push(self.optionToData(elm));
+ });
+ callback(data);
+ };
+ } else if ("data" in opts) {
+ // install default initSelection when applied to hidden input and data is local
+ opts.initSelection = opts.initSelection || function (element, callback) {
+ var ids = splitVal(element.val(), opts.separator);
+ //search in data by array of ids, storing matching items in a list
+ var matches = [];
+ opts.query({
+ matcher: function(term, text, el){
+ var is_match = $.grep(ids, function(id) {
+ return equal(id, opts.id(el));
+ }).length;
+ if (is_match) {
+ matches.push(el);
+ }
+ return is_match;
+ },
+ callback: !$.isFunction(callback) ? $.noop : function() {
+ // reorder matches based on the order they appear in the ids array because right now
+ // they are in the order in which they appear in data array
+ var ordered = [];
+ for (var i = 0; i < ids.length; i++) {
+ var id = ids[i];
+ for (var j = 0; j < matches.length; j++) {
+ var match = matches[j];
+ if (equal(id, opts.id(match))) {
+ ordered.push(match);
+ matches.splice(j, 1);
+ break;
+ }
+ }
+ }
+ callback(ordered);
+ }
+ });
};
}
return opts;
},
+ // multi
+ selectChoice: function (choice) {
+
+ var selected = this.container.find(".select2-search-choice-focus");
+ if (selected.length && choice && choice[0] == selected[0]) {
+
+ } else {
+ if (selected.length) {
+ this.opts.element.trigger("choice-deselected", selected);
+ }
+ selected.removeClass("select2-search-choice-focus");
+ if (choice && choice.length) {
+ this.close();
+ choice.addClass("select2-search-choice-focus");
+ this.opts.element.trigger("choice-selected", choice);
+ }
+ }
+ },
+
+ // multi
+ destroy: function() {
+ $("label[for='" + this.search.attr('id') + "']")
+ .attr('for', this.opts.element.attr("id"));
+ this.parent.destroy.apply(this, arguments);
+ },
+
// multi
initContainer: function () {
@@ -1819,27 +2477,72 @@
this.searchContainer = this.container.find(".select2-search-field");
this.selection = selection = this.container.find(selector);
- this.search.bind("keydown", this.bind(function (e) {
- if (!this.enabled) return;
+ var _this = this;
+ this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) {
+ //killEvent(e);
+ _this.search[0].focus();
+ _this.selectChoice($(this));
+ });
- if (e.which === KEY.BACKSPACE && this.search.val() === "") {
- this.close();
+ // rewrite labels from original element to focusser
+ this.search.attr("id", "s2id_autogen"+nextUid());
+ $("label[for='" + this.opts.element.attr("id") + "']")
+ .attr('for', this.search.attr('id'));
- var choices,
- selected = selection.find(".select2-search-choice-focus");
- if (selected.length > 0) {
+ this.search.on("input paste", this.bind(function() {
+ if (!this.isInterfaceEnabled()) return;
+ if (!this.opened()) {
+ this.open();
+ }
+ }));
+
+ this.search.attr("tabindex", this.elementTabIndex);
+
+ this.keydowns = 0;
+ this.search.on("keydown", this.bind(function (e) {
+ if (!this.isInterfaceEnabled()) return;
+
+ ++this.keydowns;
+ var selected = selection.find(".select2-search-choice-focus");
+ var prev = selected.prev(".select2-search-choice:not(.select2-locked)");
+ var next = selected.next(".select2-search-choice:not(.select2-locked)");
+ var pos = getCursorInfo(this.search);
+
+ if (selected.length &&
+ (e.which == KEY.LEFT || e.which == KEY.RIGHT || e.which == KEY.BACKSPACE || e.which == KEY.DELETE || e.which == KEY.ENTER)) {
+ var selectedChoice = selected;
+ if (e.which == KEY.LEFT && prev.length) {
+ selectedChoice = prev;
+ }
+ else if (e.which == KEY.RIGHT) {
+ selectedChoice = next.length ? next : null;
+ }
+ else if (e.which === KEY.BACKSPACE) {
this.unselect(selected.first());
this.search.width(10);
- killEvent(e);
- return;
+ selectedChoice = prev.length ? prev : next;
+ } else if (e.which == KEY.DELETE) {
+ this.unselect(selected.first());
+ this.search.width(10);
+ selectedChoice = next.length ? next : null;
+ } else if (e.which == KEY.ENTER) {
+ selectedChoice = null;
}
- choices = selection.find(".select2-search-choice");
- if (choices.length > 0) {
- choices.last().addClass("select2-search-choice-focus");
+ this.selectChoice(selectedChoice);
+ killEvent(e);
+ if (!selectedChoice || !selectedChoice.length) {
+ this.open();
}
+ return;
+ } else if (((e.which === KEY.BACKSPACE && this.keydowns == 1)
+ || e.which == KEY.LEFT) && (pos.offset == 0 && !pos.length)) {
+
+ this.selectChoice(selection.find(".select2-search-choice:not(.select2-locked)").last());
+ killEvent(e);
+ return;
} else {
- selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
+ this.selectChoice(null);
}
if (this.opened()) {
@@ -1850,10 +2553,13 @@
killEvent(e);
return;
case KEY.ENTER:
- case KEY.TAB:
this.selectHighlighted();
killEvent(e);
return;
+ case KEY.TAB:
+ this.selectHighlighted({noFocus:true});
+ this.close();
+ return;
case KEY.ESC:
this.cancel(e);
killEvent(e);
@@ -1866,8 +2572,12 @@
return;
}
- if (this.opts.openOnEnter === false && e.which === KEY.ENTER) {
- return;
+ if (e.which === KEY.ENTER) {
+ if (this.opts.openOnEnter === false) {
+ return;
+ } else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {
+ return;
+ }
}
this.open();
@@ -1876,62 +2586,73 @@
// prevent the page from scrolling
killEvent(e);
}
+
+ if (e.which === KEY.ENTER) {
+ // prevent form from being submitted
+ killEvent(e);
+ }
+
}));
- this.search.bind("keyup", this.bind(this.resizeSearch));
+ this.search.on("keyup", this.bind(function (e) {
+ this.keydowns = 0;
+ this.resizeSearch();
+ })
+ );
- this.search.bind("blur", this.bind(function(e) {
+ this.search.on("blur", this.bind(function(e) {
this.container.removeClass("select2-container-active");
this.search.removeClass("select2-focused");
- this.clearSearch();
+ this.selectChoice(null);
+ if (!this.opened()) this.clearSearch();
e.stopImmediatePropagation();
+ this.opts.element.trigger($.Event("select2-blur"));
}));
- this.container.delegate(selector, "mousedown", this.bind(function (e) {
- if (!this.enabled) return;
+ this.container.on("click", selector, this.bind(function (e) {
+ if (!this.isInterfaceEnabled()) return;
if ($(e.target).closest(".select2-search-choice").length > 0) {
// clicked inside a select2 search choice, do not open
return;
}
+ this.selectChoice(null);
this.clearPlaceholder();
+ if (!this.container.hasClass("select2-container-active")) {
+ this.opts.element.trigger($.Event("select2-focus"));
+ }
this.open();
this.focusSearch();
e.preventDefault();
}));
- this.container.delegate(selector, "focus", this.bind(function () {
- if (!this.enabled) return;
+ this.container.on("focus", selector, this.bind(function () {
+ if (!this.isInterfaceEnabled()) return;
+ if (!this.container.hasClass("select2-container-active")) {
+ this.opts.element.trigger($.Event("select2-focus"));
+ }
this.container.addClass("select2-container-active");
this.dropdown.addClass("select2-drop-active");
this.clearPlaceholder();
}));
+ this.initContainerWidth();
+ this.opts.element.addClass("select2-offscreen");
+
// set the placeholder if necessary
this.clearSearch();
},
// multi
- enable: function() {
- if (this.enabled) return;
-
- this.parent.enable.apply(this, arguments);
-
- this.search.removeAttr("disabled");
- },
-
- // multi
- disable: function() {
- if (!this.enabled) return;
-
- this.parent.disable.apply(this, arguments);
-
- this.search.attr("disabled", true);
+ enableInterface: function() {
+ if (this.parent.enableInterface.apply(this, arguments)) {
+ this.search.prop("disabled", !this.isInterfaceEnabled());
+ }
},
// multi
initSelection: function () {
var data;
- if (this.opts.element.val() === "") {
+ if (this.opts.element.val() === "" && this.opts.element.text() === "") {
this.updateSelection([]);
this.close();
// set the placeholder if necessary
@@ -1952,16 +2673,16 @@
// multi
clearSearch: function () {
- var placeholder = this.getPlaceholder();
+ var placeholder = this.getPlaceholder(),
+ maxWidth = this.getMaxSearchWidth();
if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) {
this.search.val(placeholder).addClass("select2-default");
// stretch the search box to full width of the container so as much of the placeholder is visible as possible
- this.resizeSearch();
+ // we could call this.resizeSearch(), but we do not because that requires a sizer and we do not want to create one so early because of a firefox bug, see #944
+ this.search.width(maxWidth > 0 ? maxWidth : this.container.css("width"));
} else {
- // we set this to " " instead of "" and later clear it on focus() because there is a firefox bug
- // that does not properly render the caret when the field starts out blank
- this.search.val(" ").width(10);
+ this.search.val("").width(10);
}
},
@@ -1969,19 +2690,21 @@
clearPlaceholder: function () {
if (this.search.hasClass("select2-default")) {
this.search.val("").removeClass("select2-default");
- } else {
- // work around for the space character we set to avoid firefox caret bug
- if (this.search.val() === " ") this.search.val("");
}
},
// multi
opening: function () {
+ this.clearPlaceholder(); // should be done before super so placeholder is not used to search
+ this.resizeSearch();
+
this.parent.opening.apply(this, arguments);
- this.clearPlaceholder();
- this.resizeSearch();
this.focusSearch();
+
+ this.updateResults(true);
+ this.search.focus();
+ this.opts.element.trigger($.Event("select2-open"));
},
// multi
@@ -2021,9 +2744,10 @@
self.postprocessResults();
},
+ // multi
tokenize: function() {
var input = this.search.val();
- input = this.opts.tokenizer(input, this.data(), this.bind(this.onSelect), this.opts);
+ input = this.opts.tokenizer.call(this, input, this.data(), this.bind(this.onSelect), this.opts);
if (input != null && input != undefined) {
this.search.val(input);
if (input.length > 0) {
@@ -2034,9 +2758,15 @@
},
// multi
- onSelect: function (data) {
+ onSelect: function (data, options) {
+
+ if (!this.triggerSelect(data)) { return; }
+
this.addSelectedChoice(data);
- if (this.select) { this.postprocessResults(); }
+
+ this.opts.element.trigger({ type: "selected", val: this.id(data), choice: data });
+
+ if (this.select || !this.opts.closeOnSelect) this.postprocessResults(data, false, this.opts.closeOnSelect===true);
if (this.opts.closeOnSelect) {
this.close();
@@ -2045,10 +2775,16 @@
if (this.countSelectableResults()>0) {
this.search.width(10);
this.resizeSearch();
+ if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) {
+ // if we reached max selection size repaint the results so choices
+ // are replaced with the max selection reached message
+ this.updateResults(true);
+ }
this.positionDropdown();
} else {
// if nothing left to select close
this.close();
+ this.search.width(10);
}
}
@@ -2056,7 +2792,8 @@
// added we do not need to check if this is a new element before firing change
this.triggerChange({ added: data });
- this.focusSearch();
+ if (!options || !options.noFocus)
+ this.focusSearch();
},
// multi
@@ -2065,36 +2802,51 @@
this.focusSearch();
},
- // multi
addSelectedChoice: function (data) {
- var choice=$(
+ var enableChoice = !data.locked,
+ enabledItem = $(
"
");
+ var choice = enableChoice ? enabledItem : disabledItem,
id = this.id(data),
val = this.getVal(),
- formatted;
+ formatted,
+ cssClass;
- formatted=this.opts.formatSelection(data, choice);
- choice.find("div").replaceWith("
");
- choice.find(".select2-search-choice-close")
- .bind("mousedown", killEvent)
- .bind("click dblclick", this.bind(function (e) {
- if (!this.enabled) return;
+ formatted=this.opts.formatSelection(data, choice.find("div"), this.opts.escapeMarkup);
+ if (formatted != undefined) {
+ choice.find("div").replaceWith("
");
+ }
+ cssClass=this.opts.formatSelectionCssClass(data, choice.find("div"));
+ if (cssClass != undefined) {
+ choice.addClass(cssClass);
+ }
- $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){
- this.unselect($(e.target));
- this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
- this.close();
- this.focusSearch();
- })).dequeue();
- killEvent(e);
- })).bind("focus", this.bind(function () {
- if (!this.enabled) return;
- this.container.addClass("select2-container-active");
- this.dropdown.addClass("select2-drop-active");
- }));
+ if(enableChoice){
+ choice.find(".select2-search-choice-close")
+ .on("mousedown", killEvent)
+ .on("click dblclick", this.bind(function (e) {
+ if (!this.isInterfaceEnabled()) return;
+
+ $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){
+ this.unselect($(e.target));
+ this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
+ this.close();
+ this.focusSearch();
+ })).dequeue();
+ killEvent(e);
+ })).on("focus", this.bind(function () {
+ if (!this.isInterfaceEnabled()) return;
+ this.container.addClass("select2-container-active");
+ this.dropdown.addClass("select2-drop-active");
+ }));
+ }
choice.data("select2-data", data);
choice.insertBefore(this.searchContainer);
@@ -2108,7 +2860,6 @@
var val = this.getVal(),
data,
index;
-
selected = selected.closest(".select2-search-choice");
if (selected.length === 0) {
@@ -2117,55 +2868,81 @@
data = selected.data("select2-data");
- index = indexOf(this.id(data), val);
+ if (!data) {
+ // prevent a race condition when the 'x' is clicked really fast repeatedly the event can be queued
+ // and invoked on an element already removed
+ return;
+ }
- if (index >= 0) {
+ while((index = indexOf(this.id(data), val)) >= 0) {
val.splice(index, 1);
this.setVal(val);
if (this.select) this.postprocessResults();
}
+
+ var evt = $.Event("select2-removing");
+ evt.val = this.id(data);
+ evt.choice = data;
+ this.opts.element.trigger(evt);
+
+ if (evt.isDefaultPrevented()) {
+ return;
+ }
+
selected.remove();
+
+ this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data });
this.triggerChange({ removed: data });
},
// multi
- postprocessResults: function () {
+ postprocessResults: function (data, initial, noHighlightUpdate) {
var val = this.getVal(),
- choices = this.results.find(".select2-result-selectable"),
+ choices = this.results.find(".select2-result"),
compound = this.results.find(".select2-result-with-children"),
self = this;
choices.each2(function (i, choice) {
var id = self.id(choice.data("select2-data"));
if (indexOf(id, val) >= 0) {
- choice.addClass("select2-disabled").removeClass("select2-result-selectable");
- } else {
- choice.removeClass("select2-disabled").addClass("select2-result-selectable");
+ choice.addClass("select2-selected");
+ // mark all children of the selected parent as selected
+ choice.find(".select2-result-selectable").addClass("select2-selected");
}
});
- compound.each2(function(i, e) {
- if (e.find(".select2-result-selectable").length==0) {
- e.addClass("select2-disabled");
- } else {
- e.removeClass("select2-disabled");
+ compound.each2(function(i, choice) {
+ // hide an optgroup if it doesnt have any selectable children
+ if (!choice.is('.select2-result-selectable')
+ && choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) {
+ choice.addClass("select2-selected");
}
});
- choices.each2(function (i, choice) {
- if (!choice.hasClass("select2-disabled") && choice.hasClass("select2-result-selectable")) {
- self.highlight(0);
- return false;
+ if (this.highlight() == -1 && noHighlightUpdate !== false){
+ self.highlight(0);
+ }
+
+ //If all results are chosen render formatNoMAtches
+ if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
+ if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) {
+ if (checkFormatter(self.opts.formatNoMatches, "formatNoMatches")) {
+ this.results.append("
");
+ }
}
- });
+ }
},
// multi
- resizeSearch: function () {
+ getMaxSearchWidth: function() {
+ return this.selection.width() - getSideBorderPadding(this.search);
+ },
+ // multi
+ resizeSearch: function () {
var minimumWidth, left, maxWidth, containerLeft, searchWidth,
- sideBorderPadding = getSideBorderPadding(this.search);
+ sideBorderPadding = getSideBorderPadding(this.search);
minimumWidth = measureTextWidth(this.search) + 10;
@@ -2175,6 +2952,7 @@
containerLeft = this.selection.offset().left;
searchWidth = maxWidth - (left - containerLeft) - sideBorderPadding;
+
if (searchWidth < minimumWidth) {
searchWidth = maxWidth - sideBorderPadding;
}
@@ -2182,7 +2960,12 @@
if (searchWidth < 40) {
searchWidth = maxWidth - sideBorderPadding;
}
- this.search.width(searchWidth);
+
+ if (searchWidth <= 0) {
+ searchWidth = minimumWidth;
+ }
+
+ this.search.width(Math.floor(searchWidth));
},
// multi
@@ -2213,19 +2996,47 @@
},
// multi
- val: function () {
- var val, data = [], self=this;
+ buildChangeDetails: function (old, current) {
+ var current = current.slice(0),
+ old = old.slice(0);
+
+ // remove intersection from each array
+ for (var i = 0; i < current.length; i++) {
+ for (var j = 0; j < old.length; j++) {
+ if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) {
+ current.splice(i, 1);
+ if(i>0){
+ i--;
+ }
+ old.splice(j, 1);
+ j--;
+ }
+ }
+ }
+
+ return {added: current, removed: old};
+ },
+
+
+ // multi
+ val: function (val, triggerChange) {
+ var oldData, self=this;
if (arguments.length === 0) {
return this.getVal();
}
- val = arguments[0];
+ oldData=this.data();
+ if (!oldData.length) oldData=[];
- if (!val) {
+ // val is an id. !val is true for [undefined,null,'',0] - 0 is legal
+ if (!val && val !== 0) {
this.opts.element.val("");
this.updateSelection([]);
this.clearSearch();
+ if (triggerChange) {
+ this.triggerChange({added: this.data(), removed: oldData});
+ }
return;
}
@@ -2233,20 +3044,23 @@
this.setVal(val);
if (this.select) {
- this.select.find(":selected").each(function () {
- data.push({id: $(this).attr("value"), text: $(this).text()});
- });
- this.updateSelection(data);
+ this.opts.initSelection(this.select, this.bind(this.updateSelection));
+ if (triggerChange) {
+ this.triggerChange(this.buildChangeDetails(oldData, this.data()));
+ }
} else {
if (this.opts.initSelection === undefined) {
- throw new Error("val() cannot be called if initSelection() is not defined")
+ throw new Error("val() cannot be called if initSelection() is not defined");
}
this.opts.initSelection(this.opts.element, function(data){
- var ids=$(data).map(self.id);
+ var ids=$.map(data, self.id);
self.setVal(ids);
self.updateSelection(data);
self.clearSearch();
+ if (triggerChange) {
+ self.triggerChange(self.buildChangeDetails(oldData, self.data()));
+ }
});
}
this.clearSearch();
@@ -2277,7 +3091,6 @@
this.resizeSearch();
// update selection
-
this.selection.find(".select2-search-choice").each(function() {
val.push(self.opts.id($(this).data("select2-data")));
});
@@ -2286,19 +3099,23 @@
},
// multi
- data: function(values) {
- var self=this, ids;
+ data: function(values, triggerChange) {
+ var self=this, ids, old;
if (arguments.length === 0) {
return this.selection
.find(".select2-search-choice")
.map(function() { return $(this).data("select2-data"); })
.get();
} else {
+ old = this.data();
if (!values) { values = []; }
- ids = $.map(values, function(e) { return self.opts.id(e)});
+ ids = $.map(values, function(e) { return self.opts.id(e); });
this.setVal(ids);
this.updateSelection(values);
this.clearSearch();
+ if (triggerChange) {
+ this.triggerChange(this.buildChangeDetails(old, this.data()));
+ }
}
}
});
@@ -2308,7 +3125,11 @@
var args = Array.prototype.slice.call(arguments, 0),
opts,
select2,
- value, multiple, allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "disable", "positionDropdown", "data"];
+ method, value, multiple,
+ allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "dropdown", "onSortStart", "onSortEnd", "enable", "disable", "readonly", "positionDropdown", "data", "search"],
+ valueMethods = ["opened", "isFocused", "container", "dropdown"],
+ propertyMethods = ["val", "data"],
+ methodsMap = { search: "externalSearch" };
this.each(function () {
if (args.length === 0 || typeof(args[0]) === "object") {
@@ -2316,7 +3137,7 @@
opts.element = $(this);
if (opts.element.get(0).tagName.toLowerCase() === "select") {
- multiple = opts.element.attr("multiple");
+ multiple = opts.element.prop("multiple");
} else {
multiple = opts.multiple || false;
if ("tags" in opts) {opts.multiple = multiple = true;}
@@ -2333,12 +3154,22 @@
value = undefined;
select2 = $(this).data("select2");
if (select2 === undefined) return;
- if (args[0] === "container") {
- value=select2.container;
+
+ method=args[0];
+
+ if (method === "container") {
+ value = select2.container;
+ } else if (method === "dropdown") {
+ value = select2.dropdown;
} else {
- value = select2[args[0]].apply(select2, args.slice(1));
+ if (methodsMap[method]) method = methodsMap[method];
+
+ value = select2[method].apply(select2, args.slice(1));
+ }
+ if (indexOf(args[0], valueMethods) >= 0
+ || (indexOf(args[0], propertyMethods) && args.length == 1)) {
+ return false; // abort the iteration, ready to return first matched value
}
- if (value !== undefined) {return false;}
} else {
throw "Invalid arguments to select2 plugin: " + args;
}
@@ -2349,43 +3180,58 @@
// plugin defaults, accessible to users
$.fn.select2.defaults = {
width: "copy",
+ loadMorePadding: 0,
closeOnSelect: true,
openOnEnter: true,
containerCss: {},
dropdownCss: {},
containerCssClass: "",
dropdownCssClass: "",
- formatResult: function(result, container, query) {
+ formatResult: function(result, container, query, escapeMarkup) {
var markup=[];
- markMatch(result.text, query.term, markup);
+ markMatch(result.text, query.term, markup, escapeMarkup);
return markup.join("");
},
- formatSelection: function (data, container) {
- return data.text;
+ formatSelection: function (data, container, escapeMarkup) {
+ return data ? escapeMarkup(data.text) : undefined;
+ },
+ sortResults: function (results, container, query) {
+ return results;
},
formatResultCssClass: function(data) {return undefined;},
+ formatSelectionCssClass: function(data, container) {return undefined;},
formatNoMatches: function () { return "No matches found"; },
- formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); },
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
formatSearching: function () { return "Searching..."; },
minimumResultsForSearch: 0,
minimumInputLength: 0,
+ maximumInputLength: null,
maximumSelectionSize: 0,
id: function (e) { return e.id; },
matcher: function(term, text) {
- return text.toUpperCase().indexOf(term.toUpperCase()) >= 0;
+ return stripDiacritics(''+text).toUpperCase().indexOf(stripDiacritics(''+term).toUpperCase()) >= 0;
},
separator: ",",
tokenSeparators: [],
tokenizer: defaultTokenizer,
- escapeMarkup: function (markup) {
- if (markup && typeof(markup) === "string") {
- return markup.replace(/&/g, "&");
- }
- return markup;
- },
- blurOnChange: false
+ escapeMarkup: defaultEscapeMarkup,
+ blurOnChange: false,
+ selectOnBlur: false,
+ adaptContainerCssClass: function(c) { return c; },
+ adaptDropdownCssClass: function(c) { return null; },
+ nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; }
+ };
+
+ $.fn.select2.ajaxDefaults = {
+ transport: $.ajax,
+ params: {
+ type: "GET",
+ cache: false,
+ dataType: "json"
+ }
};
// exports
@@ -2396,7 +3242,9 @@
tags: tags
}, util: {
debounce: debounce,
- markMatch: markMatch
+ markMatch: markMatch,
+ escapeMarkup: defaultEscapeMarkup,
+ stripDiacritics: stripDiacritics
}, "class": {
"abstract": AbstractSelect2,
"single": SingleSelect2,
diff --git a/addons/base_import/static/src/js/import.js b/addons/base_import/static/src/js/import.js
index 0c3acd98265..987f30d962d 100644
--- a/addons/base_import/static/src/js/import.js
+++ b/addons/base_import/static/src/js/import.js
@@ -482,5 +482,13 @@ openerp.base_import = function (instance) {
{ name: 'import_succeeded', from: 'importing', to: 'imported'},
{ name: 'import_failed', from: 'importing', to: 'results' }
]
- })
+ });
+
+ $.extend($.fn.select2.defaults, {
+ formatNoMatches: function () { return _t("No matches found"); },
+ formatLoadMore: function (pageNumber) { return _t("Loading more results..."); },
+ formatSearching: function () { return _t("Searching..."); }
+ });
+
};
+
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 56aa3d4dae3..bd3c6f33f4e 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -440,7 +440,7 @@ class crm_lead(base_stage, format_address, osv.osv):
for lead in self.browse(cr, uid, ids):
stage_id = self.stage_find(cr, uid, [lead], lead.section_id.id or False, [('probability', '=', 0.0),('on_change','=',True)], context=context)
if stage_id:
- self.case_set(cr, uid, [lead.id], values_to_update={'probability': 0.0}, new_stage_id=stage_id, context=context)
+ self.case_set(cr, uid, [lead.id], values_to_update={'probability': 0.0, 'date_closed': fields.datetime.now()}, new_stage_id=stage_id, context=context)
return True
def case_mark_won(self, cr, uid, ids, context=None):
@@ -448,7 +448,7 @@ class crm_lead(base_stage, format_address, osv.osv):
for lead in self.browse(cr, uid, ids):
stage_id = self.stage_find(cr, uid, [lead], lead.section_id.id or False, [('probability', '=', 100.0),('on_change','=',True)], context=context)
if stage_id:
- self.case_set(cr, uid, [lead.id], values_to_update={'probability': 100.0}, new_stage_id=stage_id, context=context)
+ self.case_set(cr, uid, [lead.id], values_to_update={'probability': 100.0, 'date_closed': fields.datetime.now()}, new_stage_id=stage_id, context=context)
return True
def set_priority(self, cr, uid, ids, priority):
@@ -926,11 +926,14 @@ class crm_lead(base_stage, format_address, osv.osv):
return res
def write(self, cr, uid, ids, vals, context=None):
- if vals.get('stage_id') and not vals.get('probability'):
- # change probability of lead(s) if required by stage
+ if vals.get('stage_id'):
stage = self.pool.get('crm.case.stage').browse(cr, uid, vals['stage_id'], context=context)
- if stage.on_change:
+ if not vals.get('probability') and stage.on_change:
+ # change probability of lead(s) if required by stage
vals['probability'] = stage.probability
+ # set closed date when won or lost
+ if not vals.get('date_closed') and (vals.get('probability', 0) >= 100 or stage.state == 'canceled'):
+ vals['date_closed'] = fields.datetime.now()
return super(crm_lead, self).write(cr, uid, ids, vals, context=context)
def copy(self, cr, uid, id, default=None, context=None):
diff --git a/addons/crm/crm_phonecall_menu.xml b/addons/crm/crm_phonecall_menu.xml
index f6f94547173..8f934a9638d 100644
--- a/addons/crm/crm_phonecall_menu.xml
+++ b/addons/crm/crm_phonecall_menu.xml
@@ -58,7 +58,7 @@
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index 4530f412e07..2d456cc053a 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -178,6 +178,7 @@
+
diff --git a/addons/crm/i18n/ja.po b/addons/crm/i18n/ja.po
index d1f2589cb21..629e5b211fc 100644
--- a/addons/crm/i18n/ja.po
+++ b/addons/crm/i18n/ja.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-01-07 16:56+0000\n"
-"PO-Revision-Date: 2014-03-04 04:18+0000\n"
+"PO-Revision-Date: 2014-03-05 21:13+0000\n"
"Last-Translator: hiro TAKADA \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-03-04 08:26+0000\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:14+0000\n"
"X-Generator: Launchpad (build 16948)\n"
#. module: crm
@@ -1594,6 +1594,8 @@ msgid ""
"stage. For example, if a stage is related to the status 'Close', when your "
"document reaches this stage, it is automatically closed."
msgstr ""
+"選択されたステージに関する文書のステータスは自動で変更されます。例えば、ステージが「閉じる」に関連する場合、このステージに到達すると文書は自動で閉じられま"
+"す。"
#. module: crm
#: view:crm.lead2opportunity.partner.mass:0
diff --git a/addons/crm/i18n/pt_BR.po b/addons/crm/i18n/pt_BR.po
index 01a6689fd47..9d34f76b90d 100644
--- a/addons/crm/i18n/pt_BR.po
+++ b/addons/crm/i18n/pt_BR.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-01-07 16:56+0000\n"
-"PO-Revision-Date: 2013-07-18 19:53+0000\n"
-"Last-Translator: Claudio de Araujo Santos \n"
+"PO-Revision-Date: 2014-03-07 00:11+0000\n"
+"Last-Translator: Cloves Almeida \n"
"Language-Team: Brazilian Portuguese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-01-08 05:39+0000\n"
-"X-Generator: Launchpad (build 16877)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: crm
#: view:crm.lead.report:0
@@ -737,7 +737,7 @@ msgstr "Segmentação de Parceiros"
#: code:addons/crm/crm_lead.py:1064
#, python-format
msgid "Logged a call for %(date)s. %(description)s"
-msgstr ""
+msgstr "Registrada uma ligação em %(date)s. %(description)s"
#. module: crm
#: field:crm.lead,company_currency:0
@@ -3132,7 +3132,7 @@ msgstr "Indicado por"
#: code:addons/crm/crm_lead.py:1066
#, python-format
msgid "Scheduled a call for %(date)s. %(description)s"
-msgstr ""
+msgstr "Agendada uma ligação para %(date)s. %(description)s"
#. module: crm
#: field:crm.case.section,working_hours:0
diff --git a/addons/delivery/i18n/it.po b/addons/delivery/i18n/it.po
index 9f3b1e5dd10..8a37565a0d2 100644
--- a/addons/delivery/i18n/it.po
+++ b/addons/delivery/i18n/it.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-01-03 22:45+0000\n"
-"Last-Translator: Sergio Corato \n"
+"PO-Revision-Date: 2014-03-07 13:39+0000\n"
+"Last-Translator: Leonardo Donelli \n"
"Language-Team: Italian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:07+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-08 06:53+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: delivery
#: report:sale.shipping:0
@@ -576,7 +576,7 @@ msgstr "Prezzo di Vendita"
#. module: delivery
#: view:stock.picking.out:0
msgid "Print Delivery Order"
-msgstr "Stampa ordine consegna"
+msgstr "Stampa Ordine di Consegna"
#. module: delivery
#: view:delivery.grid:0
diff --git a/addons/event/report/report_event_registration.py b/addons/event/report/report_event_registration.py
index 481b86f032c..595d3947687 100644
--- a/addons/event/report/report_event_registration.py
+++ b/addons/event/report/report_event_registration.py
@@ -58,7 +58,7 @@ class report_event_registration(osv.osv):
# TOFIX this request won't select events that have no registration
cr.execute(""" CREATE VIEW report_event_registration AS (
SELECT
- e.id::char || '/' || coalesce(r.id::char,'') AS id,
+ e.id::varchar || '/' || coalesce(r.id::varchar,'') AS id,
e.id AS event_id,
e.user_id AS user_id,
r.user_id AS user_id_registration,
diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py
index 380b5e85696..f2f12b06b23 100644
--- a/addons/hr_expense/hr_expense.py
+++ b/addons/hr_expense/hr_expense.py
@@ -261,6 +261,10 @@ class hr_expense_expense(osv.osv):
#convert eml into an osv-valid format
lines = map(lambda x:(0,0,self.line_get_convert(cr, uid, x, exp.employee_id.address_home_id, exp.date_confirm, context=context)), eml)
+ journal_id = move_obj.browse(cr, uid, move_id, context).journal_id
+ # post the journal entry if 'Skip 'Draft' State for Manual Entries' is checked
+ if journal_id.entry_posted:
+ move_obj.button_validate(cr, uid, [move_id], context)
move_obj.write(cr, uid, [move_id], {'line_id': lines}, context=context)
self.write(cr, uid, ids, {'account_move_id': move_id, 'state': 'done'}, context=context)
return True
diff --git a/addons/hr_expense/i18n/ja.po b/addons/hr_expense/i18n/ja.po
index 24a4e57e639..bc4c901bf7c 100644
--- a/addons/hr_expense/i18n/ja.po
+++ b/addons/hr_expense/i18n/ja.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2014-02-21 02:49+0000\n"
+"PO-Revision-Date: 2014-03-08 05:28+0000\n"
"Last-Translator: Yoshi Tashiro \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-22 07:32+0000\n"
-"X-Generator: Launchpad (build 16926)\n"
+"X-Launchpad-Export-Date: 2014-03-09 06:02+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: hr_expense
#: view:hr.expense.expense:0
@@ -544,7 +544,7 @@ msgstr "草案"
#. module: hr_expense
#: selection:hr.expense.expense,state:0
msgid "Paid"
-msgstr ""
+msgstr "支払済"
#. module: hr_expense
#: code:addons/hr_expense/hr_expense.py:353
@@ -676,7 +676,7 @@ msgstr "交通費"
#. module: hr_expense
#: view:hr.expense.expense:0
msgid "Submit to Manager"
-msgstr "上長に申請"
+msgstr "マネジャーに申請"
#. module: hr_expense
#: view:hr.expense.report:0
diff --git a/addons/hr_payroll_account/hr_payroll_account.py b/addons/hr_payroll_account/hr_payroll_account.py
index 43f984fadd2..9e892682e96 100644
--- a/addons/hr_payroll_account/hr_payroll_account.py
+++ b/addons/hr_payroll_account/hr_payroll_account.py
@@ -24,7 +24,7 @@ from openerp import netsvc
from datetime import date, datetime, timedelta
from openerp.osv import fields, osv
-from openerp.tools import config
+from openerp.tools import config, float_compare
from openerp.tools.translate import _
class hr_payslip(osv.osv):
@@ -87,6 +87,7 @@ class hr_payslip(osv.osv):
def process_sheet(self, cr, uid, ids, context=None):
move_pool = self.pool.get('account.move')
period_pool = self.pool.get('account.period')
+ precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Payroll')
timenow = time.strftime('%Y-%m-%d')
for slip in self.browse(cr, uid, ids, context=context):
@@ -151,7 +152,7 @@ class hr_payslip(osv.osv):
line_ids.append(credit_line)
credit_sum += credit_line[2]['credit'] - credit_line[2]['debit']
- if debit_sum > credit_sum:
+ if float_compare(credit_sum, debit_sum, precision_digits=precision) == -1:
acc_id = slip.journal_id.default_credit_account_id.id
if not acc_id:
raise osv.except_osv(_('Configuration Error!'),_('The Expense Journal "%s" has not properly configured the Credit Account!')%(slip.journal_id.name))
@@ -167,7 +168,7 @@ class hr_payslip(osv.osv):
})
line_ids.append(adjust_credit)
- elif debit_sum < credit_sum:
+ elif float_compare(debit_sum, credit_sum, precision_digits=precision) == -1:
acc_id = slip.journal_id.default_debit_account_id.id
if not acc_id:
raise osv.except_osv(_('Configuration Error!'),_('The Expense Journal "%s" has not properly configured the Debit Account!')%(slip.journal_id.name))
diff --git a/addons/hr_timesheet/i18n/ja.po b/addons/hr_timesheet/i18n/ja.po
index 0fc180a0a83..8ce12c31d8a 100644
--- a/addons/hr_timesheet/i18n/ja.po
+++ b/addons/hr_timesheet/i18n/ja.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2014-02-21 02:40+0000\n"
+"PO-Revision-Date: 2014-03-08 06:18+0000\n"
"Last-Translator: Yoshi Tashiro \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-22 07:32+0000\n"
-"X-Generator: Launchpad (build 16926)\n"
+"X-Launchpad-Export-Date: 2014-03-09 06:02+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: hr_timesheet
#: model:ir.actions.act_window,help:hr_timesheet.act_analytic_cost_revenue
@@ -53,7 +53,7 @@ msgstr "水曜日"
#. module: hr_timesheet
#: view:hr.sign.out.project:0
msgid "(Keep empty for current_time)"
-msgstr "(現在、空白)"
+msgstr "(現在時刻を適用する場合は空白)"
#. module: hr_timesheet
#: view:hr.analytic.timesheet:0
@@ -133,7 +133,7 @@ msgstr "タイムシート活動明細"
#. module: hr_timesheet
#: field:hr.sign.out.project,analytic_amount:0
msgid "Minimum Analytic Amount"
-msgstr "最小分析アカウント"
+msgstr "最小分析数(時/日)"
#. module: hr_timesheet
#: view:hr.analytical.timesheet.employee:0
@@ -143,7 +143,7 @@ msgstr "月間従業員作業表"
#. module: hr_timesheet
#: view:hr.sign.out.project:0
msgid "Work done in the last period"
-msgstr "前期の完了作業"
+msgstr "今回行った作業"
#. module: hr_timesheet
#: field:hr.sign.in.project,name:0
@@ -341,7 +341,7 @@ msgstr "月"
#. module: hr_timesheet
#: field:hr.sign.out.project,info:0
msgid "Work Description"
-msgstr "作業記述"
+msgstr "作業内容"
#. module: hr_timesheet
#: view:hr.analytical.timesheet.employee:0
@@ -349,7 +349,7 @@ msgstr "作業記述"
#: view:hr.sign.in.project:0
#: view:hr.sign.out.project:0
msgid "or"
-msgstr "or"
+msgstr "または"
#. module: hr_timesheet
#: xsl:hr.analytical.timesheet:0
@@ -365,7 +365,7 @@ msgstr "従業員勤務表"
#: model:ir.actions.act_window,name:hr_timesheet.action_hr_timesheet_sign_in
#: model:ir.actions.act_window,name:hr_timesheet.action_hr_timesheet_sign_out
msgid "Sign in / Sign out by project"
-msgstr "プロジェクトごとのサインイン / サインアウト"
+msgstr "プロジェクト勤怠"
#. module: hr_timesheet
#: model:ir.actions.act_window,name:hr_timesheet.action_define_analytic_structure
@@ -452,7 +452,7 @@ msgstr "11月"
#. module: hr_timesheet
#: field:hr.sign.out.project,date:0
msgid "Closing Date"
-msgstr "締切日"
+msgstr "終了日"
#. module: hr_timesheet
#: code:addons/hr_timesheet/report/user_timesheet.py:41
@@ -640,7 +640,7 @@ msgstr "4月"
#: code:addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py:132
#, python-format
msgid "User Error!"
-msgstr ""
+msgstr "ユーザエラー"
#. module: hr_timesheet
#: view:hr.sign.in.project:0
@@ -672,4 +672,4 @@ msgstr ""
#. module: hr_timesheet
#: view:hr.sign.out.project:0
msgid "Change Work"
-msgstr "作業の変更"
+msgstr "作業更新"
diff --git a/addons/hr_timesheet_sheet/i18n/ja.po b/addons/hr_timesheet_sheet/i18n/ja.po
index 6cec2e72791..63b339f0897 100644
--- a/addons/hr_timesheet_sheet/i18n/ja.po
+++ b/addons/hr_timesheet_sheet/i18n/ja.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-11-27 23:31+0000\n"
-"Last-Translator: Yoshi Tashiro \n"
+"PO-Revision-Date: 2014-03-08 05:25+0000\n"
+"Last-Translator: Yoshi Tashiro \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-28 06:06+0000\n"
-"X-Generator: Launchpad (build 16847)\n"
+"X-Launchpad-Export-Date: 2014-03-09 06:03+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: hr_timesheet_sheet
#: field:hr.analytic.timesheet,sheet_id:0
@@ -771,7 +771,7 @@ msgstr ""
#. module: hr_timesheet_sheet
#: view:hr_timesheet_sheet.sheet:0
msgid "Submit to Manager"
-msgstr ""
+msgstr "マネジャーに申請"
#. module: hr_timesheet_sheet
#: view:hr.timesheet.report:0
diff --git a/addons/l10n_multilang/l10n_multilang.py b/addons/l10n_multilang/l10n_multilang.py
index 18d8b0ebb6c..f431f5e26cb 100644
--- a/addons/l10n_multilang/l10n_multilang.py
+++ b/addons/l10n_multilang/l10n_multilang.py
@@ -137,7 +137,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
def _process_taxes_translations(self, cr, uid, obj_multi, company_id, langs, field, context=None):
obj_tax_template = self.pool.get('account.tax.template')
obj_tax = self.pool.get('account.tax')
- in_ids = sorted([x.id for x in obj_multi.chart_template_id.tax_template_ids])
+ in_ids = [x.id for x in obj_multi.chart_template_id.tax_template_ids]
out_ids = obj_tax.search(cr, uid, [('company_id', '=', company_id)], order='id')
return self.process_translations(cr, uid, langs, obj_tax_template, field, in_ids, obj_tax, out_ids, context=context)
diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py
index f5b8896ea86..0079177a27a 100644
--- a/addons/mail/wizard/invite.py
+++ b/addons/mail/wizard/invite.py
@@ -73,7 +73,7 @@ class invite_wizard(osv.osv_memory):
mail_id = mail_mail.create(cr, uid, {
'model': wizard.res_model,
'res_id': wizard.res_id,
- 'subject': 'Invitation to follow %s' % document.name_get()[0][1],
+ 'subject': _('Invitation to follow %s') % document.name_get()[0][1],
'body_html': '%s' % wizard.message,
'auto_delete': True,
}, context=context)
diff --git a/addons/membership/membership_demo.xml b/addons/membership/membership_demo.xml
index 49863bb1f4c..8d82f12ffd6 100644
--- a/addons/membership/membership_demo.xml
+++ b/addons/membership/membership_demo.xml
@@ -6,7 +6,7 @@
True
-
+
Golden Membership
180
@@ -16,7 +16,7 @@
True
-
+
Silver Membership
80
@@ -26,7 +26,7 @@
True
-
+
Basic Membership
40
diff --git a/addons/mrp/i18n/ja.po b/addons/mrp/i18n/ja.po
index 41415cdab83..0cd252364bf 100644
--- a/addons/mrp/i18n/ja.po
+++ b/addons/mrp/i18n/ja.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2014-02-18 07:45+0000\n"
-"Last-Translator: Yoshi Tashiro \n"
+"PO-Revision-Date: 2014-03-07 05:43+0000\n"
+"Last-Translator: Yoshi Tashiro \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-19 05:40+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-08 06:54+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: mrp
#: help:mrp.config.settings,module_mrp_repair:0
@@ -672,7 +672,7 @@ msgstr "この製品のための部品表が定義されていません。"
#: model:ir.actions.act_window,name:mrp.mrp_bom_form_action2
#: model:ir.ui.menu,name:mrp.menu_mrp_bom_form_action2
msgid "Bill of Material Components"
-msgstr "構成部品の部品表"
+msgstr "部品表構成品"
#. module: mrp
#: model:ir.model,name:mrp.model_stock_move
@@ -1961,7 +1961,7 @@ msgstr "集荷の再作成"
#. module: mrp
#: selection:mrp.bom,method:0
msgid "On Order"
-msgstr "注文中"
+msgstr "オーダ"
#. module: mrp
#: model:ir.ui.menu,name:mrp.menu_mrp_configuration
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py
index dfe45e927bc..2b5d68177f1 100644
--- a/addons/mrp/mrp.py
+++ b/addons/mrp/mrp.py
@@ -30,6 +30,7 @@ from openerp.tools.translate import _
from openerp import netsvc
from openerp import tools
from openerp import SUPERUSER_ID
+from openerp.addons.product import _common
#----------------------------------------------------------
# Work Centers
@@ -324,7 +325,7 @@ class mrp_bom(osv.osv):
"""
routing_obj = self.pool.get('mrp.routing')
factor = factor / (bom.product_efficiency or 1.0)
- factor = rounding(factor, bom.product_rounding)
+ factor = _common.ceiling(factor, bom.product_rounding)
if factor < bom.product_rounding:
factor = bom.product_rounding
result = []
@@ -380,6 +381,8 @@ class mrp_bom(osv.osv):
def rounding(f, r):
+ # TODO for trunk: log deprecation warning
+ # _logger.warning("Deprecated rounding method, please use tools.float_round to round floats.")
import math
if not r:
return f
diff --git a/addons/mrp_repair/__openerp__.py b/addons/mrp_repair/__openerp__.py
index 26480e975ce..6f324c43f7a 100644
--- a/addons/mrp_repair/__openerp__.py
+++ b/addons/mrp_repair/__openerp__.py
@@ -56,7 +56,8 @@ The following topics should be covered by this module:
'test/test_mrp_repair_b4inv.yml',
'test/test_mrp_repair_afterinv.yml',
'test/test_mrp_repair_cancel.yml',
- 'test/mrp_repair_report.yml'
+ 'test/mrp_repair_report.yml',
+ 'test/test_mrp_repair_fee.yml',
],
'installable': True,
'auto_install': False,
diff --git a/addons/mrp_repair/i18n/fr.po b/addons/mrp_repair/i18n/fr.po
index 09cc624f7ed..6f6ba33f837 100644
--- a/addons/mrp_repair/i18n/fr.po
+++ b/addons/mrp_repair/i18n/fr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:37+0000\n"
-"PO-Revision-Date: 2013-10-23 08:18+0000\n"
-"Last-Translator: Florian Hatat \n"
+"PO-Revision-Date: 2014-03-07 18:04+0000\n"
+"Last-Translator: Lionel Sausin - Numérigraphe \n"
"Language-Team: French \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:22+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-08 06:54+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: mrp_repair
#: field:mrp.repair.line,move_id:0
@@ -377,7 +377,7 @@ msgstr ""
#. module: mrp_repair
#: field:mrp.repair,pricelist_id:0
msgid "Pricelist"
-msgstr "Liste de Prix"
+msgstr "Liste de prix"
#. module: mrp_repair
#: field:mrp.repair,quotation_notes:0
diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py
index 9c0ab0e2c18..4dbc6ac89de 100644
--- a/addons/mrp_repair/mrp_repair.py
+++ b/addons/mrp_repair/mrp_repair.py
@@ -109,10 +109,12 @@ class mrp_repair(osv.osv):
return res
def _get_lines(self, cr, uid, ids, context=None):
- result = {}
- for line in self.pool.get('mrp.repair.line').browse(cr, uid, ids, context=context):
- result[line.repair_id.id] = True
- return result.keys()
+ return self.pool['mrp.repair'].search(
+ cr, uid, [('operations', 'in', ids)], context=context)
+
+ def _get_fee_lines(self, cr, uid, ids, context=None):
+ return self.pool['mrp.repair'].search(
+ cr, uid, [('fees_lines', 'in', ids)], context=context)
_columns = {
'name': fields.char('Repair Reference',size=24, required=True, states={'confirmed':[('readonly',True)]}),
@@ -161,18 +163,21 @@ class mrp_repair(osv.osv):
'repaired': fields.boolean('Repaired', readonly=True),
'amount_untaxed': fields.function(_amount_untaxed, string='Untaxed Amount',
store={
- 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations'], 10),
+ 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations', 'fees_lines'], 10),
'mrp.repair.line': (_get_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
+ 'mrp.repair.fee': (_get_fee_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
}),
'amount_tax': fields.function(_amount_tax, string='Taxes',
store={
- 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations'], 10),
+ 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations', 'fees_lines'], 10),
'mrp.repair.line': (_get_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
+ 'mrp.repair.fee': (_get_fee_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
}),
'amount_total': fields.function(_amount_total, string='Total',
store={
- 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations'], 10),
+ 'mrp.repair': (lambda self, cr, uid, ids, c={}: ids, ['operations', 'fees_lines'], 10),
'mrp.repair.line': (_get_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
+ 'mrp.repair.fee': (_get_fee_lines, ['price_unit', 'price_subtotal', 'product_id', 'tax_id', 'product_uom_qty', 'product_uom'], 10),
}),
}
diff --git a/addons/mrp_repair/test/test_mrp_repair_fee.yml b/addons/mrp_repair/test/test_mrp_repair_fee.yml
new file mode 100644
index 00000000000..6aac605d0d9
--- /dev/null
+++ b/addons/mrp_repair/test/test_mrp_repair_fee.yml
@@ -0,0 +1,23 @@
+-
+ Testing total amount update function
+-
+ I check the total amount of mrp_repair_rmrp1 is 100
+-
+ !assert {model: mrp.repair, id: mrp_repair_rmrp1, string=amount_total should be 100}:
+ - amount_total == 100
+-
+ I add a new fee line
+-
+ !record {model: mrp.repair, id: mrp_repair_rmrp1}:
+ fees_lines:
+ - name: 'Assembly Service Cost'
+ product_id: product.product_assembly
+ product_uom_qty: 1.0
+ product_uom: product.product_uom_hour
+ price_unit: 12.0
+ to_invoice: True
+-
+ I check the total amount of mrp_repair_rmrp1 is now 112
+-
+ !assert {model: mrp.repair, id: mrp_repair_rmrp1, string=amount_total should be 112}:
+ - amount_total == 112
diff --git a/addons/portal/mail_message.py b/addons/portal/mail_message.py
index 211cf74a88f..3929908fe77 100644
--- a/addons/portal/mail_message.py
+++ b/addons/portal/mail_message.py
@@ -35,14 +35,14 @@ class mail_message(osv.Model):
"""
if uid == SUPERUSER_ID:
return super(mail_message, self)._search(cr, uid, args, offset=offset, limit=limit, order=order,
- context=context, count=False, access_rights_uid=access_rights_uid)
+ context=context, count=count, access_rights_uid=access_rights_uid)
group_ids = self.pool.get('res.users').browse(cr, uid, uid, context=context).groups_id
group_user_id = self.pool.get("ir.model.data").get_object_reference(cr, uid, 'base', 'group_user')[1]
if group_user_id not in [group.id for group in group_ids]:
args = ['&', '|', ('type', '!=', 'comment'), ('subtype_id', '!=', False)] + list(args)
return super(mail_message, self)._search(cr, uid, args, offset=offset, limit=limit, order=order,
- context=context, count=False, access_rights_uid=access_rights_uid)
+ context=context, count=count, access_rights_uid=access_rights_uid)
def check_access_rule(self, cr, uid, ids, operation, context=None):
""" Add Access rules of mail.message for non-employee user:
diff --git a/addons/product/__openerp__.py b/addons/product/__openerp__.py
index fdadda2e4d4..d81a352087e 100644
--- a/addons/product/__openerp__.py
+++ b/addons/product/__openerp__.py
@@ -61,7 +61,6 @@ Print product labels with barcode.
],
'test': [
'product_pricelist_demo.yml',
- 'test/product_uom.yml',
'test/product_pricelist.yml',
],
'installable': True,
diff --git a/addons/product/_common.py b/addons/product/_common.py
index f5f53fe8689..c05dcee66a2 100644
--- a/addons/product/_common.py
+++ b/addons/product/_common.py
@@ -18,12 +18,18 @@
# along with this program. If not, see .
#
##############################################################################
+from openerp import tools
+
+import math
+
+
def rounding(f, r):
+ # TODO for trunk: log deprecation warning
+ # _logger.warning("Deprecated rounding method, please use tools.float_round to round floats.")
+ return tools.float_round(f, precision_rounding=r)
+
+# TODO for trunk: add rounding method parameter to tools.float_round and use this method as hook
+def ceiling(f, r):
if not r:
return f
- return round(f / r) * r
-
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
+ return math.ceil(f / r) * r
diff --git a/addons/product/i18n/hr.po b/addons/product/i18n/hr.po
index 460262c9a91..bef6ae8b744 100644
--- a/addons/product/i18n/hr.po
+++ b/addons/product/i18n/hr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:37+0000\n"
-"PO-Revision-Date: 2014-02-20 11:43+0000\n"
-"Last-Translator: Mihael Murkovic \n"
+"PO-Revision-Date: 2014-03-05 10:27+0000\n"
+"Last-Translator: Marko Carevic \n"
"Language-Team: Croatian
\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-21 06:38+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:14+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: product
#: field:product.packaging,rows:0
@@ -735,7 +735,7 @@ msgstr ""
#. module: product
#: field:product.product,qty_available:0
msgid "Quantity On Hand"
-msgstr "Količina na raspolaganju"
+msgstr "Fizička zaliha"
#. module: product
#: field:product.price.type,name:0
diff --git a/addons/product/i18n/it.po b/addons/product/i18n/it.po
index fbcbc122148..b834e3abbfc 100644
--- a/addons/product/i18n/it.po
+++ b/addons/product/i18n/it.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:37+0000\n"
-"PO-Revision-Date: 2012-12-22 14:43+0000\n"
-"Last-Translator: Davide Corio \n"
+"PO-Revision-Date: 2014-03-06 10:33+0000\n"
+"Last-Translator: Leonardo Donelli \n"
"Language-Team: Italian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:26+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: product
#: field:product.packaging,rows:0
@@ -700,9 +700,9 @@ msgid ""
"not overlaps with original version. You should change the dates and "
"reactivate the pricelist"
msgstr ""
-"Quando una versione è dupplicata, impostare non attivo, in modo che i dati "
-"non sovrascrivano la versione originale. Cambiare le date e riattivare il "
-"Listino"
+"Quando una versione è duplicata viene impostato non attivo, in modo che i "
+"dati non sovrascrivano la versione originale. Cambiare le date e riattivare "
+"il Listino."
#. module: product
#: model:product.template,name:product.product_product_18_product_template
@@ -1105,7 +1105,7 @@ msgid ""
"Product Unit of Measure if not empty, in the default unit of measure of the "
"product otherwise."
msgstr ""
-"La quantità minima per gli acquisti da questo fornitore, expressa nell'unità "
+"La quantità minima per gli acquisti da questo fornitore, espressa nell'unità "
"di misura del fornitore se specificata, altrimenti nell'unità di misura di "
"default del prodotto."
@@ -1737,7 +1737,7 @@ msgid ""
"The minimal quantity to trigger this rule, expressed in the supplier Unit of "
"Measure if any or in the default Unit of Measure of the product otherrwise."
msgstr ""
-"La quatità minima per attivare questa regola, espressa nell'unità di misura "
+"La quantità minima per attivare questa regola, espressa nell'unità di misura "
"del fornitore se valorizzata o altrimenti nell'unità di misura di default "
"del prodotto."
diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py
index 426931f9a27..d4ed2567afc 100644
--- a/addons/product/pricelist.py
+++ b/addons/product/pricelist.py
@@ -21,8 +21,7 @@
import time
-from _common import rounding
-
+from openerp import tools
from openerp.osv import fields, osv
from openerp.tools.translate import _
@@ -296,7 +295,8 @@ class product_pricelist(osv.osv):
if price is not False:
price_limit = price
price = price * (1.0+(res['price_discount'] or 0.0))
- price = rounding(price, res['price_round']) #TOFIX: rounding with tools.float_rouding
+ if res['price_round']:
+ price = tools.float_round(price, precision_rounding=res['price_round'])
price += (res['price_surcharge'] or 0.0)
if res['price_min_margin']:
price = max(price, price_limit+res['price_min_margin'])
diff --git a/addons/product/product.py b/addons/product/product.py
index d9419fc4d68..34503b5136e 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -22,7 +22,7 @@
import math
import re
-from _common import rounding
+from _common import ceiling
from openerp import tools
from openerp.osv import osv, fields
@@ -178,7 +178,7 @@ class product_uom(osv.osv):
return qty
amount = qty / from_unit.factor
if to_unit:
- amount = rounding(amount * to_unit.factor, to_unit.rounding)
+ amount = ceiling(amount * to_unit.factor, to_unit.rounding)
return amount
def _compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False):
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index d20f91b217f..a33678e6a32 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -182,7 +182,6 @@
-
diff --git a/addons/product/test/product_uom.yml b/addons/product/test/product_uom.yml
deleted file mode 100644
index 04928d43d87..00000000000
--- a/addons/product/test/product_uom.yml
+++ /dev/null
@@ -1,15 +0,0 @@
--
- In order to test conversation of UOM,
--
- I convert Grams into TON with price.
--
- !python {model: product.uom}: |
- from_uom_id = ref("product_uom_gram")
- to_uom_id = ref("product_uom_ton")
- price = 2
- qty = 1020000
- price = self._compute_price(cr, uid, from_uom_id, price, to_uom_id)
- qty = self._compute_qty(cr, uid, from_uom_id, qty, to_uom_id)
- assert qty == 1.02, "Qty is not correspond."
- assert price == 2000000.0, "Price is not correspond."
-
diff --git a/addons/product/tests/__init__.py b/addons/product/tests/__init__.py
new file mode 100644
index 00000000000..850189ac0f4
--- /dev/null
+++ b/addons/product/tests/__init__.py
@@ -0,0 +1,5 @@
+from . import test_uom
+
+fast_suite = [
+ test_uom,
+]
diff --git a/addons/product/tests/test_uom.py b/addons/product/tests/test_uom.py
new file mode 100644
index 00000000000..3d3ba04b689
--- /dev/null
+++ b/addons/product/tests/test_uom.py
@@ -0,0 +1,37 @@
+from openerp.tests.common import TransactionCase
+
+class TestUom(TransactionCase):
+ """Tests for unit of measure conversion"""
+
+ def setUp(self):
+ super(TestUom, self).setUp()
+ self.product = self.registry('product.product')
+ self.uom = self.registry('product.uom')
+ self.imd = self.registry('ir.model.data')
+
+ def test_10_conversion(self):
+ cr, uid = self.cr, self.uid
+ gram_id = self.imd.get_object_reference(cr, uid, 'product', 'product_uom_gram')[1]
+ tonne_id = self.imd.get_object_reference(cr, uid, 'product', 'product_uom_ton')[1]
+
+ qty = self.uom._compute_qty(cr, uid, gram_id, 1020000, tonne_id)
+ self.assertEquals(qty, 1.02, "Converted quantity does not correspond.")
+
+ price = self.uom._compute_price(cr, uid, gram_id, 2, tonne_id)
+ self.assertEquals(price, 2000000.0, "Converted price does not correspond.")
+
+ def test_20_rounding(self):
+ cr, uid = self.cr, self.uid
+ unit_id = self.imd.get_object_reference(cr, uid, 'product', 'product_uom_unit')[1]
+ categ_unit_id = self.imd.get_object_reference(cr, uid, 'product', 'product_uom_categ_unit')[1]
+
+ score_id = self.uom.create(cr, uid, {
+ 'name': 'Score',
+ 'factor_inv': 20,
+ 'uom_type': 'bigger',
+ 'rounding': 1.0,
+ 'category_id': categ_unit_id
+ })
+
+ qty = self.uom._compute_qty(cr, uid, unit_id, 2, score_id)
+ self.assertEquals(qty, 1, "Converted quantity should be rounded up.")
diff --git a/addons/product_margin/product_margin.py b/addons/product_margin/product_margin.py
index f9187647f35..fe6f133b3e2 100644
--- a/addons/product_margin/product_margin.py
+++ b/addons/product_margin/product_margin.py
@@ -53,9 +53,9 @@ class product_product(osv.osv):
states = ('draft', 'open', 'paid')
sqlstr="""select
- sum(l.price_unit * l.quantity)/sum(l.quantity) as avg_unit_price,
+ sum(l.price_unit * l.quantity)/sum(nullif(l.quantity,0)) as avg_unit_price,
sum(l.quantity) as num_qty,
- sum(l.quantity * (l.price_subtotal/l.quantity)) as total,
+ sum(l.quantity * (l.price_subtotal/(nullif(l.quantity,0)))) as total,
sum(l.quantity * pt.list_price) as sale_expected,
sum(l.quantity * pt.standard_price) as normal_cost
from account_invoice_line l
diff --git a/addons/project/i18n/tr.po b/addons/project/i18n/tr.po
index b870b882b68..4bd194950a8 100644
--- a/addons/project/i18n/tr.po
+++ b/addons/project/i18n/tr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-11-28 21:53+0000\n"
+"PO-Revision-Date: 2014-03-06 09:20+0000\n"
"Last-Translator: Ediz Duman \n"
"Language-Team: Turkish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-29 05:30+0000\n"
-"X-Generator: Launchpad (build 16847)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: project
#: view:project.project:0
@@ -46,12 +46,12 @@ msgstr "Yetkiye göre görev"
#. module: project
#: view:project.project:0
msgid "Parent"
-msgstr "Ana"
+msgstr "Üst"
#. module: project
#: model:ir.actions.act_window,name:project.dblc_proj
msgid "Project's tasks"
-msgstr "Projedeki görevler"
+msgstr "Proje görevleri"
#. module: project
#: field:project.task.type,name:0
@@ -77,7 +77,7 @@ msgstr "Gün"
#. module: project
#: model:project.task.type,name:project.project_tt_merge
msgid "Merge"
-msgstr "Birleştir"
+msgstr "Birleştirme"
#. module: project
#: view:res.partner:0
@@ -114,7 +114,7 @@ msgstr "Yanlış"
#. module: project
#: model:project.task.type,name:project.project_tt_testing
msgid "Testing"
-msgstr "Deneniyor"
+msgstr "Test"
#. module: project
#: model:ir.model,name:project.model_account_analytic_account
@@ -146,12 +146,12 @@ msgstr "Uyarı!"
#. module: project
#: model:ir.model,name:project.model_res_partner
msgid "Partner"
-msgstr "Partner"
+msgstr "İş Ortağı"
#. module: project
#: field:project.config.settings,group_manage_delegation_task:0
msgid "Allow task delegation"
-msgstr "Görev delegasyonu izinverme"
+msgstr "Görev delegasyonu izin verme"
#. module: project
#: field:project.task.delegate,planned_hours:0
@@ -277,7 +277,7 @@ msgstr "Proje Yönetimi"
#: model:ir.actions.act_window,name:project.action_project_task_delegate
#: view:project.task.delegate:0
msgid "Project Task Delegate"
-msgstr "Prtoje Görevi Yetkilndirme"
+msgstr "Proje Görevi Yetkilndirme"
#. module: project
#: model:mail.message.subtype,name:project.mt_project_task_started
@@ -398,7 +398,7 @@ msgstr ""
#: view:project.task:0
#: view:project.task.history.cumulative:0
msgid "In Progress Tasks"
-msgstr "DevamEden Görevler"
+msgstr "Devam Eden Görevler"
#. module: project
#: help:res.company,project_time_mode_id:0
@@ -438,7 +438,7 @@ msgstr "Proje Yöneticisi"
#: selection:project.task.type,state:0
#: selection:report.project.task.user,state:0
msgid "In Progress"
-msgstr "DevamEden"
+msgstr "Devam Eden"
#. module: project
#: view:project.task:0
@@ -479,7 +479,7 @@ msgstr "Mesai saatlerinizi giriniz."
#. module: project
#: field:project.project,alias_id:0
msgid "Alias"
-msgstr "TakmaAd"
+msgstr "Rumuz"
#. module: project
#: view:project.task:0
@@ -651,7 +651,7 @@ msgstr "Şablon Görev Değil"
#. module: project
#: field:project.task,planned_hours:0
msgid "Initially Planned Hours"
-msgstr "Başlangıçta Planlanan Saat"
+msgstr "İlk Planlanan Saatler"
#. module: project
#: model:process.transition,note:project.process_transition_delegate0
@@ -708,7 +708,7 @@ msgstr "Planlama"
#: field:project.task,date_deadline:0
#: field:report.project.task.user,date_deadline:0
msgid "Deadline"
-msgstr "ZamanSınırı"
+msgstr "Zaman Sınırı"
#. module: project
#: view:project.task.history.cumulative:0
@@ -736,7 +736,7 @@ msgstr "Son Tarih"
#. module: project
#: model:project.task.type,name:project.project_tt_specification
msgid "Specification"
-msgstr "Özellikler"
+msgstr "Tanımlama"
#. module: project
#: model:process.transition,note:project.process_transition_draftopentask0
@@ -757,7 +757,7 @@ msgstr "Yeni Görev Tanımı"
#. module: project
#: field:report.project.task.user,delay_endings_days:0
msgid "Overpassed Deadline"
-msgstr "ZamanSınırını Aşan"
+msgstr "Zaman Sınırını Aşan"
#. module: project
#: view:report.project.task.user:0
@@ -827,7 +827,7 @@ msgstr "Sil"
#. module: project
#: view:report.project.task.user:0
msgid "In progress"
-msgstr "DevamEden"
+msgstr "Devam Eden"
#. module: project
#: selection:report.project.task.user,month:0
@@ -896,7 +896,7 @@ msgstr "Bir İzleyicidir"
#. module: project
#: field:project.task,work_ids:0
msgid "Work done"
-msgstr "Biten iş"
+msgstr "Biten çalışma"
#. module: project
#: view:report.project.task.user:0
@@ -1114,7 +1114,7 @@ msgstr "Onay Durumu"
#. module: project
#: field:project.task.work,name:0
msgid "Work summary"
-msgstr "İş Özeti"
+msgstr "Çalışma Özeti"
#. module: project
#: view:project.project:0
@@ -1427,7 +1427,7 @@ msgstr "Düşük"
#. module: project
#: selection:project.project,state:0
msgid "Closed"
-msgstr "Kapandı"
+msgstr "Kapanan"
#. module: project
#: view:project.project:0
@@ -1523,7 +1523,7 @@ msgstr ""
#: code:addons/project/project.py:230
#, python-format
msgid "Attachments"
-msgstr "Ekkler"
+msgstr "Ekler"
#. module: project
#: view:project.category:0
@@ -1545,7 +1545,7 @@ msgstr ""
#: model:process.transition.action,name:project.process_transition_action_draftopentask0
#: view:project.project:0
msgid "Open"
-msgstr "Aç"
+msgstr "Açık"
#. module: project
#: field:project.project,privacy_visibility:0
@@ -1700,7 +1700,7 @@ msgstr ""
#. module: project
#: view:project.task:0
msgid "Deadlines"
-msgstr "ZamanSınırı"
+msgstr "Zaman Sınırı"
#. module: project
#: code:addons/project/wizard/project_task_delegate.py:69
@@ -2029,7 +2029,7 @@ msgstr ""
#. module: project
#: model:project.category,name:project.project_category_03
msgid "Experiment"
-msgstr "Deneyi"
+msgstr "Deneme"
#. module: project
#: model:process.transition.action,name:project.process_transition_action_opendrafttask0
@@ -2235,7 +2235,7 @@ msgstr "Sıralama"
#: view:project.task:0
#: view:project.task.work:0
msgid "Task Work"
-msgstr "Görev İşi"
+msgstr "Görev Çalışma"
#. module: project
#: help:project.task.delegate,planned_hours_me:0
diff --git a/addons/purchase/i18n/mn.po b/addons/purchase/i18n/mn.po
index 39e791f1446..8e0bb3ef3e9 100644
--- a/addons/purchase/i18n/mn.po
+++ b/addons/purchase/i18n/mn.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2014-02-01 12:16+0000\n"
-"Last-Translator: gobi \n"
+"PO-Revision-Date: 2014-03-05 06:20+0000\n"
+"Last-Translator: Jacara \n"
"Language-Team: Mongolian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-02 06:00+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:14+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: purchase
#: model:res.groups,name:purchase.group_analytic_accounting
@@ -613,7 +613,8 @@ msgstr "Нийлүүлэгч"
#: code:addons/purchase/purchase.py:527
#, python-format
msgid "Define expense account for this company: \"%s\" (id:%d)."
-msgstr "Энэ компанийн дансны зардлыг тодоройлох: \"%s\" (id:%d)"
+msgstr ""
+"Энэ компанид бараа материалын данс тодорхойлогдоогүй байна: \"%s\" (id:%d)"
#. module: purchase
#: model:process.transition,name:purchase.process_transition_packinginvoice0
diff --git a/addons/purchase/i18n/tr.po b/addons/purchase/i18n/tr.po
index f21e83d14dc..672866e64e8 100644
--- a/addons/purchase/i18n/tr.po
+++ b/addons/purchase/i18n/tr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-11-24 13:48+0000\n"
+"PO-Revision-Date: 2014-03-05 10:43+0000\n"
"Last-Translator: Ediz Duman \n"
"Language-Team: Turkish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-25 06:01+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:14+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: purchase
#: model:res.groups,name:purchase.group_analytic_accounting
@@ -489,7 +489,7 @@ msgstr "Para Birimi"
#. module: purchase
#: field:purchase.order,journal_id:0
msgid "Journal"
-msgstr "Günlük"
+msgstr "Yevmiye"
#. module: purchase
#: view:board.board:0
@@ -909,7 +909,7 @@ msgstr "Bir İzleyicidir"
#: model:ir.actions.act_window,name:purchase.action_purchase_order_report_graph
#: view:purchase.report:0
msgid "Total Qty and Amount by month"
-msgstr "Aylık Toplam Mik ve Tutar"
+msgstr "Aylık Toplam Miktar ve Tutar"
#. module: purchase
#: view:purchase.report:0
@@ -965,7 +965,7 @@ msgstr "Satınalma"
#: view:purchase.report:0
#: field:purchase.report,delay:0
msgid "Days to Validate"
-msgstr "Doğrulanacak Günler"
+msgstr "Doğrulama Günler"
#. module: purchase
#: view:purchase.config.settings:0
@@ -1485,7 +1485,7 @@ msgstr "Satınalma Sipariş Kalemlerinden"
#. module: purchase
#: report:purchase.quotation:0
msgid "TVA:"
-msgstr "TVA:"
+msgstr "KDV:"
#. module: purchase
#: help:purchase.order,picking_ids:0
diff --git a/addons/purchase/i18n/zh_CN.po b/addons/purchase/i18n/zh_CN.po
index a8fbb2196ab..9cc7c18b45d 100644
--- a/addons/purchase/i18n/zh_CN.po
+++ b/addons/purchase/i18n/zh_CN.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-11-07 02:09+0000\n"
-"Last-Translator: 盈通 ccdos \n"
+"PO-Revision-Date: 2014-03-05 09:15+0000\n"
+"Last-Translator: mrshelly \n"
"Language-Team: Chinese (Simplified) \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:31+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:15+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: purchase
#: model:res.groups,name:purchase.group_analytic_accounting
@@ -1291,7 +1291,7 @@ msgstr "3月"
#. module: purchase
#: view:purchase.order:0
msgid "Receive Invoice"
-msgstr "接收传票"
+msgstr "接收发票"
#. module: purchase
#: view:purchase.order:0
@@ -1599,7 +1599,7 @@ msgstr ""
#. module: purchase
#: field:purchase.order,invoiced:0
msgid "Invoice Received"
-msgstr "已收传票"
+msgstr "已收发票"
#. module: purchase
#: field:purchase.order,invoice_method:0
@@ -2176,6 +2176,81 @@ msgid ""
"\n"
" "
msgstr ""
+"\n"
+"\n"
+"\n"
+"
敬启 ${object.partner_id.name} :
\n"
+" \n"
+"
您有一张 ${object.company_id.name} 公司的采购单 ${object.state in ('draft', "
+"'sent') and '需询价' or '需确认'} :
\n"
+" \n"
+"
\n"
+" 相关单据数据
\n"
+" 采购单号: ${object.name}
\n"
+" 总金额: ${object.amount_total} "
+"${object.pricelist_id.currency_id.name}
\n"
+" 采购日期: ${object.date_order}
\n"
+" % if object.origin:\n"
+" 单据参考: ${object.origin}
\n"
+" % endif\n"
+" % if object.partner_ref:\n"
+" 贵司参考: ${object.partner_ref}
\n"
+" % endif\n"
+" % if object.validator:\n"
+" 贵司相关人员: ${object.validator.name}\n"
+" % endif\n"
+"
\n"
+"\n"
+"
\n"
+"
如还有其他疑问,请及时联系我们。
\n"
+"
谢谢
\n"
+"
\n"
+"
\n"
+"
\n"
+"
\n"
+" ${object.company_id.name}
\n"
+" \n"
+"
\n"
+"
\n"
+" % if object.company_id.street:\n"
+" ${object.company_id.street}
\n"
+" % endif\n"
+" % if object.company_id.street2:\n"
+" ${object.company_id.street2}
\n"
+" % endif\n"
+" % if object.company_id.city or object.company_id.zip:\n"
+" ${object.company_id.zip} ${object.company_id.city}
\n"
+" % endif\n"
+" % if object.company_id.country_id:\n"
+" ${object.company_id.state_id and ('%s, ' % "
+"object.company_id.state_id.name) or ''} ${object.company_id.country_id.name "
+"or ''}
\n"
+" % endif\n"
+" \n"
+" % if object.company_id.phone:\n"
+"
\n"
+" TEL: ${object.company_id.phone}\n"
+"
\n"
+" % endif\n"
+" % if object.company_id.website:\n"
+"
\n"
+" %endif\n"
+"
\n"
+"
\n"
+"
\n"
+" "
#. module: purchase
#: selection:purchase.report,month:0
diff --git a/addons/sale/i18n/tr.po b/addons/sale/i18n/tr.po
index 1214426685e..814cea821c9 100644
--- a/addons/sale/i18n/tr.po
+++ b/addons/sale/i18n/tr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-11-28 21:02+0000\n"
+"PO-Revision-Date: 2014-03-05 10:43+0000\n"
"Last-Translator: Ediz Duman \n"
"Language-Team: Turkish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-29 05:30+0000\n"
-"X-Generator: Launchpad (build 16847)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:15+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: sale
#: model:ir.model,name:sale.model_account_config_settings
@@ -501,8 +501,8 @@ msgid ""
"The salesman confirms the quotation. The state of the sales order becomes "
"'In progress' or 'Manual in progress'."
msgstr ""
-"Satış temsilcisi teklifi onaylıyor. Satış Siparişinin durumu \"Sürüyor\" ya "
-"da \"Elle işlem sürüyor\" olur."
+"Satış temsilcisi teklifi onaylıyor. Satış Siparişinin durumu 'Sürüyor' ya da "
+"'Elle işlem sürüyor' olur."
#. module: sale
#: view:sale.order.line:0
@@ -692,7 +692,7 @@ msgstr "Sipariş N°"
#: view:sale.order:0
#: field:sale.order,order_line:0
msgid "Order Lines"
-msgstr "Sipariş Kalemleri"
+msgstr "Sipariş Satırları"
#. module: sale
#: field:account.config.settings,module_sale_analytic_plans:0
@@ -707,9 +707,9 @@ msgid ""
" and perform batch operations on journals.\n"
" This installs the module sale_journal."
msgstr ""
-"Satışlarınızı ve teslimatlarınızı (toplama listeleri) değişik günlükler "
+"Satışlarınızı ve teslimatlarınızı (seçim listeleri) değişik yevmiyeler "
"arasında sınıflandırmanızı sağlar,\n"
-" günlükler üzerin toplu işlemler yürütür.\n"
+" yevmiyeler üzerin toplu işlemler yürütür.\n"
" Bu, sale_journal modülünü kurar."
#. module: sale
@@ -1013,7 +1013,7 @@ msgstr "Mik"
#. module: sale
#: view:sale.order.line:0
msgid "My Sales Order Lines"
-msgstr "Satış Siparişi Kalemlerim"
+msgstr "Satış Siparişi Satırları"
#. module: sale
#: model:process.transition.action,name:sale.process_transition_action_cancel0
@@ -1070,8 +1070,8 @@ msgid ""
"${object.company_id.name} ${object.state in ('draft', 'sent') and "
"'Quotation' or 'Order'} (Ref ${object.name or 'n/a' })"
msgstr ""
-"${object.company_id.name} ${object.state in ('draft', 'sent') and "
-"'Quotation' or 'Order'} (Ref ${object.name or 'n/a' })"
+"${object.company_id.name} ${object.state in ('draft', 'sent') and 'Teklif' "
+"or 'Sipariş'} (Ref ${object.name or 'n/a' })"
#. module: sale
#: report:sale.order:0
@@ -1147,7 +1147,7 @@ msgstr "Teklifin Yeni Kopyası"
#. module: sale
#: field:res.partner,sale_order_count:0
msgid "# of Sales Order"
-msgstr "Satış Siparişi sayısı"
+msgstr "# Satış Siparişi"
#. module: sale
#: code:addons/sale/sale.py:983
@@ -1202,7 +1202,7 @@ msgstr "Faturalanacak Sipariş Kalemleri"
#: view:sale.order.line:0
#: view:sale.report:0
msgid "Group By..."
-msgstr "Gruplandır..."
+msgstr "Gruplandır İle..."
#. module: sale
#: view:sale.config.settings:0
@@ -1417,7 +1417,7 @@ msgstr "Tedarik ve faturalamayı yürütür"
#. module: sale
#: field:sale.order,invoiced:0
msgid "Paid"
-msgstr "Ödenmiş"
+msgstr "Ödenmdi"
#. module: sale
#: model:ir.actions.act_window,name:sale.action_order_report_all
@@ -1533,7 +1533,7 @@ msgstr "Yapılacaklar"
#. module: sale
#: view:sale.advance.payment.inv:0
msgid "Invoice Sales Order"
-msgstr "Satış Siparişi faturala"
+msgstr "Satış Siparişi Faturala"
#. module: sale
#: help:sale.order,amount_untaxed:0
@@ -1640,7 +1640,7 @@ msgstr ""
" Sayın ${object.partner_id.name},
\n"
" \n"
" Firmamız ${object.company_id.name}nden istemiş olduğunuz "
-"${object.state in ('draft', 'sent') and 'teklif' or 'Sipariş doğrulama'} "
+"${object.state in ('draft', 'sent') and 'Teklif' or 'Sipariş doğrulama'} "
"aşağıdadır:
\n"
"\n"
" \n"
@@ -1855,7 +1855,7 @@ msgstr "Satış Paneli"
#. module: sale
#: view:sale.order.line:0
msgid "Sales Order Lines that are in 'done' state"
-msgstr "'tamamlandı' durumunda Satış Siparişi Kalemleri"
+msgstr "'biten' durumunda Satış Siparişi Kalemleri"
#. module: sale
#: help:sale.config.settings,module_account_analytic_analysis:0
@@ -2024,7 +2024,7 @@ msgstr "Onay Tarihi"
#: code:addons/sale/sale.py:364
#, python-format
msgid "Please define sales journal for this company: \"%s\" (id:%d)."
-msgstr "Bu şirket için lütfen satış günlüğü oluşturun: \"%s\" (id:%d)."
+msgstr "Bu şirket için lütfen satış yevmiyesi oluşturun: \"%s\" (id:%d)."
#. module: sale
#: view:sale.config.settings:0
@@ -2080,14 +2080,14 @@ msgstr "İzleyiciler"
#. module: sale
#: field:sale.order.line,invoice_lines:0
msgid "Invoice Lines"
-msgstr "Fatura Kalemleri"
+msgstr "Fatura Satırları"
#. module: sale
#: model:ir.actions.act_window,name:sale.action_order_line_product_tree
#: view:sale.order:0
#: view:sale.order.line:0
msgid "Sales Order Lines"
-msgstr "Satış Siparişi Kalemleri"
+msgstr "Satış Siparişi Satırları"
#. module: sale
#: view:sale.config.settings:0
@@ -2228,7 +2228,7 @@ msgid ""
"yet been invoiced"
msgstr ""
"Onaylı, yapıldı ya da istisna durumundaki ve henüz faturalanmamış Satış "
-"Siparişi Kalemleri"
+"Siparişi Satırları"
#. module: sale
#: selection:sale.report,month:0
@@ -2279,7 +2279,7 @@ msgstr "Sipariş Durumu"
#. module: sale
#: view:sale.advance.payment.inv:0
msgid "Show Lines to Invoice"
-msgstr "Faturalanacak Kalemleri Göster"
+msgstr "Faturalanacak Satırları Göster"
#. module: sale
#: field:sale.report,date:0
@@ -2433,7 +2433,7 @@ msgstr "Teklif N°"
#. module: sale
#: view:sale.report:0
msgid "Picked"
-msgstr "Toplanmış"
+msgstr "Seçilmiş"
#. module: sale
#: view:sale.report:0
diff --git a/addons/share/i18n/zh_CN.po b/addons/share/i18n/zh_CN.po
index 2d7beb1a6e8..a674195543e 100644
--- a/addons/share/i18n/zh_CN.po
+++ b/addons/share/i18n/zh_CN.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:37+0000\n"
-"PO-Revision-Date: 2013-11-01 16:12+0000\n"
-"Last-Translator: jeffery chen fan \n"
+"PO-Revision-Date: 2014-03-06 08:55+0000\n"
+"Last-Translator: jack lee \n"
"Language-Team: Chinese (Simplified) \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:34+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: share
#: code:addons/share/wizard/share_wizard.py:842
@@ -76,6 +76,8 @@ msgid ""
" %s\n"
"\n"
msgstr ""
+"附件没弄好,你可以在OpenERP服务器上查看: %s\n"
+"\n"
#. module: share
#: model:ir.module.category,name:share.module_category_share
@@ -147,7 +149,7 @@ msgstr "共享URL"
#: code:addons/share/wizard/share_wizard.py:881
#, python-format
msgid "These are your credentials to access this protected area:\n"
-msgstr ""
+msgstr "这是你访问这个保护区域的凭证:\n"
#. module: share
#: view:share.wizard:0
@@ -173,7 +175,7 @@ msgstr ""
#, python-format
msgid ""
"Please indicate the emails of the persons to share with, one per line."
-msgstr ""
+msgstr "请标明分享的用户电子邮箱,每行一个。"
#. module: share
#: help:share.wizard,domain:0
@@ -189,7 +191,7 @@ msgstr "下一个"
#: code:addons/share/wizard/share_wizard.py:662
#, python-format
msgid "Action and Access Mode are required to create a shared access."
-msgstr ""
+msgstr "操作和访问模式都需要要创建一个共享入口。"
#. module: share
#: code:addons/share/wizard/share_wizard.py:850
@@ -282,7 +284,7 @@ msgstr "共享操作"
#. module: share
#: help:share.wizard,record_name:0
msgid "Name of the shared record, if sharing a precise record"
-msgstr ""
+msgstr "如果共享一个精确记录,记录下分享名"
#. module: share
#: field:res.users,share:0
diff --git a/addons/stock/i18n/hr.po b/addons/stock/i18n/hr.po
index 9c3847cb5cd..7e484eca201 100644
--- a/addons/stock/i18n/hr.po
+++ b/addons/stock/i18n/hr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2013-11-09 12:14+0000\n"
-"Last-Translator: Dejan Radočaj \n"
+"PO-Revision-Date: 2014-03-05 10:52+0000\n"
+"Last-Translator: Marko Carevic \n"
"Language-Team: Croatian
\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-07 07:12+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:15+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -778,7 +778,7 @@ msgstr "Additional Reference"
#. module: stock
#: view:stock.partial.picking.line:0
msgid "Stock Picking Line"
-msgstr "Stavka primke"
+msgstr "Stavka skladišnog dokumenta"
#. module: stock
#: field:stock.location,complete_name:0
@@ -1063,7 +1063,7 @@ msgstr "Budući P&L"
#: model:ir.ui.menu,name:stock.menu_action_picking_tree4
#: view:stock.picking.in:0
msgid "Incoming Shipments"
-msgstr "Primke"
+msgstr "Pošiljke u dolasku"
#. module: stock
#: help:stock.picking,date:0
@@ -3322,10 +3322,10 @@ msgid ""
" "
msgstr ""
"\n"
-" Pritisnite za kreiranje primke ovog proizvoda. \n"
+" Pritisnite za kreiranje prijema ovog proizvoda. \n"
"
\n"
-" Ovjde možete pronaći povijest svih primki povezanih sa\n"
-" ovim proizvodom, kao i sve buduće primke koje očekujete\n"
+" Ovjde možete pronaći povijest svih prijema povezanih sa\n"
+" ovim proizvodom, kao i sve buduće prijeme koje očekujete\n"
" od Vaših dobavljača.\n"
"
\n"
" "
@@ -3954,7 +3954,7 @@ msgstr "Datumi inventura"
#: model:ir.actions.act_window,name:stock.action_receive_move
#: view:product.product:0
msgid "Receptions"
-msgstr "Primke"
+msgstr "Prijemi"
#. module: stock
#: view:report.stock.move:0
diff --git a/addons/stock/i18n/it.po b/addons/stock/i18n/it.po
index 6f5926e077c..b563c427ee7 100644
--- a/addons/stock/i18n/it.po
+++ b/addons/stock/i18n/it.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2013-01-09 21:34+0000\n"
-"Last-Translator: Sergio Corato \n"
+"PO-Revision-Date: 2014-03-07 13:39+0000\n"
+"Last-Translator: Leonardo Donelli \n"
"Language-Team: Italian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-07 07:11+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-08 06:54+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -4922,7 +4922,7 @@ msgstr ""
#. module: stock
#: view:stock.picking.out:0
msgid "Print Delivery Slip"
-msgstr "Stampa Ordine di Consegna"
+msgstr "Stampa Ordine di Prelievo"
#. module: stock
#: view:report.stock.inventory:0
diff --git a/addons/stock/i18n/ja.po b/addons/stock/i18n/ja.po
index 963871afd3f..ef719dd5117 100644
--- a/addons/stock/i18n/ja.po
+++ b/addons/stock/i18n/ja.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2014-02-28 04:43+0000\n"
+"PO-Revision-Date: 2014-03-08 03:50+0000\n"
"Last-Translator: Yoshi Tashiro \n"
"Language-Team: Japanese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-03-01 05:52+0000\n"
+"X-Launchpad-Export-Date: 2014-03-09 06:03+0000\n"
"X-Generator: Launchpad (build 16948)\n"
#. module: stock
@@ -920,7 +920,7 @@ msgstr "参照は会社ごとに固有でなければいけません。"
#: code:addons/stock/product.py:448
#, python-format
msgid "Future Receptions"
-msgstr "将来の受取"
+msgstr "入荷予定"
#. module: stock
#: selection:stock.move,priority:0
@@ -3325,7 +3325,7 @@ msgstr "請求書を生成したい場合は、集荷リストにパートナを
#. module: stock
#: view:stock.picking.in:0
msgid "Confirm & Receive"
-msgstr "確認と受取り"
+msgstr "確認して入荷"
#. module: stock
#: field:stock.picking,origin:0
diff --git a/addons/stock/i18n/nl.po b/addons/stock/i18n/nl.po
index dd1fd985b06..2fc05f0f3f0 100644
--- a/addons/stock/i18n/nl.po
+++ b/addons/stock/i18n/nl.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2014-02-25 17:48+0000\n"
+"PO-Revision-Date: 2014-03-11 17:54+0000\n"
"Last-Translator: Erwin van der Ploeg (BAS Solutions) \n"
"Language-Team: Dutch \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-26 07:31+0000\n"
-"X-Generator: Launchpad (build 16935)\n"
+"X-Launchpad-Export-Date: 2014-03-12 05:25+0000\n"
+"X-Generator: Launchpad (build 16963)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -92,7 +92,7 @@ msgstr "Terug traceren"
#: field:stock.picking.in,date_done:0
#: field:stock.picking.out,date_done:0
msgid "Date of Transfer"
-msgstr "Datum van verzending"
+msgstr "Datum van verplaatsing"
#. module: stock
#: field:product.product,track_outgoing:0
@@ -1122,7 +1122,7 @@ msgstr "Details"
#. module: stock
#: selection:stock.picking,state:0
msgid "Ready to Transfer"
-msgstr "Beschikbaar"
+msgstr "Gereed voor verplaatsing"
#. module: stock
#: report:lot.stock.overview:0
@@ -2113,7 +2113,7 @@ msgstr "Geleverd aantal"
#. module: stock
#: view:stock.partial.picking:0
msgid "Transfer Products"
-msgstr "Verzend producten"
+msgstr "Verplaats producten"
#. module: stock
#: help:product.template,property_stock_account_output:0
@@ -2166,8 +2166,8 @@ msgstr ""
" * Wachten op beschikbaarheid: Nog wachtend op de beschikbaarheid "
"van de producten\n"
"\n"
-" * Gereed voor leveren: Producten zijn gereserveerd, wachtend op "
-"bevestiging\n"
+" * Gereed voor verplaatsing: Producten zijn gereserveerd, "
+"wachtend op bevestiging\n"
"\n"
" * Verwerkt: Is verwerkt, kan niet meer worden aangepast of "
"worden geannuleerd \n"
@@ -2430,7 +2430,8 @@ msgstr "Bedrag"
#: field:stock.config.settings,module_stock_invoice_directly:0
msgid "Create and open the invoice when the user finish a delivery order"
msgstr ""
-"Maak en open de factuur wanneer de gebruiker klaar is met de uitgaande order"
+"Maak en open de factuur wanneer de gebruiker klaar is met de uitgaande "
+"levering"
#. module: stock
#: model:ir.model,name:stock.model_stock_return_picking_memory
@@ -2729,7 +2730,7 @@ msgstr "Partijen"
#. module: stock
#: view:stock.partial.picking:0
msgid "_Transfer"
-msgstr "_Doorverbinden"
+msgstr "_Verplaatsen"
#. module: stock
#: selection:report.stock.move,type:0
@@ -3064,7 +3065,7 @@ msgstr "Voorraad rapport per partijnummer"
#. module: stock
#: view:stock.picking:0
msgid "Cancel Transfer"
-msgstr "Transfer annuleren"
+msgstr "Verplaatsing annuleren"
#. module: stock
#: selection:report.stock.inventory,month:0
diff --git a/addons/stock/i18n/pt_BR.po b/addons/stock/i18n/pt_BR.po
index 59ad275b1bd..c3ca786a30f 100644
--- a/addons/stock/i18n/pt_BR.po
+++ b/addons/stock/i18n/pt_BR.po
@@ -8,14 +8,15 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2013-07-18 20:54+0000\n"
-"Last-Translator: Claudio de Araujo Santos \n"
+"PO-Revision-Date: 2014-03-07 00:14+0000\n"
+"Last-Translator: Fábio Martinelli - http://zupy.com.br "
+"\n"
"Language-Team: Brazilian Portuguese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-07 07:13+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -1989,7 +1990,7 @@ msgstr "Conta de Valorização do Estoque (Saindo)"
#: code:addons/stock/stock.py:1805
#, python-format
msgid "Operation Forbidden!"
-msgstr ""
+msgstr "Operação Proibida!"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_move_form2
@@ -2763,6 +2764,8 @@ msgid ""
"The unit of measure rounding does not allow you to ship \"%s %s\", only "
"rounding of \"%s %s\" is accepted by the Unit of Measure."
msgstr ""
+"O Arredondamento da Unidade de Medida não permite o envio de \"%s %s\", "
+"apenas arredondamentos de \"%s %s\" são aceitos pela Unidade de Medida."
#. module: stock
#: report:lot.stock.overview:0
@@ -3923,6 +3926,9 @@ msgid ""
"would let a quantity of \"%s %s\" to ship and only rounding of \"%s %s\" is "
"accepted by the uom."
msgstr ""
+"O Arredondamento da Unidade de Medida Inicial não permite o envio de \"%s "
+"%s\", pois deixará uma quantidade de \"%s %s\" para o envio e somente "
+"arredondamentos de \"%s %s\" são aceitos pela Udm"
#. module: stock
#: model:stock.location,name:stock.stock_location_intermediatelocation0
@@ -4265,6 +4271,7 @@ msgstr "Esta lista de separação não requer faturamento."
msgid ""
"You have manually created product lines, please delete them to proceed"
msgstr ""
+"Você criou linha de produtos manualmente, por favor exclua-as para prosseguir"
#. module: stock
#: model:stock.location,name:stock.stock_location_shop0
@@ -4325,7 +4332,7 @@ msgstr "Revisões de Número de Série"
#: code:addons/stock/stock.py:1134
#, python-format
msgid "Error, no partner!"
-msgstr ""
+msgstr "Erro, sem parceiro associado!"
#. module: stock
#: view:stock.picking:0
diff --git a/addons/stock/i18n/tr.po b/addons/stock/i18n/tr.po
index d2de2024929..ac0bbd6899f 100644
--- a/addons/stock/i18n/tr.po
+++ b/addons/stock/i18n/tr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2013-11-30 14:39+0000\n"
+"PO-Revision-Date: 2014-03-05 10:43+0000\n"
"Last-Translator: Ediz Duman \n"
"Language-Team: Turkish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-07 07:12+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-06 06:15+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -40,7 +40,7 @@ msgstr ""
#. module: stock
#: model:ir.model,name:stock.model_stock_move_split_lines
msgid "Stock move Split lines"
-msgstr "Stok hareketi Bölünmüş satırları"
+msgstr "Stok hareketi Bölünmüş Satırları"
#. module: stock
#: help:product.category,property_stock_account_input_categ:0
@@ -52,7 +52,7 @@ msgid ""
"product"
msgstr ""
"Gerçek-zamanlı envanter değerlendirmesi yaparken, gelen tüm stokların "
-"hareketlerine karşılık gelen ait öğe günlükleri bu hesaba işlenecektir, "
+"hareketlerine karşılık gelen ait öğe yevmiyeleri bu hesaba işlenecektir, "
"kaynak konumda özel bir değerlendirme hesabı yoksa. Bu kategorideki ürünler "
"için bu varsayılan değerdir. Her ürüne doğrudan da ayarlanabilir."
@@ -169,7 +169,7 @@ msgstr "Seçim listesi"
#. module: stock
#: view:stock.inventory:0
msgid "e.g. Annual inventory"
-msgstr "Yıllık Sayım"
+msgstr "örn. Yıllık Sayım"
#. module: stock
#: report:lot.stock.overview:0
@@ -387,7 +387,7 @@ msgstr "Uyarı!"
#. module: stock
#: field:stock.invoice.onshipping,group:0
msgid "Group by partner"
-msgstr "Grupla partner ile"
+msgstr "Grupla iş ortağı ile"
#. module: stock
#: help:stock.picking,move_type:0
@@ -407,7 +407,7 @@ msgstr "Aynı anda kısmen veya tüm teslim edilecek malların belirtir"
#: field:stock.picking.in,partner_id:0
#: field:stock.picking.out,partner_id:0
msgid "Partner"
-msgstr "Partner"
+msgstr "İş Ortağı"
#. module: stock
#: field:stock.config.settings,module_claim_from_delivery:0
@@ -800,7 +800,7 @@ msgstr "İşlenmiş Envanterler"
#. module: stock
#: field:stock.move.split.lines,wizard_exist_id:0
msgid "Parent Wizard (for existing lines)"
-msgstr "Ana Sihirbaz (varolan satırlar için="
+msgstr "Ana Sihirbaz (varolan satırlar için)"
#. module: stock
#: view:report.stock.move:0
@@ -893,7 +893,7 @@ msgstr "Tedarik Konumu"
#. module: stock
#: view:stock.picking:0
msgid "e.g. PO0032"
-msgstr "e.g. PO0032"
+msgstr "örn. PO0032"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_location_tree
@@ -1177,7 +1177,7 @@ msgstr "Kabule Hazır"
#. module: stock
#: field:report.stock.move,day_diff:0
msgid "Execution Lead Time (Days)"
-msgstr "İcra Tamamlama Süresi (Gün)"
+msgstr "Uygulama Tamamlama Süresi (Gün)"
#. module: stock
#: model:ir.model,name:stock.model_stock_partial_move
@@ -1397,7 +1397,7 @@ msgid ""
"In order to cancel this inventory, you must first unpost related journal "
"entries."
msgstr ""
-"Bu envanteri silmek için önce ilişkili günlük girişlerinin işlenmesini "
+"Bu envanteri silmek için önce ilişkili yevmiye girişlerinin işlenmesini "
"kaldırmalısınız."
#. module: stock
@@ -1534,11 +1534,11 @@ msgid ""
" "
msgstr ""
"\n"
-" Yeni bir günlük oluşturmak için tıklayın. \n"
+" Yeni bir yevmiye oluşturmak için tıklayın. \n"
"
\n"
-" Stok günlük sistemi her stok hareketini, yürütülecek \n"
+" Stok yevmiye sistemi her stok hareketini, yürütülecek \n"
" işlemin ya da bu işlemi yürütecek işçi/takım türüne \n"
-" göre belirli bir günlüğe atar. Stok günlüğü örnekleri \n"
+" göre belirli bir yevmiyeye atar. Stok yevmiyesi örnekleri \n"
" şunlar olabilir: kalite kontrol, toplama listeleri,\n"
" paketleme, vb..\n"
"\n"
@@ -1983,7 +1983,7 @@ msgstr "Stok Değerleme Hesabı (Çıkan)"
#: code:addons/stock/stock.py:1805
#, python-format
msgid "Operation Forbidden!"
-msgstr ""
+msgstr "Operasyon Yasak!"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_move_form2
@@ -2355,7 +2355,7 @@ msgid ""
"This stock location will be used, instead of the default one, as the source "
"location for goods you receive from the current partner"
msgstr ""
-"Mevcut ortaktan aldığınız malların kaynak lkonumu olarak varsayılan yerine "
+"Mevcut iş ortaktan aldığınız malların kaynak konumu olarak varsayılan yerine "
"bu stok konumu kullanılacaktır"
#. module: stock
@@ -2792,7 +2792,7 @@ msgid ""
"Cannot create Journal Entry, Output Account of this product and Valuation "
"account on category of this product are same."
msgstr ""
-"Günlük Kaydı oluşturulamıyor, Bu ürünün Çıkış Hesabı ve bu ürünün "
+"Yevmiye Kaydı oluşturulamıyor, Bu ürünün Çıkış Hesabı ve bu ürünün "
"kategorisindeki Değerleme hesabı aynıdır."
#. module: stock
@@ -2976,8 +2976,8 @@ msgid ""
"Cannot create Journal Entry, Input Account of this product and Valuation "
"account on category of this product are same."
msgstr ""
-"Günlük Kaydı oluşturulamıyor, Bu ürünün Giriş Hesabı ve bu ürünün "
-"kategorisindeki Değerleme hesabı aynıdır."
+"Yevmiye Kaydı oluşturulamıyor, Bu ürünün Giriş Hesabı ve bu ürünün "
+"kategorisindeki değerleme hesabı aynıdır."
#. module: stock
#: model:ir.ui.menu,name:stock.menu_stock_unit_measure_stock
@@ -3895,6 +3895,9 @@ msgid ""
"would let a quantity of \"%s %s\" to ship and only rounding of \"%s %s\" is "
"accepted by the uom."
msgstr ""
+"İlk UOM ve yuvarlama size sevk izin vermez \"%s %s\", olarakbir miktar bir "
+"izin istiyorsanız \"%s %s\" sevk ve sadece yuvarlama için \"%s %s\" olarak "
+"UOM tarafından kabuledilir."
#. module: stock
#: model:stock.location,name:stock.stock_location_intermediatelocation0
@@ -4140,7 +4143,7 @@ msgid ""
"on each product"
msgstr ""
"Gerçek-zamanlı envanter değerlemesi yaparken, hedef konuma özel bir "
-"değerleme hesabı ayarlanmadıkça, çıkan tüm stok hareketlerinin günlük "
+"değerleme hesabı ayarlanmadıkça, çıkan tüm stok hareketlerinin yevmiye "
"öğeleri bu hesaba işlenecektir. Bu, bu kategorideki tüm ürünler için "
"varsayılan değerdir. Aynı zamanda her ürünü de doğrudan ayarlanabilir."
@@ -4218,7 +4221,7 @@ msgstr "Onaylanmış Teslimat Siparişleri"
#: field:stock.partial.move,picking_id:0
#: field:stock.partial.picking,picking_id:0
msgid "Picking"
-msgstr "SeçimListesi"
+msgstr "Seçim Listesi"
#. module: stock
#: code:addons/stock/wizard/stock_invoice_onshipping.py:96
@@ -4292,7 +4295,7 @@ msgstr "Seri Numarası Revizyonları"
#: code:addons/stock/stock.py:1134
#, python-format
msgid "Error, no partner!"
-msgstr ""
+msgstr "Hata, hiç iş ortağı yok!"
#. module: stock
#: view:stock.picking:0
@@ -4937,7 +4940,7 @@ msgstr "Önek"
#: view:stock.move:0
#: view:stock.move.split:0
msgid "Split in Serial Numbers"
-msgstr "Seri Numaralarına Göre ayır"
+msgstr "Seri Numaralarına Göre Ayır"
#. module: stock
#: help:product.template,property_stock_account_input:0
@@ -4948,7 +4951,7 @@ msgid ""
"product, the one from the product category is used."
msgstr ""
"Gerçek zamanlı envanter değerlemesi yaparken, gelen bütün stok "
-"hareketlerinin karşıt günlük maddeleri, kaynak konumda özel bir değerleme "
+"hareketlerinin karşıt yevmiye maddeleri, kaynak konumda özel bir değerleme "
"hesabı tanımlanıncaya kadar bu hesaba işlenecektir. Ürüne tanımlanmamışsa, "
"ürün kategorisinden bir tane kullanılır."
diff --git a/addons/stock/i18n/zh_TW.po b/addons/stock/i18n/zh_TW.po
index 3c305085902..d8117d175fa 100644
--- a/addons/stock/i18n/zh_TW.po
+++ b/addons/stock/i18n/zh_TW.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2014-02-06 15:56+0000\n"
-"PO-Revision-Date: 2014-02-14 11:58+0000\n"
+"PO-Revision-Date: 2014-03-11 08:04+0000\n"
"Last-Translator: Andy Cheng \n"
"Language-Team: Chinese (Traditional) \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2014-02-15 07:37+0000\n"
-"X-Generator: Launchpad (build 16916)\n"
+"X-Launchpad-Export-Date: 2014-03-12 05:26+0000\n"
+"X-Generator: Launchpad (build 16963)\n"
#. module: stock
#: field:stock.inventory.line.split,line_exist_ids:0
@@ -3323,6 +3323,13 @@ msgid ""
"
\n"
" "
msgstr ""
+"\n"
+" 點擊增加一個追蹤號碼。\n"
+"
\n"
+" 這是您所有的包裹清單。當您選擇一個「包裹」,\n"
+" 即可讀取這個包裹內含產品的上下游追溯資料。\n"
+"
\n"
+" "
#. module: stock
#: code:addons/stock/stock.py:2545
@@ -3406,7 +3413,7 @@ msgstr "已排程"
#. module: stock
#: view:stock.picking:0
msgid "Add an internal note..."
-msgstr ""
+msgstr "增加一個內部備註"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_warehouse_form
@@ -3417,26 +3424,26 @@ msgstr "倉庫"
#. module: stock
#: field:stock.journal,user_id:0
msgid "Responsible"
-msgstr ""
+msgstr "負責人"
#. module: stock
#: view:stock.move:0
msgid "Process Entirely"
-msgstr ""
+msgstr "全部處理"
#. module: stock
#: help:product.template,property_stock_procurement:0
msgid ""
"This stock location will be used, instead of the default one, as the source "
"location for stock moves generated by procurements."
-msgstr ""
+msgstr "此倉位將會替代預設倉位,用在因採購而產生的庫存調動的來源倉位。"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_stock_inventory_report
#: model:ir.ui.menu,name:stock.menu_action_stock_inventory_report
#: view:report.stock.inventory:0
msgid "Inventory Analysis"
-msgstr ""
+msgstr "庫存分析"
#. module: stock
#: field:stock.invoice.onshipping,journal_id:0
@@ -3453,7 +3460,7 @@ msgstr "庫存"
#: code:addons/stock/wizard/stock_return_picking.py:226
#, python-format
msgid "Returned Picking"
-msgstr ""
+msgstr "退貨提貨"
#. module: stock
#: model:ir.model,name:stock.model_product_product
@@ -3503,33 +3510,33 @@ msgstr ""
#. module: stock
#: view:stock.return.picking:0
msgid "Return"
-msgstr ""
+msgstr "退貨"
#. module: stock
#: field:stock.return.picking,invoice_state:0
msgid "Invoicing"
-msgstr ""
+msgstr "發票開立"
#. module: stock
#: view:stock.picking:0
msgid "Assigned Internal Moves"
-msgstr ""
+msgstr "指定的內部調動"
#. module: stock
#: code:addons/stock/stock.py:804
#, python-format
msgid "You cannot process picking without stock moves."
-msgstr ""
+msgstr "沒有庫存調動,您不能進行提貨。"
#. module: stock
#: field:stock.production.lot,move_ids:0
msgid "Moves for this serial number"
-msgstr ""
+msgstr "該序號的庫存調動"
#. module: stock
#: field:stock.move,product_uos:0
msgid "Product UOS"
-msgstr ""
+msgstr "貨品銷售計量單位"
#. module: stock
#: field:stock.location,posz:0
@@ -3561,7 +3568,7 @@ msgstr "走廊 (X)"
#. module: stock
#: field:stock.config.settings,group_stock_packaging:0
msgid "Allow to define several packaging methods on products"
-msgstr ""
+msgstr "允許產品定義多種包裝方式"
#. module: stock
#: model:stock.location,name:stock.stock_location_7
@@ -3584,12 +3591,12 @@ msgstr "各分類產品"
#: selection:stock.picking.in,state:0
#: selection:stock.picking.out,state:0
msgid "Waiting Another Operation"
-msgstr ""
+msgstr "正在等待其它作業"
#. module: stock
#: view:stock.location:0
msgid "Supplier Locations"
-msgstr ""
+msgstr "供應商倉位"
#. module: stock
#: field:stock.partial.move.line,wizard_id:0
@@ -3601,7 +3608,7 @@ msgstr "精靈"
#. module: stock
#: view:report.stock.move:0
msgid "Completed Stock-Moves"
-msgstr ""
+msgstr "已完成的庫存調動"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_view_stock_location_product
@@ -3612,7 +3619,7 @@ msgstr "各地點產品"
#. module: stock
#: view:stock.config.settings:0
msgid "Logistic"
-msgstr ""
+msgstr "物流"
#. module: stock
#: model:ir.actions.act_window,help:stock.action_location_form
@@ -3656,7 +3663,7 @@ msgstr "貨架 1"
#. module: stock
#: field:stock.tracking,name:0
msgid "Pack Reference"
-msgstr ""
+msgstr "包裹編號"
#. module: stock
#: view:report.stock.move:0
@@ -3670,12 +3677,12 @@ msgstr "來源地點"
#. module: stock
#: view:product.template:0
msgid "Accounting Entries"
-msgstr ""
+msgstr "會計分錄"
#. module: stock
#: model:res.groups,name:stock.group_stock_manager
msgid "Manager"
-msgstr ""
+msgstr "主管"
#. module: stock
#: code:addons/stock/wizard/stock_partial_picking.py:192
@@ -3689,17 +3696,17 @@ msgstr ""
#. module: stock
#: model:stock.location,name:stock.stock_location_intermediatelocation0
msgid "Internal Shippings"
-msgstr ""
+msgstr "內部運送"
#. module: stock
#: field:stock.change.standard.price,enable_stock_in_out_acc:0
msgid "Enable Related Account"
-msgstr ""
+msgstr "啟動相關科目"
#. module: stock
#: field:stock.location.product,type:0
msgid "Analyse Type"
-msgstr ""
+msgstr "分析類型"
#. module: stock
#: model:ir.actions.act_window,help:stock.action_picking_tree4
@@ -3731,7 +3738,7 @@ msgstr "一次過"
#. module: stock
#: model:ir.actions.act_window,name:stock.act_product_stock_move_open
msgid "Inventory Move"
-msgstr ""
+msgstr "存貨調動"
#. module: stock
#: code:addons/stock/product.py:476
@@ -3764,35 +3771,35 @@ msgstr ""
#: model:ir.actions.act_window,name:stock.action_stock_config_settings
#: view:stock.config.settings:0
msgid "Configure Warehouse"
-msgstr ""
+msgstr "倉庫設定"
#. module: stock
#: view:stock.picking:0
#: view:stock.picking.in:0
msgid "To Invoice"
-msgstr ""
+msgstr "待開發票"
#. module: stock
#: view:stock.return.picking:0
msgid "Return lines"
-msgstr ""
+msgstr "退貨明細"
#. module: stock
#: view:stock.inventory:0
msgid "Search Inventory"
-msgstr ""
+msgstr "搜尋庫存"
#. module: stock
#: model:ir.model,name:stock.model_report_stock_lines_date
#: view:report.stock.lines.date:0
msgid "Dates of Inventories"
-msgstr ""
+msgstr "盤點日期"
#. module: stock
#: model:ir.actions.act_window,name:stock.action_receive_move
#: view:product.product:0
msgid "Receptions"
-msgstr ""
+msgstr "接收"
#. module: stock
#: view:report.stock.move:0
@@ -3802,7 +3809,7 @@ msgstr "總內送量"
#. module: stock
#: field:report.stock.move,product_qty_out:0
msgid "Out Qty"
-msgstr ""
+msgstr "出貨數量"
#. module: stock
#: view:report.stock.inventory:0
@@ -3827,7 +3834,7 @@ msgstr "公司"
#: field:stock.move.consume,product_uom:0
#: field:stock.move.scrap,product_uom:0
msgid "Product Unit of Measure"
-msgstr ""
+msgstr "產品度量單位"
#. module: stock
#: view:stock.move:0
diff --git a/addons/stock/wizard/stock_fill_inventory.py b/addons/stock/wizard/stock_fill_inventory.py
index 7f55adbab4c..0dc6b3739f5 100644
--- a/addons/stock/wizard/stock_fill_inventory.py
+++ b/addons/stock/wizard/stock_fill_inventory.py
@@ -104,15 +104,16 @@ class stock_fill_inventory(osv.osv_memory):
datas = {}
res[location] = {}
move_ids = move_obj.search(cr, uid, ['|',('location_dest_id','=',location),('location_id','=',location),('state','=','done')], context=context)
-
+ local_context = dict(context)
+ local_context['raise-exception'] = False
for move in move_obj.browse(cr, uid, move_ids, context=context):
lot_id = move.prodlot_id.id
prod_id = move.product_id.id
if move.location_dest_id.id != move.location_id.id:
if move.location_dest_id.id == location:
- qty = uom_obj._compute_qty(cr, uid, move.product_uom.id,move.product_qty, move.product_id.uom_id.id)
+ qty = uom_obj._compute_qty_obj(cr, uid, move.product_uom,move.product_qty, move.product_id.uom_id, context=local_context)
else:
- qty = -uom_obj._compute_qty(cr, uid, move.product_uom.id,move.product_qty, move.product_id.uom_id.id)
+ qty = -uom_obj._compute_qty_obj(cr, uid, move.product_uom,move.product_qty, move.product_id.uom_id, context=local_context)
if datas.get((prod_id, lot_id)):
diff --git a/addons/warning/i18n/pt_BR.po b/addons/warning/i18n/pt_BR.po
index ab1f0873973..4367359e965 100644
--- a/addons/warning/i18n/pt_BR.po
+++ b/addons/warning/i18n/pt_BR.po
@@ -7,14 +7,15 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2013-06-07 19:37+0000\n"
-"PO-Revision-Date: 2012-12-21 23:00+0000\n"
-"Last-Translator: Luiz Fernando M.França (Sig Informática) \n"
+"PO-Revision-Date: 2014-03-07 00:20+0000\n"
+"Last-Translator: Fábio Martinelli - http://zupy.com.br "
+"\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-11-21 06:38+0000\n"
-"X-Generator: Launchpad (build 16831)\n"
+"X-Launchpad-Export-Date: 2014-03-07 07:24+0000\n"
+"X-Generator: Launchpad (build 16948)\n"
#. module: warning
#: model:ir.model,name:warning.model_purchase_order_line
@@ -120,7 +121,7 @@ msgid ""
"block the flow. The Message has to be written in the next field."
msgstr ""
"Selecionando a opção de \"Aviso\" irá notificar o usuário com a mensagem, "
-"marcar \"Bloqueio de Mensagem\" irá lançar uma exceção com a mensagem e "
+"marcar \"Mensagem de Bloqueio\" irá lançar uma exceção com a mensagem e "
"bloquear o fluxo. A mensagem tem de ser escrita no campo a seguir."
#. module: warning