Skip to content

Commit

Permalink
[FIX] some syntax fixes + added context.rst files
Browse files Browse the repository at this point in the history
  • Loading branch information
benwillig committed Jun 5, 2024
1 parent 6d94f46 commit 239b573
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
7 changes: 6 additions & 1 deletion shopinvader_address_shipping_note/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Shopinvader Address Shipping Note
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ee046daab60d1b3b9ca2cade67300beeef018ad55570bfc16f3539c485293eb7
!! source digest: sha256:77b13408aabf40da7deca52b7063345b7fd0432f3892ae662bd365f66f3386af
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -29,6 +29,11 @@ Adds a field shipping note on res.partner
.. contents::
:local:

Use Cases / Context
===================

When being delivered, customer might want to give more information for the shipping of a specific address.

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

Expand Down
1 change: 1 addition & 0 deletions shopinvader_address_shipping_note/readme/CONTEXT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When being delivered, customer might want to give more information for the shipping of a specific address.
27 changes: 16 additions & 11 deletions shopinvader_address_shipping_note/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,46 +367,51 @@ <h1 class="title">Shopinvader Address Shipping Note</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ee046daab60d1b3b9ca2cade67300beeef018ad55570bfc16f3539c485293eb7
!! source digest: sha256:77b13408aabf40da7deca52b7063345b7fd0432f3892ae662bd365f66f3386af
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_address_shipping_note"><img alt="shopinvader/odoo-shopinvader" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github" /></a></p>
<p>Adds a field shipping note on res.partner</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
<li><a class="reference internal" href="#use-cases-context" id="toc-entry-1">Use Cases / Context</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="use-cases-context">
<h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
<p>When being delivered, customer might want to give more information for the shipping of a specific address.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/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 to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_address_shipping_note%0Aversion:%2016.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">
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<ul class="simple">
<li>ACSONE SA/NV</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Zina Rasoamanana &lt;<a class="reference external" href="mailto:zina.rasoamanana&#64;acsone.eu">zina.rasoamanana&#64;acsone.eu</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_address_shipping_note">shopinvader/odoo-shopinvader</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions shopinvader_api_address_shipping_note/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from odoo.addons.shopinvader_schema_address.schemas import DeliveryAddress


class ShippingAddressNote(DeliveryAddress, extends=DeliveryAddress):
class ShippingAddressNote(DeliveryAddress, extends=True):
"""
Shipping Address
"""
Expand All @@ -23,7 +23,7 @@ def from_res_partner(cls, odoo_rec):
return res


class ShippingAddressNoteCreate(DeliveryAddressCreate, extends=DeliveryAddressCreate):
class ShippingAddressNoteCreate(DeliveryAddressCreate, extends=True):
"""
Creation of Shipping Address
"""
Expand All @@ -38,7 +38,7 @@ def to_res_partner_vals(self) -> dict:
return vals


class ShippingAddressNoteUpdate(DeliveryAddressUpdate, extends=DeliveryAddressUpdate):
class ShippingAddressNoteUpdate(DeliveryAddressUpdate, extends=True):
"""
Update of Shipping Address
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_get_shipping_address(self):
Test to get shipping address of authenticated_partner
"""

with self._create_test_client(router=address_router) as test_client:
with self._create_test_client() as test_client:
response: Response = test_client.get(
"/addresses/delivery",
)
Expand Down Expand Up @@ -91,7 +91,7 @@ def test_get_shipping_address(self):
}
)

with self._create_test_client(router=address_router) as test_client:
with self._create_test_client() as test_client:
response: Response = test_client.get(
"/addresses/delivery",
)
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_create_shipping_address(self):
"shipping_note": "test note",
}

with self._create_test_client(router=address_router) as test_client:
with self._create_test_client() as test_client:
response: Response = test_client.post(
"/addresses/delivery", content=json.dumps(data)
)
Expand Down

0 comments on commit 239b573

Please sign in to comment.