19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -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,

View file

@ -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>