-
-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.0][MIG] purchase_order_secondary_unit: Migration to 17.0 #2319
base: 17.0
Are you sure you want to change the base?
Changes from 1 commit
41d44fc
ce195eb
8ad6fd3
53cb0c5
c813c6e
5b6c7f0
555728f
082faba
e53f93c
3f76c1f
5ff6f01
aa91dc9
594b4d1
bf4867f
e47822f
f08d731
2bb348f
7aa243c
26a9585
8294b11
2a27fa1
c5983a2
4055083
8c0fa81
11b06ce
96a635c
4dbd6ef
19dcd8f
d17af47
d1442df
4dd8a17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- Sergio Teruel | ||
- Ernesto Tejeda | ||
- Nikul Chaudhary \<<nikulchaudhary2112@gmail.com>\> | ||
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\> | ||
- Miguel Ángel Gómez \<<miguel.gomez@braintec.com>\> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
This module extends the functionality of purchase orders to allow buy products | ||
in secondary unit of distinct category. | ||
This module extends the functionality of purchase orders to allow buy | ||
products in secondary unit of distinct category. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
To use this module you need to: | ||
|
||
1. Go to a *Product \> General Information tab*. | ||
2. Create any record in "Secondary unit of measure". | ||
3. Set the conversion factor. | ||
4. Go to *Purchase \> Quotation \> Create*. | ||
5. Change secondary qty and secondary uom in line, and quantity | ||
(product_qty) will be changed (according to the conversion factor). |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,19 @@ | |
<field | ||
name="secondary_uom_qty" | ||
class="oe_inline oe_no_button" | ||
attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}" | ||
groups="uom.group_uom" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same as above |
||
readonly="state in ['done', 'cancel']" | ||
/> | ||
<field | ||
name="secondary_uom_id" | ||
class="oe_inline" | ||
domain="product_id and ['|', ('product_id', '=', product_id), | ||
domain="['|', ('product_id', '=', product_id), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
'&', ('product_tmpl_id.product_variant_ids', 'in', [product_id]), | ||
('product_id', '=', False)] or [(0, '=', 1)]" | ||
('product_id', '=', False)]" | ||
options="{'no_create': True}" | ||
attrs="{'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))], 'required': [('secondary_uom_qty', '!=', 0.0)]}" | ||
groups="uom.group_uom" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same as above |
||
readonly="state in ['purchase','done', 'cancel']" | ||
required="secondary_uom_qty != 0.0" | ||
/> | ||
</t> | ||
</xpath> | ||
|
@@ -34,8 +37,8 @@ | |
> | ||
<field | ||
name="secondary_uom_qty" | ||
attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}" | ||
groups="uom.group_uom" | ||
readonly="state in ['done', 'cancel']" | ||
optional="show" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please don't remove this, as it was added in an recent commit, when updating commit history |
||
/> | ||
<field | ||
|
@@ -44,8 +47,9 @@ | |
'&', ('product_tmpl_id.product_variant_ids', 'in', [product_id]), | ||
('product_id', '=', False)] or [(0, '=', 1)]" | ||
options="{'no_create': True}" | ||
attrs="{'readonly': [('state', 'in', ('purchase','done', 'cancel'))], 'required': [('secondary_uom_qty', '!=', 0.0)]}" | ||
groups="uom.group_uom" | ||
readonly="state in ['purchase','done', 'cancel']" | ||
required="secondary_uom_qty != 0.0" | ||
optional="show" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same as above |
||
/> | ||
</xpath> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant, the field is placed into a
<t>
that have already groups attribute