Browse Source

[MIG] pos_picking_delayed: Migration to 11.0

- Backported from 12.0
pull/386/head
David 5 years ago
parent
commit
a09c26c6f1
  1. 1
      oca_dependencies.txt
  2. 28
      pos_picking_delayed/README.rst
  3. 4
      pos_picking_delayed/__manifest__.py
  4. 3
      pos_picking_delayed/readme/CONTRIBUTORS.rst
  5. 12
      pos_picking_delayed/static/description/index.html
  6. 16
      pos_picking_delayed/tests/test_module.py
  7. 16
      pos_picking_delayed/views/view_pos_config.xml

1
oca_dependencies.txt

@ -1,4 +1,5 @@
# list the OCA project dependencies, one per line
# add a github url if you need a forked version
account-payment
queue
stock-logistics-workflow

28
pos_picking_delayed/README.rst

@ -7,20 +7,20 @@ Point of Sale - Picking Creation Delayed
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-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/12.0/pos_picking_delayed
:target: https://github.com/OCA/pos/tree/11.0/pos_picking_delayed
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_picking_delayed
:target: https://translation.odoo-community.org/projects/pos-11-0/pos-11-0-pos_picking_delayed
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/12.0
:target: https://runbot.odoo-community.org/runbot/184/11.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@ -72,7 +72,7 @@ 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_picking_delayed%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_picking_delayed%0Aversion:%2011.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.
@ -88,6 +88,9 @@ Contributors
~~~~~~~~~~~~
* Sylvain LE GAL <https://twitter.com/legalsylvain>
* `Tecnativa <https://www.tecnativa.com>`_
* David Vidal
Other credits
~~~~~~~~~~~~~
@ -110,6 +113,17 @@ 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/12.0/pos_picking_delayed>`_ project on GitHub.
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain
.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-legalsylvain| |maintainer-chienandalu|
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/11.0/pos_picking_delayed>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

4
pos_picking_delayed/__manifest__.py

@ -4,10 +4,12 @@
{
'name': 'Point of Sale - Picking Creation Delayed',
'summary': 'Delay the creation of the picking when PoS order is created',
'version': '12.0.1.0.0',
'version': '11.0.1.0.0',
'development_status': "Production/Stable",
'category': 'Point Of Sale',
'author': 'GRAP, '
'Odoo Community Association (OCA)',
'maintainers': ['legalsylvain', 'chienandalu'],
'license': 'AGPL-3',
'website': 'https://www.github.com/OCA/pos',
'depends': [

3
pos_picking_delayed/readme/CONTRIBUTORS.rst

@ -1 +1,4 @@
* Sylvain LE GAL <https://twitter.com/legalsylvain>
* `Tecnativa <https://www.tecnativa.com>`_
* David Vidal

12
pos_picking_delayed/static/description/index.html

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_picking_delayed"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_picking_delayed"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/11.0/pos_picking_delayed"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-11-0/pos-11-0-pos_picking_delayed"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of odoo Point Of Sale to reduce creation
time of the PoS orders, via the front UI.</p>
<p>For that purpose, it delays the creation of the picking associated, that will
@ -421,7 +421,7 @@ be in a different color until the job is executed</li>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_picking_delayed%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_picking_delayed%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -436,6 +436,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a><ul>
<li>David Vidal</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="other-credits">
@ -453,7 +457,9 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/12.0/pos_picking_delayed">OCA/pos</a> project on GitHub.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a> <a class="reference external" href="https://github.com/chienandalu"><img alt="chienandalu" src="https://github.com/chienandalu.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/11.0/pos_picking_delayed">OCA/pos</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

16
pos_picking_delayed/tests/test_module.py

@ -11,9 +11,19 @@ class TestModule(TransactionCase):
super(TestModule, self).setUp()
self.PosOrder = self.env['pos.order']
self.QueueJob = self.env['queue.job']
self.pos_product = self.env.ref('point_of_sale.whiteboard_pen')
self.pricelist = self.env.ref('product.list0')
self.pos_product = self.env['product.product'].create({
'name': 'Test POS product',
'type': 'product',
'available_in_pos': True,
})
self.pricelist = self.env['product.pricelist'].create({
'name': 'Test pricelist',
'item_ids': [(0, 0, {
'applied_on': '3_global',
'compute_price': 'formula',
'base': 'list_price',
})]
})
# Create a new pos config and open it
self.pos_config = self.env.ref('point_of_sale.pos_config_main').copy()
self.pos_config.open_session_cb()

16
pos_picking_delayed/views/view_pos_config.xml

@ -8,10 +8,18 @@
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='title']" position="after">
<group string="Picking Creation Delayed">
<field name="picking_creation_delayed"/>
</group>
<xpath expr="//div[@id='inventory_location']" position="inside">
<div class="col-xs-12 col-md-6 o_setting_box" id="load_done_order">
<div class="o_setting_left_pane">
<field name="picking_creation_delayed"/>
</div>
<div class="o_setting_right_pane">
<label string="Picking Creation Delayed"/>
<div class="text-muted">
Use Queue Jobs to process order pickings
</div>
</div>
</div>
</xpath>
</field>
</record>

Loading…
Cancel
Save