[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,
|
||||
'account_id': self.partner_id.property_account_receivable_id.id,
|
||||
'journal_id': self.session_id.config_id.invoice_journal_id.id,
|
||||
'company_id': self.company_id.id,
|
||||
'type': 'out_invoice',
|
||||
'reference': self.name,
|
||||
'partner_id': self.partner_id.id,
|
||||
|
||||
@@ -61,7 +61,7 @@ var Apps = Widget.extend({
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
$(window).off("message.apps");
|
||||
$(window).off("message." + this.uniq);
|
||||
if (this.$ifr) {
|
||||
this.$ifr.remove();
|
||||
this.$ifr = null;
|
||||
@@ -160,10 +160,11 @@ var Apps = Widget.extend({
|
||||
qs.debug = session.debug;
|
||||
}
|
||||
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);
|
||||
|
||||
$(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) {
|
||||
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
|
||||
listed states
|
||||
|
||||
.. danger::
|
||||
|
||||
Using ``states`` in combination with ``attrs`` may lead to
|
||||
unexpected results as domains are combined with a logical AND.
|
||||
``context``
|
||||
merged into the view's context when performing the button's Odoo call
|
||||
``confirm``
|
||||
|
||||
Reference in New Issue
Block a user