Skip to content

Commit 90bb3b9

Browse files
committed
[ADD] sale_order_client_order_ref_mandatory
For a Sale Order, makes required client_order_ref field and reposition it,for both form view and Sale reports. Also makes this field searchable and add an optional column on both quotation and sale orders lists.
1 parent e7ddc73 commit 90bb3b9

11 files changed

+35
-25
lines changed

sale_order_client_order_ref_mandatory/README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sale Order Client Order Ref Mandatory
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:73c35827c4c47aac9c9519fb8728d6290ce1ef06e05f7df9f4c6cb285ff20653
10+
!! source digest: sha256:7958cbf2a8aa393f6b649de571594b362d2043e10285117f485b8cfa5a33e49f
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -39,30 +39,30 @@ Sale Order Form View
3939
Before
4040
~~~~~~
4141

42-
|image1|
42+
|sale_order_before|
4343

4444
After
4545
~~~~~
4646

47-
|image2|
47+
|sale_order_after|
4848

4949
Sale Report
5050
-----------
5151

5252
Before
5353
~~~~~~
5454

55-
|image3|
55+
|template_before|
5656

5757
After
5858
~~~~~
5959

60-
|image4|
60+
|template_after|
6161

62-
.. |image1| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_sale_order_before_image.png
63-
.. |image2| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_sale_order_after_image.png
64-
.. |image3| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_before_image.png
65-
.. |image4| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_after_image.png
62+
.. |sale_order_before| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_before_image.png
63+
.. |sale_order_after| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_after_image.png
64+
.. |template_before| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_before_image.png
65+
.. |template_after| image:: https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_after_image.png
6666

6767
**Table of contents**
6868

sale_order_client_order_ref_mandatory/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"views/sale_order_view.xml",
1616
"report/sale_order_report_templates.xml",
1717
],
18-
'installable': True,
18+
"installable": True,
1919
}

sale_order_client_order_ref_mandatory/readme/DESCRIPTION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Also makes this field searchable and add an optional column on both quotation an
44

55
## Sale Order Form View
66
### Before
7-
![](../static/img/client_order_ref_sale_order_before_image.png)
7+
![sale_order_before](../static/description/client_sale_order_ref_before_image.png)
88
### After
9-
![](../static/img/client_order_ref_sale_order_after_image.png)
9+
![sale_order_after](../static/description/client_sale_order_ref_after_image.png)
1010

1111
## Sale Report
1212
### Before
13-
![](../static/img/client_order_ref_template_before_image.png)
13+
![template_before](../static/description/client_sale_order_ref_template_before_image.png)
1414
### After
15-
![](../static/img/client_order_ref_template_after_image.png)
15+
![template_after](../static/description/client_sale_order_ref_template_after_image.png)
58.4 KB
Loading
52.3 KB
Loading

sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_after_image.png renamed to sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_after_image.png

File renamed without changes.

sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_before_image.png renamed to sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_before_image.png

File renamed without changes.

sale_order_client_order_ref_mandatory/static/description/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Sale Order Client Order Ref Mandatory</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:73c35827c4c47aac9c9519fb8728d6290ce1ef06e05f7df9f4c6cb285ff20653
370+
!! source digest: sha256:7958cbf2a8aa393f6b649de571594b362d2043e10285117f485b8cfa5a33e49f
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<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/OCA/sale-workflow/tree/18.0/sale_order_client_order_ref_mandatory"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_client_order_ref_mandatory"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>For a Sale Order, makes required client_order_ref field and reposition
@@ -378,22 +378,22 @@ <h1 class="title">Sale Order Client Order Ref Mandatory</h1>
378378
<h1>Sale Order Form View</h1>
379379
<div class="section" id="before">
380380
<h2>Before</h2>
381-
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_sale_order_before_image.png" /></p>
381+
<p><img alt="sale_order_before" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_before_image.png" /></p>
382382
</div>
383383
<div class="section" id="after">
384384
<h2>After</h2>
385-
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_sale_order_after_image.png" /></p>
385+
<p><img alt="sale_order_after" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_after_image.png" /></p>
386386
</div>
387387
</div>
388388
<div class="section" id="sale-report">
389389
<h1>Sale Report</h1>
390390
<div class="section" id="before-1">
391391
<h2>Before</h2>
392-
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_before_image.png" /></p>
392+
<p><img alt="template_before" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_before_image.png" /></p>
393393
</div>
394394
<div class="section" id="after-1">
395395
<h2>After</h2>
396-
<p><img alt="image4" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/img/client_order_ref_template_after_image.png" /></p>
396+
<p><img alt="template_after" src="https://raw.githubusercontent.com/OCA/sale-workflow/18.0/sale_order_client_order_ref_mandatory/static/description/client_sale_order_ref_template_after_image.png" /></p>
397397
<p><strong>Table of contents</strong></p>
398398
<div class="contents local topic" id="contents">
399399
<ul class="simple">
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)