-
Notifications
You must be signed in to change notification settings - Fork 41
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
[16.0][IMP] rma: create incoming shipment from rma group #508
base: 16.0
Are you sure you want to change the base?
Changes from 3 commits
f2c26d4
c3b3a6a
8d59e55
2e59754
e84ed45
110558d
f3801fc
4e754d3
3c88cee
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from . import rma_add_stock_move | ||
from . import rma_make_picking | ||
from . import rma_order_line_make_supplier_rma | ||
from . import rma_make_supplier_rma | ||
from . import rma_add_serial |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,4 +134,28 @@ | |
</field> | ||
</record> | ||
|
||
<record id="view_rma_button_form" model="ir.ui.view"> | ||
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. I find it quite confusing to have an override of 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. @florian-dacosta, better to have file for model, whenever possible, in the next versions some cleanup will be done, hopefully. |
||
<field name="name">rma.order.form</field> | ||
<field name="model">rma.order</field> | ||
<field name="inherit_id" ref="rma.view_rma_form" /> | ||
<field name="arch" type="xml"> | ||
<header position="inside"> | ||
<button | ||
name="%(action_rma_picking_in)d" | ||
string="Create Incoming Shipment" | ||
class="oe_highlight" | ||
attrs="{'invisible':['|', ('qty_to_receive', '=', 0), ('qty_to_receive', '<', 0)]}" | ||
type="action" | ||
/> | ||
<button | ||
name="%(action_rma_picking_out)d" | ||
string="Create Delivery" | ||
class="oe_highlight" | ||
attrs="{'invisible':['|', ('qty_to_deliver', '=', 0), ('qty_to_deliver', '<', 0)]}" | ||
type="action" | ||
/> | ||
</header> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
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.
I don't think all approved lines should always be added when coming from a group.
I'd say, if the highlighted button is pressed, then we should only get lines having a qty_to_receive > 0
(maybe passing a context on the button for instance ?)
And if the not highlighted button is pressed, then all lines with a receipt policy != 0?
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.
@florian-dacosta , it's done.