File tree 3 files changed +20
-22
lines changed
3 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 3
3
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
4
5
5
{
6
- ' name' : ' Point of Sale - Products Sorted by Name' ,
7
- ' version' : ' 12.0.1.0.1' ,
8
- ' category' : ' Point Of Sale' ,
9
- ' summary' : '''
6
+ " name" : " Point of Sale - Products Sorted by Name" ,
7
+ " version" : " 12.0.1.0.1" ,
8
+ " category" : " Point Of Sale" ,
9
+ " summary" : """
10
10
sort the products by name in the point of sale
11
11
instead of sorting them by the sequence field.
12
- ''' ,
13
- 'author' : 'GRAP, Odoo Community Association (OCA)' ,
14
- 'website' : 'https://github.com/OCA/pos' ,
15
- 'license' : 'AGPL-3' ,
16
- 'depends' : [
17
- 'point_of_sale' ,
18
- ],
19
- 'data' : [
20
- 'views/assets.xml' ,
21
- ],
12
+ """ ,
13
+ "author" : "GRAP, Odoo Community Association (OCA)" ,
14
+ "website" : "https://github.com/OCA/pos" ,
15
+ "license" : "AGPL-3" ,
16
+ "depends" : ["point_of_sale" ,],
17
+ "data" : ["views/assets.xml" ,],
22
18
}
Original file line number Diff line number Diff line change 4
4
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
5
5
*/
6
6
7
- odoo . define ( ' pos_product_sort.models' , function ( require ) {
7
+ odoo . define ( " pos_product_sort.models" , function ( require ) {
8
8
"use strict" ;
9
9
10
- var models = require ( ' point_of_sale.models' ) ;
10
+ var models = require ( " point_of_sale.models" ) ;
11
11
var PosModelSuper = models . PosModel ;
12
12
13
13
models . PosModel = models . PosModel . extend ( {
14
14
initialize : function ( session , attributes ) {
15
15
var self = this ;
16
- _ . each ( self . models , function ( model ) {
17
- if ( model . model === ' product.product' ) {
18
- model . order = [ { name : ' name' } ] ;
16
+ _ . each ( self . models , function ( model ) {
17
+ if ( model . model === " product.product" ) {
18
+ model . order = [ { name : " name" } ] ;
19
19
}
20
20
} ) ;
21
21
return PosModelSuper . prototype . initialize . call ( this , session , attributes ) ;
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!--
3
3
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
4
4
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
5
5
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6
6
-->
7
-
8
7
<odoo >
9
8
<template id =" assets_frontend" inherit_id =" point_of_sale.assets" >
10
9
<xpath expr =" ." position =" inside" >
11
- <script type =" text/javascript" src =" /pos_product_sort/static/src/js/models.js" ></script >
10
+ <script
11
+ type =" text/javascript"
12
+ src =" /pos_product_sort/static/src/js/models.js"
13
+ />
12
14
</xpath >
13
15
</template >
14
16
</odoo >
You can’t perform that action at this time.
0 commit comments