File tree Expand file tree Collapse file tree 8 files changed +38
-31
lines changed
Expand file tree Collapse file tree 8 files changed +38
-31
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,16 @@ Contributors
131131
132132 - Frederic Grall
133133
134+ - `Trobz <https://trobz.com >`__:
135+
136+ - Khoi (Kien Kim) <khoikk@trobz.com>
137+
138+ Other credits
139+ -------------
140+
141+ The migration of this module from 17.0 to 18.0 was financially supported
142+ by Camptocamp.
143+
134144Maintainers
135145-----------
136146
Original file line number Diff line number Diff line change 55 "name" : "Product Lot Sequence" ,
66 "summary" : """
77 Adds ability to define a lot sequence from the product""" ,
8- "version" : "17 .0.1.0.0" ,
8+ "version" : "18 .0.1.0.0" ,
99 "license" : "AGPL-3" ,
1010 "author" : "ForgeFlow S.L., Odoo Community Association (OCA)" ,
1111 "website" : "https://github.com/OCA/product-attribute" ,
Original file line number Diff line number Diff line change 77 - Yoshi Tashiro
88- [ Apik] ( https://www.apik.cloud ) :
99 - Frederic Grall
10+ - [ Trobz] ( https://trobz.com ) :
11+ - Khoi (Kien Kim) \< < khoikk@trobz.com > \>
Original file line number Diff line number Diff line change 1+ The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
Original file line number Diff line number Diff line change @@ -386,7 +386,8 @@ <h1 class="title">Product Lot Sequence</h1>
386386< li > < a class ="reference internal " href ="#credits " id ="toc-entry-7 "> Credits</ a > < ul >
387387< li > < a class ="reference internal " href ="#authors " id ="toc-entry-8 "> Authors</ a > </ li >
388388< li > < a class ="reference internal " href ="#contributors " id ="toc-entry-9 "> Contributors</ a > </ li >
389- < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-10 "> Maintainers</ a > </ li >
389+ < li > < a class ="reference internal " href ="#other-credits " id ="toc-entry-10 "> Other credits</ a > </ li >
390+ < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-11 "> Maintainers</ a > </ li >
390391</ ul >
391392</ li >
392393</ ul >
@@ -481,10 +482,19 @@ <h2><a class="toc-backref" href="#toc-entry-9">Contributors</a></h2>
481482< li > Frederic Grall</ li >
482483</ ul >
483484</ li >
485+ < li > < a class ="reference external " href ="https://trobz.com "> Trobz</ a > :< ul >
486+ < li > Khoi (Kien Kim) << a class ="reference external " href ="mailto:khoikk@trobz.com "> khoikk@trobz.com</ a > ></ li >
484487</ ul >
488+ </ li >
489+ </ ul >
490+ </ div >
491+ < div class ="section " id ="other-credits ">
492+ < h2 > < a class ="toc-backref " href ="#toc-entry-10 "> Other credits</ a > </ h2 >
493+ < p > The migration of this module from 17.0 to 18.0 was financially supported
494+ by Camptocamp.</ p >
485495</ div >
486496< div class ="section " id ="maintainers ">
487- < h2 > < a class ="toc-backref " href ="#toc-entry-10 "> Maintainers</ a > </ h2 >
497+ < h2 > < a class ="toc-backref " href ="#toc-entry-11 "> Maintainers</ a > </ h2 >
488498< p > This module is maintained by the OCA.</ p >
489499< a class ="reference external image-reference " href ="https://odoo-community.org ">
490500< img alt ="Odoo Community Association " src ="https://odoo-community.org/logo.png " />
Original file line number Diff line number Diff line change @@ -93,13 +93,8 @@ def test_lot_onchange_product_id_global(self):
9393 self .assertFalse (product .lot_sequence_id )
9494 seq = self .env ["ir.sequence" ].search ([("code" , "=" , "stock.lot.serial" )])
9595 next_sequence_number = seq .get_next_char (seq .number_next_actual )
96- lot_form = Form (
97- self .stock_production_lot .with_context (
98- default_company_id = self .env .company .id
99- )
100- )
96+ lot_form = Form (self .stock_production_lot )
10197 self .assertEqual (lot_form .name , next_sequence_number )
102- self .assertEqual (lot_form .company_id , self .env .company )
10398 lot_form .product_id = product
10499 lot = lot_form .save ()
105100 self .assertEqual (lot .name , next_sequence_number )
Original file line number Diff line number Diff line change 66 <field name =" model" >product.template</field >
77 <field name =" inherit_id" ref =" stock.view_template_property_form" />
88 <field name =" arch" type =" xml" >
9- <field name = " tracking" position =" after" >
9+ <xpath expr = " //field[@name=' tracking']/ancestor::div[1] " position =" after" >
1010 <field name =" display_lot_sequence_fields" invisible =" 1" />
1111 <field
1212 name =" lot_sequence_prefix"
2525 name =" lot_sequence_id"
2626 invisible =" tracking not in ['lot', 'serial'] or not display_lot_sequence_fields"
2727 />
28- </field >
28+ </xpath >
2929 </field >
3030 </record >
3131</odoo >
Original file line number Diff line number Diff line change 66 <field name =" inherit_id" ref =" stock.res_config_settings_view_form" />
77 <field name =" arch" type =" xml" >
88 <xpath expr =" //block[@id='production_lot_info']" position =" inside" >
9- <div class =" col-12 col-lg-6 o_setting_box" >
10- <label for =" lot_sequence_padding" />
11- <span
12- class =" fa fa-lg fa-building-o"
13- title =" Values set here are company-specific."
14- aria-label =" Values set here are company-specific."
15- groups =" base.group_multi_company"
16- />
17- <div class =" text-muted" >
18- Default number of digits to be set on products for product lot/serial sequence generation.
19- </div >
20- <div class =" content-group" >
21- <div class =" mt16" >
22- <span ><field
23- name =" lot_sequence_padding"
24- class =" oe_inline"
25- /> digits</span >
26- </div >
27- </div >
28- </div >
9+ <setting
10+ id =" lot_sequence_padding_setting"
11+ company_dependent =" 1"
12+ groups =" base.group_multi_company"
13+ help =" Default number of digits to be set on products for product lot/serial sequence generation."
14+ >
15+ <field name =" lot_sequence_padding" class =" oe_inline" />
16+ <span >digits</span >
17+ </setting >
2918 </xpath >
3019 </field >
3120 </record >
You can’t perform that action at this time.
0 commit comments