Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
30e94f4c
Commit
30e94f4c
authored
Jan 26, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_cooperatic' of gl.cooperatic.fr:cooperatic-foodcoops/odoo into dev_cooperatic
parents
26faa235
53cb1f53
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
+45
-0
__init__.py
lacagette_addons/pos_remove_0_qty/__init__.py
+3
-0
__openerp__.py
lacagette_addons/pos_remove_0_qty/__openerp__.py
+24
-0
__init__.py
lacagette_addons/pos_remove_0_qty/models/__init__.py
+2
-0
pos_order.py
lacagette_addons/pos_remove_0_qty/models/pos_order.py
+16
-0
No files found.
lacagette_addons/pos_remove_0_qty/__init__.py
0 → 100644
View file @
30e94f4c
# -*- coding: utf-8 -*-
from
.
import
models
lacagette_addons/pos_remove_0_qty/__openerp__.py
0 → 100644
View file @
30e94f4c
# -*- coding: utf-8 -*-
# Copyright (C) 2016-Today: BEES coop (<http://www.bees-coop.be/>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name'
:
'Beesdoo - Remove pos order line with quantity set to 0'
,
'version'
:
'9.0.1.0.0'
,
'category'
:
'Custom'
,
'summary'
:
'Remove pos order line with quantity set to 0'
,
'description'
:
"""
This module fix the issue on picking when there is two lines on
the pos order for the same product, with one of lines with a 0 quantity.
The lines at 0 are removed before the pos order is processed to avoid
such issue.
"""
,
'author'
:
'BEES coop - Houssine BAKKALI'
,
'website'
:
'http://www.bees-coop.be'
,
'depends'
:
[
'point_of_sale'
,
],
'data'
:
[],
'installable'
:
True
,
}
lacagette_addons/pos_remove_0_qty/models/__init__.py
0 → 100644
View file @
30e94f4c
# -*- coding: utf-8 -*-
from
.
import
pos_order
lacagette_addons/pos_remove_0_qty/models/pos_order.py
0 → 100644
View file @
30e94f4c
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from
openerp
import
api
,
models
class
PosOrder
(
models
.
Model
):
_inherit
=
'pos.order'
@api.model
def
_process_order
(
self
,
order
):
lines
=
order
[
'lines'
]
order
[
'lines'
]
=
[
l
for
l
in
lines
if
l
[
2
][
'qty'
]
!=
0
]
return
super
(
PosOrder
,
self
)
.
_process_order
(
order
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment