Skip to content

Commit 99b81df

Browse files
committed
[ADD] pos_ship_later_default: Set ship later by default
1 parent 4cecf6d commit 99b81df

19 files changed

Lines changed: 863 additions & 0 deletions

pos_ship_later_default/README.rst

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
======================
6+
POS Ship Later Default
7+
======================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:c7e1fe92ea40120860decbb30852c07d5828d48f212783421f87d0a1cbf7b686
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
24+
:target: https://github.com/OCA/pos/tree/19.0/pos_ship_later_default
25+
:alt: OCA/pos
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_ship_later_default
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This module extends the functionality of the Point of Sale to allow
36+
setting a default "Ship Later" date.
37+
38+
It adds three configuration options:
39+
40+
- **Ship Later by Default**: Automatically mark new orders as "Ship
41+
Later".
42+
- **Delivery Delay**: Set the default shipping date by adding this
43+
number of days to the current date.
44+
- **Hide Ship Later Button**: Prevents the cashier from changing the
45+
ship later option.
46+
47+
**Table of contents**
48+
49+
.. contents::
50+
:local:
51+
52+
Usage
53+
=====
54+
55+
To use this module, you need to:
56+
57+
1. Go to Point of Sale > Configuration > Settings.
58+
2. Enable "Allow Ship Later".
59+
3. Check "Ship Later by Default".
60+
4. Set the "Delivery Delay" if you want a specific offset in days.
61+
5. Check "Hide Ship Later Button" if you want to force all orders to be
62+
shipped later without allowing the cashier to change it.
63+
64+
Bug Tracker
65+
===========
66+
67+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
68+
In case of trouble, please check there if your issue has already been reported.
69+
If you spotted it first, help us to smash it by providing a detailed and welcomed
70+
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_ship_later_default%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
71+
72+
Do not contact contributors directly about support or help with technical issues.
73+
74+
Credits
75+
=======
76+
77+
Authors
78+
-------
79+
80+
* Jarsa
81+
82+
Contributors
83+
------------
84+
85+
- Odoo Community Association (OCA)
86+
- Jarsa
87+
88+
Maintainers
89+
-----------
90+
91+
This module is maintained by the OCA.
92+
93+
.. image:: https://odoo-community.org/logo.png
94+
:alt: Odoo Community Association
95+
:target: https://odoo-community.org
96+
97+
OCA, or the Odoo Community Association, is a nonprofit organization whose
98+
mission is to support the collaborative development of Odoo features and
99+
promote its widespread use.
100+
101+
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/19.0/pos_ship_later_default>`_ project on GitHub.
102+
103+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

pos_ship_later_default/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "POS Ship Later Default",
3+
"version": "19.0.1.0.0",
4+
"category": "Sales/Point of Sale",
5+
"summary": "Set Ship Later by default in Point of Sale",
6+
"author": "Odoo Community Association (OCA), Jarsa",
7+
"website": "https://github.com/OCA/pos",
8+
"license": "AGPL-3",
9+
"depends": ["point_of_sale"],
10+
"data": [
11+
"views/res_config_settings_views.xml",
12+
],
13+
"assets": {
14+
"point_of_sale._assets_pos": [
15+
"pos_ship_later_default/static/src/overrides/**/*",
16+
],
17+
"web.assets_tests": [
18+
"pos_ship_later_default/static/tests/tours/pos_ship_later_default_tour.esm.js",
19+
],
20+
},
21+
"installable": True,
22+
}

pos_ship_later_default/i18n/es.po

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_ship_later_default
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 19.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2026-06-18 20:00+0000\n"
10+
"PO-Revision-Date: 2026-06-18 20:00+0000\n"
11+
"Language-Team: \n"
12+
"MIME-Version: 1.0\n"
13+
"Content-Type: text/plain; charset=UTF-8\n"
14+
"Content-Transfer-Encoding: \n"
15+
"Plural-Forms: \n"
16+
17+
#. module: pos_ship_later_default
18+
#: model:ir.model,name:pos_ship_later_default.model_pos_config
19+
msgid "Point of Sale Configuration"
20+
msgstr "Configuración del Punto de Venta"
21+
22+
#. module: pos_ship_later_default
23+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__ship_later_default
24+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_ship_later_default
25+
msgid "Ship Later by Default"
26+
msgstr "Enviar después por defecto"
27+
28+
#. module: pos_ship_later_default
29+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__hide_ship_later_button
30+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_hide_ship_later_button
31+
msgid "Hide Ship Later Button"
32+
msgstr "Ocultar botón de enviar después de UI"
33+
34+
#. module: pos_ship_later_default
35+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__ship_later_delivery_delay
36+
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_ship_later_delivery_delay
37+
msgid "Delivery Delay"
38+
msgstr "Retraso de entrega"
39+
40+
#. module: pos_ship_later_default
41+
#: model:ir.model.fields,help:pos_ship_later_default.field_pos_config__ship_later_delivery_delay
42+
msgid "Number of days to add to the current date for the default shipping date."
43+
msgstr "Número de días a sumar a la fecha actual para la fecha de envío por defecto."
44+
45+
#. module: pos_ship_later_default
46+
#: model_terms:ir.ui.view,arch_db:pos_ship_later_default.res_config_settings_view_form
47+
msgid "Set Ship Later by default on new orders."
48+
msgstr "Establecer Enviar después por defecto en los nuevos pedidos."
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import pos_config
2+
from . import res_config_settings
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from odoo import fields, models
2+
3+
4+
class PosConfig(models.Model):
5+
_inherit = "pos.config"
6+
7+
ship_later_default = fields.Boolean(
8+
string="Ship Later by Default",
9+
)
10+
ship_later_delivery_delay = fields.Integer(
11+
string="Delivery Delay",
12+
default=0,
13+
help="Number of days to add to the current date for the default shipping date.",
14+
)
15+
hide_ship_later_button = fields.Boolean(
16+
help="Prevents the cashier from changing the ship later option."
17+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from odoo import fields, models
2+
3+
4+
class ResConfigSettings(models.TransientModel):
5+
_inherit = "res.config.settings"
6+
7+
pos_ship_later_default = fields.Boolean(
8+
related="pos_config_id.ship_later_default",
9+
readonly=False,
10+
)
11+
pos_ship_later_delivery_delay = fields.Integer(
12+
related="pos_config_id.ship_later_delivery_delay",
13+
readonly=False,
14+
)
15+
pos_hide_ship_later_button = fields.Boolean(
16+
related="pos_config_id.hide_ship_later_button",
17+
readonly=False,
18+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Odoo Community Association (OCA)
2+
- Jarsa
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This module extends the functionality of the Point of Sale to allow
2+
setting a default "Ship Later" date.
3+
4+
It adds three configuration options:
5+
6+
- **Ship Later by Default**: Automatically mark new orders as "Ship
7+
Later".
8+
- **Delivery Delay**: Set the default shipping date by adding this
9+
number of days to the current date.
10+
- **Hide Ship Later Button**: Prevents the cashier from changing the
11+
ship later option.

0 commit comments

Comments
 (0)