mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 15:32:07 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -24,7 +24,7 @@ class ProductMargin(models.TransientModel):
|
|||
|
||||
def ref(xml_id):
|
||||
proxy = self.env['ir.model.data']
|
||||
return proxy._xmlid_lookup(xml_id)[2]
|
||||
return proxy._xmlid_lookup(xml_id)[1]
|
||||
|
||||
search_view_id = ref('product.product_search_form_view')
|
||||
graph_view_id = ref('product_margin.view_product_margin_graph')
|
||||
|
|
@ -40,14 +40,14 @@ class ProductMargin(models.TransientModel):
|
|||
context.update(date_to=self.to_date)
|
||||
|
||||
views = [
|
||||
(tree_view_id, 'tree'),
|
||||
(tree_view_id, 'list'),
|
||||
(form_view_id, 'form'),
|
||||
(graph_view_id, 'graph')
|
||||
]
|
||||
return {
|
||||
'name': _('Product Margins'),
|
||||
'context': context,
|
||||
"view_mode": 'tree,form,graph',
|
||||
"view_mode": 'list,form,graph',
|
||||
'res_model': 'product.product',
|
||||
'type': 'ir.actions.act_window',
|
||||
'views': views,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</group>
|
||||
<footer>
|
||||
<button name="action_open_window" string="Open Margins" type="object" class="btn-primary" data-hotkey="q"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue