[MERGE] forward port branch saas-11 up to aa578e1bee
This commit is contained in:
@@ -162,6 +162,7 @@ class PosOrder(models.Model):
|
|||||||
'origin': self.name,
|
'origin': self.name,
|
||||||
'account_id': self.partner_id.property_account_receivable_id.id,
|
'account_id': self.partner_id.property_account_receivable_id.id,
|
||||||
'journal_id': self.session_id.config_id.invoice_journal_id.id,
|
'journal_id': self.session_id.config_id.invoice_journal_id.id,
|
||||||
|
'company_id': self.company_id.id,
|
||||||
'type': 'out_invoice',
|
'type': 'out_invoice',
|
||||||
'reference': self.name,
|
'reference': self.name,
|
||||||
'partner_id': self.partner_id.id,
|
'partner_id': self.partner_id.id,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ var Apps = Widget.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
$(window).off("message.apps");
|
$(window).off("message." + this.uniq);
|
||||||
if (this.$ifr) {
|
if (this.$ifr) {
|
||||||
this.$ifr.remove();
|
this.$ifr.remove();
|
||||||
this.$ifr = null;
|
this.$ifr = null;
|
||||||
@@ -160,10 +160,11 @@ var Apps = Widget.extend({
|
|||||||
qs.debug = session.debug;
|
qs.debug = session.debug;
|
||||||
}
|
}
|
||||||
var u = $.param.querystring(client.origin + "/apps/embed/client", qs);
|
var u = $.param.querystring(client.origin + "/apps/embed/client", qs);
|
||||||
var css = {width: '100%', height: '400px'};
|
var css = {width: '100%', height: '750px'};
|
||||||
self.$ifr = $('<iframe>').attr('src', u);
|
self.$ifr = $('<iframe>').attr('src', u);
|
||||||
|
|
||||||
$(window).on("message.apps", self.proxy('_on_message'));
|
self.uniq = _.uniqueId('apps');
|
||||||
|
$(window).on("message." + self.uniq, self.proxy('_on_message'));
|
||||||
|
|
||||||
self.on('message:ready', self, function(m) {
|
self.on('message:ready', self, function(m) {
|
||||||
var w = this.$ifr[0].contentWindow;
|
var w = this.$ifr[0].contentWindow;
|
||||||
|
|||||||
@@ -241,6 +241,11 @@ Possible children elements of the list view are:
|
|||||||
|
|
||||||
Makes the button ``invisible`` if the record is *not* in one of the
|
Makes the button ``invisible`` if the record is *not* in one of the
|
||||||
listed states
|
listed states
|
||||||
|
|
||||||
|
.. danger::
|
||||||
|
|
||||||
|
Using ``states`` in combination with ``attrs`` may lead to
|
||||||
|
unexpected results as domains are combined with a logical AND.
|
||||||
``context``
|
``context``
|
||||||
merged into the view's context when performing the button's Odoo call
|
merged into the view's context when performing the button's Odoo call
|
||||||
``confirm``
|
``confirm``
|
||||||
|
|||||||
Reference in New Issue
Block a user