From 32bccb877b711fd3cf20d290db0a8390c0e676b7 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 8 Sep 2011 14:55:10 +0200 Subject: [IMP] look of non-selectable or non-editable editable list views when a row is being edited dynamically add and remove padding rows lp bug: https://launchpad.net/bugs/842644 fixed bzr revid: xmo@openerp.com-20110908125510-fb7vcjsixj5sqhpz --- addons/web/static/src/xml/base.xml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5ac1929fce3..7a6610850b3 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -566,7 +566,7 @@ - + @@ -1211,21 +1211,11 @@ - - $(document.createElement('t')) - .append(this.contents()) - .attr({ - 't-foreach': this.attr('t-foreach'), - 't-as': this.attr('t-as') - }) - .replaceAll(this) - .after($(document.createElement('td')).append( - $(document.createElement('button')).attr({ - 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save'))) - .before($(document.createElement('td')).append( - $(document.createElement('button')).attr({ - 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel'))) - .unwrap(); + + + + + -- cgit v1.2.3 From c5ac762b2062ca7626ed85b0321450b87d073e0c Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:06:45 +0200 Subject: [imp] setup of templates for status widget bzr revid: nicolas.vanhoren@openerp.com-20110908150645-uqj6f9f5icnsf3jx --- addons/web/static/src/xml/base.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 7a6610850b3..55fc09c6e47 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1376,5 +1376,11 @@ Depending on your needs, OpenERP is available through a web or application client.

+
+ +
+
+ + -- cgit v1.2.3 From e63c4a5feaccb044c15c685d94c54a46de25b292 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:09:32 +0200 Subject: [imp] improved status widget templates behavior bzr revid: nicolas.vanhoren@openerp.com-20110908150932-kfyot4ivb6auhnod --- addons/web/static/src/xml/base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 55fc09c6e47..89549e5c18f 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1381,6 +1381,6 @@
- + Je suis un gentil poulet. -- cgit v1.2.3 From 9cf066a790fa58d1c1206a9462bbb1480a1ff284 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:11:53 +0200 Subject: [imp] put first example of status field with css bzr revid: nicolas.vanhoren@openerp.com-20110908151153-7jiqei1abo90q6sx --- addons/web/static/src/xml/base.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 89549e5c18f..5889e44aa55 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1381,6 +1381,16 @@
- Je suis un gentil poulet. +
    +
  • + Je suis +
  • +
  • + un gentil +
  • +
  • + poulet +
  • +
-- cgit v1.2.3 From 40d3b9cb49ec6e45110fdba8ba46f11dfe867160 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:23:37 +0200 Subject: [imp] added selected indication in status widget bzr revid: nicolas.vanhoren@openerp.com-20110908152337-6xsfyicntnm6t7mx --- addons/web/static/src/xml/base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5889e44aa55..32296d1a0c2 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1385,7 +1385,7 @@
  • Je suis
  • -
  • +
  • un gentil
  • -- cgit v1.2.3 From 38df96f12482bef061a73bd647a58fce7ddbe2e5 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:37:15 +0200 Subject: [imp] now status widget list possible selections bzr revid: nicolas.vanhoren@openerp.com-20110908153715-k3ur78w85kb24iv7 --- addons/web/static/src/xml/base.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 32296d1a0c2..02c013d954a 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1382,15 +1382,19 @@
      -
    • - Je suis -
    • + + +
    • + +
    • +
      +
    -- cgit v1.2.3 From c2ad26f34ce4bbf3338db0ef7e2355058a3ae1e9 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 17:45:51 +0200 Subject: [imp] now status widget correctly highlights the selected item bzr revid: nicolas.vanhoren@openerp.com-20110908154551-oti347kv6f7h0q2y --- addons/web/static/src/xml/base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 02c013d954a..3719d4744ef 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1384,7 +1384,7 @@
      -
    • +
    • -- cgit v1.2.3 From ec24f26ca66f65b76d991585353c65c9d0d7d1e8 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 18:04:51 +0200 Subject: [imp] improved css of status widget bzr revid: nicolas.vanhoren@openerp.com-20110908160451-gh5josp0nmn3vn7u --- addons/web/static/src/xml/base.xml | 7 ------- 1 file changed, 7 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 3719d4744ef..c46dbd6ab72 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1388,13 +1388,6 @@
      -
    -- cgit v1.2.3 From 7987d3a2f6ebc1256a33320c0d2d964687c11be4 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Sep 2011 18:35:36 +0200 Subject: [imp] added possibility to only show some states in status widget bzr revid: nicolas.vanhoren@openerp.com-20110908163536-bewx1817u96t11rc --- addons/web/static/src/xml/base.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index c46dbd6ab72..385d7bfd48b 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1382,10 +1382,10 @@
      - + -
    • - +
    • +
    -- cgit v1.2.3 From bd92c1282bab819d05f5020d25b72cd19d7ccf37 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 9 Sep 2011 15:42:44 +0200 Subject: [REV] base.xml changes of xmo@openerp.com-20110908125510-fb7vcjsixj5sqhpz: new version was simpler, it was also completely broken issue here is that element bears a foreach, which we have to keep, so can't just insert new tds in the row (they'll get repeated), we can't remove the tr (not without grafting the old attributes), etc... it's really kind-of a pain. Basically, the replaceAll() is used to make the just created replace the matched, the unwrapAll removes the around it all, resulting in a with the buttons inserted before and after it, all landed in the editable-listview-generated-row bzr revid: xmo@openerp.com-20110909134244-mbf5sf4to09fvsyi --- addons/web/static/src/xml/base.xml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 385d7bfd48b..8b0fda2b83f 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1211,11 +1211,21 @@ - - - - - + + $(document.createElement('t')) + .append(this.contents()) + .attr({ + 't-foreach': this.attr('t-foreach'), + 't-as': this.attr('t-as') + }) + .replaceAll(this) + .after($(document.createElement('td')).append( + $(document.createElement('button')).attr({ + 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save'))) + .before($(document.createElement('td')).append( + $(document.createElement('button')).attr({ + 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel'))) + .unwrap(); -- cgit v1.2.3 From 76356580349f3f11bcbe1eaf96ca3c309a60445e Mon Sep 17 00:00:00 2001 From: "Vaibhav (OpenERP)" Date: Mon, 12 Sep 2011 13:54:26 +0530 Subject: [FIX] Override viewmanager,show stars when called from actionmanager. bzr revid: vda@tinyerp.com-20110912082426-snwh0cc5ac75g7xz --- addons/web/static/src/xml/base.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 677488d9d7d..5c2b2f0000d 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -420,8 +420,6 @@
    -
    + + + + + + +