Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] pos_default_quantity #27

Open
wants to merge 25 commits into
base: 16.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3228036
pos_default_quantity: sets default orderline quantity
robinkeunen Feb 27, 2019
aee3b19
pos_default_quantity: readme
robinkeunen Mar 11, 2019
da86505
pos_default_quantity: don't set default quantity on restored lines
robinkeunen Dec 23, 2019
3602800
pos_default_quantity: migration to 10.0 - followed oca guidelines - n…
vvrossem Apr 15, 2020
de388c2
pos_default_quantity: migration to 11.0 - followed oca guidelines - n…
vvrossem Apr 15, 2020
fff942d
pos_default_quantity: migration to 12.0 - followed oca guidelines
vvrossem Apr 15, 2020
6048c8a
pos_default_quantity: adaptation to 12.0
vvrossem Apr 15, 2020
5e3a668
pos_default_quantity: black formatter
vvrossem Apr 15, 2020
fd35ce8
pos_default_quantity: default value to 1
vvrossem Apr 15, 2020
bbee647
pos_default_quantity: request changes
vvrossem May 6, 2020
322b2f4
CI config and fixes
robinkeunen Jun 23, 2020
7c93ab4
precommit configuration
robinkeunen Sep 13, 2021
96197d2
SCRLfs → SC
carmenbianca Jun 29, 2022
be63de0
README.rst
github-grap-bot Jun 29, 2022
49f1b13
Apply pre-commit, SCRLfs → SC
carmenbianca Jul 19, 2022
8d9c989
Update pos_default_quantity.pot
Jul 19, 2022
f89eb86
pos_default_quantity 12.0.1.0.1
github-grap-bot Jul 19, 2022
98c2ee4
pos_default_quantity: Improve description of module
carmenbianca Sep 24, 2024
78895be
pos_default_quantity: Use standard naming
carmenbianca Sep 24, 2024
1916f37
pos_default_quantity: Migration to 13.0
carmenbianca Sep 24, 2024
34793e8
pos_default_quantity: Migration to 14.0
carmenbianca Sep 24, 2024
2ca6db4
pos_default_quantity: Migration to 15.0
carmenbianca Sep 24, 2024
ccf86d1
pos_default_quantity: Migration to 16.0
carmenbianca Sep 24, 2024
5d466ea
pos_default_quantity: Document context
carmenbianca Oct 14, 2024
f777d49
[FIX] pos_default_quantity: Fix manifest website
carmenbianca Oct 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pos_default_quantity: black formatter
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
  • Loading branch information
vvrossem authored and carmenbianca committed Oct 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5e3a668d58c117b587901c73f88cf7c076db76a1
14 changes: 6 additions & 8 deletions pos_default_quantity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -12,13 +12,11 @@
When adding an to order line, this module sets the quantity to
the default quantity set on the product unit category.
""",
"depends": [
'point_of_sale',
"depends": ["point_of_sale",],
"data": [
"views/pos_config.xml",
"views/product_view.xml",
"static/src/xml/templates.xml",
],
'data': [
'views/pos_config.xml',
'views/product_view.xml',
'static/src/xml/templates.xml',
],
'installable': True,
"installable": True,
}
5 changes: 2 additions & 3 deletions pos_default_quantity/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -6,9 +6,8 @@


class PosConfig(models.Model):
_inherit = 'pos.config'
_inherit = "pos.config"

set_default_product_quantity = fields.Boolean(
string='Sets default product quantity in POS',
default=False,
string="Sets default product quantity in POS", default=False,
)
7 changes: 2 additions & 5 deletions pos_default_quantity/models/product.py
Original file line number Diff line number Diff line change
@@ -6,9 +6,6 @@


class UoMCategory(models.Model):
_inherit = 'uom.category'
_inherit = "uom.category"

pos_default_qty = fields.Float(
string='POS Default Quantity',
default=0,
)
pos_default_qty = fields.Float(string="POS Default Quantity", default=0,)