Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
103 changes: 103 additions & 0 deletions pos_ship_later_default/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

======================
POS Ship Later Default
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c7e1fe92ea40120860decbb30852c07d5828d48f212783421f87d0a1cbf7b686
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/19.0/pos_ship_later_default
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_ship_later_default
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of the Point of Sale to allow
setting a default "Ship Later" date.

It adds three configuration options:

- **Ship Later by Default**: Automatically mark new orders as "Ship
Later".
- **Delivery Delay**: Set the default shipping date by adding this
number of days to the current date.
- **Hide Ship Later Button**: Prevents the cashier from changing the
ship later option.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to Point of Sale > Configuration > Settings.
2. Enable "Allow Ship Later".
3. Check "Ship Later by Default".
4. Set the "Delivery Delay" if you want a specific offset in days.
5. Check "Hide Ship Later Button" if you want to force all orders to be
shipped later without allowing the cashier to change it.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`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**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Jarsa

Contributors
------------

- Odoo Community Association (OCA)
- Jarsa

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/19.0/pos_ship_later_default>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_ship_later_default/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions pos_ship_later_default/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "POS Ship Later Default",
"version": "19.0.1.0.0",
"category": "Sales/Point of Sale",
"summary": "Set Ship Later by default in Point of Sale",
"author": "Odoo Community Association (OCA), Jarsa",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"views/res_config_settings_views.xml",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_ship_later_default/static/src/overrides/**/*",
],
"web.assets_tests": [
"pos_ship_later_default/static/tests/tours/pos_ship_later_default_tour.esm.js",
],
},
"installable": True,
}
48 changes: 48 additions & 0 deletions pos_ship_later_default/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_ship_later_default
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-18 20:00+0000\n"
"PO-Revision-Date: 2026-06-18 20:00+0000\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_ship_later_default
#: model:ir.model,name:pos_ship_later_default.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del Punto de Venta"

#. module: pos_ship_later_default
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__ship_later_default
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_ship_later_default
msgid "Ship Later by Default"
msgstr "Enviar después por defecto"

#. module: pos_ship_later_default
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__hide_ship_later_button
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_hide_ship_later_button
msgid "Hide Ship Later Button"
msgstr "Ocultar botón de enviar después de UI"

#. module: pos_ship_later_default
#: model:ir.model.fields,field_description:pos_ship_later_default.field_pos_config__ship_later_delivery_delay
#: model:ir.model.fields,field_description:pos_ship_later_default.field_res_config_settings__pos_ship_later_delivery_delay
msgid "Delivery Delay"
msgstr "Retraso de entrega"

#. module: pos_ship_later_default
#: model:ir.model.fields,help:pos_ship_later_default.field_pos_config__ship_later_delivery_delay
msgid "Number of days to add to the current date for the default shipping date."
msgstr "Número de días a sumar a la fecha actual para la fecha de envío por defecto."

#. module: pos_ship_later_default
#: model_terms:ir.ui.view,arch_db:pos_ship_later_default.res_config_settings_view_form
msgid "Set Ship Later by default on new orders."
msgstr "Establecer Enviar después por defecto en los nuevos pedidos."
2 changes: 2 additions & 0 deletions pos_ship_later_default/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import pos_config
from . import res_config_settings
17 changes: 17 additions & 0 deletions pos_ship_later_default/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from odoo import fields, models


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

ship_later_default = fields.Boolean(
string="Ship Later by Default",
)
ship_later_delivery_delay = fields.Integer(
string="Delivery Delay",
default=0,
help="Number of days to add to the current date for the default shipping date.",
)
hide_ship_later_button = fields.Boolean(
help="Prevents the cashier from changing the ship later option."
)
18 changes: 18 additions & 0 deletions pos_ship_later_default/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

pos_ship_later_default = fields.Boolean(
related="pos_config_id.ship_later_default",
readonly=False,
)
pos_ship_later_delivery_delay = fields.Integer(
related="pos_config_id.ship_later_delivery_delay",
readonly=False,
)
pos_hide_ship_later_button = fields.Boolean(
related="pos_config_id.hide_ship_later_button",
readonly=False,
)
3 changes: 3 additions & 0 deletions pos_ship_later_default/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions pos_ship_later_default/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Odoo Community Association (OCA)
- Jarsa
11 changes: 11 additions & 0 deletions pos_ship_later_default/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This module extends the functionality of the Point of Sale to allow
setting a default "Ship Later" date.

It adds three configuration options:

- **Ship Later by Default**: Automatically mark new orders as "Ship
Later".
- **Delivery Delay**: Set the default shipping date by adding this
number of days to the current date.
- **Hide Ship Later Button**: Prevents the cashier from changing the
ship later option.
8 changes: 8 additions & 0 deletions pos_ship_later_default/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To use this module, you need to:

1. Go to Point of Sale \> Configuration \> Settings.
2. Enable "Allow Ship Later".
3. Check "Ship Later by Default".
4. Set the "Delivery Delay" if you want a specific offset in days.
5. Check "Hide Ship Later Button" if you want to force all orders to be
shipped later without allowing the cashier to change it.
Loading
Loading